mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
Add 2 tests for PR ld/11812.
2010-09-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/11812 * ld-i386/nogot2.d: New * ld-i386/nogot2.s: Likewise. * ld-x86-64/nogot2.d: Likewise. * ld-x86-64/nogot2.s: Likewise. * ld-i386/i386.exp: Run nogot2. * ld-x86-64/x86-64.exp: Likewise.
This commit is contained in:
parent
e28df02b6c
commit
0629d0af5a
@ -1,3 +1,14 @@
|
||||
2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/11812
|
||||
* ld-i386/nogot2.d: New
|
||||
* ld-i386/nogot2.s: Likewise.
|
||||
* ld-x86-64/nogot2.d: Likewise.
|
||||
* ld-x86-64/nogot2.s: Likewise.
|
||||
|
||||
* ld-i386/i386.exp: Run nogot2.
|
||||
* ld-x86-64/x86-64.exp: Likewise.
|
||||
|
||||
2010-09-29 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* ld-h8300/h8300.exp: Use is_elf_format.
|
||||
|
@ -190,6 +190,7 @@ run_dump_test "protected2"
|
||||
run_dump_test "protected3"
|
||||
run_dump_test "tlspie1"
|
||||
run_dump_test "nogot1"
|
||||
run_dump_test "nogot2"
|
||||
run_dump_test "discarded1"
|
||||
|
||||
if { !([istarget "i?86-*-linux*"]
|
||||
|
7
ld/testsuite/ld-i386/nogot2.d
Normal file
7
ld/testsuite/ld-i386/nogot2.d
Normal file
@ -0,0 +1,7 @@
|
||||
#ld: -pie -melf_i386
|
||||
#readelf: -S --wide
|
||||
#as: --32
|
||||
|
||||
#...
|
||||
[ ]*\[.*\][ ]+.*\.got\.plt.*
|
||||
#pass
|
4
ld/testsuite/ld-i386/nogot2.s
Normal file
4
ld/testsuite/ld-i386/nogot2.s
Normal file
@ -0,0 +1,4 @@
|
||||
.text
|
||||
.globl _start
|
||||
_start:
|
||||
movl _GLOBAL_OFFSET_TABLE_, %ecx
|
7
ld/testsuite/ld-x86-64/nogot2.d
Normal file
7
ld/testsuite/ld-x86-64/nogot2.d
Normal file
@ -0,0 +1,7 @@
|
||||
#ld: -pie -melf_x86_64
|
||||
#readelf: -S --wide
|
||||
#as: --64
|
||||
|
||||
#...
|
||||
[ ]*\[.*\][ ]+.*\.got\.plt.*
|
||||
#pass
|
4
ld/testsuite/ld-x86-64/nogot2.s
Normal file
4
ld/testsuite/ld-x86-64/nogot2.s
Normal file
@ -0,0 +1,4 @@
|
||||
.text
|
||||
.globl _start
|
||||
_start:
|
||||
movq _GLOBAL_OFFSET_TABLE_(%rip), %rcx
|
@ -133,6 +133,7 @@ run_dump_test "tlsle1"
|
||||
run_dump_test "tlspie1"
|
||||
run_dump_test "unique1"
|
||||
run_dump_test "nogot1"
|
||||
run_dump_test "nogot2"
|
||||
run_dump_test "discarded1"
|
||||
|
||||
if { ![istarget "x86_64-*-linux*"] } {
|
||||
|
Loading…
Reference in New Issue
Block a user