diff mbox

Fix arm-none-eabi -mbig-endian -flto

Message ID 56280162.4090409@codesourcery.com
State New
Headers show

Commit Message

Jonathan Roelofs Oct. 21, 2015, 9:19 p.m. UTC
This fixes: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67871

2015-10-20  Jonathan Roelofs  <jonathan@codesourcery.com>

	* config/arm/bpabi.h: Tell the linker which emulation to use
	based on the endianness of the target.


2015-10-20  Jonathan Roelofs  <jonathan@codesourcery.com>

	* ld/configure.tgt: Support big-endian emulation in
	arm*-*-eabi* configs.


OK to commit?
diff mbox

Patch

Index: ld/configure.tgt
===================================================================
--- ld/configure.tgt	(revision 455328)
+++ ld/configure.tgt	(working copy)
@@ -99,8 +99,11 @@ 
 arm-*-rtems*)		targ_emul=armelf ;;
 armeb-*-elf | armeb-*-eabi*)
 			targ_emul=armelfb ;;
-arm-*-elf | arm*-*-eabi*)
+arm-*-elf)
 	  		targ_emul=armelf ;;
+arm*-*-eabi*)
+			targ_emul=armelf
+			targ_extra_emuls="armelf armelfb"  ;;
 arm*-*-nucleuseabi)     targ_emul=armelf ;;
 arm*-*-symbianelf*)     targ_emul=armsymbian;;
 arm-*-kaos*)		targ_emul=armelf ;;
Index: ld/ChangeLog
===================================================================
--- ld/ChangeLog	(revision 455328)
+++ ld/ChangeLog	(working copy)
@@ -1,3 +1,8 @@ 
+2015-10-20  Jonathan Roelofs  <jonathan@codesourcery.com>
+
+	* ld/configure.tgt: Support big-endian emulation in
+	arm*-*-eabi* configs.
+
 2015-08-19  Alan Modra  <amodra@gmail.com>
 
 	* emultempl/aix.em: Don't set link_info.pic.