brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1009 B · 41872bf Raw
34 lines · yaml
1## Check we can set different values for symbols.2 3# RUN: yaml2obj %s -o %t4# RUN: llvm-readelf --symbols %t | FileCheck %s5 6--- !ELF7FileHeader:8  Class: ELFCLASS649  Data:  ELFDATA2LSB10  Type:  ET_REL11Symbols:12## No "Value" key was set. Check the behaviour is the13## same as if it was set to 0.14  - Name:  aaa15# CHECK:    Num: Value            {{.*}} Name16# CHECK:      1: 0000000000000000 {{.*}} aaa17## The "Value" key is explicitly set to 0x0.18  - Name:  bbb19    Value: 0x020## Check we can use the "=<none>" syntax.21# CHECK-NEXT: 2: 0000000000000000 {{.*}} bbb22  - Name:  ccc23    Value: [[EVAL=<none>]]24# CHECK-NEXT: 3: 0000000000000000 {{.*}} ccc25## The "Value" key is explicitly set to an arbitrary value.26## Here we use UINT64_MAX to check this boundary case.27  - Name:  ddd28    Value: 0xffffffffffffffff29# CHECK-NEXT: 4: ffffffffffffffff {{.*}} ddd30## The same as the previous case, but using decimal values.31  - Name:  eee32    Value: 1844674407370955161533# CHECK-NEXT: 5: ffffffffffffffff {{.*}} eee34