mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
2005-10-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/1467 * ld-elf/orphan.d: New file. * ld-elf/orphan.ld: Likewise. * ld-elf/orphan.s: Likewise.
This commit is contained in:
@ -1,3 +1,10 @@
|
||||
2005-10-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/1467
|
||||
* ld-elf/orphan.d: New file.
|
||||
* ld-elf/orphan.ld: Likewise.
|
||||
* ld-elf/orphan.s: Likewise.
|
||||
|
||||
2005-10-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* ld-ia64/ia64.exp: Undo the last change. Add support for *.d.
|
||||
|
12
ld/testsuite/ld-elf/orphan.d
Normal file
12
ld/testsuite/ld-elf/orphan.d
Normal file
@ -0,0 +1,12 @@
|
||||
#source: orphan.s
|
||||
#ld: -T orphan.ld
|
||||
#readelf: -S --wide
|
||||
|
||||
#...
|
||||
\[[ 0-9]+\] \.text[ \t]+PROGBITS[ \t0-9a-f]+AX.*
|
||||
\[[ 0-9]+\] \.notbad[ \t]+PROGBITS[ \t0-9a-f]+A.*
|
||||
\[[ 0-9]+\] \.data[ \t]+PROGBITS[ \t0-9a-f]+WA.*
|
||||
#...
|
||||
\[[ 0-9]+\] \.note[ \t]+NOTE[ \t0-9a-f]+A.*
|
||||
\[[ 0-9]+\] \.note.bar[ \t]+NOTE[ \t0-9a-f]+A.*
|
||||
#pass
|
7
ld/testsuite/ld-elf/orphan.ld
Normal file
7
ld/testsuite/ld-elf/orphan.ld
Normal file
@ -0,0 +1,7 @@
|
||||
SECTIONS
|
||||
{
|
||||
.text : { *(.text) }
|
||||
.data : { *(.data) }
|
||||
.bss : { *(.bss) *(COMMON) }
|
||||
.note : { *(.note) }
|
||||
}
|
10
ld/testsuite/ld-elf/orphan.s
Normal file
10
ld/testsuite/ld-elf/orphan.s
Normal file
@ -0,0 +1,10 @@
|
||||
.text
|
||||
.long 0
|
||||
.data
|
||||
.long 0
|
||||
.section .note,"a","note"
|
||||
.long 0
|
||||
.section .notbad,"a","progbits"
|
||||
.long 0
|
||||
.section .note.bar,"a","note"
|
||||
.long 0
|
Reference in New Issue
Block a user