This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/RFA] Add --redefine-syms=<filename> option to objcopy


This is an update of the patch Chris Demetriou posted in this message:

http://sources.redhat.com/ml/binutils/2002-09/msg00505.html

NetBSD has, in fact, been using this patch for a while now in a local copy of binutils 2.13. The patch I am posting here is an update, with the following changes from Chris's original patch:

	* The option is --redefine-syms=<filename> for consistency
	  with e.g. --keep-symbols=<filename>.
	* The file may have comments (as is allowed by e.g.
	  --keep-symbols=<filename>).

OK for mainline? OK for 2.14 branch?

2003-05-31  Chris Demetriou  <cgd@broadcom.com>
            Jason Thorpe  <thorpej@wasabisystems.com>

        * objcopy.c (redefine_list_append): Add an argument that
        indicates the context from which this function is being
        called.  Change all callers.
        (copy_options): Add a new option, --redefine-syms.
        (copy_usage): Document new option.
        (copy_main): Handle the --redefine-syms option.
        * doc/binutils.text (objcopy): Document new option.

-- Jason R. Thorpe <thorpej@wasabisystems.com>

Attachment: objcopy-syms-patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]