Commit graph

922 commits

Author SHA1 Message Date
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