Relocating .text & .data sections to non-defult addresses

Michael Sokolov msokolov@ivan.Harhan.ORG
Wed Jul 19 09:40:00 GMT 2000


Matthew Fletcher <amimjf@hotmail.com> wrote:

> I am new to this game and am trying to build a cross-compiler to an embedded 
> system with a custom os. I have it all working except that i dont know how 
> to move the sections within our COFF objects to a diffrent 'Absolute' 
> address.
>
> Do i have to learn to write linker conf scripts or can i just use objcopy to 
> move the base address ?

Write and use a custom link script.

--
Michael Sokolov		Harhan Engineering Laboratory
Public Service Agent	International Free Computing Task Force
			International Engineering and Science Task Force
			615 N GOOD LATIMER EXPY STE #4
			DALLAS TX 75204-5852 USA

Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list