This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [committed, PATCH] PR ld/17935: -z text should provide more info
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Thu, 12 Feb 2015 05:01:14 -0800
- Subject: Re: [committed, PATCH] PR ld/17935: -z text should provide more info
- Authentication-results: sourceware.org; auth=none
- References: <20150207133231 dot GA1275 at gmail dot com> <20150212092220 dot GN4274 at bubble dot grove dot modra dot org>
On Thu, Feb 12, 2015 at 1:22 AM, Alan Modra <amodra@gmail.com> 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.
Thanks.
--
H.J.
---
commit 761e2bd47975100f96422d2cafe0d545b781205d
Author: H.J. Lu <hjl.tools@gmail.com>
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 <hongjiu.lu@intel.com>
+
+ * ld-i386/i386.exp: Replace elf_i386 with elf_i386_nacl for nacl.
+
2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
* 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