summaryrefslogtreecommitdiff
path: root/binutils/binutils.texi
Commit message (Collapse)AuthorAgeFilesLines
* * objcopy.c (change_leading_char): New static variable.Ian Lance Taylor1996-09-131-2/+15
| | | | | | | | | | | (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.
* * objcopy.c (strip_main): Add -o option, and handle it.Ian Lance Taylor1996-06-301-0/+6
| | | | | (strip_usage): Mention -o. * binutils.texi, strip.1: Mention -o.
* * objdump.c (endian): New static variable.Ian Lance Taylor1996-06-241-3/+15
| | | | | | | | | (usage): Mention -EB/-EL/--endian. (long_options): Add "endian". (disassemble_data): If endianness was specified, replace abfd->xvec with a copy of itself with the given endianness. (main): Handle -EB/-EL/--endian. * binutils.texi, objdump.1: Mention -EB/-EL/--endian.
* * binutils.texi: Document change to binary format: file positionIan Lance Taylor1996-06-191-1/+1
| | | | based on load address, not section VMA.
* * nm.c (struct get_relocs_info): Define.Ian Lance Taylor1996-06-121-1/+10
| | | | | | | | | | (line_numbers): New static variable. (long_options): Add "line-numbers". (usage): Mention -l and --line-numbers. (main): Handle -l. (print_symbol): Print line numbers if requested. (get_relocs): New static function. * binutils.texi, nm.1: Document -l/--line-numbers.
* * objdump.c (dump_reloc_set): Add sec parameter. Change allIan Lance Taylor1996-06-121-3/+3
| | | | | | callers. If with_line_numbers is set, display line numbers of relocation entries. * binutils.texi, objdump.1: Document -l with -r.
* Based on patches from H J Lu <hjl@zoom.com>:Ian Lance Taylor1996-01-291-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.
* tipoIan Lance Taylor1996-01-261-2/+2
|
* * binutils.texi (nm): Improve documentation on symbol types.Ian Lance Taylor1996-01-261-8/+45
| | | | | (objdump): Reference the stabs manual from the discussion of the --stabs option.
* Add new option --show-raw-insn.David Edelsohn1996-01-231-1/+6
| | | | | | | | | | * objdump.c (show_raw_insn): New global. (usage): Update. (long_options): Update. (disassemble_data): Set disasm_info.flags if --show-raw-insn. * objdump.c (disassemble_data): Set new arch,mach,endian fields in disasm_info.
* * objcopy.c: Include budbg.h.Ian Lance Taylor1996-01-081-3/+9
| | | | | | | | | | | | | | | | | | | | | (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.
* Implement generic debugging support. Implement a stabs reader andIan Lance Taylor1996-01-021-1/+6
| | | | | | | | | | | | | a generic printer. * budbg.h, debug.c, debug.h, prdbg.c, rddbg.c, stabs.c: New files. * objdump.c: Include "debug.h" and "budbg.h". (dump_debugging): New global variable. (usage): Mention --debugging. (long_options): Add "debugging". (display_bfd): Handle --debugging. * Makefile.in (OBJDUMP_OBJS): New variable. ($(OBJDUMP_PROG)): Use $(OBJDUMP_OBJS). * binutils.texi, objdump.1: Document --debugging.
* * nm.c ( long_options): Add "--defined-only" option.Jeff Law1995-12-301-0/+6
| | | | | | (usage): Update for new "--defined-only" option. (filter_symbols): Handle "--defined-only". Part of mentor vm work.
* binutils.texi: modified from 95q4Victoria Mixon1995-11-101-23/+23
|
* * binutils.texi: Change --with-targets to --enable-targets.Ian Lance Taylor1995-10-201-1/+1
|
* * objdump.c (start_address): New variable.Ian Lance Taylor1995-09-131-1/+13
| | | | | | | | | | | | | | | | (stop_address): New variable. (usage): Mention --start-address and --stop-address. (OPTION_START_ADDRESS, OPTION_STOP_ADDRESS): Define. (long_options): Add "start-address" and "stop-address". (disassemble_data): Handle start_address and stop_address. (dump_data, dump_reloc_set): Likewise. (main): Don't set seenflag for -l. Handle OPTION_START_ADDRESS and OPTION_STOP_ADDRESS. * objcopy.c (parse_vma): Move to bucomm.c. * bucomm.c (parse_vma): New function, moved in from objcopy.c. * bucomm.h (parse_vma): Declare. * binutils.texi, objdump.1: Document new objdump options. PR 7983.
* put version number into doc from makefileKen Raeburn1995-08-101-2/+3
|
* * strings.c (print_strings): For compatibility with existingIan Lance Taylor1995-07-311-1/+1
| | | | | | strings programs, print strings which are not terminated with a null byte or a newline. * binutils.texi, strings.1: Update documentation accordingly.
* * strings.c (DATA_FLAGS): Remove SEC_DATA.Ian Lance Taylor1995-07-251-4/+4
| | | | | | (main): If no file names are given, scan standard input. * binutils.texi, strings.1: strings now scans non-data sections by default.
* * ar.c (replace_members): In verbose messages, use 'r' whenIan Lance Taylor1995-07-041-0/+7
| | | | | | | | | | | | | | | replacing a member, and 'a' when adding one. * ar.c (truncate): New static variable. (normalize): Change return type to const char *. Add abfd argument. Change all callers. If truncate, chop the filename to abfd->ar_max_namelen. (main): For the 'f' modifier, set truncate to true. Don't change quick_append to replace to truncate is true. (do_quick_append): If truncate, set BFD_TRADITIONAL_FORMAT. (write_archive): Likewise. * binutils.texi, ar.1: Document 'f' modifier. PR 6888.
* * objcopy.c (enum strip_action): Define strip_unneeded.Ian Lance Taylor1995-07-041-0/+6
| | | | | | | | | | | | | | | | | | | (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.
* PR 7046: use unsigned compares in looking up items in the sorted symbol ↵Michael Meissner1995-06-091-1/+6
| | | | list, not signed; Also add --wide to print on wide columns
* * objcopy.c (strip_options): Add --keep-symbol.Ian Lance Taylor1995-03-101-6/+18
| | | | | | | | | | | | (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.
* * objcopy.c (struct section_list): Add fields remove, set_flags,Ian Lance Taylor1995-02-171-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.
* * objdump.c (with_source_code): New global variable.Ian Lance Taylor1995-02-141-1/+8
| | | | | | | | | | | | (usage): Mention -S/--source. (long_options): Add --source. (prev_functionname, prev_line): New static variables. (struct print_file_list): Define. (print_files): New static variable. (skip_to_line, show_line): New static functions. (disassemble_data): Call show_line to handle -l and -S. (main): Handle -S. * binutils.texi, objdump.1: Document -S/--source.
* * objcopy.c (copy_usage): Rename parameter to avoid shadowing.Ian Lance Taylor1995-02-091-0/+7
| | | | | | | | | | | | (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.
* Thu Nov 17 15:37:19 1994 Mark W. Eichin <eichin@cygnus.com>Ian Lance Taylor1994-11-181-0/+14
| | | | | | | | | | | | | | | * 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.
* * objcopy.c (gap_fill): Explicitly initialize, for clarity.Ian Lance Taylor1994-10-251-2/+8
| | | | | | | | | | | (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.
* * objcopy.c (gap_fill_set, gap_fill): New static variables.Ian Lance Taylor1994-10-201-2/+7
| | | | | | | | | (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.
* * objcopy.c (copy_object): Revert yesterday's change.Ian Lance Taylor1994-10-191-6/+3
| | | | | * binutils.texi, objcopy.1: Remove special mention of --set-start and `binary' output format.
* * objcopy.c (copy_object): If the output file format is `binary',Ian Lance Taylor1994-10-181-1/+19
| | | | | | | | | 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.
* * objcopy.c (struct section_list): Add fields used, adjust, val.Ian Lance Taylor1994-10-181-0/+36
| | | | | | | | | | | | | | | | | | | | (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.
* * objdump.c (disassemble_all): New global variable.Ian Lance Taylor1994-09-161-5/+14
| | | | | | | | | | | | | | | | (usage): Document --disassemble-all. (long_options): Add disassemble-all as a synonym for -D. (compare_symbols): Make pointers const. (compare_relocs): New static function. (disassemble_data): Rename disassemble to disassemble_fn to avoid shadowing. If dump_reloc_info, print relocs along with disassembly. Skip sections which are not SEC_CODE unless disassemble_all or only is set. (display_bfd): Don't call dump_relocs if disassemble is set. (main): Accept and handle -D. * binutils.texi: Document -D/--disassemble-all. * objdump.1: Likewise. PR 5059.
* * nm.c: Include libiberty.h.Ian Lance Taylor1994-09-141-2/+7
| | | | | | | | | | | | | | | | | (sort_by_size): New static variable. (long_options): Add --size-sort. (usage): Mention --size-sort. (numeric_forward): Make static. Change from void * to PTR. (numeric_reverse): Likewise. (non_numeric_forward, non_numeric_reverse): Likewise. (sorters): Change declaration from void * to PTR. (size_forward, sort_symbol_by_size): New static functions. (display_rel_file): Handle sort_by_size. (filter_symbols): If sort_by_size, discard absolute and undefined symbols. * binutils.texi (nm): Document --size-sort. * nm.1: Document --size-sort. PR 3611.
* Add support for removing named sections to objcopy and strip.Ian Lance Taylor1994-08-111-0/+14
| | | | | | | | | | | * 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.
* * configure.in: Set UNDERSCORE in Makefile based on result ofIan Lance Taylor1994-06-161-1/+7
| | | | | | | | | | | | | invoking config.bfd with a second argument of ``_''. * Makefile.in (underscore.c): Depend upon Makefile. Don't try to run $(CC) and $(NM), just use $(UNDERSCORE). Create via temporary file. (demangle.o): Remove target. ($(NM_PROG)): Don't depend upon demangle.o, and don't link against demangle.o. It's in libiberty anyhow. (cplus-dem.o): Don't depend upon demangle.o. * binutils.texi: Mention -n and --no-strip-underscores arguments to c++filt.
* * nm.c (long_options): Add --no-demangle to turn off --demangle,Ian Lance Taylor1994-06-151-1/+4
| | | | | | and --no-cplus for Linux compatibility. (usage): Mention --no-demangle. * binutils.texi: Document --no-demangle.
* binutils.texi: (objdump) fix formatting in options summaryJeffrey Osier1994-06-031-2/+3
|
* Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -RIan Lance Taylor1994-04-071-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (--dynamic-reloc) arguments to objdump. * nm.c (dynamic): New static variable. (long_options): Added "dynamic". (usage): Mention -D and --dynamic. (main): Add D to getopt string. Handle -D by setting dynamic. (display_rel_file): If dynamic is non-zero, read dynamic symbols rather than normal symbols. * nm.1: Updated for -D (--dynamic) option. * objdump.c (dump_dynamic_symtab): New global variable. (dump_dynamic_reloc_info): New global variable. (dynsyms, dynsymcount): New global variables. (usage): Mention -R, -T, --dynamic-syms and --dynamic-reloc. (long_options): Added "dynamic-reloc" and "dynamic-syms". (slurp_symtab): If no symbols, return rather than exit. (slurp_dynamic_symtab): New function. (display_bfd): Handle dump_dynamic_symtab and dump_dynamic_reloc_info. (dump_symbols): Take new dynamic argument, indicating whether to display dynamic symbols. (dump_relocs): Move most printing into dump_reloc_set. (dump_dynamic_relocs): New function. (dump_reloc_set): New function, extracted from dump_relocs. (main): Add R and T to getopt string. Handle -T by setting dump_dynamic_symtab and -R by setting dump_dynamic_reloc_info. * objdump.1: Updated for -R (--dynamic-reloc) and -T (--dynamic-syms) options. * binutils.texi: Updated for new nm and objdump options.
* binutils.texi(nlmconv): added -d/--debug and -l/--linker infoJeffrey Osier1994-03-291-0/+15
|
* Minor update to list of programs for dir.info entry.Roland Pesch1994-03-171-2/+3
|
* binutils.texi: fixed dir-entry, copyright date, last chapter a bitJeffrey Osier1994-02-181-93/+71
|
* binutils.texi: minor formatting updates for next releaseJeffrey Osier1994-02-071-3/+6
|
* * objcopy.c (filter_bytes): New function.David MacKenzie1994-01-261-5/+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.
* * binutils.texi (objdump): Note some limitations of -h sectionDavid MacKenzie1994-01-241-1/+18
| | | | address printing.
* * binutils.texi: Add a chapter summarizing the ways to selectDavid MacKenzie1994-01-061-81/+374
| | | | | | | | | | | | | | | | | | | | 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.
* * binutils.texi: fix bug in nlmconv docJeffrey Osier1993-11-231-8/+11
|
* binutils.texi: minor fix for nlmconv chapterJeffrey Osier1993-11-191-2/+12
|
* binutils.texi: added nlmconv chapterJeffrey Osier1993-11-051-3/+59
|
* put objcopy in alphabetical orderDavid MacKenzie1993-10-301-86/+86
|