mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
bb4e012ca0
Also fix some ix86 fails. * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying targets that don't support ifunc rather than ones that do. (contains_irelative_reloc): Match R_PARISC_IPLT. * testsuite/ld-ifunc/lib.c: Don't use .set in asm. * testsuite/ld-ifunc/ifunc-23-x86.s, * testsuite/ld-ifunc/ifunc-24-x86.s, * testsuite/ld-ifunc/ifunc-25-x86.s, * testsuite/ld-ifunc/ifunc-4-local-x86.s, * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main. * testsuite/ld-ifunc/ifunc-10-i386.d, * testsuite/ld-ifunc/ifunc-11-i386.d, * testsuite/ld-ifunc/ifunc-12-i386.d, * testsuite/ld-ifunc/ifunc-13-i386.d, * testsuite/ld-ifunc/ifunc-14a-i386.d, * testsuite/ld-ifunc/ifunc-14b-i386.d, * testsuite/ld-ifunc/ifunc-14c-i386.d, * testsuite/ld-ifunc/ifunc-14d-i386.d, * testsuite/ld-ifunc/ifunc-14e-i386.d, * testsuite/ld-ifunc/ifunc-14f-i386.d, * testsuite/ld-ifunc/ifunc-15-i386.d, * testsuite/ld-ifunc/ifunc-16-i386-now.d, * testsuite/ld-ifunc/ifunc-16-i386.d, * testsuite/ld-ifunc/ifunc-17a-i386.d, * testsuite/ld-ifunc/ifunc-17b-i386.d, * testsuite/ld-ifunc/ifunc-18a-i386.d, * testsuite/ld-ifunc/ifunc-18b-i386.d, * testsuite/ld-ifunc/ifunc-19a-i386.d, * testsuite/ld-ifunc/ifunc-19b-i386.d, * testsuite/ld-ifunc/ifunc-2-i386-now.d, * testsuite/ld-ifunc/ifunc-2-i386.d, * testsuite/ld-ifunc/ifunc-2-local-i386-now.d, * testsuite/ld-ifunc/ifunc-2-local-i386.d, * testsuite/ld-ifunc/ifunc-20-i386.d, * testsuite/ld-ifunc/ifunc-21-i386.d, * testsuite/ld-ifunc/ifunc-22-i386.d, * testsuite/ld-ifunc/ifunc-26.d, * testsuite/ld-ifunc/ifunc-5a-i386.d, * testsuite/ld-ifunc/ifunc-5a-local-i386.d, * testsuite/ld-ifunc/ifunc-5b-i386.d, * testsuite/ld-ifunc/ifunc-5b-local-i386.d, * testsuite/ld-ifunc/ifunc-5r-local-i386.d, * testsuite/ld-ifunc/ifunc-6a-i386.d, * testsuite/ld-ifunc/ifunc-6b-i386.d, * testsuite/ld-ifunc/ifunc-7a-i386.d, * testsuite/ld-ifunc/ifunc-7b-i386.d, * testsuite/ld-ifunc/ifunc-8-i386.d, * testsuite/ld-ifunc/ifunc-9-i386.d, * testsuite/ld-ifunc/pr17154-i386-now.d, * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
#source: pr17154-x86.s
|
|
#ld: -z now -m elf_i386 -shared --hash-style=sysv -z noseparate-code
|
|
#as: --32
|
|
#objdump: -dw
|
|
#target: x86_64-*-* i?86-*-*
|
|
#notarget: *-*-lynxos *-*-nacl* *-*-nto* *-*-solaris2*
|
|
|
|
.*: +file format .*
|
|
|
|
|
|
Disassembly of section .plt:
|
|
|
|
0+180 <.plt>:
|
|
+[a-f0-9]+: ff b3 04 00 00 00 pushl 0x4\(%ebx\)
|
|
+[a-f0-9]+: ff a3 08 00 00 00 jmp \*0x8\(%ebx\)
|
|
+[a-f0-9]+: 00 00 add %al,\(%eax\)
|
|
...
|
|
|
|
0+190 <\*ABS\*@plt>:
|
|
+[a-f0-9]+: ff a3 0c 00 00 00 jmp \*0xc\(%ebx\)
|
|
+[a-f0-9]+: 68 18 00 00 00 push \$0x18
|
|
+[a-f0-9]+: e9 e0 ff ff ff jmp 180 <.plt>
|
|
|
|
0+1a0 <func1@plt>:
|
|
+[a-f0-9]+: ff a3 10 00 00 00 jmp \*0x10\(%ebx\)
|
|
+[a-f0-9]+: 68 00 00 00 00 push \$0x0
|
|
+[a-f0-9]+: e9 d0 ff ff ff jmp 180 <.plt>
|
|
|
|
0+1b0 <func2@plt>:
|
|
+[a-f0-9]+: ff a3 14 00 00 00 jmp \*0x14\(%ebx\)
|
|
+[a-f0-9]+: 68 08 00 00 00 push \$0x8
|
|
+[a-f0-9]+: e9 c0 ff ff ff jmp 180 <.plt>
|
|
|
|
0+1c0 <\*ABS\*@plt>:
|
|
+[a-f0-9]+: ff a3 18 00 00 00 jmp \*0x18\(%ebx\)
|
|
+[a-f0-9]+: 68 10 00 00 00 push \$0x10
|
|
+[a-f0-9]+: e9 b0 ff ff ff jmp 180 <.plt>
|
|
|
|
Disassembly of section .text:
|
|
|
|
0+1d0 <resolve1>:
|
|
+[a-f0-9]+: e8 cb ff ff ff call 1a0 <func1@plt>
|
|
|
|
0+1d5 <g1>:
|
|
+[a-f0-9]+: e9 e6 ff ff ff jmp 1c0 <\*ABS\*@plt>
|
|
|
|
0+1da <resolve2>:
|
|
+[a-f0-9]+: e8 d1 ff ff ff call 1b0 <func2@plt>
|
|
|
|
0+1df <g2>:
|
|
+[a-f0-9]+: e9 ac ff ff ff jmp 190 <\*ABS\*@plt>
|
|
#pass
|