summaryrefslogtreecommitdiff
path: root/binutils
Commit message (Collapse)AuthorAgeFilesLines
* Thu Nov 17 15:37:19 1994 Mark W. Eichin <eichin@cygnus.com>Ian Lance Taylor1994-11-184-0/+43
| | | | | | | | | | | | | | | * 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.
* * ar.c (main): Don't call do_quick_append if any of the archiveIan Lance Taylor1994-11-172-28/+106
| | | | | names are longer than 14 characters. PR 5966.
* * objcopy.c (main): Fix is_strip test. FromIan Lance Taylor1994-11-172-53/+142
| | | | pirker@eiunix.tuwien.ac.at (Martin Pirker).
* * objcopy.c (copy_archive): Keep a list of the names of theIan Lance Taylor1994-11-081-0/+10
| | | | | | temporary files we created. Close each input BFD after we open its successor. PR 5915.
* Changes from binutils-2.5.2 net release:Ken Raeburn1994-11-042-1/+15
| | | | | | | | | | | | | * Makefile.in (install-info): Install info files from whatever directory they were found in. Patch from DJ Delorie: * configure.bat: do c++filt -> cxxfilt right * sysinfo.y: Include system header files early, so any potential declaration of abort() occurs before its use. * strings.c (strings_file): Try opening the file in binary mode first.
* * ar.c (main): Treat ar qs like ar rs.Ian Lance Taylor1994-11-021-0/+4
|
* * objcopy.c (gap_fill): Explicitly initialize, for clarity.Ian Lance Taylor1994-10-253-11/+36
| | | | | | | | | | | (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-204-7/+184
| | | | | | | | | (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.
* * Makefile.in (check): Add a dummy else clause to the ifIan Lance Taylor1994-10-192-1/+10
| | | | statement.
* * objcopy.c (copy_object): Revert yesterday's change.Ian Lance Taylor1994-10-193-22/+7
| | | | | * 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-184-3/+67
| | | | | | | | | 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.
* * nm.c (print_symdef_entry): Call print_symname to print theIan Lance Taylor1994-10-181-0/+3
| | | | symbol name, so that --demangle works.
* * Makefile.in (mostlyclean): Remove tmpdir.Ian Lance Taylor1994-10-182-1/+4
|
* * binutils-all/objcopy.exp: New file.Ian Lance Taylor1994-10-183-2/+271
| | | | * config/default.exp: Initialize OBJCOPY and OBJCOPYFLAGS.
* * objcopy.c (struct section_list): Add fields used, adjust, val.Ian Lance Taylor1994-10-184-32/+356
| | | | | | | | | | | | | | | | | | | | (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.
* clobbered somehow by previous checkinIan Lance Taylor1994-10-141-1/+311
|
* * configure.in (configdirs): Remove definition--testsuite is noIan Lance Taylor1994-10-142-328/+55
| | | | | | | | longer configured. * Makefile.in (testsuite): Remove target. (site.exp): New target. (check): Rewrite. (clean, distclean): Don't recur into testsuite directory.
* Rewrite testsuite.Ian Lance Taylor1994-10-1419-406/+9
| | | | | | | | | | | | | | | | | | | | | * configure.in, Makefile.in: Remove. * binutils-all/configure.in, binutils-all/Makefile.in: Remove. * binutils-all/bintest.c: Remove. * binutils-all/bintest.s: New file. * binutils-all/nm.exp, binutils-all/objdump.exp: Rewrite. * binutils-all/size.exp: Rewrite. * config/default.exp: Load utils-lib.exp. Set AS and ASFLAGS. Don't go up one directory from $base_dir. Create tmpdir. (binutils_run, binutils-assemble): New procedures. * config/unix.exp: Remove. * config/mt-a29k-udi, config/mt-i386-aout: Remove. * config/mt-i960-nindy, config/mt-lynx, config/mt-m68k: Remove. * config/mt-mips-ecoff, config/mt-slite: Remove. * config/mt-sparc-aout, config/mt-vxworks: Remove. * lib/utils-lib.exp (binutil_version): Don't redirect standard input when getting version. Don't unset errorInfo. (default_binutils_run): New procedure. (default_binutils_assemble): New procedure.
* * nlmconv.c (link_inputs): Pass -Ur flag to ld so that theJ.T. Conklin1994-10-101-0/+5
| | | | ctor/dtor tables needed by C++ programs are built.
* * Makefile.in (srconv.o): Add dependence on sysroff.c.Jim Wilson1994-10-102-2/+21
|
* * configure.in (configdirs): Change binutils.all to binutils-all.Ian Lance Taylor1994-09-301-1/+1
|
* * VMS does not permits `.' in directory names. RenamedIan Lance Taylor1994-09-296-1/+150
| | | | binutils.all to binutils-all.
* * Makefile.in (arparse.c): Don't ignore errors from mv.Ian Lance Taylor1994-09-282-12/+41
| | | | | | | | | | (sysinfo.c): Likewise. Also, depend upon arparse.c, to prevent a parallel make from trying to build both arparse.c and sysinfo.c simultaneously. (nlmheader.c): Similar change. (arparse.h): Separate target from arparse.c, so that a parallel make does not try to build both at once. Depend upon arparse.c. (sysinfo.h): Similar change.
* * configure.in: Use mt-m68k for m68k*-*-aout* and m68k*-*-coff*,Ian Lance Taylor1994-09-282-1/+18
| | | | not for m68k-*-*.
* * objdump.c (disassemble_data): Pass the reloc buffer to free, notIan Lance Taylor1994-09-281-0/+18
| | | | the pointer used to loop over the relocs.
* * objdump.c (objdump_print_address): If we can't find a smallerIan Lance Taylor1994-09-162-7/+23
| | | | symbol in the right section, look for a larger one.
* * objdump.c (struct objdump_disasm_info): Add field require_sec.Ian Lance Taylor1994-09-162-1/+13
| | | | | | | | (objdump_print_address): If aux->require_sec, require that the symbol be in aux->sec even if HAS_RELOC is not set. (disassemble_data): Set aux.require_sec around the objdump_print_address call for the instruction address. PR 3441.
* * ar.c: Call xexit rather than exit.Ian Lance Taylor1994-09-161-0/+11
| | | | | | | | | | | | | (output_filename, output_file, output_bfd): New static variables. (remove_output): New static function. (main): Call xatexit (remove_output). Call xexit rather than returning. (extract_file): Set output_filename and output_file while output file is open. (write_archive): Likewise, but use output_bfd, not output_file. * arsup.c: Include libiberty.h. Call xexit rather than exit. * bucomm.c: Likewise. PR 2474.
* * objdump.c (disassemble_all): New global variable.Ian Lance Taylor1994-09-164-31/+204
| | | | | | | | | | | | | | | | (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.
* * objdump.c (disassemble_data): Initialize prevline to 0. MakeIan Lance Taylor1994-09-142-5/+15
| | | | | | prev_function non const. Copy functionname into an malloc buffer when setting prev_function, instead of assuming that the string will last forever.
* * nm.c: Include libiberty.h.Ian Lance Taylor1994-09-143-4/+31
| | | | | | | | | | | | | | | | | (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.
* * objcopy.c (copy_main): Initialize input_filename andJeff Law1994-09-141-0/+5
| | | | output_filename to NULL.
* * Makefile.in (version.o): Depend upon Makefile, so that version.oIan Lance Taylor1994-09-131-0/+16
| | | | gets rebuilt when make variable VERSION is changed.
* * objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.Ian Lance Taylor1994-09-131-15/+16
|
* * config/unix.exp: If nm.new does not exist, use [transform nm].Ian Lance Taylor1994-09-022-1/+6
| | | | * config/default.exp: Likewise.
* rewrite sanitize lines so as not to confuse bsd makeKen Raeburn1994-08-301-2/+2
|
* * configure.in, binutils.all/configure.in: Change i386 toIan Lance Taylor1994-08-242-1/+14
| | | | i[345]86.
* * ar.c: Include libiberty.h.Ian Lance Taylor1994-08-222-68/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (inarch): Remove variable. (map_over_members): Make static. Add arch argument, and use it instead of inarch. Change all callers. (main): Treat --version as -v. Accept -t argument. Accept any number of archive arguments. Catch and use open_inarch return value, rather than using inarch. (open_inarch): Return newly opened BFD, rather than using inarch. (do_quick_append): Make archive_filename const. (write_archive): Add iarch argument, and use it instead of inarch. Change all callers. (delete_members, move_members, replace_members): Likewise. (ranlib_only): Don't exit on success. Catch and use open_inarch return value. (ranlib_touch): New function. * arsup.h (map_over_members): Don't declare. (ar_end, ar_extract): Declare. (open_inarch): Change return value in declaration to bfd *. * arsup.c (map_over_list): Make static. Always pass two arguments to function. Add arch argument, and use it instead of inarch. Change all callers. (ar_directory_doer): Make static. Add ignored second argument. Change all callers. (ar_directory): Use open_inarch return value rather than inarch. (ar_addlib_doer): Make static. (ar_addlib): Use open_inarch return value rather than inarch. (ar_extract): Remove unused local variable abfd.
* Add support for removing named sections to objcopy and strip.Ian Lance Taylor1994-08-114-3/+47
| | | | | | | | | | | * 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.
* * nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,Stan Shebs1994-08-101-0/+14
| | | | so as not to conflict with the symvalue typedef in bfd.h.
* * nlmheader.y: Per current NetWare docs, accept a revision numberJean Marie Diaz1994-08-011-0/+5
| | | | of 0 and treat a revision number greater than 26 as 0.
* * objdump.c (objdump_print_address): Correct handling of end ofIan Lance Taylor1994-07-251-0/+5
| | | | symbols when looking for next symbol with a different value.
* * nm.c (numeric_forward): Treat undefined symbols as "less than" definedKen Raeburn1994-07-221-0/+17
| | | | | | | | | symbols with zero values. If numeric values are equal, or both symbols are undefined, sort alphabetically. Don't assume that the difference of two bfd_vma values will truncate to "int" and still have the same sign. (numeric_reverse): Call numeric_forward and negate the result. (print_symbol_info_bsd): For undefined symbols, print leading spaces equivalent to the width of a printed bfd_vma, rather than assuming that 8 will look right.
* * config/mh-alphaosf, config/mh-apollo68v, config/mh-delta88:Ian Lance Taylor1994-07-211-0/+5
| | | | Remove; obsolete.
* * config/mt-mips-ecoff: Add -Tidp.ld option.Bill Cox1994-07-191-1/+1
|
* * objdump.c (slurp_dynamic_symtab): Try to get the dynamic symbolsIan Lance Taylor1994-07-171-0/+6
| | | | | even if the bfd is not marked DYNAMIC. ELF executables are not marked DYNAMIC, but do have dynamic symbols.
* * coffgrok.c (do_where): Make data with no type 'int'.Steve Chamberlain1994-07-153-0/+2647
| | | | | | | | | | (do_define): Keep info on source file of a symbol. * coffgrok.h (coff_symbol): New field. * srconv.c (PROGRAM_VERSION): Now 1.3 (wr_rl): Use external ref number for symbol. (wr_dus): Only keep one source file per debug unit. (wr_dln): Always emit line numbers for first source file, (wr_globals): Emit globals in the du of their owning source file.
* * nlmheader.y: Null terminate var_hdr->threadName.J.T. Conklin1994-07-112-2/+21
|
* Makefile.in (syslex.o, sysinfo.o): Permit C source files to be in $(srcdir), asKen Raeburn1994-07-111-0/+10
| | | | they will be for FSF releases.
* * objcopy.c: Include libiberty.h.Ian Lance Taylor1994-07-051-0/+10
| | | | | (copy_file): If output_target is NULL, set it to the target of the input file.