Linker script
Michael Svetlik
m.svetlik@ssi-schaefer-peem.com
Thu Jun 26 13:29:00 GMT 2003
>
> 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
More information about the crossgcc
mailing list