Nick Clifton
eed1d0acc7
And remove the seconf accidental patch commission.
25 years ago
Nick Clifton
ec5d57d5e8
Remove patch accidentally checked in with readelf.c patch
25 years ago
Nick Clifton
e0c60db230
Display the contents of a .debug.macinfo section
25 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.
25 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
Tom Tromey
9d04d6183d
* Many files: Added gettext invocations around user-visible
strings.
* bucomm.h: Added gettext-related includes and defines.
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
HAVE_LC_MESSAGES): Define.
* configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
po/Makefile. Use AM_PROG_LEX.
* Makefile.am (SUBDIRS): New macro.
(POTFILES): Likewise.
(po/POTFILES.in): New target.
(LDADD): Added INTLLIBS.
(objdump_LDADD): Likewise.
(c__filt_LDADD): Likewise.
(ar_LDADD): Likewise.
(ranlib_LDADD): Likewise.
(dlltool_LDADD): Likewise.
(windres_LDADD): Likewise.
* po/Make-in, po/POTFILES.in, po/binutils.pot: New files.
29 years ago
Ian Lance Taylor
22947e96cd
Tue Apr 21 16:07:18 1998 Stanislav Brabec <utx@k332.feld.cvut.cz>
* objcopy.c (preserve_dates): New file static variable.
(smart_rename): If preserve_dates, call set_times when copying.
(strip_main): Remove preserve_dates local variable.
(copy_main): Likewise.
29 years ago
Ian Lance Taylor
eaa147a640
* addr2line.c (usage): Update bug-gnu-utils address.
* ar.c (usage): Likewise.
* nlmconv.c (show_usage): Likewise.
* nm.c (usage): Likewise.
* objcopy.c (copy_usage): Likewise.
(strip_usage): Likewise.
* objdump.c (usage): Likewise.
* size.c (usage): Likewise.
* strings.c (usage): Likewise.
* windres.c (usage): Likewise.
* binutils.texi (Bug Reporting): Likewise.
29 years ago
Ian Lance Taylor
ee1f0bd101
* objcopy.c (parse_flags): Make flag check case insensitive.
Check for `contents' flag. Give an error for unrecognized flags.
(copy_section): If the contents flag was set for a section that
had no contents, zero out the new contents.
* binutils.texi (objcopy): Document contents section flag.
PR 10601.
29 years ago
Ian Lance Taylor
25fd0ed4fb
* objcopy.c: Move new struct and variable definitions to top of
file. Remove obsolete add_strip_symbol and is_strip_symbol
declarations. Add prototype declarations for add_specific_symbol
and is_specified_symbol.
29 years ago
Richard Henderson
246b7c9bc0
* objcopy.c, objcopy.1, binutils.texi: "localize" is a better name
than "privatize". Update all references.
29 years ago
Richard Henderson
8d2e72a1c8
* objcopy.c (keep_specific_list, privatize_specific_list,
weaken_specific_list): New variables.
(keep_symbols): Removed.
(add_specific_symbol): New function from the carcas of
add_strip_symbol. Takes a list as an argument.
(is_specified_symbol): Likewise from is_strip_symbol.
(filter_symbols): Honor the new privatize and weaken lists.
Optimize bfd_asymbol_name handling.
(copy_object, copy_options, copy_usage): Add privatize-symbol &
weaken-symbol options.
* objcopy.1, binutils.texi: Update docs.
29 years ago
Ian Lance Taylor
f5818d79dd
* objcopy.c: Include budbg.h.
(convert_debugging): New static variable.
(OPTION_DEBUGGING): Define.
(copy_options): Add "debugging".
(copy_usage): Mention --debugging.
(is_strip_section): Skip debugging sections if convert_debugging.
(setup_section, copy_section): Likewise.
(filter_symbols): Skip debugging symbols if convert_debugging.
(copy_object): If convert_debugging, read and write debugging
information.
(write_debugging_info): New static function.
(copy_main): Handle --debugging.
* Makefile.in (DEBUG_OBJS): New variable.
($(OBJCOPY_PROG)): Depend upon and link against $(DEBUG_OBJS).
($(STRIP_PROG)): Likewise.
(OBJDUMP_OBJS): Remove variable.
($(OBJDUMP_PROG)): Use objdump.o $(DEBUG_OBJS) rather than
$(OBJDUMP_OBJS).
* binutils.texi, objcopy.1: Document --debugging.
31 years ago
Ian Lance Taylor
28b5eb12a3
* bucomm.h: Include <sys/types.h>.
* ar.c: Don't include <sys/types.h> or <stdio.h>.
* bucomm.c, dlltool.c, nlmconv.c, objcopy.c, objdump.c: Likewise.
31 years ago
Jeff Law
a445cee717
* objcopy.c (mark_symbols_used_in_relocations): Handle sections
with no relocations.
* coffgrok.c (do_sections_p1): Likewise.
Fix for net bug.
31 years ago
Ian Lance Taylor
d1a917c56a
Wed Jul 12 10:40:23 1995 H.J. Lu <hjl@nynexst.com>
* objcopy.c (simple_copy): Preserve errno on failure.
(smart_rename): Print error mesage if simple_copy fails.
32 years ago
Ian Lance Taylor
4c8d7e6be1
* objcopy.c (copy_archive): Record all output BFD's, and close
them before unlinking them and removing the temporary directory,
to avoid NFS problems.
PR 6795.
32 years ago
Ian Lance Taylor
9135e5f83b
* objcopy.c (enum strip_action): Define strip_unneeded.
(OPTION_STRIP_UNNEEDED): Define.
(strip_options): Add "strip-unneeded".
(copy_options): Likewise.
(copy_usage): Mention --strip-unneeded.
(strip_usage): Likewise.
(is_strip_section): Strip debugging sections if strip_unneeded.
(filter_symbols): If strip_unneeded, only keep BSF_KEEP symbols.
(copy_object): If strip_all, discard symbols without checking
discard_locals.
(copy_object): Call filter_symbols if strip_unneeded.
(setup_section): Strip debugging sections if strip_unneeded.
(copy_section): Likewise.
(strip_main): Handle OPTION_STRIP_UNNEEDED.
(copy_main): Likewise.
* binutils.texi, objcopy.1, strip.1: Document --strip-unneeded.
PR 6684.
32 years ago
Ian Lance Taylor
be1d162bb4
* bucomm.c (list_supported_targets): New function.
* bucomm.h (list_supported_targets): Declare.
* ar.c (usage): Call list_supported_targets.
* nm.c (usage): Likewise.
* objcopy.c (copy_usage, strip_usage): Likewise.
* objdump.c (usage): Likewise.
* size.c (usage): Likewise.
* strings.c (usage): Likewise.
PR 6345.
32 years ago
Ian Lance Taylor
842eba6688
--set-section-flags patch from dje.
32 years ago
Ian Lance Taylor
5ab41086ca
* objcopy.c (struct section_list): Add fields remove, set_flags,
and flags. Change adjust from boolean to enum.
(remove_sections): Remove static variable.
(sections_removed): New static variable.
(copy_options): Add --set-section-flags.
(copy_usage): Mention --set-section-flags.
(parse_flags): New static function.
(find_section_list): New static function.
(is_strip_symbol): Change return type from int to boolean.
(is_strip_section): New static function.
(filter_symbols): Call is_strip_section.
(copy_object): When adding sections, check for specified flags or
VMA. Call filter_symbols if any sections are being removed.
(setup_section): Use find_section_list function rather than
looking through remove_sections and adjust_sections. Handle
--set-section-flags.
(copy_section): Use find_section_list rather than looking through
remove_sections.
(strip_main): Use find_section_list instead of adding items to
sections_removed.
(copy_main): Use find_section_list instead of adding items to
sections_removed and adjust_sections. Handle --set-section-flags.
* binutils.texi, objcopy.1: Document --set-section-flags.
32 years ago
Ken Raeburn
63ca9597f0
removed some unreachable code from objcopy
32 years ago
Ken Raeburn
4af19c6151
objcopy.c (add_strip_symbol): Cast return value of xmalloc.
32 years ago
Ian Lance Taylor
87a15686e4
* objcopy.c (main): Fix is_strip test. From
pirker@eiunix.tuwien.ac.at (Martin Pirker).
32 years ago
Ian Lance Taylor
596d99ba32
* objcopy.c (gap_fill_set, gap_fill): New static variables.
(copy_options): Accept --gap-fill.
(copy_usage): Mention --gap-fill.
(copy_object): Support --gap-fill.
(get_sections, compare_section_vma): New static functions.
(copy_main): Handle --gap-fill.
* binutils.texi, objcopy.1: Document --gap-fill.
32 years ago