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]

Re: Linker script


>
> I think you misunderstod my problem here. It is not a c program that
> shall access this variable, i want the value of etext to be place on a
> fixed adress of the binary image. This is because a let another program
> interpret the binary image and calcualte a checksum on it i.e i need to
> know the value of etext data without running the program.
>
> Regards, Daniel Lidsten

Daniel,

I think, the SIZEOF function at
http://www.gnu.org/manual/ld-2.9.1/html_node/ld_14.html#SEC14
is what you need.
Unnecessary to say, that the symbol carrying the image length must be located 
on a fixed place - OUTSIDE - the text image....

Michael


------
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]