This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Mon, Apr 19, 2004 at 05:02:36PM +0200, Toralf Lund wrote: > >>toralf>> If not, is there any way to produce a version of the binary > >> with LMA = VMA for .text and .data, besides relinking with a > >> separate linker script? > > > >You can use objcopy to change both the LMA and VMA of sections. > > The problem in my case is knowing what values to use, since .data is > specified relative to .text rather than on an absulte adress. And the > .text LMA is relative to a different section, too, so the offset between > LMA and VMA isn't known, either. What I would do (what I do, actually) is create three linker command files: one contains all the stuff common to both memory configurations. The other two contain the stuff that's different, and then include the first (common) file. -- Grant Edwards grante@visi.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |