rsta2 / circle

A C++ bare metal environment for Raspberry Pi with USB (32 and 64 bit)

Home Page:https://circle-rpi.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Circle linker failure with softfp

maulwurst opened this issue · comments

When trying to compile with softfp for Raspi 1, the following link failure happens:

--snip--
  CPP   wm8960soundcontroller.o
  AR    libsound.a
  CPP   main.o
  CPP   kernel.o
  LD    kernel.elf
arm-none-eabi-ld: error: /usr/share/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/13.2.1/libgcc.a(_paritysi2.o) uses VFP register arguments, kernel.elf does not
arm-none-eabi-ld: failed to merge target specific data of file /usr/share/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/13.2.1/libgcc.a(_paritysi2.o)
arm-none-eabi-ld: error: /usr/share/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/13.2.1/libgcc.a(_udivmoddi4.o) uses VFP register arguments, kernel.elf does not
arm-none-eabi-ld: failed to merge target specific data of file /usr/share/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/13.2.1/libgcc.a(_udivmoddi4.o)
arm-none-eabi-ld: warning: delayloop.o: missing .note.GNU-stack section implies executable stack
arm-none-eabi-ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
make: *** [../../Rules.mk:209: kernel.img] Error 1

$ cat Config.mk 
PREFIX = arm-none-eabi-
AARCH = 32
RASPPI = 1
STANDARD = -std=c++17
FLOAT_ABI = softfp

Alright, thanks. That's what we did :)