This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [committed, PATCH] PR ld/17935: -z text should provide more info

On Thu, Feb 12, 2015 at 1:22 AM, Alan Modra <> wrote:
> On Sat, Feb 07, 2015 at 05:32:31AM -0800, H.J. Lu wrote:
>> I checked in this patch changes linker to issue a warning for relocation
>> in readonly section for -z text.
> i686-nacl  +FAIL: ld-i386/pr17935-1
> i686-nacl  +FAIL: ld-i386/pr17935-2
> x86_64-nacl  +FAIL: ld-i386/pr17935-1
> x86_64-nacl  +FAIL: ld-i386/pr17935-2
> All fails are ./ld-new: unrecognised emulation mode: elf_i386

I checked in this.


commit 761e2bd47975100f96422d2cafe0d545b781205d
Author: H.J. Lu <>
Date:   Thu Feb 12 04:59:57 2015 -0800

    Replace elf_i386 with elf_i386_nacl for nacl

    * ld-i386/i386.exp: Replace elf_i386 with elf_i386_nacl for nacl.

diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 2b963fa..af5b544 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-12  H.J. Lu  <>
+ * ld-i386/i386.exp: Replace elf_i386 with elf_i386_nacl for nacl.
 2015-02-11  H.J. Lu  <>

  * ld-plugin/plugin-27.d: New.
diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp
index f5922b4..4fc2359 100644
--- a/ld/testsuite/ld-i386/i386.exp
+++ b/ld/testsuite/ld-i386/i386.exp
@@ -200,7 +200,7 @@ if [istarget "*-*-nacl*"] {
     regsub -all elf_i386 $i386tests elf_i386_nacl i386tests

     # Same, applied to all the run_dump_test cases.
-    set options_regsub(ld) {-melf_i386 -melf_i386_nacl}
+    set options_regsub(ld) {elf_i386 elf_i386_nacl}

     # The section/segment layout differs too much for the vanilla
     # readelf output files to match.  So massage the cases so that

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]