This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] enable fdpic targets/emulations for sh*-*-linux*
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: dalias at libc dot org
- Cc: amodra at gmail dot com, binutils at sourceware dot org
- Date: Thu, 01 Oct 2015 13:51:55 +0900 (JST)
- Subject: Re: [PATCH] enable fdpic targets/emulations for sh*-*-linux*
- Authentication-results: sourceware.org; auth=none
- References: <20150930 dot 143924 dot 179845457 dot kkojima at rr dot iij4u dot or dot jp> <20151001004107 dot GH32709 at bubble dot grove dot modra dot org> <20151001005828 dot GF8645 at brightrain dot aerifal dot cx>
Rich Felker <dalias@libc.org> wrote:
> Do we need to just drop elf32-sh and elf32-shl?
> They're not necessary for anything I'm using at the moment, and
> probably not at all; I had just added them for completeness.
It looks that the failures for sh-linux went away with dropping
non-linux non-fdpic stuff from the changes. Rich, is it OK for
you?
Regards,
kaz
--
[bfd]
* config.bfd (targ_selvecs): Remove sh_elf32_vec and
sh_elf32_le_vec from sh*-*-linux cases.
[ld]
* configure.tgt (targ_extra_emuls): Remove shlelf and
shelf from sh*-*-linux cases.
[bfd]
diff --git a/config.bfd b/config.bfd
index fdb0fc0..a8319ca 100644
--- a/config.bfd
+++ b/config.bfd
@@ -1389,7 +1389,7 @@ case "${targ}" in
sh-*-linux*)
targ_defvec=sh_elf32_linux_be_vec
targ_selvecs="sh_elf32_linux_vec sh64_elf32_linux_vec sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec"
- targ_selvecs="${targ_selvecs} sh_elf32_vec sh_elf32_le_vec sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
+ targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
want64=true
;;
#endif /* BFD64 */
@@ -1397,12 +1397,12 @@ case "${targ}" in
sh*eb-*-linux*)
targ_defvec=sh_elf32_linux_be_vec
targ_selvecs=sh_elf32_linux_vec
- targ_selvecs="${targ_selvecs} sh_elf32_vec sh_elf32_le_vec sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
+ targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
;;
sh*-*-linux*)
targ_defvec=sh_elf32_linux_vec
targ_selvecs=sh_elf32_linux_be_vec
- targ_selvecs="${targ_selvecs} sh_elf32_vec sh_elf32_le_vec sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
+ targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
;;
sh-*-uclinux* | sh[12]-*-uclinux*)
[ld]
diff --git a/configure.tgt b/configure.tgt
index bb958dc..90fb887 100644
--- a/configure.tgt
+++ b/configure.tgt
@@ -651,7 +651,7 @@ s390-*-linux*) targ_emul=elf_s390
score-*-elf) targ_emul=score7_elf
targ_extra_emuls=score3_elf ;;
sh-*-linux*) targ_emul=shlelf_linux
- targ_extra_emuls="shelf_linux shlelf_fd shelf_fd shlelf shelf"
+ targ_extra_emuls="shelf_linux shlelf_fd shelf_fd"
targ_extra_libpath=shelf_linux ;;
sh64eb-*-linux*) targ_emul=shelf32_linux
targ_extra_emuls="shlelf32_linux" ;;
@@ -659,9 +659,9 @@ sh64-*-linux*) targ_emul=shlelf32_linux
targ_extra_emuls="shelf32_linux"
targ_extra_libpath=shelf32_linux ;;
sh*eb-*-linux*) targ_emul=shelf_linux
- targ_extra_emuls="shelf_fd shelf" ;;
+ targ_extra_emuls="shelf_fd" ;;
sh*-*-linux*) targ_emul=shlelf_linux
- targ_extra_emuls="shlelf_fd shlelf" ;;
+ targ_extra_emuls="shlelf_fd" ;;
sh5le-*-netbsd*) targ_emul=shlelf32_nbsd
targ_extra_emuls="shelf32_nbsd shelf64_nbsd shlelf64_nbsd shelf_nbsd shlelf_nbsd" ;;
sh5-*-netbsd*) targ_emul=shelf32_nbsd