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 # CHECK: Relocation section '.rela.dyn' at offset {{.*}} contains 2 entries:
8 # CHECK-NEXT: Offset Info Type Symbol's Value Symbol's Name
9 # CHECK-NEXT: 0000000000000000 0000000100000000 R_X86_64_NONE 0000000012345678 dynamic
10 # CHECK-NEXT: 0000000000000008 0000000200000000 R_X86_64_NONE 0000000087654321 both
12 # CHECK-NEXT: Relocation section '.rela.data' at offset {{.*}} contains 2 entries:
13 # CHECK-NEXT: Offset Info Type Symbol's Value Symbol's Name
14 # CHECK-NEXT: 0000000000000010 0000000200000000 R_X86_64_NONE 0000000011223344 static
15 # CHECK-NEXT: 0000000000000018 0000000100000000 R_X86_64_NONE 0000000088776655 both