This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
I think you simply need to locate main.o ahead of locating the rest of the "*(.text)" areas. I've attached one of our .ld files if it helps further. cheers, Ian > -----Original Message----- > From: Thomas F.simma jr. [mailto:tsimma@usa.net] > Sent: 09 February 2000 16:12 > To: crossgcc@sourceware.cygnus.com > Subject: ld help > > > I am trying to load a module (e.g. main.o) into it's own > memory section. > > The problem is that when I link with the below command file I > receive this > error: > > multiply definition of 'main' > > I think main.o is being loaded twice. Once in the ram > section, and once in > the cache section. Any suggestions are appreciated. > > Thank you. > > MEMORY > { > ram : o = 0x00401000, l = 128k > cache : o = 0xfffff800, l = 4k > } > SECTIONS > { > .vect 0x00401000: { *(.vect); } > .text : > { > *(.text) > *(.strings) > _etext = . ; > } > ram > .maintext : > { > main.o(.text) > } > cache > > ____________________________________________________________________ > Get free email and a permanent address at http://www.netaddress.com/?N=1 ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |