This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Accept odd result in ld-powerpc/tocnovar testcase
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 23 Apr 2015 13:29:55 +0930
- Subject: Accept odd result in ld-powerpc/tocnovar testcase
- Authentication-results: sourceware.org; auth=none
I didn't commit this with the relro and powerpc .TOC. changes,
thinking that something should be done about the odd result of
.shstrtab appearing in PT_GNU_RELRO. On looking at it further,
I think that changing readelf would be wrong, so let's just
accept the results. Real binaries will always have other sections
past .got, so PT_GNU_RELRO won't finish past the end of loaded
sections.
[ 1] .text PROGBITS 100000e8 0000e8 000008 00 AX 0 0 8
[ 2] .eh_frame PROGBITS 100000f0 0000f0 000000 00 A 0 0 4
[ 3] .opd PROGBITS 1001fee8 00fee8 000018 00 WA 0 0 8
[ 4] .got PROGBITS 1001ff00 00ff00 000004 00 WA 0 0 256
[ 5] .shstrtab STRTAB 00000000 00ff04 000035 00 0 0 1
[ 6] .symtab SYMTAB 00000000 00ff40 000108 18 7 7 8
[ 7] .strtab STRTAB 00000000 010048 000034 00 0 0 1
LOAD 0x000000 0x10000000 0x10000000 0x0000f0 0x0000f0 R E 0x10000
LOAD 0x00fee8 0x1001fee8 0x1001fee8 0x00001c 0x00001c RW 0x10000
GNU_RELRO 0x00fee8 0x1001fee8 0x1001fee8 0x000118 0x000118 R 0x1
Segment Sections...
00 .text
01 .opd .got
02 .opd .got .shstrtab
* ld-powerpc/tocnovar.d: Adjust.
diff --git a/ld/testsuite/ld-powerpc/tocnovar.d b/ld/testsuite/ld-powerpc/tocnovar.d
index d1fd258..475617a 100644
--- a/ld/testsuite/ld-powerpc/tocnovar.d
+++ b/ld/testsuite/ld-powerpc/tocnovar.d
@@ -11,4 +11,4 @@
#...
+00 +\.text
+01 +\.opd \.got
- +02 +\.opd \.got
+ +02 +\.opd \.got .*
--
Alan Modra
Australia Development Lab, IBM