103 Commits

Author SHA1 Message Date
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.
2003-08-05 14:40:54 +00:00
84e2f31326 Tidy up code. Switch to ISO C 2003-07-23 17:34:03 +00:00
e7c81c254c Fix --add-gnu-debuglink 2003-06-27 08:01:28 +00:00
ed1653a7a6 Add --only-keep-debug switch 2003-06-26 08:14:10 +00:00
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.
2003-06-12 07:23:31 +00:00
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.
2003-06-02 14:45:13 +00:00
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.
2003-05-13 11:15:59 +00:00
7c29036b75 Add --info command line switch 2003-03-24 16:11:46 +00:00
66491ebcb7 * objcopy.c (filter_symbols): Fix compilation problems with
HP-UX's C compiler.
2003-02-21 01:12:13 +00:00
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.
2002-12-13 13:19:44 +00:00
b34976b65a s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. Simplify
comparisons of bfd_boolean vars with TRUE/FALSE.  Formatting.
2002-11-30 08:39:46 +00:00
49c1257607 * objcopy.c (copy_file): Report ambiguous bfd_object matches, and
other object errors in preference to bfd_core errors.
2002-10-15 05:10:48 +00:00
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.
2002-08-13 13:39:02 +00:00
dc156bc0bb * objcopy.c (copy_section): Don't copy SEC_GROUP sections. 2002-06-05 14:06:52 +00:00
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.
2002-05-21 19:34:58 +00:00
12b87c89b6 * configure: Regenerate.
* objcopy.c: Update copyright date.
	* doc/Makefile.in: Regenerate.
2002-02-11 05:08:42 +00:00
4c168fa3f7 * objcopy.c (MKDIR): Define.
(copy_archive): Make name_list.name const.  Use MKDIR.
	Handle duplicate files in archives by making more temp dirs.
2002-02-11 02:34:14 +00:00
15c82623b1 Add --totals option to size 2002-01-25 15:37:04 +00:00
8b53311e10 Tidy up formatting of --help output. 2002-01-23 16:12:56 +00:00
6364e0b4c2 Refer to "options" not "switches" 2002-01-15 17:18:53 +00:00
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).
2001-12-19 05:18:34 +00:00
b667df2e28 * objcopy.c (copy_archive): Set output bfd format outside the loop. 2001-12-18 11:54:10 +00:00
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.
2001-12-18 08:22:30 +00:00
bc408b8a78 * objcopy.c (setup_section): Copy entsize. 2001-12-10 11:03:54 +00:00
1797833978 * objcopy.c (setup_section): Preserve SEC_RELOC when
--set-section-flags is used.
2001-11-29 00:51:58 +00:00
3bcfb3e4bd * objcopy.c (copy_main): Correct rename-section string parsing.
Consolidate new_name parsing, and error messages.
2001-09-19 06:58:06 +00:00
3882b01078 Locale changes from Bruno Haible <haible@clisp.cons.org>. 2001-09-19 05:33:36 +00:00
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.
2001-08-24 13:56:11 +00:00
594ef5dbd2 Implement new switch --rename-section 2001-07-31 13:49:39 +00:00
eed1d0acc7 And remove the seconf accidental patch commission. 2001-07-06 08:05:27 +00:00
ec5d57d5e8 Remove patch accidentally checked in with readelf.c patch 2001-07-06 08:01:17 +00:00
e0c60db230 Display the contents of a .debug.macinfo section 2001-07-05 07:49:05 +00:00
24e01a3675 2001-07-05 H.J. Lu <hjl@gnu.org>
* objcopy.c (filter_symbols): Don't turn undefined symbols
	into local.
2001-07-05 07:27:16 +00:00
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.
2001-06-24 16:27:00 +00:00
af3bdff753 Add missing support for -o option. 2001-06-22 09:02:05 +00:00
16b2b71c0c Add command line switches to objcopy to provide lists of symbols in files 2001-05-30 10:46:28 +00:00
8c2bc6877d Fix typos in ChangeLogs and update copyright notices 2001-03-13 06:43:59 +00:00
43a0748c78 Add --binary-architecture switch to objcopy to allow the output architecture
to be set when the input file type is binary.
2001-03-13 00:08:35 +00:00
23719f397d Stop objcopy trying to convert endianness. 2001-01-18 00:17:43 +00:00
420496c13a Add --srec-len and --srec-forceS3 switches to objcopy 2000-11-03 01:47:13 +00:00
db4f683116 Silently accept -d as an alias for -g for compatability with old BSD systems. 2000-08-14 19:47:01 +00:00
5af11cab92 Eli Zaretskii's DOSish file name patches. 2000-05-26 13:11:57 +00:00
d812147943 2000-05-14 H.J. Lu (hjl@gnu.org)
* objcopy.c (filter_symbols): Don't strip global symbols in
	relocatable object files.
2000-05-14 17:13:16 +00:00
1a89cc7d7e (setup_section): Add const and gettext calls for err. 2000-05-08 04:28:06 +00:00
57938635f5 Add --redefine-sym to objcopy. 2000-04-05 03:43:56 +00:00
8ad3436c79 Move translated part of bug report string back into .c files so
xgettext can find it.  Regnerate .pot files.
2000-04-04 14:32:35 +00:00
c20f4f8c21 Move bug report string to one place. 2000-04-03 14:10:05 +00:00
d5bcb29dda Overhaul --help output. 1999-11-22 09:42:42 +00:00
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.
1999-09-12 18:33:05 +00:00
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.
1999-07-11 20:02:30 +00:00