This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TM4C1294NCPDT: Building position independent code

Part Number: TM4C1294NCPDT

Tool/software: Linux

Hi,

I've created a custom firmware update process and have divided the flash into 2 partitions. I'd like to be able to build one image that will work in either of the partitions but so far haven't figured out how to do this. I tried the -fPIC compiler flag but that didn't work. So far I have to create 2 separate images, 1 for each partition. For each of the 2 images I have to specify the location in memory in the linker script. Any suggestions on how it's possible to build a position independent image?

Thanks,
Doug Burrell