This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

warning: thumb-1 mode PLT generation not currently supported

在windows上,我用多个版本的GCC编译器,想在CM33内核的 ARM平台上编译生成动态库.so文件。但是报warning;

实际编译选项和结果如下:

arm-none-eabi-gcc.exe -fPIC -mthumb -mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fPIC -shared -nostdlib -nostartfiles -fdata-sections -ffunction-sections -Og -g0 -o libexternal_qrcode.so

运行结果提示:

arm-none-eabi/bin/ld.exe: libexternal_qrcode.so: warning: thumb-1 mode PLT generation not currently supported collect2.exe: error: ld returned 1 exit status。

我把其中-mcpu=cortex-m33  替换成 -mcpu=cortex-m4 就可以了。

  1. 请问这个是什么原因呢,是GCC编译器的问题吗?
  2. 我这替换成cortex-m4编译生成的动态库 .so运行在cortex-m33的ARM上会有问题吗?
Parents Reply Children
No data