public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* some question about output section
@ 2011-04-27 15:29 loody
  2011-04-28  0:57 ` Alan Modra
  0 siblings, 1 reply; 14+ messages in thread
From: loody @ 2011-04-27 15:29 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-05-19  4:31 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-27 15:29 some question about output section loody
2011-04-28  0:57 ` Alan Modra
2011-04-28 16:17   ` loody
2011-04-29  0:32     ` Alan Modra
2011-05-01 13:21       ` loody
2011-05-04 15:51         ` loody
2011-05-05  0:35           ` Alan Modra
2011-05-05  3:00             ` loody
2011-05-05  3:57               ` Alan Modra
2011-05-11  6:27                 ` loody
2011-05-11  7:18                   ` Alan Modra
2011-05-11  8:12                     ` loody
2011-05-18  5:32                     ` loody
2011-05-19  4:31                       ` loody

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).