workaround: remove '*ABS*' section from applet.elf
in details:
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -nostdlib -Wl,--just-symbols=symbols.txt -Wl,-Ttext=0x08000000 -o applet.elf main.c test1.c arm-none-eabi-strip --remove-section='*ABS*' -w -K '*' applet.elf arm-none-eabi-gcc -fpie -mthumb -mcpu=cortex-m4 -nostdlib -Wl,--just-symbols=applet.elf -Wl,--just-symbols=symbols.txt -o pie.elf pie.c arm-none-eabi-objdump -M force-thumb -d pie.elf
workaround: remove '*ABS*' section from applet.elf
in details:
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -nostdlib -Wl,--just- symbols= symbols. txt -Wl,-Ttext= 0x08000000 -o applet.elf main.c test1.c section= '*ABS*' -w -K '*' applet.elf symbols= applet. elf -Wl,--just- symbols= symbols. txt -o pie.elf pie.c eabi-objdump -M force-thumb -d pie.elf
arm-none-eabi-strip --remove-
arm-none-eabi-gcc -fpie -mthumb -mcpu=cortex-m4 -nostdlib -Wl,--just-
arm-none-