AnsweredAssumed Answered

How to make position independent code with S32DS ?

Question asked by 乃为 董 on Jan 22, 2019
Latest reply on Feb 11, 2020 by Mike Doidge

My question is How to make position independent code with S32DS? The compliler is arm-none-eabi-gcc.
I tried to add the compilation parameters "-fpie" , But the program that complied with "-fpie"
always jmp to default isr when assign value to global variables.
I also tried to add both compilation parameters "-fpie" and linker parameters "-pie", But
it will cause linker errors as shown below
section `.interp' will not fit in region `m_flash_config'
section .interp loaded at [00004410,00004420] overlaps section .text loaded at [00004410,0000593b]
region `m_flash_config' overflowed by 1280 bytes
May be modify the linker script file and add the section ".interp" will solve this problem ?
But will there be other potential problems?