diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2006-06-23 16:23:09 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2006-06-23 16:23:09 +0000 |
commit | d58c2e3acdba2aadf3a47d741236fa02d7bb04ff (patch) | |
tree | f33571f1e6bfe6c7613b85810616487b7eaf1ac1 /binutils/testsuite/binutils-all/objcopy.exp | |
parent | 22a84b55803f2adae036b553f7ca347ba02744be (diff) | |
download | ppe42-binutils-d58c2e3acdba2aadf3a47d741236fa02d7bb04ff.tar.gz ppe42-binutils-d58c2e3acdba2aadf3a47d741236fa02d7bb04ff.zip |
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.
Diffstat (limited to 'binutils/testsuite/binutils-all/objcopy.exp')
-rw-r--r-- | binutils/testsuite/binutils-all/objcopy.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index 969249d96a..679eea5988 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -728,3 +728,8 @@ if [is_elf_format] { run_dump_test "copy-2" run_dump_test "copy-3" + +if [is_elf_format] { + run_dump_test "localize-hidden-1" +} +run_dump_test "localize-hidden-2" |