bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/28910] GNU-ld: ARM: Issues when trying to set target output arch


From: nickc at redhat dot com
Subject: [Bug ld/28910] GNU-ld: ARM: Issues when trying to set target output architecture
Date: Mon, 31 Oct 2022 11:39:23 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28910

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING

--- Comment #2 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Johannes (krjdev) Krottmayer from comment #0)

Hi Johannes,

  These are two separate issues, and really should have two separate PRs filed.
 But never mind, since they should be relatively easy to solve.



> OUTPUT_ARCH(armv7e-m)
> 
> ...linking fails with many EABI version mismatches errors:
> arm-none-eabi-ld: error: source object main.o has EABI version 5, but target
> main_cm7.elf has EABI version 0
> arm-none-eabi-ld: failed to merge target specific data of file main.o

There is code in the linker that normally handles this case, but it is
tied to using the default architecture.  When that is overridden by a
linker script, the code is not triggered.


Please could you try out the uploaded patch.  It should fix both issues.
If you are happy with it, I will check it in.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]