Nick Clifton
d7fb0dd217
Added --prefix-symbols <prefix> option to rename all symbols by adding the
given prefix to the begining of the symbol name. This is useful to provide
name space seperation regardless of how the object file was created. Added
--prefix-sections <prefix> and --prefix-alloc-sections <prefix> options to
rename all sections (or all sections with the alloc flag set) by adding the
given prefix to the begining of the symbol name.
24 years ago
Alan Modra
b34976b65a
s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. Simplify
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
24 years ago
Alan Modra
49c1257607
* objcopy.c (copy_file): Report ambiguous bfd_object matches, and
other object errors in preference to bfd_core errors.
24 years ago
H.J. Lu
212a3c4d9d
2002-08-13 H.J. Lu <hjl@gnu.org>
* objcopy.c (copy_object): Don't warn about the unsupported
architecture unless the input target is defaulted or the
output architecture is different from the input.
24 years ago
Alan Modra
dc156bc0bb
* objcopy.c (copy_section): Don't copy SEC_GROUP sections.
25 years ago
Kazu Hirata
0af11b59ba
* filemode.c: Fix formatting.
* ieee.c: Likewise.
* is-ranlib.c: Likewise.
* is-strip.c: Likewise.
* maybe-ranlib.c: Likewise.
* maybe-strip.c: Likewise.
* nlmconv.c: Likewise.
* nm.c: Likewise.
* not-ranlib.c: Likewise.
* not-strip.c: Likewise.
* objcopy.c: Likewise.
* objdump.c: Likewise.
25 years ago
Alan Modra
12b87c89b6
* configure: Regenerate.
* objcopy.c: Update copyright date.
* doc/Makefile.in: Regenerate.
25 years ago
Alan Modra
4c168fa3f7
* objcopy.c (MKDIR): Define.
(copy_archive): Make name_list.name const. Use MKDIR.
Handle duplicate files in archives by making more temp dirs.
25 years ago
Nick Clifton
15c82623b1
Add --totals option to size
25 years ago
Nick Clifton
8b53311e10
Tidy up formatting of --help output.
25 years ago
Nick Clifton
6364e0b4c2
Refer to "options" not "switches"
25 years ago
Michael Snyder
4dd67f2918
2001-12-18 Michael Snyder <msnyder@redhat.com>
* objcopy.c (copy_file): Accept corefiles (format bfd_core).
(copy_object): Don't set the start address or flags of a core file.
(copy_section): Don't relocate a core file. Don't copy contents
if the input section has the contents flag set, but the output
section does not (which happens with the fake 'note' pseudo-
sections that BFD creates for corefiles).
25 years ago
Alan Modra
b667df2e28
* objcopy.c (copy_archive): Set output bfd format outside the loop.
25 years ago
Thiemo Seufer
65de42c0f9
* addr2line.c (main): Protoype.
* ar.c (main): Protoype.
* nm.c (main): Protoype.
* objcopy.c (main): Protoype.
* objdump.c (main): Protoype.
* size.c (main): Protoype.
* strings.c (main): Protoype.
* gasp.c (main): Protoype.
25 years ago
Jakub Jelinek
bc408b8a78
* objcopy.c (setup_section): Copy entsize.
25 years ago
Mike Stump
1797833978
* objcopy.c (setup_section): Preserve SEC_RELOC when
--set-section-flags is used.
25 years ago
Alan Modra
3bcfb3e4bd
* objcopy.c (copy_main): Correct rename-section string parsing.
Consolidate new_name parsing, and error messages.
25 years ago
H.J. Lu
3882b01078
Locale changes from Bruno Haible <haible@clisp.cons.org>.
25 years ago
Alexandre Oliva
1ae8b3d2a0
* objcopy.c (use_alt_mach_code): New variable.
(OPTION_ALT_MACH_CODE): Define.
(copy_options): Added --alt-machine-code.
(copy_main): Handle it.
(copy_object): Switch to alternate machine code if requested.
* doc/binutils.texi: Document new option.
* NEWS: Likewise.
25 years ago
Nick Clifton
594ef5dbd2
Implement new switch --rename-section
25 years ago
Nick Clifton
eed1d0acc7
And remove the seconf accidental patch commission.
26 years ago
Nick Clifton
ec5d57d5e8
Remove patch accidentally checked in with readelf.c patch
26 years ago
Nick Clifton
e0c60db230
Display the contents of a .debug.macinfo section
26 years ago
H.J. Lu
24e01a3675
2001-07-05 H.J. Lu <hjl@gnu.org>
* objcopy.c (filter_symbols): Don't turn undefined symbols
into local.
26 years ago
H.J. Lu
6d900bf62c
2001-06-24 H.J. Lu <hjl@gnu.org>
* objcopy.c (strip_main): Revert the change made on 2001-05-30
by accident.
(copy_main): Apply the the change made to strip_main on
2001-05-30 by accident.
26 years ago
Nick Clifton
af3bdff753
Add missing support for -o option.
26 years ago
Nick Clifton
16b2b71c0c
Add command line switches to objcopy to provide lists of symbols in files
26 years ago
Nick Clifton
8c2bc6877d
Fix typos in ChangeLogs and update copyright notices
26 years ago
Nick Clifton
43a0748c78
Add --binary-architecture switch to objcopy to allow the output architecture
to be set when the input file type is binary.
26 years ago
Nick Clifton
23719f397d
Stop objcopy trying to convert endianness.
26 years ago
Nick Clifton
420496c13a
Add --srec-len and --srec-forceS3 switches to objcopy
26 years ago
Nick Clifton
db4f683116
Silently accept -d as an alias for -g for compatability with old BSD systems.
26 years ago
Alan Modra
5af11cab92
Eli Zaretskii's DOSish file name patches.
27 years ago
H.J. Lu
d812147943
2000-05-14 H.J. Lu (hjl@gnu.org)
* objcopy.c (filter_symbols): Don't strip global symbols in
relocatable object files.
27 years ago
Alan Modra
1a89cc7d7e
(setup_section): Add const and gettext calls for err.
27 years ago
Alan Modra
57938635f5
Add --redefine-sym to objcopy.
27 years ago
Alan Modra
8ad3436c79
Move translated part of bug report string back into .c files so
xgettext can find it. Regnerate .pot files.
27 years ago
Alan Modra
c20f4f8c21
Move bug report string to one place.
27 years ago
Nick Clifton
d5bcb29dda
Overhaul --help output.
27 years ago
Ian Lance Taylor
3994e2c66d
1999-09-12 Donn Terry <donn@interix.com>
* objcopy.c (parse_flags): Handle "noload", "debug", and "share".
* binutils.texi, objcopy.1: Document new flags.
27 years ago
Ian Lance Taylor
b4c96d0d37
* Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
as appropriate. Add variable initializations. Add casts.
* objdump.c (disassemble_bytes): Change j to bfd_vma.
* readelf.c (process_syminfo): Change i to unsigned int.
(display_debug_info): Change abbrev_number to unsigned long.
(process_mips_specific): Change fcnt to size_t.
28 years ago
Ian Lance Taylor
f91ea84976
Based on patch from H. Peter Anvin <hpa@transmeta.com>:
* objcopy.c (struct section_list): Add copy field.
(sections_copied): New static variable.
(copy_options): Add "only-section".
(copy_usage): Mention -j and --only-section.
(find_section_list): Initialize copy field.
(is_strip_section): Check for copying sections.
(copy_object): Check sections_copied when calling filter_symbols.
(setup_section): Check for copying sections.
(copy_section): Likewise.
(copy_main): Handle -j/--only-section.
* binutils.texi, objcopy.1: Document -j/--only-section.
28 years ago
Andreas Schwab
8066d1a283
* objcopy.c (copy_archive): Preserve dates of archive members if
requested.
28 years ago
Richard Henderson
252b5132c7
19990502 sourceware import
28 years ago
Stan Shebs
071ea11e85
Initial creation of sourceware repository
28 years ago
Nick Clifton
9eaac302dc
Minor formatting improvements.
29 years ago
Vladimir Makarov
6cddf7d967
* objcopy.c (strip_main): keep_specific_list == NULL as additional
29 years ago
Nick Clifton
ce770ed5f4
Add missing \n\ from help description.
29 years ago
Nick Clifton
537b2e5e86
Implemented new command line options: --change-section-vma and --change-section-lma.
Tidied up the code.
29 years ago
Tom Tromey
19ac4b08f0
* Makefile.am (INCLUDES): Search intl dirs for headers; define
LOCALEDIR.
* addr2line.c (main): Call setlocale, bindtextdomain, textdomain.
* ar.c (main): Likewise.
* coffdump.c (main): Likewise.
* dlltool.c (main): Likewise.
* nlmconv.c (main): Likewise.
* nm.c (main): Likewise.
* objcopy.c (main): Likewise.
* objdump.c (main): Likewise.
* size.c (main): Likewise.
* srconv.c (main): Likewise.
* strings.c (main): Likewise.
* sysdump.c (main): Likewise.
* windres.c (main): Likewise.
29 years ago