This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

How to make a section absolute?


For a system with fast on-chip RAM without MMU I need to map an elf section
to a fixed address. The problem is that the remaining sections need to
remain relocable and there is no way to tell the loader not to relocate a
section.

Ideally all symbols in that section should become absolute and their
relocations resolved at link time. Trying to put the corresponding input
sections into the *ABS* section did not work because of their non-zero size.
The contents is currently uninitialized but the goal is to allow
initialization data which is then moved to its destination at run time.
Just changing the section of the affected symbols in the symbol table sounds
like a good approach, but how can I do that?

Is it possible to resolve relocations for a specific section with ld or is
there a way to do this with objcopy?

Best regards

  Daniel

-- 
Daniel Glöckner, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax -11, Bahnhofsallee 1b, 37081 Göttingen, Germany
Geschäftsführung: Dr. Uwe Kracke, Dr. Cord Seele, Ust-IdNr.: DE 205 198 055
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160

emlix - your embedded linux partner


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