YASH BHIWANIA commented: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/4443#note_139104


> This appears to be an ABI mismatch in the motorola_powerpc bootloader build.
>
> The bootloader is currently compiled with `-msoft-float`, while applications 
> are built with hard-float (and the motorola_powerpc BSPs target CPUs with an 
> FPU). With newer binutils, mixing soft-float and hard-float objects is now a 
> link-time error rather than a warning, which likely explains why this did not 
> show up with older RTEMS/toolchain combinations.
>
> Removing `-msoft-float` alone is not sufficient, as the bootloader is also 
> built with `-mrelocatable`. This produces objects that the linker will not 
> merge with normally compiled application objects.
>
> Replacing `-mrelocatable` with `-mrelocatable-lib` for both C and assembly 
> flags keeps the bootloader relocatable while remaining link-compatible with 
> standard application binaries. With this change, the application links 
> cleanly into a bootable image.
>
> I have not yet been able to validate this on real hardware, but from a 
> toolchain and ABI perspective the change appears correct and aligns the 
> bootloader flags with the rest of the BSP.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/4443#note_139104
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to