aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.c
AgeCommit message (Collapse)AuthorFilesLines
2004-01-12Do not produce any output if the output file will be emptyNick Clifton1-44/+101
2004-01-02 * objcopy.c (filter_bytes): Delete. Move code to..Alan Modra1-19/+13
(copy_section): ..here. Simplify size adjustment. Divide section lma by interleave.
2003-12-23* objcopy.c (bfd_flags_to_set, bfd_flags_to_clear): New variablesMaciej W. Rozycki1-4/+45
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.
2003-12-11Add --only-keep-debug to the --help output.Nick Clifton1-0/+2
2003-12-06 * ChangeLog-9197: Fix comment typos.Kazu Hirata1-1/+1
* coffgrok.c: Likewise. * filemode.c: Likewise. * objcopy.c: Likewise. * objdump.c: Likewise. * prdbg.c: Likewise. * stabs.c: Likewise. * unwind-ia64.c: Likewise.
2003-12-04Do not copy the object if the output file's format cannot be set to that ofNick Clifton1-3/+13
the input file. If the input file's format is unknown, fail.
2003-11-11Add new feature to objcopy/strip. The -w switch allows wildcards to be usedNick Clifton1-5/+37
in symbol names.
2003-11-07Use consistent error messages for missing files.Nick Clifton1-23/+28
Detect directories where an ordinary file is expected.
2003-10-27Do not complain when copying a file format that does not support relocations.Nick Clifton1-4/+17
2003-10-21Set the machine number as well as the architecture when converting from aNick Clifton1-3/+8
binary file to another file type.
2003-08-05 * objcopy.c: Remove unnecessary prototypes and casts.Alan Modra1-121/+67
* 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.
2003-07-23Tidy up code. Switch to ISO CNick Clifton1-198/+138
2003-06-27Fix --add-gnu-debuglinkNick Clifton1-1/+17
2003-06-26Add --only-keep-debug switchNick Clifton1-3/+28
2003-06-12Add new switch to objcopy: --add-gnu-debuglink=<file>Nick Clifton1-70/+72
Allows packages to be shipped in two forms, a stripped executable and debug info file.
2003-06-02* objcopy.c (redefine_list_append): Add an argument thatJason Thorpe1-8/+125
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.
2003-05-13Treat identical src/dst file names as if only one entered. One WindowsNick Clifton1-3/+4
creating an output file of the same name as the input file will delete the input file before it is read.
2003-03-24Add --info command line switchNick Clifton1-5/+34
2003-02-21 * objcopy.c (filter_symbols): Fix compilation problems withAlan Modra1-7/+12
HP-UX's C compiler.
2002-12-13Added --prefix-symbols <prefix> option to rename all symbols by adding theNick Clifton1-46/+112
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.
2002-11-30s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra1-119/+141
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
2002-10-15 * objcopy.c (copy_file): Report ambiguous bfd_object matches, andAlan Modra1-7/+28
other object errors in preference to bfd_core errors.
2002-08-132002-08-13 H.J. Lu <hjl@gnu.org>H.J. Lu1-1/+3
* 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.
2002-06-05 * objcopy.c (copy_section): Don't copy SEC_GROUP sections.Alan Modra1-1/+6
2002-05-21 * filemode.c: Fix formatting.Kazu Hirata1-44/+44
* 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.
2002-02-11 * configure: Regenerate.Alan Modra1-1/+1
* objcopy.c: Update copyright date. * doc/Makefile.in: Regenerate.
2002-02-11 * objcopy.c (MKDIR): Define.Alan Modra1-12/+41
(copy_archive): Make name_list.name const. Use MKDIR. Handle duplicate files in archives by making more temp dirs.
2002-01-25Add --totals option to sizeNick Clifton1-1/+1
2002-01-23Tidy up formatting of --help output.Nick Clifton1-10/+14
2002-01-15Refer to "options" not "switches"Nick Clifton1-4/+4
2001-12-192001-12-18 Michael Snyder <msnyder@redhat.com>Michael Snyder1-8/+20
* 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).
2001-12-18 * objcopy.c (copy_archive): Set output bfd format outside the loop.Alan Modra1-3/+3
2001-12-18 * addr2line.c (main): Protoype.Thiemo Seufer1-0/+2
* 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.
2001-12-10 * objcopy.c (setup_section): Copy entsize.Jakub Jelinek1-0/+3
2001-11-29 * objcopy.c (setup_section): Preserve SEC_RELOC whenMike Stump1-1/+1
--set-section-flags is used.
2001-09-19 * objcopy.c (copy_main): Correct rename-section string parsing.Alan Modra1-24/+20
Consolidate new_name parsing, and error messages.
2001-09-19Locale changes from Bruno Haible <haible@clisp.cons.org>.H.J. Lu1-0/+3
2001-08-24* objcopy.c (use_alt_mach_code): New variable.Alexandre Oliva1-0/+21
(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.
2001-07-31Implement new switch --rename-sectionNick Clifton1-51/+170
2001-07-06And remove the seconf accidental patch commission.Nick Clifton1-26/+0
2001-07-06Remove patch accidentally checked in with readelf.c patchNick Clifton1-14/+6
2001-07-05Display the contents of a .debug.macinfo sectionNick Clifton1-11/+43
2001-07-052001-07-05 H.J. Lu <hjl@gnu.org>H.J. Lu1-3/+6
* objcopy.c (filter_symbols): Don't turn undefined symbols into local.
2001-06-242001-06-24 H.J. Lu <hjl@gnu.org>H.J. Lu1-2/+2
* 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.
2001-06-22Add missing support for -o option.Nick Clifton1-3/+8
2001-05-30Add command line switches to objcopy to provide lists of symbols in filesNick Clifton1-3/+172
2001-03-13Fix typos in ChangeLogs and update copyright noticesNick Clifton1-1/+2
2001-03-13Add --binary-architecture switch to objcopy to allow the output architectureNick Clifton1-4/+32
to be set when the input file type is binary.
2001-01-18Stop objcopy trying to convert endianness.Nick Clifton1-1/+8
2000-11-03Add --srec-len and --srec-forceS3 switches to objcopyNick Clifton1-0/+22