brintos

brintos / llvm-project-archived public Read only

0
0
Text · 962 B · ba3b409 Raw
34 lines · yaml
1## Check we can set different sizes 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 "Size" key was set. Check the behaviour is the13## same as if it was set to 0.14  - Name:  aaa15# CHECK:    Num: Value Size {{.*}} Name16# CHECK:      1: [[#]] 0    {{.*}} aaa17## The "Size" key is explicitly set to 0x0.18  - Name:  bbb19    Size:  0x020## Check we can use the "=<none>" syntax.21# CHECK-NEXT: 2: [[#]] 0    {{.*}} bbb22  - Name:  ccc23    Size:  [[ESIZE=<none>]]24# CHECK-NEXT: 3: [[#]] 0    {{.*}} ccc25## "Size" is explicitly set to an arbitrary value.26## Here we use UINT64_MAX to check this boundary case.27  - Name:  ddd28    Size:  0xffffffffffffffff29# CHECK-NEXT: 4: [[#]] -1   {{.*}} ddd30## The same as the previous case, but using decimal values.31  - Name:  eee32    Size:  1844674407370955161533# CHECK-NEXT: 5: [[#]] -1   {{.*}} eee34