Commit graph

521 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Michael Meissner
b185d567f5 Use change-log-mode, not indented-text-mode 1997-02-27 18:45:17 +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
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
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