Commit graph

1058 commits

Author SHA1 Message Date
Tom Tromey
5873cbec2b Fixed xgettext invocation in .Sanitize files 1998-04-29 00:11:07 +00:00
Ian Lance Taylor
c027e8b019 clean up IMPORTS changes 1998-04-29 00:04:11 +00:00
Bill Moyer
ddfe59af91 Updated ChangeLog to reflect IMPORT support changes in dlltool. 1998-04-28 18:09:53 +00:00
Bill Moyer
a4e5fd18f9 dlltool.c: Added support for IMPORTS.
dlltool.h:  Redefined declaration of def_import().
defparse.y: Redefined IMPORT rule.
1998-04-28 17:36:17 +00:00
Ian Lance Taylor
5b10df4a85 * configure.in: Change version number to 2.9.4
* configure: Rebuild.
1998-04-27 20:42:00 +00:00
Tom Tromey
d6f3da9bc4 If xgettext fails, make Sanitize fail 1998-04-23 05:17:30 +00:00
Tom Tromey
3d96e9b4cf .Sanitize now re-computes gettext-related files 1998-04-22 22:40:45 +00:00
Tom Tromey
55c7812d44 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir). 1998-04-22 22:13:58 +00:00
Ian Lance Taylor
7d2ac7015e fix sanitization for gettext changes 1998-04-22 16:00:14 +00:00
Tom Tromey
19ac4b08f0 * Makefile.am (INCLUDES): Search intl dirs for headers; define
LOCALEDIR.
	* addr2line.c (main): Call setlocale, bindtextdomain, textdomain.
	* ar.c (main): Likewise.
	* coffdump.c (main): Likewise.
	* dlltool.c (main): Likewise.
	* nlmconv.c (main): Likewise.
	* nm.c (main): Likewise.
	* objcopy.c (main): Likewise.
	* objdump.c (main): Likewise.
	* size.c (main): Likewise.
	* srconv.c (main): Likewise.
	* strings.c (main): Likewise.
	* sysdump.c (main): Likewise.
	* windres.c (main): Likewise.
1998-04-22 07:58:44 +00:00
Tom Tromey
9d04d6183d * Many files: Added gettext invocations around user-visible
strings.
	* bucomm.h: Added gettext-related includes and defines.
	* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
	HAVE_LC_MESSAGES): Define.
	* configure.in: Call CY_GNU_GETTEXT.  Create po/Makefile.in and
	po/Makefile.  Use AM_PROG_LEX.
	* Makefile.am (SUBDIRS): New macro.
	(POTFILES): Likewise.
	(po/POTFILES.in): New target.
	(LDADD): Added INTLLIBS.
	(objdump_LDADD): Likewise.
	(c__filt_LDADD): Likewise.
	(ar_LDADD): Likewise.
	(ranlib_LDADD): Likewise.
	(dlltool_LDADD): Likewise.
	(windres_LDADD): Likewise.
	* po/Make-in, po/POTFILES.in, po/binutils.pot: New files.
1998-04-22 05:32:22 +00:00
Ian Lance Taylor
22947e96cd Tue Apr 21 16:07:18 1998 Stanislav Brabec <utx@k332.feld.cvut.cz>
* objcopy.c (preserve_dates): New file static variable.
	(smart_rename): If preserve_dates, call set_times when copying.
	(strip_main): Remove preserve_dates local variable.
	(copy_main): Likewise.
1998-04-21 20:08:36 +00:00
Ian Lance Taylor
d69831f684 * Makefile.am (DISTSTUFF): Add defparse.h, defparse.c, rclex.c,
rcparse.h, and rcparse.c
	* Makefile.in: Rebuild.
1998-04-07 19:41:52 +00:00
Ian Lance Taylor
80ae9dea4b * Makefile.am (PROGS): Move $(ADDR2LINE_PROG) to end, so that
Makefile.in doesn't have an empty continuation line.
	(bin_PROGRAMS): Likewise.
	* Makefile.in: Rebuild.
1998-04-06 20:25:20 +00:00
Ian Lance Taylor
5327f59f00 * Makefile.am (DISTCLEANFILES): Add site.exp and site.bak.
(MOSTLYCLEANFILES): Add binutils.log, binutils.sum, and abcdefgh*.
	(mostlyclean-local): New target.
	* Makefile.in: Rebuild.
1998-04-03 19:49:49 +00:00
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
Ian Lance Taylor
ac413020df * Makefile.am (STRIP_PROG): Change from strip.new to strip-new.
(NM_PROG): Change from nm.new to nm-new.
	(TOOL_PROGS, install-exec-local): Adjust accordingly.
	* Makefile.in: Rebuild.
1997-08-05 04:04:31 +00:00
Ian Lance Taylor
c641358e68 * configure.in: Remove AC_ARG_PROGRAM; it's invoked by
AM_INIT_AUTOMAKE.
	* configure: Rebuild.
1997-08-05 03:30:12 +00:00
Ian Lance Taylor
7ab51306ae * Makefile.am (install-exec-local): Create $(tooldir)/bin before
trying to install anything into it.
	* Makefile.in: Rebuild.
1997-08-04 19:55:49 +00:00
Ian Lance Taylor
bf2a3cb1af * Makefile.am (TOOL_PROGS): Use an explicit $(EXEEXT).
(install-exec-local): When handling $(noinst_PROGRAMS), only use
	$(EXEEXT) on the installed file.  When handling $(TOOL_PROGS),
	handle $(EXEEXT) correctly.
	* configure.in: Add an explicit $(EXEEXT) when substituting for
	the name of a program to build.
	* Makefile.in, configure: Rebuild.
1997-08-04 19:32:56 +00:00
Ian Lance Taylor
8496c2a9b9 * aclocal.m4, configure, Makefile.in: Rebuild with new automake
patches.
1997-08-04 16:05:31 +00:00
Ian Lance Taylor
e5b3abe4df * deflex.l, defparse.y: Use VERSIONK rather than VERSION.
* rclex.l, rcparse.y: Likewise.
	* Makefile.am (windres_SOURCES): Add $(BULIBS).
	* Makefile.in: Rebuild.
1997-08-04 15:51:44 +00:00
Ian Lance Taylor
931cde32b1 * acinclude.m4: Include bfd/acinclude.m4, not bfd/acmacros.m4.
* aclocal.m4, configure: Rebuild with new libtool.
1997-08-01 17:09:36 +00:00
Ian Lance Taylor
d467c30d18 * Makefile.am: New file, based on old Makefile.in.
* acinclude.m4: New file, from old aclocal.m4.
	* configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL.  Remove
	shared library handling; now handled by libtool.  Replace
	AC_CONFIG_HEADER with AM_CONFIG_HEADER.  Call AC_PROG_YACC,
	AC_PROG_LEX, AC_DECL_YYTEST, AM_MAINTAINER_MODE, AM_CYGWIN32, and
	AM_EXEEXT.  Replace AC_PROG_INSTALL with AM_PROG_INSTALL.  Remove
	stamp-h handling in AC_OUTPUT.
	* acconfig.h: Mention PACKAGE and VERSION.
	* stamp-h.in: New file.
	* Makefile.in: Now built with automake.
	* aclocal.m4: Now built with aclocal.
	* config.in, configure: Rebuild.
1997-08-01 03:49:39 +00:00
Ian Lance Taylor
e42872a2e8 From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
* rcparse.y (dialog): Default menu and class to be named.
	(styles): If FONT is seen, set DS_SETFONT in dialog style.
	* resbin.c (res_to_bin_dialog): Correct computation of font
	information length.
1997-07-31 15:53:23 +00:00
Ian Lance Taylor
ef573b6883 From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
* resbin.c (res_to_bin_menu): Correct computation of menu
	vs. menuex length.
	* resrc.c (define_stringtable): Add 1 to resource ID.
1997-07-30 15:22:07 +00:00
Ian Lance Taylor
c88790775d * resbin.c (bin_to_res_string): Correct adjustment of data and
length.  From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>.
1997-07-29 15:06:48 +00:00
Ian Lance Taylor
ad94646bd6 * nlmconv.c (link_inputs): Call libiberty pexecute function.
(pexecute) [multiple versions]: Remove.
1997-07-22 22:01:58 +00:00
Ian Lance Taylor
fa0cd59bc6 Tue Jul 22 16:19:34 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
* bucomm.c (make_tempname): If we might be using a DOS filesystem,
	check for a backslash as well as a slash.
1997-07-22 20:22:05 +00:00
Ian Lance Taylor
217947b23d More tweaks. Add windres documentation. 1997-06-26 19:27:42 +00:00
Ian Lance Taylor
a89c9be075 * rcparse.y: Add a couple of missing semicolons (accepted by bison
but not byacc).
1997-06-26 18:21:02 +00:00
Ian Lance Taylor
d5a7bb530d * windres.c (main): Quit if we didn't get any resources.
* rescoff.c (write_coff_file): Don't free the relocation array
	until after we've closed the BFD.
1997-06-26 17:53:57 +00:00
Ian Lance Taylor
662cc41eaf * resbin.c: New file.
* rclex.l, rcparse.y, rescoff.c, resrc.c, windres.c, windres.h:
	Numerous fixes and improvements.
	* Makefile.in: Rebuild dependencies.
 	(CFILES): Add resbin.c.
	(WINDRES_OBJS): Add resbin.o.
1997-06-26 00:59:44 +00:00
Ian Lance Taylor
e4486bdf9f Another windres snapshot. Can now read the COFF resources directory,
although it doesn't yet parse out the binary format.
1997-06-23 00:08:54 +00:00
Ian Lance Taylor
1d371d35ee First stab at Windows resource compiler:
* windres.h: New file.
	* windres.c: New file.
	* resrc.c: New file.
	* rcparse.y: New file.
	* rclex.l: New file.
	* configure.in: Define and substitute BUILD_WINDRES.
	* configure: Rebuild.
	* Makefile.in: Rebuild dependencies.
 	(WINDRES_PROG): New variable.
	(PROGS): Add @BUILD_WINDRES@.
	(HFILES): Add dlltool.h and windres.h.
	(CFILES): Add windres.c and resrc.c.
	(GENERATED_CFILES): Add rcparse.c and rclex.c.
	(WINDRES_OBJS): New variable.
	$(WINDRES_PROG): New target.
	(rcparse.c, rcparse.h, rclex.c): New targets.
Snapshot.  windres can parse and print rc files.
1997-06-22 21:35:35 +00:00
Ian Lance Taylor
8eb693acc4 * dlltool.c (export_type): Add data field.
(def_exports): Add data parameter.  Change all callers.
	(dump_def_info): Print data field.
	(gen_def_file): Likewise.
	(make_one_lib_file): Handle data field by not emitting simple
	label and not emitting anything in SEC_TEXT.
	(dtab): Print data field.
	(process_duplicates): Merge data field.
	* dlltool.h (def_exports): Update declaration.
	* defparse.y (expline): Accept opt_DATA.  Pass it to def_exports.
	(opt_DATA): New non-terminal.
1997-06-12 16:30:55 +00:00
Ian Lance Taylor
a33f735924 * dlltool.h: New file.
* deflex.l: Include dlltool.h and libiberty.h.  Don't declare
	strdup.  Use xstrdup rather than strdup.
	* defparse.y: Include bfd.h, bucomm.h, and dlltool.h.
	* dlltool.c: Include dlltool.h and time.h.  Make a lot of
	variables and functions static.  Make a lot of char * variables
	and parameters const.  Add declarations for static functions.  Do
	some reindenting.  Hide more PowerPC stuff inside DLLTOOL_PPC.
1997-06-11 21:18:10 +00:00
Ian Lance Taylor
b4a3d22176 Wed Jun 11 12:05:52 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* ar.c (bfd_special_undocumented_glue): Add const.
1997-06-11 16:06:29 +00:00
Bob Manson
fd4addafba Removed global variable "exec_output". remote_load now returns
the output as part of its result.
1997-06-04 00:25:16 +00:00
Ian Lance Taylor
044c6b40b2 * configure.in: Don't clear OPCODES when --enable-commonbfdlib is
used on HP/UX.
	* configure: Rebuild.
1997-05-12 17:14:57 +00:00
Ian Lance Taylor
4066f85fd5 * Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
	(install): Depend upon installdirs.  Use $(program_transform_name)
	directly, rather than using $(INSTALL_XFORM) and
	$(INSTALL_XFORM1).
	(installdirs): New target.
	(install-info): Run mkinstalldirs.
1997-04-15 17:45:20 +00:00
Ian Lance Taylor
4c62d7407d revert last patch 1997-04-14 20:04:38 +00:00
Ian Lance Taylor
7f92ace993 * Makefile.in (INSTALL): Set to @INSTALL@. 1997-04-14 20:01:10 +00:00
Ian Lance Taylor
49163945f7 * binutils-all/ar.exp (long_filenames): Check for a file system
with a 14 character file name length limit.
1997-04-14 16:37:29 +00:00
Ian Lance Taylor
575653d37d From Thomas Graichen <graichen@rzpd.de>:
* Makefile.in: Always use $(SHELL) when running move-if-change.
	* configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
	* configure: Rebuild.
1997-04-14 15:57:21 +00:00
Ian Lance Taylor
33106b6039 * configure.in: Add AC_FUNC_ALLOCA.
* configure, config.in: Rebuild.
	* bucomm.h: Add alloca handling, copied from gas/as.h.
	* dlltool.c: Add #pragma alloca for AIX to start of file.
	* nlmconv.c: Likewise.
1997-04-04 20:07:07 +00:00
Ian Lance Taylor
a067162dd2 * Makefile.in (distclean): Remove site.exp and site.bak. Remove
everything that clean removes.
1997-04-04 18:35:06 +00:00
Ian Lance Taylor
fbe0d6c29f * Makefile.in (distclean): Remove site.exp and site.bak. 1997-04-04 18:28:25 +00:00
Ian Lance Taylor
3884d17b45 * Makefile.in (VERSION): Set to 2.8.1. 1997-04-03 18:19:26 +00:00
Ian Lance Taylor
e46ea72de6 remove uninteresting TODO file 1997-04-02 20:44:14 +00:00
Ian Lance Taylor
e72afe26be Tue Apr 1 16:21:44 1997 Klaus Kaempf <kkaempf@progis.de>
* configure.com: New file.
	* config.h-vms: Remove file.
	* makefile.vms: Update for new configure scheme.
1997-04-01 21:22:54 +00:00
Ian Lance Taylor
ed41b431d0 Fri Mar 28 17:57:53 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
* Makefile.in ($(OBJDUMP_PROG)): Don't link against BFDLIB twice.
	* configure.in: Add AC_ARG_ENABLE for commonbfdlib.  If it is set,
	set OPCODES to empty.
	* configure: Rebuild.
1997-03-28 23:17:08 +00:00
Ian Lance Taylor
2483354d4b Based on patch from Marty Leisner <leisner@sdsp.mc.xerox.com>:
* objcopy.c: Include <utime.h> or <sys/time.h>.
	(strip_options): Add "preserve-dates".
	(copy_options): Likewise.
	(copy_usage): Mention -p and --preserve-dates.
	(strip_usage): Likewise.
	(make_same_dates): New static function.
	(strip_main): Handle -p.
	(copy_main): Likewise.
	* binutils.texi, strip.1, objcopy.1: Document new option.
1997-03-27 22:02:46 +00:00
Ian Lance Taylor
8d9b566dc5 mention addr2line 1997-03-27 21:37:03 +00:00
Ian Lance Taylor
fb38844dcb addr2line.c contributed by Ulrich Lauther
<Ulrich.Lauther@zfe.siemens.de>:
	* addr2line.c: New file.
	* Makefile.in: Rebuild dependencies.
 	(ADDR2LINE_PROG): New variable.
	(MANPAGES): Add addr2line.
	(PROGS): Add $(ADDR2LINE_PROG).
	(CFILES): Add addr2line.c.
	($(ADDR2LINE_PROG)): New target.
	* binutils.texi: Document addr2line.
	* addr2line.1: New file.
1997-03-27 21:35:00 +00:00
Ian Lance Taylor
6d17c8eb26 * version.c (print_version): Update copyright date. 1997-03-27 21:03:14 +00:00
David Edelsohn
718a5c17ea Remove m32r sanitization. 1997-03-24 21:29:21 +00:00
Jeff Law
1afd299b8f * size.c (usage): Make definition match its prototype.
(display_bfd, lprint_number, rprint_number): Likewise.
        (print_berkeley_format, sysv_internal_printer): Likewise.
        (print_sysv_format): Likewise.
        * nm.c (set_print_radix, set_output_format): Likewise.
        * objcopy.c (filter_bytes): Likewise.
1997-03-21 04:28:24 +00:00
Ian Lance Taylor
ce1f5b2a4e Tue Mar 18 16:39:55 1997 H.J. Lu <hjl@lucon.org>
* Many files: Add function prototypes.
	* ar.c (mri_emul, get_pos_bfd): Make static.
	* arlex.l: Include "libiberty.h".  Don't declare strdup.  Use
	xstrdup rather than strdup.
	* arparse.y (yyerror): Make argument const.  Correct typo.
	* arsup.c (strdup): Don't declare.
	(ar_save): Use xstrdup rather than strdup.
	* filemode.c: Include "bucomm.h".
	* nm.c (usage): Make static.
	(print_symname): Make format and name const.
	* objcopy.c (cat): Remove.
	(copy_archive): Make output_target const.  Use concat, not cat.
	(copy_file, simple_copy, smart_rename): Make arguments const.
	* objdump.c (read_section_stabs): Likewise.
	(print_section_stabs): Likewise.
	(display_target_tables): Don't declare getenv.
	* strings.c (strings_object_file): Change file to const.
	(print_strings): Change filename to const.
	* Makefile.in: Rebuild dependencies.

Tue Mar 18 11:37:24 1997  Ian Lance Taylor  <ian@cygnus.com>

	* configure.in: Add BFD_NEED_DECLARATION(getenv).
	* acconfig.h: Add NEED_DECLARATION_GETENV.
	* bucomm.h (getenv): Declare if NEED_DECLARATION_GETENV.
	* configure, config.in: Rebuild.
	* nlmconv.c (getenv): Don't declare.
1997-03-18 21:51:04 +00:00
Ian Lance Taylor
e0742b2400 * Makefile.in: Rebuild dependencies. 1997-03-18 16:37:42 +00:00
Ian Lance Taylor
9793039fc6 Based on patches from Jamie Lokier <jamie@rebellion.co.uk>:
* objdump.c: Include "demangle.h".
	(do_demangle): New static variable.
	(usage): Mention -C/--demangle.
	(long_options): Add "demangle".
	(objdump_print_symname): New static function.
	(objdump_print_addr_with_sym): Use objdump_print_symname.
	(disassemble_bytes): Likewise.
	(dump_reloc_set): Likewise.
	(dump_symbols): Demangle symbol name.
	(main): Handle -C.
	* binutils.texi, objdump.1: Document -C/--demangle.
1997-03-15 21:50:56 +00:00
Ian Lance Taylor
5c59269f50 * objdump.c (usage): Mention --no-show-raw-insn.
(long_options): Add "no-show-raw-insn".
	(disassemble_bytes): Handle --no-show-raw-insn.
	* binutils.texi, objdump.1: Document --no-show-raw-insn.
1997-03-15 20:37:45 +00:00
Martin Hunt
02053c20d5 Add d30v to cpus. 1997-03-06 19:58:37 +00:00
Michael Meissner
b185d567f5 Use change-log-mode, not indented-text-mode 1997-02-27 18:45:17 +00:00
Ian Lance Taylor
ab3a59cf4c * objdump.c (adjust_section_vma): New static variable.
(usage): Mention --adjust-section-vma.
	(OPTION_ADJUST_VMA): Define.
	(long_options): Add "addjust-vma".
	(display_bfd): If adjust_section_vma is not 0, add it to all the
	section addresses.
	(main): Handle OPTION_ADJUST_VMA.
	* binutils.texi, objdump.1: Document --adjust-vma.
1997-02-26 02:30:31 +00:00
Ian Lance Taylor
c05a9b3368 Thu Feb 13 21:34:43 1997 Klaus Kaempf (kkaempf@progis.de)
* config.h-vms: sbrk() is provided on openVMS/Alpha.
	* makefile.vms: allow compiling with current gcc snapshot.
1997-02-14 02:36:21 +00:00
Ian Lance Taylor
f2566b6114 * arsup.c, coffgrok.c, dlltool.c, nlmconv.c: Use xmalloc rather
than malloc.
1997-02-14 01:18:32 +00:00
Ian Lance Taylor
dd199a3ef7 * objdump.c (disassemble_data): Correct VMA argument to
find_symbol_for_address.  Improve handling of code with no symbol
	followed by code with a symbol.
1997-02-12 21:13:06 +00:00
Ian Lance Taylor
0988ea9f3e Wed Feb 12 12:16:47 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* objdump.c (disassemble_bytes): Make output of raw instructions
	work better for non-standard values of bytes_per_chunk and
	bytes_per_line.

I also fixed the spacing in the last patch.
1997-02-12 17:18:38 +00:00
Martin Hunt
33a795ddf3 Thu Feb 6 14:14:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
* objdump.c (disassemble_bytes): Added code to allow some control
 	over the way raw instructions are displayed.
1997-02-06 22:22:37 +00:00
Ian Lance Taylor
20bf2b0a01 * stabs.c (struct bincl_file): Add next_stack field.
(push_bincl): Put the new file on both bincl_list and
	bincl_stack.  Clear the file_types field.
	(pop_bincl): Use the next_stack field when popping the stack.
	Don't put the file on bincl_list.
	(find_excl): Include the file name when warning about an unfound
	N_EXCL.

	* debug.c (debug_type_samep): Don't crash if we are passed NULL.
PR 11465.
1997-02-06 17:46:46 +00:00
Ian Lance Taylor
70dce6775f Thu Feb 6 11:54:24 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
* objcopy.1: Add missing space after .B.
1997-02-06 16:55:10 +00:00
Ian Lance Taylor
8275482ce0 Fri Jan 31 10:33:07 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* objdump.c (disassemble_data): Initialize `aux.require_sec'.
1997-01-31 15:34:12 +00:00
Ian Lance Taylor
0948199a7b tweak last change 1997-01-29 19:08:53 +00:00
Ian Lance Taylor
54f74247cb fix copyrights, add NEWS entry 1997-01-29 19:00:54 +00:00
Ian Lance Taylor
51b8c41677 * objdump.c (objdump_print_value): Add skip_zeroes parameter.
Change all callers.
	(objdump_print_addr_with_sym): Likewise.  Call objdump_print_value
	to print address.
	(objdump_print_addr): New static function.
	(objdump_print_address): Just call objdump_print_addr.
	(disassemble_bytes): Print real address, not function offset.
	Skip a certain number of leading zeroes.

	* objdump.c (disassemble_zeroes): New static variable.
	(usage): Mention --disassemble-zeroes.
	(long_options): Add "disassemble-zeroes".
	(disassemble_bytes): Check disassemble_zeroes.
Changes requested by LSI.
1997-01-29 18:58:04 +00:00
Bob Manson
787f622077 Major revision to testsuites for cross-testing and DOS testing support. 1997-01-29 09:40:31 +00:00
Ian Lance Taylor
b4aabb244e * objdump.c (disassemble_bytes): Don't skip zeroes if the
disassembler has told us that we are in a branch delay slot.
1997-01-28 21:47:52 +00:00
Ian Lance Taylor
a6a7e138bf * size.c (berkeley_sum): Rewrite. Skip sections which are not
SEC_ALLOC.  Count SEC_READONLY sections as text.
1997-01-20 20:05:33 +00:00
Ian Lance Taylor
6ded661565 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE. 1996-12-31 20:43:28 +00:00
Ian Lance Taylor
d4dd7795d9 * configure.in: Work around bug in AC_FUNC_VFORK in autoconf 2.12.
* configure: Rebuild.
1996-12-27 16:20:58 +00:00
Stan Shebs
51cd0ae7db * mpw-make.sed: Use NewFolderRecursive for installation. 1996-12-19 19:29:38 +00:00
Ian Lance Taylor
9a442fe8a5 Based on patch from Andrew J Klossner <andrew@pogo.wv.tek.com>:
* objcopy.c (OPTION_WEAKEN): Define.
	(copy_options): Add "weaken".
	(copy_usage): Mention --weaken.
	(weaken): New static variable.
	(filter_symbols): Handle weaken.
	(copy_object): Call filter_symbols if weaken.
	(copy_main): Handle OPTION_WEAKEN.
	* binutils.texi, objcopy.1: Document --weaken.
PR 11272.
1996-12-19 18:16:45 +00:00
Ian Lance Taylor
9681fa4501 objdump --dynamic-reloc now works with ELF 1996-12-15 20:00:20 +00:00
Ian Lance Taylor
e763bd6fad * ieee.c (parse_ieee_bb): Always initialize namcopy to avoid gcc
warning about uninitialized variable.
	(ieee_read_cxx_class): Likewise, for pf.
	(ieee_enum_type): Likewise, for i.
1996-12-06 22:22:52 +00:00
Ian Lance Taylor
a1e48de01d * objdump.c (disassemble_data): Don't crash if there is no
symbol.
1996-11-25 21:54:02 +00:00
Angela Marie Thomas
ff0bc27973 finally remove errant mentions of Sanitize 1996-11-18 03:13:31 +00:00
Ian Lance Taylor
cbcfa12917 * binutils.texi: Add section on reporting bugs. 1996-11-01 20:08:52 +00:00
Ian Lance Taylor
fbc3fbe587 * stabs.c (struct stab_handle): Add bincl_list field.
(parse_stab): Pass value to push_bincl.  Call find_excl for
	N_EXCL.
	(struct bincl_file): Add hash, file and file_types fields.
	(push_bincl): Add hash parameter.  Save it in the new hash field.
	Save the file number in the new file field.
	(pop_bincl): Put the bincl_file on bincl_list, rather than freeing
	it.  Save the file types in the new file_types field.
	(find_excl): New static function.
PR 10980.
1996-11-01 03:06:49 +00:00
Ian Lance Taylor
0098633432 * ieee.c (ieee_lineno): Don't compare line number addresses to
info->highaddr (undo part of October 28 patch).
1996-11-01 02:21:50 +00:00
David Edelsohn
2b5c4499c2 (set_expected_cpus): Add m32r. 1996-10-31 18:59:51 +00:00
Ian Lance Taylor
af9168428d * objdump.c (objdump_print_value): Don't print the empty string
for zero.
1996-10-29 21:41:28 +00:00
Ian Lance Taylor
0788224594 * stabs.c (struct stab_handle): Add function_end field.
(start_stab): Initialize function_end.
	(finish_stab): Pass info->function_end to debug_end_function.
	(parse_stab): If info->function_end is set, use it as the address
	which ends a function.
1996-10-28 22:17:52 +00:00
Ian Lance Taylor
5317d6f945 * ieee.c (ieee_array_type): Remember the correct size. 1996-10-28 22:12:02 +00:00
Ian Lance Taylor
9720a1a70f * ieee.c (ieee_finish_compilation_unit): Permit coalescing ranges
that are up to 0x1000 bytes apart, not just 64.
	(ieee_add_bb11_blocks): Don't bother to emit a BB11 that is less
	than 0x100 bytes.
	(ieee_lineno): Only emit line numbers that are less than
	info->highaddr.
1996-10-28 22:01:06 +00:00
Ian Lance Taylor
59f2e5dbeb * ieee.c (struct ieee_defined_enum): Add defined field.
(ieee_enum_type): If the enum tag has been seen before but not
	defined, reuse the same type index, and define it.
	(ieee_tag_type): If this enum has not been defined, add an
	undefined entry to the list of enums.
PR 10946.
1996-10-25 20:57:15 +00:00
Ian Lance Taylor
653735e1ba * objdump.c (disassemble_bytes): Let the disassembler override the
number of bytes printed on a line.
1996-10-25 16:14:40 +00:00
Ian Lance Taylor
4cb99ff2a1 * objdump.c (prefix_addresses): New static variable.
(long_options): Add "prefix-addresses".
	(compare_symbols): Sort BSF_FUNCTION symbols before other
	symbols.
	(find_symbol_for_address): New static function, broken out of
	objdump_print_address.
	(objdump_print_addr_with_sym): New static function, broken out of
	objdump_print_address.
	(objdump_print_address): Call new functions.
	(disassemble_bytes): New static function, broken out of
	disassemble_data.  Change disassembly format, unless
	prefix_addresses is set.
	(disassemble_data): Call disassemble_bytes.  Unless
	prefix_addresses is set, disassemble in chunks headed by a
	symbol.
	* binutils.texi, objdump.1: Document --prefix-addresses.
1996-10-24 21:21:17 +00:00
Ian Lance Taylor
e32ded5231 * rddbg.c (read_section_stabs_debugging_info): Preserve the
backslash when concatenating multiple stabs strings.
1996-10-24 20:43:23 +00:00
David Edelsohn
e39174c3f8 * dlltool.c (scan_open_obj_file): Fix loop exit test.
Add missing parameter to def_exports.
1996-10-10 18:47:46 +00:00
Ian Lance Taylor
d39bedb220 * Makefile.in (LEX_OPTIONS): Set to empty string. -I -Cem is the
default for flex, and is not recognized by lex.
PR 10819.
1996-10-08 16:07:23 +00:00