diff options
Diffstat (limited to 'lld/test/elf/ifunc.test')
| -rw-r--r-- | lld/test/elf/ifunc.test | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lld/test/elf/ifunc.test b/lld/test/elf/ifunc.test index 5521ae3b1c8..d91876e723c 100644 --- a/lld/test/elf/ifunc.test +++ b/lld/test/elf/ifunc.test @@ -25,19 +25,19 @@ PLT: references: PLT: kind: R_X86_64_IRELATIVE PLT: target: hey -PLT: name: main +PLT: name: plt PLT: scope: global PLT: references: -PLT: kind: R_X86_64_PC32 +PLT: kind: R_X86_64_PC32 PLT: target: [[PLTNAME:[-a-zA-Z0-9_]+]] +PLT: kind: layout-before +PLT: target: __hey_1 -PLT: name: plt +PLT: name: main PLT: scope: global PLT: references: -PLT: kind: R_X86_64_PC32 +PLT: kind: R_X86_64_PC32 PLT: target: [[PLTNAME]] -PLT: kind: layout-before -PLT: target: __hey_1 // Make sure the target of main's relocation is a stub with a PC32 relocation. // This relocation is to the got atom, but you can't really write that check in @@ -60,12 +60,10 @@ BIN-NEXT: {{[0-9a-f]+}} 00000000 00000000 RELATIVEADDEND: Relocations [ RELATIVEADDEND-NEXT: Section (1) .rela.plt { -RELATIVEADDEND-NEXT: 0x401000 R_X86_64_IRELATIVE - 0x4000FC +RELATIVEADDEND-NEXT: 0x401000 R_X86_64_IRELATIVE - 0x4000E0 RELATIVEADDEND-NEXT: } RELATIVEADDEND-NEXT: ] SHARED: shared-library-atoms SHARED: name: hey SHARED-NOT: data - -XFAIL: darwin |

