Hello, i work with uVision 3 V3.72, linker V3.1.0.942. i check in linker options make ro section postion independent and also use memory layout from the Target dialog.And duing linking shows warnign L6914W: option ropi ignored when using --scatter. My question is why? Why this warning has appeared? Is there any other why to make section position independent? thanks in advance
I believe this answer gives some information but i want to know how to make my position independent. i just want my program to work independently to any adress.i want the same program to work if i will load it to any area without making any changes to linker.
But you still did not give any information about whatyou consider "position independent". If the code moves to a 1kB higher address - what about global variables? Should they also move or stay fixed?
After a compilation appears a bin file. i want this bin file using a bootloader to put at any address. It must work properly if bootloader will put it at addres 0x100000 or at addres 0x110000.So the code must be position independent.