This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
tweak ld-elf/orphan.d
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Tue, 25 Oct 2005 08:38:44 +0930
- Subject: tweak ld-elf/orphan.d
On mips-linux, we happen to put .notbad before .text, which is quite
reasonable given the placement of .reginfo before .text.
* ld-elf/orphan.d: Adjust for mips.
Index: ld/testsuite/ld-elf/orphan.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/orphan.d,v
retrieving revision 1.1
diff -u -p -r1.1 orphan.d
--- ld/testsuite/ld-elf/orphan.d 21 Oct 2005 21:18:05 -0000 1.1
+++ ld/testsuite/ld-elf/orphan.d 24 Oct 2005 22:59:14 -0000
@@ -3,8 +3,8 @@
#readelf: -S --wide
#...
- \[[ 0-9]+\] \.text[ \t]+PROGBITS[ \t0-9a-f]+AX.*
- \[[ 0-9]+\] \.notbad[ \t]+PROGBITS[ \t0-9a-f]+A.*
+ \[[ 0-9]+\] \.(text|notbad)[ \t]+PROGBITS[ \t0-9a-f]+AX?.*
+ \[[ 0-9]+\] \.(text|notbad)[ \t]+PROGBITS[ \t0-9a-f]+AX?.*
\[[ 0-9]+\] \.data[ \t]+PROGBITS[ \t0-9a-f]+WA.*
#...
\[[ 0-9]+\] \.note[ \t]+NOTE[ \t0-9a-f]+A.*
--
Alan Modra
IBM OzLabs - Linux Technology Centre