Bug 12643 - binutils: ld: unrecognised emulation mode: armelf_linux_eabi
Summary: binutils: ld: unrecognised emulation mode: armelf_linux_eabi
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-06 12:58 UTC by HectorOron
Modified: 2014-05-28 19:42 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description HectorOron 2011-04-06 12:58:31 UTC
Hello,

  While cross building gcc-4.6 for arm-linux-gnueabihf, I got:

/usr/arm-linux-gnueabihf/bin/ld: unrecognised emulation mode: armelf_linux_eabi
Supported emulations: armelf_linux armelf armelfb armelfb_linux
collect2: ld returned 1 exit status

  A proposed *tested* fix:

--- ld/configure.tgt.orig  2011-04-05 20:22:23.000000000 +0000
+++ ld/configure.tgt       2011-04-05 20:23:35.000000000 +0000
@@ -79,7 +79,7 @@
                        targ_extra_emuls="armelfb armelf armelf_linux"
                        targ_extra_libpath="armelf_linux"
                        ;;
-arm*-*-linux-*eabi)    targ_emul=armelf_linux_eabi
+arm*-*-linux-*eabi*)   targ_emul=armelf_linux_eabi
                        targ_extra_emuls=armelfb_linux_eabi
                        targ_extra_libpath=$targ_extra_emuls
                        ;;
@@ -87,7 +87,7 @@
                        targ_extra_emuls="armelf armelfb armelfb_linux"
                        targ_extra_libpath="armelfb_linux"
                        ;;
-arm*-*-uclinux*eabi)   targ_emul=armelf_linux_eabi
+arm*-*-uclinux*eabi*)  targ_emul=armelf_linux_eabi
                        targ_extra_emuls=armelfb_linux_eabi
                        targ_extra_libpath=$targ_extra_emuls
                        ;;

Best regards,
  -- Hector Oron
Comment 1 cvs-commit@gcc.gnu.org 2011-04-08 16:05:16 UTC
CVSROOT:	/cvs/src
Module name:	src
Changes by:	nickc@sourceware.org	2011-04-08 16:05:12

Modified files:
	ld             : ChangeLog configure.tgt 

Log message:
	PR ld/12643
	* configure.tgt: Add support for arm-*-gnueabihf targets.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2308&r2=1.2309
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/configure.tgt.diff?cvsroot=src&r1=1.244&r2=1.245
Comment 2 Nick Clifton 2011-04-08 16:07:44 UTC
Hi Hector,

  Thanks for the bug report and patch.  I have applied your patch with one small modification - I extended it to cover the big-endian arm linux target as well, just in case that is ever needed.

Cheers
  Nick
Comment 3 HectorOron 2011-04-08 16:09:08 UTC
Hi Nick,

  Thank you very much and thanks for your good work!

Have a good weekend :)
Comment 4 Jackie Rosen 2014-02-16 18:28:50 UTC Comment hidden (spam)