This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Relocating the executable


Hi,

On Wed, Dec 19, 2001 at 11:42:49AM +0530, N.Suresh wrote:
>      I want to generate an elf which can be loaded at some other
> location.
>      I tried to change the origin and size of ram.ldi and ram.h file of
> MBX platform  but it didn't work.

change 0x1cd00 in line
CYG_LABEL_DEFN(__reserved_for_rom) = ALIGN (0x10); . = CYG_LABEL_DEFN(__reserved_for_rom) + 0x1cd00;

e.g. for 0xfcd00 you get an entry point at 0x100000.

Thats how i did it.

christoph


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]