From 2ab52ca58f97a5a852f63df16ac64cfe8534210f Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 22 Apr 2015 11:31:18 +0930 Subject: [PATCH] Accept odd result in ld-powerpc/tocnovar testcase 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. * ld-powerpc/tocnovar.d: Adjust. --- ld/testsuite/ChangeLog | 1 + ld/testsuite/ld-powerpc/tocnovar.d | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 71c74fb..356a134 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -25,6 +25,7 @@ * ld-powerpc/tocopt3.d: Likewise. * ld-powerpc/tocopt4.d: Likewise. * ld-powerpc/tocopt5.d: Likewise. + * ld-powerpc/tocnovar.d: Adjust. 2015-04-22 Alan Modra 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 .* -- 2.7.4