develop a 'customized ld'

Simon Richter Simon.Richter@hogyros.de
Sat Sep 10 17:43:00 GMT 2005


Hi,

sean yang wrote:

> For example, I want to find the program counter(i.e., the address of the 
> instruction) of "call '@foo'" instruction at link time.

This can be done for assembler code, but obvoisly not for C code as
there is no way to make sure the C compiler will always use the same
instructions. Just declare an assembler label in front of the
instruction of which you want to take the address.

   Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20050910/0ed0518c/attachment.sig>


More information about the Binutils mailing list