aboutsummaryrefslogtreecommitdiff
path: root/binutils
AgeCommit message (Collapse)AuthorFilesLines
1995-01-18gcc -Wall lint.Ian Lance Taylor4-237/+834
* coffdump.c (dump_coff_scope): Cast pointer to unsigned long for printf. * coffgrok.c: Include bucomm.h. Don't declare xmalloc. (push_scope): Declare type of parameter link. * size.c: Include libiberty.h. * srconv.c: Include bucomm.h. (find_base): Declare at top of file. (wr_hd): Add default case to architecture switch. (wr_dps_start): Declare type of parameter nest. (wr_du): Comment out variables used only in commented out blocks. (wr_dus): Remove unused variable i. (wr_sc): Remove unused variables myinfo, low, and high. * strings.c: Include libiberty.h. * sysdump.c: Include <ctype.h>.
1994-12-21 * ar.c (main): Ignore 'f' modifier used on HP/UX 9.Ian Lance Taylor1-0/+15
1994-12-14removed some unreachable code from objcopyKen Raeburn2-1/+5
1994-12-14expect simple-objcopy test to fail on hp300Ken Raeburn2-2/+2
1994-12-14disable bintest.o tests on hppa, fix minor sh-coff objcopy setup_xfail problemKen Raeburn2-5/+17
1994-12-13 * mpw-config.in: Create mk.tmp, define ARCHDEFS in it.Stan Shebs2-0/+10
1994-12-09 * nlmconv.c (powerpc_mangle_relocs): Don't switch a reloc to useIan Lance Taylor1-0/+5
the section symbol if the symbol is undefined.
1994-12-08binutils-all/objdump.exp: handle "powerpc" cpuKen Raeburn2-2/+2
1994-12-08* binutils-all/objdump.exp (cpus_expected): New variable, taken from objdump -iKen Raeburn3-2/+147
test, added ns32k, sorted. (objdump -i, -f tests): Use $cpus_expected. * binutils-all/objcopy.exp: For simple-copy test, expect failure for sh-coff.
1994-12-08objcopy.c (add_strip_symbol): Cast return value of xmalloc.Ken Raeburn2-4/+74
1994-11-18Thu Nov 17 15:37:19 1994 Mark W. Eichin <eichin@cygnus.com>Ian Lance Taylor4-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.
1994-11-17 * ar.c (main): Don't call do_quick_append if any of the archiveIan Lance Taylor2-28/+106
names are longer than 14 characters. PR 5966.
1994-11-17 * objcopy.c (main): Fix is_strip test. FromIan Lance Taylor2-53/+142
pirker@eiunix.tuwien.ac.at (Martin Pirker).
1994-11-08 * objcopy.c (copy_archive): Keep a list of the names of theIan Lance Taylor1-0/+10
temporary files we created. Close each input BFD after we open its successor. PR 5915.
1994-11-04Changes from binutils-2.5.2 net release:Ken Raeburn2-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.
1994-11-02 * ar.c (main): Treat ar qs like ar rs.Ian Lance Taylor1-0/+4
1994-10-25 * objcopy.c (gap_fill): Explicitly initialize, for clarity.Ian Lance Taylor3-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.
1994-10-20 * objcopy.c (gap_fill_set, gap_fill): New static variables.Ian Lance Taylor4-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.
1994-10-19 * Makefile.in (check): Add a dummy else clause to the ifIan Lance Taylor2-1/+10
statement.
1994-10-19 * objcopy.c (copy_object): Revert yesterday's change.Ian Lance Taylor3-22/+7
* 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 Taylor4-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.
1994-10-18 * nm.c (print_symdef_entry): Call print_symname to print theIan Lance Taylor1-0/+3
symbol name, so that --demangle works.
1994-10-18 * Makefile.in (mostlyclean): Remove tmpdir.Ian Lance Taylor2-1/+4
1994-10-18 * binutils-all/objcopy.exp: New file.Ian Lance Taylor3-2/+271
* config/default.exp: Initialize OBJCOPY and OBJCOPYFLAGS.
1994-10-18 * objcopy.c (struct section_list): Add fields used, adjust, val.Ian Lance Taylor4-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.
1994-10-14clobbered somehow by previous checkinIan Lance Taylor1-1/+311
1994-10-14 * configure.in (configdirs): Remove definition--testsuite is noIan Lance Taylor2-328/+55
longer configured. * Makefile.in (testsuite): Remove target. (site.exp): New target. (check): Rewrite. (clean, distclean): Don't recur into testsuite directory.
1994-10-14 Rewrite testsuite.Ian Lance Taylor19-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.
1994-10-10* nlmconv.c (link_inputs): Pass -Ur flag to ld so that theJ.T. Conklin1-0/+5
ctor/dtor tables needed by C++ programs are built.
1994-10-10 * Makefile.in (srconv.o): Add dependence on sysroff.c.Jim Wilson2-2/+21
1994-09-30 * configure.in (configdirs): Change binutils.all to binutils-all.Ian Lance Taylor1-1/+1
1994-09-29 * VMS does not permits `.' in directory names. RenamedIan Lance Taylor6-1/+150
binutils.all to binutils-all.
1994-09-28 * Makefile.in (arparse.c): Don't ignore errors from mv.Ian Lance Taylor2-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.
1994-09-28 * configure.in: Use mt-m68k for m68k*-*-aout* and m68k*-*-coff*,Ian Lance Taylor2-1/+18
not for m68k-*-*.
1994-09-28 * objdump.c (disassemble_data): Pass the reloc buffer to free, notIan Lance Taylor1-0/+18
the pointer used to loop over the relocs.
1994-09-16 * objdump.c (objdump_print_address): If we can't find a smallerIan Lance Taylor2-7/+23
symbol in the right section, look for a larger one.
1994-09-16 * objdump.c (struct objdump_disasm_info): Add field require_sec.Ian Lance Taylor2-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.
1994-09-16 * ar.c: Call xexit rather than exit.Ian Lance Taylor1-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.
1994-09-16 * objdump.c (disassemble_all): New global variable.Ian Lance Taylor4-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.
1994-09-14 * objdump.c (disassemble_data): Initialize prevline to 0. MakeIan Lance Taylor2-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.
1994-09-14 * nm.c: Include libiberty.h.Ian Lance Taylor3-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.
1994-09-14 * objcopy.c (copy_main): Initialize input_filename andJeff Law1-0/+5
output_filename to NULL.
1994-09-13 * Makefile.in (version.o): Depend upon Makefile, so that version.oIan Lance Taylor1-0/+16
gets rebuilt when make variable VERSION is changed.
1994-09-13 * objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.Ian Lance Taylor1-15/+16
1994-09-02 * config/unix.exp: If nm.new does not exist, use [transform nm].Ian Lance Taylor2-1/+6
* config/default.exp: Likewise.
1994-08-30rewrite sanitize lines so as not to confuse bsd makeKen Raeburn1-2/+2
1994-08-24 * configure.in, binutils.all/configure.in: Change i386 toIan Lance Taylor2-1/+14
i[345]86.
1994-08-22 * ar.c: Include libiberty.h.Ian Lance Taylor2-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.
1994-08-11 Add support for removing named sections to objcopy and strip.Ian Lance Taylor4-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.
1994-08-10 * nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,Stan Shebs1-0/+14
so as not to conflict with the symvalue typedef in bfd.h.