Proposed patch to objectcopy.c

Daniel Marques marques@cs.cornell.edu
Thu Feb 24 10:39:00 GMT 2005


Hello.

I would like to propose the attached patch to objectcopy.c.

This patch adds the command-line flag '--globalize-symbol <name>', which 
will "force symbol <name> to be marked as global". In effect, it does 
the inverse of the '--localize-symbol <name>' flag.

As globalizing a symbol is not necessarily safe, usually one would 
redefine it at the same time:
	/objcopy --redefine-sym local4=fixed_local4 --globalize-symbol 
fixed_local4 a.o

The order of the relative operations is important.

This feature will be useful for "printf-style" debugging of a library 
from a client.  It will be very useful for 
application-level-checkpointing, when a code intermittently writes its 
state to disk, and needs to be able to copy the data held in a library.

Please let me know what you think.

Thanks.

Dan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.objectcopy
URL: <https://sourceware.org/pipermail/binutils/attachments/20050224/c01a8f9e/attachment.ksh>


More information about the Binutils mailing list