Comment 3 for bug 1697255

Revision history for this message
necwerk (m8r-njfnr31) wrote :

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