mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
Add testcases for PR ld/12718.
2011-05-01 H.J. Lu <hongjiu.lu@intel.com> PR ld/12718 * ld-i386/i386.exp: Run pr12718. * ld-x86-64/x86-64.exp: Likewise. * ld-i386/pr12718.d: New. * ld-i386/pr12718.s: Likewise. * ld-x86-64/pr12718.d: Likewise. * ld-x86-64/pr12718.s: Likewise.
This commit is contained in:
@ -1,3 +1,14 @@
|
|||||||
|
2011-05-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR ld/12718
|
||||||
|
* ld-i386/i386.exp: Run pr12718.
|
||||||
|
* ld-x86-64/x86-64.exp: Likewise.
|
||||||
|
|
||||||
|
* ld-i386/pr12718.d: New.
|
||||||
|
* ld-i386/pr12718.s: Likewise.
|
||||||
|
* ld-x86-64/pr12718.d: Likewise.
|
||||||
|
* ld-x86-64/pr12718.s: Likewise.
|
||||||
|
|
||||||
2011-04-26 Kai Tietz <ktietz@redhat.com>
|
2011-04-26 Kai Tietz <ktietz@redhat.com>
|
||||||
|
|
||||||
* ld-pe/pe.exp: Add cfi/cfi32 tests.
|
* ld-pe/pe.exp: Add cfi/cfi32 tests.
|
||||||
|
@ -194,6 +194,7 @@ run_dump_test "tlspie2"
|
|||||||
run_dump_test "nogot1"
|
run_dump_test "nogot1"
|
||||||
run_dump_test "nogot2"
|
run_dump_test "nogot2"
|
||||||
run_dump_test "discarded1"
|
run_dump_test "discarded1"
|
||||||
|
run_dump_test "pr12718"
|
||||||
|
|
||||||
if { !([istarget "i?86-*-linux*"]
|
if { !([istarget "i?86-*-linux*"]
|
||||||
|| [istarget "i?86-*-gnu*"]
|
|| [istarget "i?86-*-gnu*"]
|
||||||
|
19
ld/testsuite/ld-i386/pr12718.d
Normal file
19
ld/testsuite/ld-i386/pr12718.d
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#name: PR ld/12718
|
||||||
|
#as: --32
|
||||||
|
#ld: -melf_i386
|
||||||
|
#readelf: -S
|
||||||
|
|
||||||
|
There are 5 section headers, starting at offset 0x7c:
|
||||||
|
|
||||||
|
Section Headers:
|
||||||
|
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
||||||
|
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
||||||
|
\[ 1\] .text PROGBITS 08048054 000054 000006 00 AX 0 0 4
|
||||||
|
\[ 2\] .shstrtab STRTAB 00000000 00005a 000021 00 0 0 1
|
||||||
|
\[ 3\] .symtab SYMTAB 00000000 000144 000070 10 4 2 4
|
||||||
|
\[ 4\] .strtab STRTAB 00000000 0001b4 000024 00 0 0 1
|
||||||
|
Key to Flags:
|
||||||
|
W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\)
|
||||||
|
I \(info\), L \(link order\), G \(group\), T \(TLS\), E \(exclude\), x \(unknown\)
|
||||||
|
O \(extra OS processing required\) o \(OS specific\), p \(processor specific\)
|
||||||
|
#pass
|
4
ld/testsuite/ld-i386/pr12718.s
Normal file
4
ld/testsuite/ld-i386/pr12718.s
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.globl foo
|
||||||
|
foo: ret
|
||||||
|
.globl _start
|
||||||
|
_start: call foo
|
19
ld/testsuite/ld-x86-64/pr12718.d
Normal file
19
ld/testsuite/ld-x86-64/pr12718.d
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#name: PR ld/12718
|
||||||
|
#as: --64
|
||||||
|
#ld: -melf_x86_64
|
||||||
|
#readelf: -S --wide
|
||||||
|
|
||||||
|
There are 5 section headers, starting at offset 0xa0:
|
||||||
|
|
||||||
|
Section Headers:
|
||||||
|
\[Nr\] Name Type Address Off Size ES Flg Lk Inf Al
|
||||||
|
\[ 0\] NULL 0000000000000000 000000 000000 00 0 0 0
|
||||||
|
\[ 1\] .text PROGBITS 0000000000400078 000078 000006 00 AX 0 0 4
|
||||||
|
\[ 2\] .shstrtab STRTAB 0000000000000000 00007e 000021 00 0 0 1
|
||||||
|
\[ 3\] .symtab SYMTAB 0000000000000000 0001e0 0000a8 18 4 2 8
|
||||||
|
\[ 4\] .strtab STRTAB 0000000000000000 000288 000024 00 0 0 1
|
||||||
|
Key to Flags:
|
||||||
|
W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\), l \(large\)
|
||||||
|
I \(info\), L \(link order\), G \(group\), T \(TLS\), E \(exclude\), x \(unknown\)
|
||||||
|
O \(extra OS processing required\) o \(OS specific\), p \(processor specific\)
|
||||||
|
#pass
|
4
ld/testsuite/ld-x86-64/pr12718.s
Normal file
4
ld/testsuite/ld-x86-64/pr12718.s
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.globl foo
|
||||||
|
foo: ret
|
||||||
|
.globl _start
|
||||||
|
_start: call foo
|
@ -155,6 +155,7 @@ run_dump_test "unique1"
|
|||||||
run_dump_test "nogot1"
|
run_dump_test "nogot1"
|
||||||
run_dump_test "nogot2"
|
run_dump_test "nogot2"
|
||||||
run_dump_test "discarded1"
|
run_dump_test "discarded1"
|
||||||
|
run_dump_test "pr12718"
|
||||||
|
|
||||||
if { ![istarget "x86_64-*-linux*"] } {
|
if { ![istarget "x86_64-*-linux*"] } {
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user