This is the mail archive of the binutils@sourceware.org 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: [PATCH] Add ld_list_options


On Wed, Apr 8, 2015 at 4:31 PM, Alan Modra <amodra@gmail.com> wrote:
> On Wed, Apr 08, 2015 at 09:48:56AM -0700, H.J. Lu wrote:
>> I checked in this patch to fix mips buid.
>
> Another thing, you ought to set elf_list_options et al to TRUE for
> --enable-targets=all, to cover building for a non-ELF host.

This is what I checked in.

> Also, please make use of EXTRA_EM_FILE to move the BNDPLT code out of
> elf32.em.
>

I will take care of it tomorrow.


-- 
H.J.
From 82d8e420ab39cf227aa8e0869a54fb0a29b0a00d Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Wed, 8 Apr 2015 17:05:54 -0700
Subject: [PATCH] Enable ELF ld_list_options for --enable-targets=all

When --enable-targets=all is used with non-ELF target, we should enable
ELF ld_list_options.

	* configure.ac (elf_list_options): Set to TRUE for
	--enable-targets=all.
	(elf_shlib_list_options): Likewise.
	(elf_plt_unwind_list_options): Likewise.
	* configure: Regenerated.
---
 ld/ChangeLog    | 8 ++++++++
 ld/configure    | 3 +++
 ld/configure.ac | 3 +++
 3 files changed, 14 insertions(+)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index b83c11e..9807eab 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,13 @@
 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* configure.ac (elf_list_options): Set to TRUE for
+	--enable-targets=all.
+	(elf_shlib_list_options): Likewise.
+	(elf_plt_unwind_list_options): Likewise.
+	* configure: Regenerated.
+
+2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
 
 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
diff --git a/ld/configure b/ld/configure
index 44bce0e..b528f74 100755
--- a/ld/configure
+++ b/ld/configure
@@ -17035,6 +17035,9 @@ for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
 do
   if test "$targ_alias" = "all"; then
     all_targets=true
+    elf_list_options=TRUE
+    elf_shlib_list_options=TRUE
+    elf_plt_unwind_list_options=TRUE
   else
     # Canonicalize the secondary target names.
     result=`$ac_config_sub $targ_alias 2>/dev/null`
diff --git a/ld/configure.ac b/ld/configure.ac
index 572440c..ac3c14f 100644
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -288,6 +288,9 @@ for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
 do
   if test "$targ_alias" = "all"; then
     all_targets=true
+    elf_list_options=TRUE
+    elf_shlib_list_options=TRUE
+    elf_plt_unwind_list_options=TRUE
   else
     # Canonicalize the secondary target names.
     result=`$ac_config_sub $targ_alias 2>/dev/null`
-- 
1.9.3


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