1 ## Show that yaml2obj uses the correct set of symbols for relocation sections
2 ## referencing the dynamic symbol table.
4 # RUN: yaml2obj %s -o %t
5 # RUN: llvm-readelf -r %t | FileCheck %s
7 # RUN: yaml2obj -DTYPE=SHT_CREL %s -o %t.crel
8 # RUN: llvm-readelf -r %t.crel | FileCheck %s
10 # CHECK: Relocation section '.rela.dyn' at offset {{.*}} contains 2 entries:
11 # CHECK-NEXT: Offset Info Type Symbol's Value Symbol's Name
12 # CHECK-NEXT: 0000000000000000 0000000100000000 R_X86_64_NONE 0000000012345678 dynamic
13 # CHECK-NEXT: 0000000000000008 0000000200000000 R_X86_64_NONE 0000000087654321 both
15 # CHECK-NEXT: Relocation section '.rela.data' at offset {{.*}} contains 2 entries:
16 # CHECK-NEXT: Offset Info Type Symbol's Value Symbol's Name
17 # CHECK-NEXT: 0000000000000010 0000000200000000 R_X86_64_NONE 0000000011223344 static
18 # CHECK-NEXT: 0000000000000018 0000000100000000 R_X86_64_NONE 0000000088776655 both
30 Type: [[TYPE=SHT_REL]]