aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.c
AgeCommit message (Collapse)AuthorFilesLines
2004-06-15 * objcopy.c (copy_section): Use bfd_get_section_size instead ofAlan Modra1-4/+3
_raw_size or bfd_get_section_size_before_reloc. Don't set reloc_done. (compare_section_lma): Likewise. * addr2line.c (find_address_in_section): Likewise. * coffgrok.c (do_sections_p1): Likewise. * dlltool.c (scan_drectve_symbols): Likewise. * nlmconv.c (main): Likewise. (copy_sections): Likewise. (powerpc_mangle_relocs): Likewise. * objdump.c (disassemble_section): Likewise. * prdbg.c (find_address_in_section): Likewise. * size.c (berkeley_sum): Likewise. * srconv.c (wr_ob): Likewise. * strings.c (strings_a_section): Likewise.
2004-05-17binutils ChangeLog:Bob Wilson1-0/+29
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.
2004-04-27 * objcopy.c (copy_usage, strip_usage): Fix spelling.Alan Modra1-2/+2
2004-02-19gas/Jakub Jelinek1-2/+2
* stabs.c (generate_asm_file): Avoid warning about use of uninitialized variable. binutils/ * objcopy.c (copy_section): Avoid warnings.
2004-01-13 * objcopy.c: Include elf-bfd.h.Jakub Jelinek1-1/+11
(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.
2004-01-12Fix typo in comment in previous deltaNick Clifton1-1/+1
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.