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

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

Matthew Fletcher <> 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
			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,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list