aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.1
AgeCommit message (Collapse)AuthorFilesLines
1998-06-03Implemented new command line options: --change-section-vma and ↵Nick Clifton1-17/+35
--change-section-lma. Tidied up the code.
1998-02-18 * objcopy.c (compare_section_lma): Rename from _vma.Richard Henderson1-2/+3
(copy_object): Gap fill based on LMA not VMA. * binutils.texi: Update and clarify. * objcopy.1: Likewise. PR 14917
1997-10-10 * objcopy.c, objcopy.1, binutils.texi: "localize" is a better nameRichard Henderson1-2/+2
than "privatize". Update all references.
1997-10-09 * objcopy.c (keep_specific_list, privatize_specific_list,Richard Henderson1-2/+10
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.
1997-03-27 Based on patch from Marty Leisner <leisner@sdsp.mc.xerox.com>:Ian Lance Taylor1-0/+5
* objcopy.c: Include <utime.h> or <sys/time.h>. (strip_options): Add "preserve-dates". (copy_options): Likewise. (copy_usage): Mention -p and --preserve-dates. (strip_usage): Likewise. (make_same_dates): New static function. (strip_main): Handle -p. (copy_main): Likewise. * binutils.texi, strip.1, objcopy.1: Document new option.
1997-02-06Thu Feb 6 11:54:24 1997 Alan Modra <alan@spri.levels.unisa.edu.au>Ian Lance Taylor1-3/+3
* objcopy.1: Add missing space after .B.
1996-12-19 Based on patch from Andrew J Klossner <andrew@pogo.wv.tek.com>:Ian Lance Taylor1-0/+4
* objcopy.c (OPTION_WEAKEN): Define. (copy_options): Add "weaken". (copy_usage): Mention --weaken. (weaken): New static variable. (filter_symbols): Handle weaken. (copy_object): Call filter_symbols if weaken. (copy_main): Handle OPTION_WEAKEN. * binutils.texi, objcopy.1: Document --weaken. PR 11272.
1996-09-13 * objcopy.c (change_leading_char): New static variable.Ian Lance Taylor1-3/+17
(OPTION_CHANGE_LEADING_CHAR): Define. (copy_options): Add "change-leading-char". (copy_usage): Mention --change-leading-char. (filter_symbols): Add obfd parameter. Change all callers. Implement change_leading_char. (copy_object): Call filter_symbols if change_leading_char. (copy_main): Handle OPTION_CHANGE_LEADING_CHAR. * binutils.texi, objcopy.1: Document --change-leading-char.
1996-01-29 Based on patches from H J Lu <hjl@zoom.com>:Ian Lance Taylor1-0/+9
* objcopy.c (remove_leading_char): New static variable. (OPTION_REMOVE_LEADING_CHAR): Define. (copy_usage): Mention --remove-leading-char. (filter_symbols): If remove_leading_char, and the first character of a global symbol matches the symbol leading char of the BFD, remove the first character. (copy_object): Filter the symbols if remove_leading_char is set. (copy_main): Handle --remove-leading-char. * binutils.texi, objcopy.1: Document --remove-leading-char.
1996-01-08 * objcopy.c: Include budbg.h.Ian Lance Taylor1-1/+7
(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.
1995-07-04 * objcopy.c (enum strip_action): Define strip_unneeded.Ian Lance Taylor1-0/+4
(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.
1995-03-10 * objcopy.c (strip_options): Add --keep-symbol.Ian Lance Taylor1-11/+16
(copy_options): Likewise. (copy_usage): Mention --keep-symbol and -K. (strip_usage): Likewise. (keep_symbols): New static variable. (is_strip_symbol): Adjust the return value according to keep_symbols. (strip_main): Handle -K. For -N, check that -K was not given. (copy_main): Likewise. * binutils.texi, objcopy.1, strip.1: Document -K.
1995-02-17 * objcopy.c (struct section_list): Add fields remove, set_flags,Ian Lance Taylor1-0/+8
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.
1995-02-09 * objcopy.c (copy_usage): Rename parameter to avoid shadowing.Ian Lance Taylor1-0/+8
(strip_usage): Likewise. * objcopy.c (struct section_add): Define. (add_sections): New static variable. (copy_options): Accept --add-section. (copy_usage): Mention --add-section. (copy_object): Add sections from the add_sections list. (copy_main): Handle --add-section. * binutils.texi, objcopy.1: Document --add-section.
1994-11-18Thu Nov 17 15:37:19 1994 Mark W. Eichin <eichin@cygnus.com>Ian Lance Taylor1-0/+6
* objcopy.c (add_strip_symbol): New function, adds a name to an explicit list of symbols to strip. (is_strip_symbol): New function, reports whether the name argument is in the explicit list. (filter_symbols): Check against is_strip_symbol above all. (strip_main): Recognize -N option. If used, don't default to strip_all. (copy_main): Recognize -N option. (strip_usage): Document -N and --strip-symbol options. (copy_usage): Ditto. * objcopy.1, strip.1, binutils.texi: Document -N and --strip-symbol options.
1994-10-25 * objcopy.c (gap_fill): Explicitly initialize, for clarity.Ian Lance Taylor1-9/+16
(pad_to_set, pad_to): New static variables. (copy_options): Accept --pad-to. (copy_usage): Mention --pad-to. (copy_object): Support --pad-to. (compare_section_vma): Sort non loadable sections to the front. Sort sections with the same VMA by size. (copy_main): Handle --pad-to. * binutils.texi, objcopy.1: Document --pad-to.
1994-10-20 * objcopy.c (gap_fill_set, gap_fill): New static variables.Ian Lance Taylor1-0/+6
(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.
1994-10-19 * objcopy.c (copy_object): Revert yesterday's change.Ian Lance Taylor1-7/+3
* binutils.texi, objcopy.1: Remove special mention of --set-start and `binary' output format.
1994-10-18 * objcopy.c (copy_object): If the output file format is `binary',Ian Lance Taylor1-1/+31
and the start address was not set using --set-start, default the start address to zero. This hack is because the `binary' output file format uses the start address to set the virtual address of the first byte in the file. * binutils.texi, objcopy.1: Add some notes on generating S-records and binary files.
1994-10-18 * objcopy.c (struct section_list): Add fields used, adjust, val.Ian Lance Taylor1-4/+42
(adjust_start, set_start_set, set_start): New static variables. (adjust_section_vma, adjust_sections): New static variables. (copy_options): Add --adjust-start, --adjust-vma, --adjust-section-vma, --adjust-warnings, --no-adjust-warnings, --set-start. (parse_vma): New static function. (copy_usage): Mention new options. (copy_object): Handle --set-start and --adjust-start. (setup_section): Correct type of last argument to PTR. Set used field if section is removed. Handle --adjust-vma and --adjust-section-vma. (copy_section): Correct type of last argument to PTR. (mark_symbols_used_in_relocations): Likewise. (strip_main): Clear used field when handling -R. (copy_main): Handle new options. * binutils.texi (objcopy): Document new options. * objcopy.1: Document new options.
1994-08-11 Add support for removing named sections to objcopy and strip.Ian Lance Taylor1-0/+6
* objcopy.c (struct section_list): Define. (remove_sections): New static variable. (strip_options, copy_options): Add remove-section. (copy_usage, strip_usage): Mention -R and --remove-section. (setup_section): If section is in remove_sections list, ignore it. (copy_section): Likewise. (strip_main, copy_main): Handle -R. * binutils.texi, objcopy.1, strip.1: Document new options.
1994-01-26 * objcopy.c (filter_bytes): New function.David MacKenzie1-1/+14
(copy_section): Call it. (copy_options, copy_usage, copy_main): Add --byte option to activate it. Appropriate the -b option (which was an undocumented synonym for -F) for it, also. Add --interleave, -i option for additional control. (setup_section, copy_section, mangle_section): Renamed with no `s' on the end. * objcopy.1, binutils.texi: Document the new options. * objdump.c (display_target_tables, display_target_list): New functions broken out of display_info. Eliminate some magic constants. Use more meaningful variable names. (dump_bfd_header): New function broken out of display_bfd. (dump_section_header): New function broken out of dump_headers. (remove_useless_symbols): Don't shadow global variable name with parameter. (objdump_print_address): Fix backward test.
1994-01-06 * binutils.texi: Add a chapter summarizing the ways to selectDavid MacKenzie1-9/+9
aspects of the target for each program. * objdump.c (long_options, usage): Add long equivalents for all remaining short options that lacked them. * binutils.texi objdump.1: Document them. * size.c (usage): Tweak usage message. * size.1: Add missing `=' in examples. * binutils.texi strip.1 objcopy.1 nlmconv.1 objcopy.c nlmconv.c: Use "--target=bfdname" as the option to select the BFD target, like nm and size already do. Reserve "--format=format" for textual output selection options, but for now keep old option names as obsolete for backward compatibility. * strings.c (main, strings_object_file, usage): Add --target option. * binutils.texi strings.1: Document it.
1993-11-17 * nlmconv.1: new man pageJeffrey Osier1-39/+21
* objcopy.1: fixed format errors
1993-11-13fix NAME hyphenDavid MacKenzie1-1/+1
1993-06-28 * Makefile.in: Note dependencies on bucomm.h.David MacKenzie1-54/+57
(cplus-dem.o): Link c++filt with version.o. * strings.c: Include bucomm.h and add prototypes to other decls. Remove -h option. * bucomm.h: Declare xrealloc. * nm.c, objcopy.c, objdump.c, size.c, strings.c (main, usage): Add --help option. Put "GNU" in the version message. (usage): Take stream and exit status as args. (main): Pass new args to usage.
1993-06-03 * c++filt.1, objcopy.1: new man pagesJeffrey Osier1-0/+142