Binary which can run at different address locations

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 18, 2016 by lpcware
Content originally posted in LPCWare by veejaykarthik on Fri Mar 11 04:41:00 MST 2016
Hi Members,

We are using LPC2148 and we would like to know the following.

How to build a single binary file which can run from different locations Eg: 0x4000 and 0x10000

The binary file will be transferred to LPC2148 over usb and copied to different locations in Flash. Using bootloader, the binary can be invoked.

Is it possible to create a single binary which can run from different address locations?

Eg: Using position independent options like --rwpi. --ropi.