1 # Show that the value field is omitted if a symbol has no name or value, but is
2 # printed if one is present. Test for both static and dynamic relocation
5 # RUN: yaml2obj %s -o %t
6 # RUN: llvm-readelf --relocations --dyn-relocations %t | FileCheck %s
8 # CHECK: Relocation section '.rela.text' at offset {{.*}} contains 3 entries:
9 # CHECK-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
10 # CHECK-NEXT: 0000000000000000 0000000000000000 R_X86_64_NONE 1
11 # CHECK-NEXT: 0000000000000000 0000000100000000 R_X86_64_NONE 0000000000000000 sym + 1
12 # CHECK-NEXT: 0000000000000000 0000000200000000 R_X86_64_NONE 0000000000000123 456
14 # CHECK: Relocation section '.rela.dyn' at offset {{.*}} contains 3 entries:
15 # CHECK-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
16 # CHECK-NEXT: 0000000000000000 0000000000000000 R_X86_64_NONE 1
17 # CHECK-NEXT: 0000000000000000 0000000100000000 R_X86_64_NONE 0000000000000000 sym + 1
18 # CHECK-NEXT: 0000000000000000 0000000200000000 R_X86_64_NONE 0000000000000123 456
20 # CHECK: 'RELA' relocation section at offset {{.*}} contains 72 bytes:
21 # CHECK-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
22 # CHECK-NEXT: 0000000000000000 0000000000000000 R_X86_64_NONE 1
23 # CHECK-NEXT: 0000000000000000 0000000100000000 R_X86_64_NONE 0000000000000000 sym + 1
24 # CHECK-NEXT: 0000000000000000 0000000200000000 R_X86_64_NONE 0000000000000123 456