diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-10-21 21:18:05 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-10-21 21:18:05 +0000 |
commit | 2068d885634b88af8be6da0b9e5cac77fa146701 (patch) | |
tree | 20f62a874c2c18552aa2a21a4a5b3091a4d41685 | |
parent | eb04889954ee51ea82c6388037c24bbb2af2e516 (diff) | |
download | gdb-2068d885634b88af8be6da0b9e5cac77fa146701.zip gdb-2068d885634b88af8be6da0b9e5cac77fa146701.tar.gz gdb-2068d885634b88af8be6da0b9e5cac77fa146701.tar.bz2 |
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.
-rw-r--r-- | ld/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/orphan.d | 12 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/orphan.ld | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/orphan.s | 10 |
4 files changed, 36 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index c100d28..8c228b1 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -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. diff --git a/ld/testsuite/ld-elf/orphan.d b/ld/testsuite/ld-elf/orphan.d new file mode 100644 index 0000000..b9c3249 --- /dev/null +++ b/ld/testsuite/ld-elf/orphan.d @@ -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 diff --git a/ld/testsuite/ld-elf/orphan.ld b/ld/testsuite/ld-elf/orphan.ld new file mode 100644 index 0000000..e3d7303 --- /dev/null +++ b/ld/testsuite/ld-elf/orphan.ld @@ -0,0 +1,7 @@ +SECTIONS +{ + .text : { *(.text) } + .data : { *(.data) } + .bss : { *(.bss) *(COMMON) } + .note : { *(.note) } +} diff --git a/ld/testsuite/ld-elf/orphan.s b/ld/testsuite/ld-elf/orphan.s new file mode 100644 index 0000000..d46f21d --- /dev/null +++ b/ld/testsuite/ld-elf/orphan.s @@ -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 |