Re: GCC 15.1.0 and binutils 2.44 - dangerous relocation: unsupported relocation on ARM

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

 



Hello GCC community!

I have fixed the issue. It wasn't a GCC NOR a binutils issue.

Since binutils 2.44 or higher, assembly functions must include
the assembler directive '.type sym_name, %function', if not
they fail at linking with the following error messages:

Implementation from the function:
'Unknown destination type (ARM/Thumb)'

Caller from the function:
'dangerous relocation: unsupported relocation'


On 5/4/25 15:54, Johannes Krottmayer via Gcc-help wrote:
> Hello!
> 
> I have built GCC 15.1.0 and binutils 2.44 for arm-none-eabi targets.
> Tried to build U-Boot for an STM32 MCU, but running into an issue
> at link time with the error "dangerous relocation: unsupported
> relocation".
> 
> With GCC 14.2.1 and binutils 2.43.1 there are no issues.
> 
> Don't know if this is a regression from binutils or from GCC,
> therefore I asked this question here.
> 

Kind regards,

Johannes





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux