aboutsummaryrefslogtreecommitdiff
path: root/binutils/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
1994-04-22 * objdump.c (_DUMMY_NAME_): Don't define.Ian Lance Taylor1-0/+5
(display_target_list): Use tmpnam to get a file name rather than using _DUMMY_NAME_. Unlink it when done. (display_info_table): Likewise.
1994-04-21 * nlmconv.c (secsec): New static variable.Ian Lance Taylor1-0/+9
(main): Create .nlmsections section in output BFD. Store information about it in sections header. (setup_sections): Allocate space in sections header. (copy_sections): Copy zero sized sections. Put information about each section in the sections header.
1994-04-20PowerPC NetWare changes.Ian Lance Taylor1-0/+12
1994-04-13 * objdump.c: Do an ifdef on __GO32__, not unix.Ian Lance Taylor1-0/+4
1994-04-07 Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -RIan Lance Taylor1-0/+31
(--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.
1994-03-30 Update for recent BFD changes to symbol and reloc reading. RenameIan Lance Taylor1-0/+46
all uses of get_symtab_upper_bound to bfd_get_symtab_upper_bound. Also: * coffgrok.c (symcount): Change to long. (do_sections_p1): Check for error return from bfd_get_reloc_upper_bound. Change relcount to long, and check for error from bfd_canonicalize_reloc. (coff_grok): Change storage to long. Check for error from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. * nlmconv.c (main): Change symcount, newsymalloc, newsymcount, and i to long. Check for error from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. (copy_sections): Change reloc_size and reloc_count to long. Check for error from bfd_get_reloc_upper_bound and bfd_canonicalize_reloc. (mangle_relocs, i386_mangle_relocs, alpha_mangle_relocs): Change reloc_count_ptr argument to long *. Make corresponding changes to variables loaded from *reloc_count_ptr. * nm.c (display_rel_file): Change storage and symcount to long. Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. * objcopy.c (filter_symbols): Change symcount, src_count and dst_count to long. (copy_object): Change symcount to long. Pass another argument to fprintf. Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. (copy_section): Change relcount to long. Check for errors from bfd_get_reloc_upper_bound and bfd_canonicalize_reloc. (mark_symbols_used_in_relocations): Change relcount and i to long. Check for errors form bfd_get_reloc_upper_bound and bfd_canonicalize_reloc. * objdump.c (storage): Remove global variable. (symcount): Changed to long. (slurp_symtab): New local variable storage. Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab. (remove_useless_symbols): Change return value and count to long. (objdump_print_address): Change min, max, thisplace and i to long. (disassemble_data): Change i to long. (dump_symbols): Change count to long. (dump_relocs): Change relcount to long. Check for errors from bfd_ret_reloc_upper_bound and bfd_canonicalize_reloc. (display_info_table): Add casts when passing LONGEST_ARCH for printf %* argument.
1994-03-29 * objdump.c (display_file): Close each archive element after itIan Lance Taylor1-0/+1
has been displayed.
1994-03-29 * nm.c (display_archive): Close each archive element after it hasIan Lance Taylor1-0/+5
been displayed.
1994-03-28 * configure.in: Change error message to refer to bfd/config.bfdIan Lance Taylor1-0/+5
rather than bfd/configure.in.
1994-03-28 * More fixes for object formats which allow multiple sectionsJeff Law1-0/+12
with the same name: * objcopy.c (setup_section): Make a new output section even if one already exists with the given name. (copy_section): Use isection->output_section rather than trying to look the output section up by its (possibly non-unique) name.
1994-03-21 * objdump.c (objdump_print_address): Make static. Declare withIan Lance Taylor1-0/+7
prototype. Change vardiff from int to bfd_signed_vma. Correct binary search termination condition. When looking for same section symbol in relocatable file, handle final symbol correctly.
1994-03-20 * Makefile.in: Avoid bug in hpux sed.Jeff Law1-0/+2
1994-03-20 * objcopy.c: Changes to keep it from stripping symbols usedJeff Law1-0/+10
in output relocations. (mark_symbols_used_in_relocations): New function. Mark symbols used in output relocations with BSF_KEEP. (filter_symbols): Do not strip symbols marked with BSF_KEEP. (copy_object): Reorder actions. First setup sections, then build the output symbol table, then copy the section contents.
1994-03-18 * ar.c (write_archive): Allocate space for the null byte. FromIan Lance Taylor1-0/+5
Robert Lipe <robertl@arnet.com>.
1994-03-17 * Makefile.in: Built nm.new and strip.new to avoid problems withIan Lance Taylor1-0/+17
collect when . is in PATH. (STRIP_PROG): Change from strip to strip.new. (NM_PROG): Change from nm to nm.new. (install): Remove the .new when installing.
1994-03-16 * objcopy.c (filter_symbols): Use bfd_is_local_label to determineJeff Law1-0/+9
if a symbol represents a compiler-generated local label. (copy_object): Give the BFD backends a chance to copy any private bfd data from the input BFD to the output BFD. (setup_section): Give the BFD backends a chance to copy any private section data from the input section to the output section.
1994-03-14 * objcopy.c (mangle_section): Delete unused function.Jeff Law1-0/+6
(setup_section): Set osection here instead of calling mangle section to do it.
1994-03-14 * ar.c (write_archive): Close inarch before unlinking it.Ian Lance Taylor1-0/+4
1994-03-12 * nlmconv.c (main): For PowerPC, call powerpc_build_stubs andIan Lance Taylor1-0/+16
powerpc_resolve_stubs. Use __GOT0, not __toc_start. Handle it if the start and end symbols are not in the text section. (struct powerpc_stub): New struct definition. (powerpc_stubs, powerpc_stub_insns): New static variables. (powerpc_initial_got_size): New static variable. (powerpc_build_stubs): New function. (powerpc_resolve_stubs): New function. (powerpc_mangle_relocs): Clear extraneous data in .got section. Rearrange reloc handling to handle ELF relocs that are not partial_inplace. Resolve PC relative relocs.
1994-03-09 * ar.c (move_members): Fix it so that the abi positional modifiersSteve Chamberlain1-0/+5
don't delete all archive members following the insert point.
1994-03-08 * coffgrok.[ch]: New files, understand coff objects.Steve Chamberlain1-0/+11
* coffdump.c: Uses coffgrok to dump out the debug info of a coff file. * sysroff.info: Description of a SYSROFF object file. * sysinfo.y, syslex.l: Parse info file, generate a reader, writer, header files and a printer. * srconv.c: Uses coffgrok.c and sysroff.info to convert a coff file to a SYSROFF file.
1994-03-08Set Emacs local variables to never use version control.Ian Lance Taylor1-1/+4
1994-02-26Sat Feb 26 13:35:26 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-0/+22
* ar.c (do_quick_append): Pad with a genuine character 10, rather than whatever '\n' might happen to be.
1994-02-17 * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,David MacKenzie1-0/+5
size.c: Use bfd_get_error and bfd_set_error and new error names.
1994-02-11 * objcopy.c (strip_main, copy_main): Add missing 'break' in switch.David MacKenzie1-0/+13
1994-02-04 * objcopy.c (filter_bytes): Make MEMHUNK a char *, not PTR, so weDavid MacKenzie1-0/+5
can do arithmetic on it.
1994-02-03 * objdump.c (dump_section_stabs, read_section_stabs,David MacKenzie1-0/+6
print_section_stabs): Functions broken out of dump_stabs_1. Free the stabs and strings when done with them.
1994-02-03 More changes to print ambiguous matches and use theDavid MacKenzie1-2/+3
abstracting macros.
1994-02-03 * nlmconv.c (main): Use bfd_get_flavour instead of struct member.David MacKenzie1-0/+5
* ar.c (print_contents, extract_file), size.c (print_berkeley_format): Use bfd_get_filename and bfd_my_archive instead of dereferencing the structs directly.
1994-02-03 * ar.c: Use bfd_fatal and bfd_nonfatal instead of bfd_perror and exit.David MacKenzie1-0/+3
Indent. Remove DEFUNs.
1994-02-03 * nlmconv.c (main), objcopy.c (copy_file): Print matching formatsDavid MacKenzie1-0/+33
if ambiguous match. * nm.c (display_file), size.c (display_bfd): Eliminate gotos. Print matching formats if there is an ambiguous match. Use bfd_nonfatal instead of hardcoded error message if nothing matches. * arsup.c, ar.c, objdump.c: Use bfd_get_filename instead of abfd->filename. * nm.c (display_archive): New function, from code in display_file. (display_rel_file): Renamed from do_one_rel_file. * size.c: Indent. (display_archive): New function from code in display_file. (display_file): Check bfd_close error return. * strings.c (strings_object_file): Check bfd_check_format error return. * strings.c, objdump.c, size.c: Use bfd_nonfatal instead of bfd_perror. * bucomm.c: Delete references to exit_handler. It wasn't set anywhere, and now that we're using the libiberty xmalloc, it wouldn't always get called before exiting. (list_matching_formats): Function moved from objdump.c. * bucomm.h: Declare it. * objdump.c (disassemble_data): Move some variable decls closer to their use. Add some comments. Replace a nested block with a return.
1994-02-01Mon Jan 31 18:50:41 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-0/+5
* objdump.c (display_target_list, display_info_table): Check that the bfd of the dummy output file is not null.
1994-01-26 * objcopy.c (filter_bytes): New function.David MacKenzie1-0/+21
(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-26Tue Jan 25 19:40:54 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-0/+5
* bucomm.c (print_arelt_descr): Change decl of `when' to time_t. * objdump.h: Removed.
1994-01-25 * objdump.c (display_file): Remove call to list_matching_formats.David MacKenzie1-0/+2
It would never be called. (list_matching_formats): Take an arg giving the list of matching formats. (display_bfd): Pass the arg, and get it filled in by calling bfd_check_format_matches instead of bfd_check_format. (display_info, display_info_table): target_vector was renamed to bfd_target_vector.
1994-01-24 * objdump.c (display_file): Remove call to list_matching_formats.David MacKenzie1-0/+7
It would never be called. (list_matching_formats): Take an arg giving the list of matching formats. (display_bfd): Pass the arg, and get it filled in by calling bfd_check_format_matches instead of bfd_check_format. * binutils.texi (objdump): Note some limitations of -h section address printing.
1994-01-24 * binutils.texi (objdump): Note some limitations of -h sectionDavid MacKenzie1-0/+5
address printing.
1994-01-23Minor MPW compatibility tweaks.Stan Shebs1-0/+8
1994-01-22 * objdump.c (list_matching_formats): If the file format is ambiguous,David MacKenzie1-0/+7
print the matching names so the user can choose one. (display_bfd): Call it. (display_file): Call it.
1994-01-22 * objdump.c (disassemble_data): Support bfd_arch_rs6000.Ian Lance Taylor1-0/+4
1994-01-17Mon Jan 17 13:57:25 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-0/+8
* objdump.c (stab_name): Allocate dynamically. (stab_print): Use pointers to strings instead of char arrays. (dump_stabs): Change alloc and init of arrays appropriately. (dump_stabs_1): Always decide whether to print stab_name or the stab's type number, if unnamed.
1994-01-14 * objcopy.c (strip_main, copy_main): Don't clobber the input fileIan Lance Taylor1-0/+3
if copy_file fails.
1994-01-14 * nlmconv.c (main): Warn about an attempt to use a shared libraryIan Lance Taylor1-0/+3
with uninitialized data.
1994-01-14 * nlmconv.c (setup_sections): Make sure that we align theIan Lance Taylor1-0/+5
output_offset of each input section appropriately.
1994-01-13 * objdump.c (dump_relocs): Don't crash if section name is NULL.Ian Lance Taylor1-0/+17
1994-01-09* bucomm.c (xmalloc, xrealloc): Deleted.Ken Raeburn1-0/+5
* bucomm.h (xmalloc, xrealloc): Prototypes fixed to correspond to libiberty versions.
1994-01-06 * binutils.texi: Add a chapter summarizing the ways to selectDavid MacKenzie1-0/+25
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-12-23Various entries.Ian Lance Taylor1-0/+38
1993-12-10 * nlmheader.y (command): Accept MAP and FULLMAP without arguments.Ian Lance Taylor1-0/+5
* nlmconv.c (main): Change error message for MAP and FULLMAP.
1993-12-10 * nlmconv.c (main): Warn about imported symbols that are not inIan Lance Taylor1-0/+3
the IMPORT list even if the IMPORT keyword is not used. Fixes PR 4006.