summaryrefslogtreecommitdiff
path: root/test/ELF/gnu-ifunc-plt-i386.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/gnu-ifunc-plt-i386.s')
-rw-r--r--test/ELF/gnu-ifunc-plt-i386.s64
1 files changed, 34 insertions, 30 deletions
diff --git a/test/ELF/gnu-ifunc-plt-i386.s b/test/ELF/gnu-ifunc-plt-i386.s
index 14369bf6388b7..3ed4e7616f577 100644
--- a/test/ELF/gnu-ifunc-plt-i386.s
+++ b/test/ELF/gnu-ifunc-plt-i386.s
@@ -10,16 +10,16 @@
// Check that the IRELATIVE relocations are after the JUMP_SLOT in the plt
// CHECK: Relocations [
// CHECK-NEXT: Section (4) .rel.plt {
-// CHECK-NEXT: 0x1200C R_386_JUMP_SLOT bar2
-// CHECK-NEXT: 0x12010 R_386_JUMP_SLOT zed2
-// CHECK-NEXT: 0x12014 R_386_IRELATIVE
-// CHECK-NEXT: 0x12018 R_386_IRELATIVE
+// CHECK-NEXT: 0x40200C R_386_JUMP_SLOT bar2
+// CHECK-NEXT: 0x402010 R_386_JUMP_SLOT zed2
+// CHECK-NEXT: 0x402014 R_386_IRELATIVE
+// CHECK-NEXT: 0x402018 R_386_IRELATIVE
// Check that IRELATIVE .got.plt entries point to ifunc resolver and not
// back to the plt entry + 6.
// GOTPLT: Contents of section .got.plt:
-// GOTPLT: 12000 00300100 00000000 00000000 36100100
-// GOTPLT-NEXT: 12010 46100100 00100100 01100100
+// GOTPLT: 402000 00304000 00000000 00000000 36104000
+// GOTPLT-NEXT: 402010 46104000 00104000 01104000
// Check that the PLTRELSZ tag includes the IRELATIVE relocations
// CHECK: DynamicSection [
@@ -28,34 +28,38 @@
// Check that a PLT header is written and the ifunc entries appear last
// DISASM: Disassembly of section .text:
// DISASM-NEXT: foo:
-// DISASM-NEXT: 11000: c3 retl
+// DISASM-NEXT: 401000: c3 retl
// DISASM: bar:
-// DISASM-NEXT: 11001: c3 retl
+// DISASM-NEXT: 401001: c3 retl
// DISASM: _start:
-// DISASM-NEXT: 11002: e8 49 00 00 00 calll 73
-// DISASM-NEXT: 11007: e8 54 00 00 00 calll 84
-// DISASM-NEXT: 1100c: e8 1f 00 00 00 calll 31
-// DISASM-NEXT: 11011: e8 2a 00 00 00 calll 42
+// DISASM-NEXT: 401002: e8 49 00 00 00 calll 73
+// DISASM-NEXT: 401007: e8 54 00 00 00 calll 84
+// DISASM-NEXT: 40100c: e8 1f 00 00 00 calll 31
+// DISASM-NEXT: 401011: e8 2a 00 00 00 calll 42
// DISASM-NEXT: Disassembly of section .plt:
// DISASM-NEXT: .plt:
-// DISASM-NEXT: 11020: ff 35 04 20 01 00 pushl 73732
-// DISASM-NEXT: 11026: ff 25 08 20 01 00 jmpl *73736
-// DISASM-NEXT: 1102c: 90 nop
-// DISASM-NEXT: 1102d: 90 nop
-// DISASM-NEXT: 1102e: 90 nop
-// DISASM-NEXT: 1102f: 90 nop
-// DISASM-NEXT: 11030: ff 25 0c 20 01 00 jmpl *73740
-// DISASM-NEXT: 11036: 68 00 00 00 00 pushl $0
-// DISASM-NEXT: 1103b: e9 e0 ff ff ff jmp -32 <.plt>
-// DISASM-NEXT: 11040: ff 25 10 20 01 00 jmpl *73744
-// DISASM-NEXT: 11046: 68 08 00 00 00 pushl $8
-// DISASM-NEXT: 1104b: e9 d0 ff ff ff jmp -48 <.plt>
-// DISASM-NEXT: 11050: ff 25 14 20 01 00 jmpl *73748
-// DISASM-NEXT: 11056: 68 30 00 00 00 pushl $48
-// DISASM-NEXT: 1105b: e9 e0 ff ff ff jmp -32 <.plt+0x20>
-// DISASM-NEXT: 11060: ff 25 18 20 01 00 jmpl *73752
-// DISASM-NEXT: 11066: 68 38 00 00 00 pushl $56
-// DISASM-NEXT: 1106b: e9 d0 ff ff ff jmp -48 <.plt+0x20>
+// DISASM-NEXT: 401020: ff 35 04 20 40 00 pushl 4202500
+// DISASM-NEXT: 401026: ff 25 08 20 40 00 jmpl *4202504
+// DISASM-NEXT: 40102c: 90 nop
+// DISASM-NEXT: 40102d: 90 nop
+// DISASM-NEXT: 40102e: 90 nop
+// DISASM-NEXT: 40102f: 90 nop
+// DISASM-EMPTY:
+// DISASM-NEXT: bar2@plt:
+// DISASM-NEXT: 401030: ff 25 0c 20 40 00 jmpl *4202508
+// DISASM-NEXT: 401036: 68 00 00 00 00 pushl $0
+// DISASM-NEXT: 40103b: e9 e0 ff ff ff jmp -32 <.plt>
+// DISASM-EMPTY:
+// DISASM-NEXT: zed2@plt:
+// DISASM-NEXT: 401040: ff 25 10 20 40 00 jmpl *4202512
+// DISASM-NEXT: 401046: 68 08 00 00 00 pushl $8
+// DISASM-NEXT: 40104b: e9 d0 ff ff ff jmp -48 <.plt>
+// DISASM-NEXT: 401050: ff 25 14 20 40 00 jmpl *4202516
+// DISASM-NEXT: 401056: 68 30 00 00 00 pushl $48
+// DISASM-NEXT: 40105b: e9 e0 ff ff ff jmp -32 <zed2@plt>
+// DISASM-NEXT: 401060: ff 25 18 20 40 00 jmpl *4202520
+// DISASM-NEXT: 401066: 68 38 00 00 00 pushl $56
+// DISASM-NEXT: 40106b: e9 d0 ff ff ff jmp -48 <zed2@plt>
.text
.type foo STT_GNU_IFUNC