Address trace

saurabh verma saurabh.verma@codito.com
Mon Jan 10 05:22:00 GMT 2005


hi,
	You can use the binutils to get the addresses that the globals are
bound to. Addresses of locals are of course dynamic and cannot be
determined statically.

For globals:
readelf -s <<executable>>

prints out the symbol table for the executable.For variables, the
"value" field should give you the address.

regards
saurabh



More information about the Gcc-help mailing list