Hi, I'm working on using LLVM/Clang to build stm32 projects and I selected goldlinker to acquire the final LLVM bitcode.
However, when I switched from ld.lld to goldlinker, I met this problem: /home/binutils_all/build/gold/ld-new: internal error in address, at ../../binutils/gold/output.h:197 clang-9: error: ld.lld command failed with exit code 1 (use -v to see invocation) And my final command is: /home/llvm-project/build/bin/clang-9 --target=arm-none-eabi -flto -fuse-ld=/home/binutils_all/build/gold/ld-new \ build/main.o build/gpio.o build/stm32f1xx_it.o build/stm32f1xx_hal_msp.o build/stm32f1xx_hal_gpio_ex.o build/stm32f1xx_hal_tim.o build/stm32f1xx_hal_tim_ex.o build/stm32f1xx_hal.o build/stm32f1xx_hal_rcc.o build/stm32f1xx_hal_rcc_ex.o build/stm32f1xx_hal_gpio.o build/stm32f1xx_hal_dma.o build/stm32f1xx_hal_cortex.o build/stm32f1xx_hal_pwr.o build/stm32f1xx_hal_flash.o build/stm32f1xx_hal_flash_ex.o build/stm32f1xx_hal_exti.o build/system_stm32f1xx.o build/startup_stm32f103xe.o \ -TSTM32F103ZETx_FLASH.ld \ -L/usr/arm-linux-gnueabihf/lib/ -L/home/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi/lib -I/home/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi/include -L/home/llvm-project/build-compiler-rt-baremetal/lib/baremetal \ -o build/led4.elf Does anyone know how to fix this problem? Thanks in advance!
_______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils