Commit Graph

943 Commits

Author SHA1 Message Date
Ian Lance Taylor
27e0fef5af From Zack Weinberg <zack@rabi.phys.columbia.edu> and H.J. Lu
<hjl@gnu.org>:
	* ar.c (usage): Mention S modifier.
	(main): Add S modifier.
	* ar.1, binutils.texi: Document S modifier.
1998-04-01 20:57:21 +00:00
Ian Lance Taylor
ac0835f233 Wed Apr 1 13:11:23 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* binutils.texi: Use @itemx for a secondary item in a table.
1998-04-01 18:12:56 +00:00
Ian Lance Taylor
de869287dd * dep-in.sed: Add rule to remove @OBJDIR@.
* Makefile.am (dep.sed): Substitute for @OBJDIR@.
	* Makefile.in: Rebuild.
1998-03-31 23:45:24 +00:00
Ian Lance Taylor
f3aa01e2a4 * configure.in: Set version to 2.9.1.
* configure: Rebuild.
1998-03-30 22:35:51 +00:00
Ian Lance Taylor
3e22b90090 * Makefile.am (DISTCLEANFILES): Remove defparse.h, arparse.h,
rcparse.h, and nlmheader.h.
	* Makefile.in: Rebuild.
1998-03-30 22:30:28 +00:00
Ian Lance Taylor
d3c1453d09 Fix some gcc -Wall warnings:
* nlmconv.c (main): Add casts to avoid warnings.
	(alpha_mangle_relocs): Likewise.
	* objdump.c (dump_section_stabs): Likewise.
	* size.c (print_sysv_format): Likewise.
	* srcconv.c (wr_ob): Likewise.
	* wrstabs.c (stab_modify_type): Likewise.
	(stab_variable): Likewise.
	* nlmconv.c (main): Initialize variables to avoid warnings.
	* nm.c (sort_symbols_by_size): Likewise.
	* objdump.c (disassemble_bytes): Likewise.
	* wrstabs.c (stab_end_class_type): Likewise.
	* coffgrok.c (do_sections_p2): Change j to unsigned int.
	(do_lines): Change l to unsigned int.
	* nlmheader.y (yylex): Change i to unsigned int.
	* nm.c (print_symbol): Change j to long.
	* size.c (lprint_number): Comment out.
	* srconv.c (wr_ob): Change i to bfd_size_type.
	* sysdump.c (unit_info_list): Comment out.
	(object_body_list, program_structure, debug_list): Likewise.
	* sysinfo.y (yyerror): Return value.
1998-03-28 22:45:56 +00:00
Richard Henderson
77c9b27d97 * defparse.y (explist): Allow epsilon.
Suggestion from Jonathan-Harris@psion.com.
1998-03-27 01:08:40 +00:00
Richard Henderson
b4b91a539b * coffgrok.c (do_sections_p1): Use the section's lma instead of vma
for the benefit of prom loaders.

pr 14947
1998-03-27 01:05:06 +00:00
Ian Lance Taylor
ee09ab7f89 Based on patch from H.J. Lu <hjl@gnu.org>:
* Makefile.am (DISTSTUFF): New variable.
	(diststuff): New target.
	(DISTCLEANFILES): New variable.
	* Makefile.in: Rebuild.
1998-03-25 18:06:21 +00:00
Ian Lance Taylor
48c9f0ebd5 * rclex.l: Accept { and } as synonyms for BEGIN and END. 1998-03-25 00:33:29 +00:00
Richard Henderson
a3a4bb5d4a * objcopy.c (compare_section_lma): Rename from _vma.
(copy_object): Gap fill based on LMA not VMA.
	* binutils.texi: Update and clarify.
	* objcopy.1: Likewise.

PR 14917
1998-02-18 02:45:07 +00:00
Ian Lance Taylor
c9b3e42e6b * dlltool.c (make_one_lib_file): Don't add 1 to hint. 1998-02-18 01:34:41 +00:00
Ian Lance Taylor
d383cc5c5b * Makefile.am (AUTOMAKE_OPTIONS): Define.
* configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
1998-02-13 21:39:55 +00:00
Ian Lance Taylor
9a455e6bd6 * deflex.l: Accept '?' in symbol names, for VC++ mangled names.
From Mikey <jeffdb@netzone.com>.
1998-02-12 20:53:49 +00:00
Ian Lance Taylor
eaa147a640 * addr2line.c (usage): Update bug-gnu-utils address.
* ar.c (usage): Likewise.
	* nlmconv.c (show_usage): Likewise.
	* nm.c (usage): Likewise.
	* objcopy.c (copy_usage): Likewise.
	(strip_usage): Likewise.
	* objdump.c (usage): Likewise.
	* size.c (usage): Likewise.
	* strings.c (usage): Likewise.
	* windres.c (usage): Likewise.
	* binutils.texi (Bug Reporting): Likewise.
1998-02-12 19:19:33 +00:00
Ian Lance Taylor
12e0afe57b * configure, Makefile.in, aclocal.m4: Rebuild with new libtool. 1998-02-05 17:24:24 +00:00
Doug Evans
2aff49dd48 * Makefile.am (CC_FOR_TARGET,nlmcomv.o): Change program_transform_name
to transform.
	* Makefile.in: Regenerate.
1998-01-31 03:30:32 +00:00
Ian Lance Taylor
ac9708a601 Thu Jan 29 16:24:04 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dlltool.c: Define exit status macros for _WIN32 but not
	__CYGWIN32__.
	(gen_lib_file): Check for exit status of unlink.
	* resrc.c: Define popen and pclose if _WIN32 but not
	__CYGWIN32__.
1998-01-29 21:31:11 +00:00
Ian Lance Taylor
448258693f Wed Jan 28 17:43:02 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
* objcopy.c (copy_archive): Only pass one argument to mkdir if
	_WIN32 but not __CYGWIN32__.
	(smart_rename): Add code for _WIN32 (not __CYGWIN32__), to cope
	with different rename behaviour and lack of chown.
1998-01-28 22:58:15 +00:00
Ian Lance Taylor
1d1a5a53ee Wed Jan 28 17:45:46 1998 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Remove vfork check.
	* nlmconv.c: Never include vfork.h.
	* aclocal.m4, configure, Makefile.in, config.in: Rebuild.
	* configure.in: Check for mingw32 when deciding whether to build
	dlltool.
1998-01-28 22:48:37 +00:00
Ian Lance Taylor
c336631bef Wed Jan 28 17:43:02 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
* dlltool.c: Never include vfork.h.
	(run): Use pexecute rather than vfork.
	(gen_lib_file): Check for errors from bfd_set_archive_head and
	bfd_close.  Close all the BFDs in the archive before deleting the
	temporary files.
1998-01-28 22:46:01 +00:00
Fred Fish
ffeec95486 * objdump.c (disassemble_bytes): Add flag INSN_HAS_RELOC to tell
disassembly function there is a reloc on this line.
1998-01-23 02:37:34 +00:00
Ian Lance Taylor
a1535f42a8 tipoe 1998-01-22 02:32:28 +00:00
Richard Henderson
5f91fe02c0 * srconv.c (sh, h8300): Delete variables.
(addrsize, toolname, rnames): New variables.
        (writeINT): Use addrsize.
        (wr_un): Use toolname.
        (wr_hd): Set up addrsize et al properly for h8300[hs].
        (walk_tree_symbol): Zero dsy.  Use rnames.
        (wr_un, wr_hd, wr_ob, wr_du): Use proper bfd access macros.
        * sysdump.c (sh, h8300): Delete variables.
        (addrsize): New variable.
        (getINT): Use it.
        (getone): Initialize it.
        (getBITS): Range check on MAX.
1998-01-14 23:54:17 +00:00
Doug Evans
c361a5c0ac Add txvu support. 1998-01-05 14:28:23 +00:00
Ian Lance Taylor
dca8a1e74b From Matthew Bellantoni <matthew@chrysalis.com>:
* ar.c (get_pos_bfd): Add default_posname parameter.  Change all
	callers.
	(replace_members): Default to replacing in the same position.
1997-12-29 14:00:59 +00:00
Ian Lance Taylor
999539b559 * rclex.l: Don't permit a comma in a STRING.
* rcparse.y (acc_entry): Warn if an inappropriate modifier is used
	with a non VIRTKEY.
	(acc_event): For a control character, set VIRTKEY, and force the
	character to uppercase.
	(acc_options): Don't require a comma separator.
1997-12-22 08:29:28 +00:00
Nick Clifton
0c4f6dc21a Removed disasm_symaddr() function and switched detection of Arm vs Thumb
mode over to state of info->symbol, ala the MIPS port.
1997-12-08 19:26:40 +00:00
Nick Clifton
fd6d6c603d Add call to disasm_symaddr() 1997-12-02 18:26:14 +00:00
Ian Lance Taylor
0270c56097 * windres.h (ESCAPE_*): Define standard escape sequences.
* rclex.l (handle_quotes): Handle standard escape sequences.  Warn
	about an unrecognized escape character.
	* windres.c (unicode_print): Print standard escape sequences.
	* rcparse.y (acc_event): Initialize $$.next.
	* resbin.c (bin_to_res_menuitems): Don't set MENUITEM_POPUP or
	MENUITEM_ENDMENU in the menu item flags.
	(bin_to_res_accelerators): Allocate a structure (the old code
	never worked).
	(res_to_bin_accelerator): Correct the test for setting ACC_LAST.
	(res_to_bin_dialog): Save the extended style rather than saving
	the style twice.  Remove useless shadowing length variable.  Set
	the length of control data correctly.
	* resrc.c (write_rc_dialog): Don't print the class or menu if the
	string length is zero.
1997-12-02 18:11:02 +00:00
Jeff Law
004d8ce36d * Makefile.am (bin_PROGRAMS): Don't use line continuations here.
Avoid blank line after a line continuation.  Fixes problems with many
non-gnu makes.
1997-11-09 18:00:55 +00:00
Ian Lance Taylor
cd54100ea4 * objcopy.c (copy_section): Don't crash if there is no particular
information for a section.
1997-11-04 16:57:20 +00:00
Ian Lance Taylor
ee1f0bd101 * objcopy.c (parse_flags): Make flag check case insensitive.
Check for `contents' flag.  Give an error for unrecognized flags.
	(copy_section): If the contents flag was set for a section that
	had no contents, zero out the new contents.
	* binutils.texi (objcopy): Document contents section flag.
PR 10601.
1997-11-03 17:39:13 +00:00
Ian Lance Taylor
25fd0ed4fb * objcopy.c: Move new struct and variable definitions to top of
file.  Remove obsolete add_strip_symbol and is_strip_symbol
	declarations.  Add prototype declarations for add_specific_symbol
	and is_specified_symbol.
1997-11-02 19:51:02 +00:00
Ian Lance Taylor
c773781e73 Mon Oct 20 15:31:43 1997 Klaus K"ampf <kkaempf@progis.de>
* configure.com (HAVE_SBRK): Undefine.
1997-10-20 19:33:16 +00:00
Nick Clifton
0543ba6ec8 Add function to determine if a symbol is located at a given address. 1997-10-14 23:12:18 +00:00
Richard Henderson
246b7c9bc0 * objcopy.c, objcopy.1, binutils.texi: "localize" is a better name
than "privatize".  Update all references.
1997-10-10 21:14:29 +00:00
Ian Lance Taylor
18ef0a3df5 * binutils.texi (strip): Remove duplicate --target. From Marty
Leisner <leisner@sdsp.mc.xerox.com>.
1997-10-09 20:04:25 +00:00
Ian Lance Taylor
3cbae240f1 * nm.c (lineno_cache_bfd): New file static variable.
(lineno_cache_rel_bfd): New file static variable.
	(display_archive): Clear lineno_cache_bfd and lineno_cache_rel_bfd
	when closing a BFD.
	(display_file): Likewise.
	(print_symbol): Use lineno_cache_bfd and lineno_cache_rel_bfd
	instead of cache_bfd and cache_rel_bfd.  Make seccount static, and
	only set it when setting relocs.
1997-10-09 19:59:15 +00:00
Richard Henderson
8d2e72a1c8 * objcopy.c (keep_specific_list, privatize_specific_list,
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-10-09 04:34:59 +00:00
Frank Ch. Eigler
243aa0c242 * objdump.c (disassemble_data): Added "0x" prefix to printed hex
offsets; fixed MIPS16 disassembly for --prefix-addresses mode;
	see PR 12149.
1997-10-05 21:05:12 +00:00
Ian Lance Taylor
478aa09cef * objcopy.c (set_times): New static function, replacing
make_same_dates.
	(strip_main): If preserve_dates, stat the input file before
	copying it, and call set_times afterward.
	(copy_main): Likewise.
1997-10-03 20:45:37 +00:00
Ian Lance Taylor
ccb809cdfb * wrstabs.c (write_stabs_in_sections_debugging_info): Cast p to
char * when calling strcpy and strlen.
1997-10-03 16:05:46 +00:00
Ian Lance Taylor
7a2db4e54c * binutils.texi (ar cmdline): Document that q now works like r.
From Marty Leisner <leisner@sdsp.mc.xerox.com>.
1997-09-24 19:54:57 +00:00
Ian Lance Taylor
f2843a175e * binutils.texi (size): The object file argument is optional.
From Marty Leisner <leisner@sdsp.mc.xerox.com>.
1997-09-24 19:52:17 +00:00
Ian Lance Taylor
b5db0960f3 * aclocal.m4: Rebuild with new libtool.
* configure: Rebuild.
1997-09-24 15:34:43 +00:00
David Edelsohn
24ccf6b72e * binutils-all/objdump.exp (cpus_expected): Add arc. 1997-08-28 16:58:00 +00:00
David Edelsohn
215b40bc29 Remove arc sanitization. 1997-08-28 16:56:10 +00:00
Ian Lance Taylor
1ed5e6dfe8 * configure.in: Define TARGET in header file.
* acconfig.h (TARGET): Add #undef.
	* Makefile.am (version.o, bucomm.o): Remove special targets.
	* bucomm.c (target): Remove.
	* nm.c (program_name): Don't declare.
	(target): Make static.
	* size.c (target): Make static.
	* configure, config.in, Makefile.in: Rebuild.
1997-08-06 17:40:40 +00:00
Ian Lance Taylor
0e1a8af17a * Makefile.am (check-DEJAGNU): Export r.
(.dep1): Use $(INCLUDES) rather than $(ALL_CFLAGS).
	* Makefile.in: Rebuild.

	* nlmheader.y: Use VERSIONK rather than VERSION.
1997-08-05 04:33:31 +00:00