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] enable fdpic targets/emulations for sh*-*-linux*


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


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