some question about output section
loody
miloody@gmail.com
Wed Apr 27 15:29:00 GMT 2011
Dear all:
I have some questions as below:
1. Is it possible to put whole .text of a static library to one output section?
2. Is it possible to put whole sections of a static library to one
output section?
3. is it possible for some file B to get address of some function in
A, while linking?
4. usually the address of a static lib is not determined until link
stage. Is it possible we can pre-defined the address of each function
in a static lib?
( I try to describe my environment with pseudo code as below)
file A, entry= 0xbf000000
.text (exclude lib1.a)
VMA(.text of lib1.a) = 0xbf100000
LMA(.text of lib1.a) = behind of .text
VMA(whole sections of lib2.a) = 0x80000000
LMA(whole sections of lib2.a) = behind of lib1.a
.data
......
file B, entry= 0xbfa00000
call function c in lib1.a
--
Regards,
miloody
More information about the Binutils
mailing list