Bob Wilson
80fccad2d4
binutils ChangeLog:
2004-05-17 David Heine <dlheine@tensilica.com>
* objcopy.c (setup_bfd_headers): New function.
(copy_object): Call setup_bfd_headers.
bfd ChangeLog:
2004-05-17 David Heine <dlheine@tensilica.com>
* aout-target.h (MY_bfd_copy_private_header_data): Define.
* aout-tic30.c (MY_bfd_copy_private_header_data): Define.
* bfd.c (bfd_copy_private_header_data): Define.
* coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
interface.
* coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
* coffcode.h (coff_bfd_copy_private_header_data): Define.
* elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
* elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
segments by calling copy_private_bfd_data.
(_bfd_elf_copy_private_header_data): Define.
* elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
* libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
* libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
* mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
* mmo.c (mmo_bfd_copy_private_header_data): Define.
* ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
* som.c (som_bfd_copy_private_header_data): Define.
* targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
* vms.c (vms_bfd_copy_private_header_data): Define.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
23 years ago
Alan Modra
a95b5cf9a6
* objcopy.c (copy_usage, strip_usage): Fix spelling.
23 years ago
Jakub Jelinek
2f01ffbf77
gas/
* stabs.c (generate_asm_file): Avoid warning about use of
uninitialized variable.
binutils/
* objcopy.c (copy_section): Avoid warnings.
23 years ago
Jakub Jelinek
f0312d395b
* objcopy.c: Include elf-bfd.h.
(is_strip_section): Don't strip debugging sections if
STRIP_NONDEBUG.
(setup_section): If STRIP_NONDEBUG make SEC_ALLOC sections
~(SEC_LOAD | SEC_HAS_CONTENTS) and on ELF targets also SHT_NOBITS.
* objcopy.c (copy_section): Free relpp if relcount == 0.
23 years ago
Nick Clifton
5b8c74e64f
Fix typo in comment in previous delta
23 years ago
Nick Clifton
950d48e718
Do not produce any output if the output file will be empty
23 years ago
Alan Modra
5e675b72e4
* objcopy.c (filter_bytes): Delete. Move code to..
(copy_section): ..here. Simplify size adjustment. Divide
section lma by interleave.
23 years ago
Maciej W. Rozycki
4087920c2b
* objcopy.c (bfd_flags_to_set, bfd_flags_to_clear): New variables
to handle flags for tweaking.
(copy_options): New options: impure, pure, readonly-text,
writable-text.
(copy_usage, copy_object, command_line_switch): Handle the new
options.
* doc/binutils.texi: Document the new options.
23 years ago
Nick Clifton
6ea3dd37ae
Add --only-keep-debug to the --help output.
23 years ago
Kazu Hirata
aaad4cf36a
* ChangeLog-9197: Fix comment typos.
* coffgrok.c: Likewise.
* filemode.c: Likewise.
* objcopy.c: Likewise.
* objdump.c: Likewise.
* prdbg.c: Likewise.
* stabs.c: Likewise.
* unwind-ia64.c: Likewise.
23 years ago
Nick Clifton
f57a841aea
Do not copy the object if the output file's format cannot be set to that of
the input file. If the input file's format is unknown, fail.
23 years ago
Nick Clifton
5fe11841a8
Add new feature to objcopy/strip. The -w switch allows wildcards to be used
in symbol names.
23 years ago
Nick Clifton
f24ddbddc5
Use consistent error messages for missing files.
Detect directories where an ordinary file is expected.
23 years ago
Nick Clifton
ed570f48a0
Do not complain when copying a file format that does not support relocations.
23 years ago
Nick Clifton
b749473bc4
Set the machine number as well as the architecture when converting from a
binary file to another file type.
23 years ago
Alan Modra
d3ba05513b
* objcopy.c: Remove unnecessary prototypes and casts.
* objdump.c: Remove unnecessary casts.
* readelf.c: Convert to C90. Remove unnecessary prototypes and casts.
(get_osabi_name): Move so we don't need a forward declaration.
23 years ago
Nick Clifton
84e2f31326
Tidy up code. Switch to ISO C
23 years ago
Nick Clifton
e7c81c254c
Fix --add-gnu-debuglink
23 years ago
Nick Clifton
ed1653a7a6
Add --only-keep-debug switch
24 years ago
Nick Clifton
2593f09acc
Add new switch to objcopy: --add-gnu-debuglink=<file>
Allows packages to be shipped in two forms, a stripped executable and debug
info file.
24 years ago
Jason Thorpe
92991082e9
* 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.
24 years ago
Nick Clifton
0fcdcb9188
Treat identical src/dst file names as if only one entered. One Windows
creating an output file of the same name as the input file will delete
the input file before it is read.
24 years ago
Nick Clifton
7c29036b75
Add --info command line switch
24 years ago
Alan Modra
66491ebcb7
* objcopy.c (filter_symbols): Fix compilation problems with
HP-UX's C compiler.
24 years ago
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