binutils/
authorRichard Sandiford <rdsandiford@googlemail.com>
Fri, 23 Jun 2006 16:23:09 +0000 (16:23 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Fri, 23 Jun 2006 16:23:09 +0000 (16:23 +0000)
commitd58c2e3acdba2aadf3a47d741236fa02d7bb04ff
treef33571f1e6bfe6c7613b85810616487b7eaf1ac1
parent22a84b55803f2adae036b553f7ca347ba02744be
binutils/
* objcopy.c (localize_hidden): New variable.
(OPTION_LOCALIZE_HIDDEN): New command_line_switch value.
(copy_options): Add --localize-hidden.
(copy_usage): Mention --localize-hidden.
(is_hidden_symbol): New function.
(filter_symbols): Handle localize_hidden.
(copy_object): Call filter_symbols if localize_hidden.
(copy_main): Handle OPTION_LOCALIZE_HIDDEN.
* doc/binutils.texi (--localize-hidden): Document new option.

binutils/testsuite/
* binutils-all/localize-hidden-1.s,
* binutils-all/localize-hidden-1.d,
* binutils-all/localize-hidden-2.s,
* binutils-all/localize-hidden-2.d: New tests.
* binutils-all/objcopy.exp: Run them.
binutils/ChangeLog
binutils/doc/binutils.texi
binutils/objcopy.c
binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/localize-hidden-1.d [new file with mode: 0644]
binutils/testsuite/binutils-all/localize-hidden-1.s [new file with mode: 0644]
binutils/testsuite/binutils-all/localize-hidden-2.d [new file with mode: 0644]
binutils/testsuite/binutils-all/localize-hidden-2.s [new file with mode: 0644]
binutils/testsuite/binutils-all/objcopy.exp