diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-03-06 18:49:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-03-06 18:49:17 +0000 |
commit | be1d162bb4a676a561295b84e09069a02223b311 (patch) | |
tree | cca024a226eb706cc54dce487e0a479e8e7b1d46 /binutils/objcopy.c | |
parent | c1d61903ecf3b390636827ed3fd234ff26040780 (diff) | |
download | gdb-be1d162bb4a676a561295b84e09069a02223b311.zip gdb-be1d162bb4a676a561295b84e09069a02223b311.tar.gz gdb-be1d162bb4a676a561295b84e09069a02223b311.tar.bz2 |
* bucomm.c (list_supported_targets): New function.
* bucomm.h (list_supported_targets): Declare.
* ar.c (usage): Call list_supported_targets.
* nm.c (usage): Likewise.
* objcopy.c (copy_usage, strip_usage): Likewise.
* objdump.c (usage): Likewise.
* size.c (usage): Likewise.
* strings.c (usage): Likewise.
PR 6345.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 86232ad..ccd3e13 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -232,6 +232,7 @@ Usage: %s [-vVSgxX] [-I bfdname] [-O bfdname] [-F bfdname] [-b byte]\n\ [--strip-symbol symbol] [-N symbol] [--verbose]\n\ [--version] [--help]\n\ in-file [out-file]\n"); + list_supported_targets (program_name, stream); exit (exit_status); } @@ -247,6 +248,7 @@ Usage: %s [-vVsSgxX] [-I bfdname] [-O bfdname] [-F bfdname] [-R section]\n\ [--strip-symbol symbol] [-N symbol]\n\ [--remove-section=section] [--verbose] [--version] [--help] file...\n", program_name); + list_supported_targets (program_name, stream); exit (exit_status); } @@ -417,6 +419,12 @@ is_strip_section (abfd, sec) { struct section_list *p; + if ((bfd_get_section_flags (abfd, sec) & SEC_DEBUGGING) != 0 + && (strip_symbols == strip_debug + || strip_symbols == strip_all + || discard_locals == locals_all)) + return true; + if (! sections_removed) return false; p = find_section_list (bfd_get_section_name (abfd, sec), false); |