Commit Graph

517 Commits

Author SHA1 Message Date
Ian Lance Taylor
627703f982 * nlmheader.y (nlmheader_identify): New function. Use it to print
the program name just once, instead of with every error message.

Fixes PR 3973.
1993-12-08 18:10:11 +00:00
Ian Lance Taylor
419093bc9c * nlmconv.c (long_options): Changed --header-info to --header-file
to match documentation and usage message.
1993-12-06 21:12:48 +00:00
Jeff Law
e2767a0115 * objdump.c (dump_relocs): Avoid dereferencing a NULL sym_ptr_ptr
in a relocation.
1993-12-05 09:32:06 +00:00
Rob Savoye
00d8666550 * config/unix.exp: Add global before seeing if the variables for
nm, objdump, and size exist.
1993-12-03 04:07:15 +00:00
Rob Savoye
2031a59499 * Makefile.in: Remove some stuff from the site.exp file.
* config/unix.exp: Add global before seeing if the variables for
        nm, objdump, and size exist.
1993-12-03 04:06:44 +00:00
Ian Lance Taylor
3fa2ae535b Remove unused declaration from nlmconv.c. Add ChangeLog entry for
Sean's change.
1993-12-02 01:05:45 +00:00
Ian Lance Taylor
a30f59a465 Restore changes clobbered by Sean's check in. 1993-12-02 01:03:03 +00:00
Jeffrey Osier
5b0ba16d41 * binutils.texi: fix bug in nlmconv doc 1993-11-23 22:39:01 +00:00
Jeffrey Osier
4961ce5b9c binutils.texi: minor fix for nlmconv chapter 1993-11-19 21:12:49 +00:00
Jeffrey Osier
3883531f52 * nlmconv.1: new man page
* objcopy.1:  fixed format errors
1993-11-17 22:51:16 +00:00
Ian Lance Taylor
94333f2739 * Makefile.in: Use CFLAGS as well as LDFLAGS when linking. 1993-11-17 17:05:33 +00:00
David MacKenzie
80f31fbb6a fix typo 1993-11-17 12:52:07 +00:00
Jeff Law
cca528fa66 * objdump.c (dump_stabs): Handle stabs-in-som as implemented
by the new BFD SOM assembler.
1993-11-14 08:29:27 +00:00
David MacKenzie
938fa52b82 fix NAME hyphen 1993-11-13 15:16:23 +00:00
Ian Lance Taylor
ea5a60a1ea * nlmconv.c (i386_mangle_relocs): Adjust reloc address by
section output_offset.
1993-11-09 20:23:47 +00:00
Ken Raeburn
223deb2760 Trying to fix repository after cvs breakage... 1993-11-05 20:21:39 +00:00
Jeffrey Osier
94e9ad7723 binutils.texi: added nlmconv chapter 1993-11-05 20:13:42 +00:00
Ken Raeburn
87ce76559c First cut at sanitization, doc files, &c for gas/binutils releases 1993-11-05 19:21:35 +00:00
Jeffrey Wheat
51b7bf87a0 Rename RUNTESTFLAGS to RUNTEST_FLAGS 1993-11-04 16:08:03 +00:00
Rob Savoye
73e1e09b8e * config/udi.exp,unix.exp: Transform tool name.
* binutils.all/*.exp: Clear errorInfo after exec.
1993-11-03 18:15:18 +00:00
David MacKenzie
d6f8ba7eb5 objcopy.c (S_ISLNK): Define as 0 if there is no S_IFLNK. 1993-11-02 21:35:21 +00:00
David MacKenzie
eed5eeab82 put objcopy in alphabetical order 1993-10-30 02:24:39 +00:00
David MacKenzie
53a3e5b566 use xmalloc instead of malloc 1993-10-29 23:13:10 +00:00
Stan Shebs
e1ec9f078f Rename a variable that conflicts with Lynx 1993-10-29 18:15:01 +00:00
Stan Shebs
4ecf13a85b * ar.c (main): Always create the archive when quick appending,
even if no input files have been given.
1993-10-29 02:48:19 +00:00
Ian Lance Taylor
6a6d38c8d0 * nlmconv.c (main): Set sharedDebugRecordOffset and
sharedDebugRecordCount fields in extended header.
1993-10-27 16:21:14 +00:00
Ian Lance Taylor
90d8edfdf3 * nlmconv.c (main): Force moduleName field to upper case. 1993-10-27 16:06:56 +00:00
Ian Lance Taylor
8cfa495040 * objcopy.c (main): Give a usage message if there are too many
arguments.
1993-10-25 20:52:07 +00:00
Ken Raeburn
ca0a2b2df1 * Makefile.in (install-info): Rewrite to take advantage of VPATH, so FSF
distributions (with info files in $(srcdir)) install properly.
(DISTSTUFF): Build nlmheader.c too.
1993-10-25 17:38:20 +00:00
Mark Eichin
9ca0105226 note change to fprintf declaration 1993-10-22 18:15:53 +00:00
Mark Eichin
80d19ec1fc hide declaration of fprintf inside FPRINTF_ALREADY_DECLARED, because
this declaration can be wrong but there must *be* a declaration for
include/dis-asm.h to work.
1993-10-22 18:04:09 +00:00
Roland Pesch
650a49f055 Makefile.in (binutils.dvi): use TEXIDIR to find texinfo.tex
binutils.texi (ar): improve synopsis lines
              (strings): fix overfull box in synopsis
              (passim) remove some contractions
1993-10-01 00:11:58 +00:00
Ian Lance Taylor
9b018ecd1b * objdump.c (usage): Mention --stabs. 1993-09-23 05:21:21 +00:00
Ian Lance Taylor
c0367ba580 * objcopy.c (copy_object): Copy all applicable file flags.
(copy_file): Don't copy EXEC_P specially here.

This permits strip to generate an executable file on UnixWare;
it still does not actually strip the debugging information.
1993-09-23 05:08:21 +00:00
Ian Lance Taylor
b342eba6cd * nlmconv.c (main): Adjust data section size to correspond to bss
alignment adjustment.  Clear BSF_SECTION_SYM if symbol is moved to
	a different section.  Use time_t for time variable.
	(setup_sections): Only put sections with contents in output NLM.
	(i386_mangle_relocs): No symbols are common at this point.  Add
	casts to avoid warnings.
1993-09-20 23:31:57 +00:00
David MacKenzie
941ffd1960 * Makefile.in (install): Don't put strings in tooldir/bin. 1993-09-10 15:13:05 +00:00
Ian Lance Taylor
d5808c7cd8 * nlmconv.c (total_bss_size): Removed.
(main): Set the bss vma to always follow the data section.  Move
	symbols into new sections, and adjust values by output_offset.
	(setup_sections): Don't copy all sections, but instead point all
	text sections to .text, all data sections to .data, and all bss
	sections to .bss.
	(copy_sections): Adjust accordingly.
1993-09-06 19:42:12 +00:00
Ian Lance Taylor
a6762b1069 Only build nlmconv if configured for a NetWare target.
* configure.in: If we have some *-*-netware* target, or are using
	all targets, set BUILD_NLMCONV to $(NLMCONV_PROG) in Makefile.
	* Makefile.in (PROGS): Use $(BUILD_NLMCONV) rather than
	$(NLMCONV_PROG).
1993-09-02 16:36:36 +00:00
Ken Raeburn
195d1adff1 * objdump.c (ARCH_all): Define ARCH_hppa too.
(dump_headers): Don't test for SEC_BALIGN if it's not defined by bfd.h.

(The latter is done with #ifdef in case it turns out SEC_BALIGN has to be
put back.  I didn't *see* any uses of it besides this one, though.)
1993-08-31 18:15:50 +00:00
Ian Lance Taylor
ef5b53687b * nlmconv.c (main): Force creation of .bss section. Set up the
sections before looking at the symbols.  Move all common symbols
	into .bss section.  Automatically define _edata and _end.  Only
	export symbols in the export list, with multiple prefixes if
	necessary.  Warn if no version.  Always create extended header.
	Set date automatically if not already set.
	(setup_sections): Count size of bss sections.
	(mangle_relocs, i386_mangle_relocs): Accept section argument, and
	take reloc_count as a changeable pointer; changed callers.
	(i386_mangle_relocs): Remove PC relative relocs within a section,
	as they require no adjustment.
	* nlmheader.y: Fixed memory allocation throughout: token STRING is
	now allocated on the heap, and freed if not needed.  Null
	terminated copyright message.  Accept version with only two
	strings.
	(symbol_list_opt): New nonterminal, either symbol_list or empty.
	(symbol_list): Use left recursion to avoid overflowing parser
	stack.
	(yylex): Rearranged beginning of line check.  Accept quoted
	strings using single quotes.  End generic argument at comment
	character or parentheses.
	(string_list_append): Fixed.
	(string_list_append1): New function.
1993-08-31 17:47:58 +00:00
Ian Lance Taylor
f993f087da * Makefile.in (objdump.o): Depend upon config.status to notice
--with-targets changes.
	(nlmconv.o): Depend upon bucomm.h.
1993-08-31 17:46:56 +00:00
David D. Zuhn
af9508b2fb nuke chill stuff from Makefile 1993-08-23 19:46:22 +00:00
David MacKenzie
dc4fba51d2 remove mention of nm 1993-08-13 00:11:22 +00:00
David MacKenzie
d6a4c37569 * Makefile.in ($(NM_PROG)): Depend on demangle.o.
(demangle.o): New target.
	(cplus-dem.o): Depend on it, to force compilation order when doing
	parallel compiles.

	* nm.c (print_symbol_info_{bsd,sysv,posix}): Take a bfd arg.
	(struct output_fns print_symbol_info): Ditto.
	(long_options, usage, main): Add -C --demangle option.
	(print_symname): New function, demangling if requested.
	(print_symbols, print_symbol_info_{bsd,sysv,posix}): Use it.
1993-08-13 00:02:25 +00:00
David MacKenzie
bba04d9321 Wed Aug 11 22:57:23 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* Makefile.in: Put CFLAGS last in compilation rules and omit from
	linking rules.  Use ARCHDEFS to compile objdump.c.
	Update dependencies.
	* configure.in: Construct ARCHDEFS based on the BFD target makefile
	fragments.
	* objdump.c: Conditionalize calls to the print_insn_ARCH functions
	according to ARCHDEFS.
1993-08-12 18:00:36 +00:00
Ian Lance Taylor
ee0af83fbe * ar.c: Removed obsolete and non-functional GNU960 code. 1993-08-12 15:27:38 +00:00
Ian Lance Taylor
29078b295d * size.c (berkeley_sum): New function.
(bsssize, datasize, textsize): New global variables.
	(bss_section_name, data_section_name, text_section_name): Removed.
	(print_berkeley_format): Map berkeley_sum over all the sections,
	rather than only reporting sizes of specifically named sections.
	* Makefile.in ($(OBJDUMP_PROG)): Removed dependency on size.o.
1993-08-11 20:14:37 +00:00
Ian Lance Taylor
d92aadfd5a Write out all the header information, except the SHARELIB stuff which
is still not implemented.
1993-08-11 18:30:39 +00:00
Ian Lance Taylor
d130c9c5b9 Added new files. 1993-08-10 17:50:28 +00:00
Ian Lance Taylor
4f55ef5bdb Checkpoint of NLM conversion program.
* nlmconv.c, nlmconv.h, nlmheader.y: New files for program to
	convert object files into NetWare Loadable Modules.
	* Makefile.in (NLMCONV_PROG): New macro, define to be nlmconv.
	(PROGS): Add NLMCONV_PROG.
	(nlmheader.c, nlmheader.o, nlmconv.o, $(NLMCONV_PROG)): New
	targets.
1993-08-10 17:49:44 +00:00
David MacKenzie
c2b781a26e make failure nonfatal 1993-08-05 00:20:27 +00:00
David MacKenzie
ed78872a7f fix doc bug 1993-08-04 00:39:19 +00:00
David MacKenzie
68dd529571 add nm -B 1993-08-02 18:41:14 +00:00
David MacKenzie
de793e5f22 posix.2 final changes 1993-07-17 01:10:10 +00:00
David MacKenzie
a2cdf246df remove /dev/null kludge 1993-07-16 22:24:10 +00:00
Ian Lance Taylor
b3a2b4975f * objdump.c (disassemble_data): Handle the m88k.
(display_bfd): Use bfd_errmsg, rather than just claiming that the
	bfd is not an object file.
1993-07-15 16:46:50 +00:00
K. Richard Pixley
7d8d708459 * Makefile.in (TAGS): make work again by naming directories
explicitly rather than depending on undefined macros.
	  (INSTALL_XFORM): correct bad install target.
1993-07-13 00:57:27 +00:00
David MacKenzie
2470e6fa6f * Doc fixes. 1993-07-03 00:01:44 +00:00
David MacKenzie
b26ac61376 * Makefile.in: Note dependencies on bucomm.h.
(cplus-dem.o): Link c++filt with version.o.

	* strings.c: Include bucomm.h and add prototypes to other decls.
	Remove -h option.

	* bucomm.h: Declare xrealloc.

	* nm.c, objcopy.c, objdump.c, size.c, strings.c (main, usage): Add
	--help option.  Put "GNU" in the version message.
	(usage): Take stream and exit status as args.
	(main): Pass new args to usage.
1993-06-28 02:17:13 +00:00
David MacKenzie
fa02194747 * Fix a couple of typos. 1993-06-26 06:42:46 +00:00
David MacKenzie
4f15fb276d * Makefile.in: Add rules for strings. 1993-06-26 06:38:57 +00:00
David MacKenzie
ba7c8e2905 * strings.c, strings.1: New files.
* binutils.texi: Document strings.
1993-06-26 06:37:17 +00:00
Ken Raeburn
d086adf85a Elf bfd routines and types are now size-independent again. 1993-06-26 00:47:23 +00:00
Per Bothner
3ae36cb686 * objdump.c (syms2): Removed unused variable.
* objdump.c (remove_useless_symbols):  New function.
	* objdump.c (comp):  Simplify.
	* objdump.c (dis-assemble_data):  Make simpler and more
	efficient how we filter out useless symbols:  Just filter
	BEFORE the sort (using remove_useless_symbols).
	* objdump.c (objdump_print_address):  Simplify.
	Change output syntax to match gdb.
1993-06-18 21:37:21 +00:00
Steve Chamberlain
a3a0a4d0a5 Look in the right place for bfd.h. 1993-06-18 21:08:36 +00:00
David D. Zuhn
5ebaf24b77 single-quote $program_transform_name 1993-06-18 19:25:38 +00:00
David D. Zuhn
c8fee4a53e canonicalize install.sh location 1993-06-18 00:35:08 +00:00
David D. Zuhn
238aa238e2 * Makefile.in (install, install-info): remove parentdir support,
use INSTALL_XFORM; define INSTALL_XFORM
1993-06-16 00:45:43 +00:00
Ian Lance Taylor
672f4045d6 o - size
Currently assumes that the only relevant sections are named .text,
    .data and either .bss or .stack.  This is not very general, and it
    doesn't work for ECOFF.
1993-06-14 20:17:35 +00:00
David MacKenzie
5dfb600429 Add some nm comments. 1993-06-11 18:39:25 +00:00
Per Bothner
f63e502ba1 * objcopy.c (copy_object): Fix bad size passed to xmalloc(). 1993-06-11 00:34:26 +00:00
Per Bothner
0019b19054 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
* configure.in:  No longer need to configure to get sysdep.h.
	* objcopy.c (copy_object):  Fix symbol table handling.
1993-06-07 19:45:12 +00:00
David D. Zuhn
d6391983cb update INFO-DIR-ENTRY 1993-06-04 23:24:37 +00:00
David D. Zuhn
4f79b3c547 change srctriggeer to a local FILE not a DIRECTORY 1993-06-04 17:55:08 +00:00
Jeffrey Osier
1889f66266 * c++filt.1: fixed %^*(^% typo 1993-06-03 19:25:36 +00:00
Ken Raeburn
d34c55c6e1 hack backquoted command in Makefile.in to always have zero exit status 1993-06-03 18:16:02 +00:00
Jeffrey Osier
3ac620d408 * Makefile.in: added c++filt and objcopy to MANPAGES variable
* .Sanitize:  keep c++filt.1 and objcopy.1
1993-06-03 17:44:34 +00:00
David D. Zuhn
5a07035505 rename LOADLIBES to EXTRALIBS 1993-06-03 07:34:15 +00:00
Jeffrey Osier
08ad992164 * c++filt.1, objcopy.1: new man pages 1993-06-03 01:31:51 +00:00
Jeffrey Osier
38e799d231 binutils.texi: put in zoo's info-dir entry stuff (it's cleaner) 1993-06-03 00:29:32 +00:00
Jeffrey Osier
5eac46ae03 binutils.texi: final tweaks for c++filt chapter 1993-06-02 23:43:10 +00:00
Rob Savoye
4cf03eb2e7 Add an install-info target too. 1993-06-01 01:40:59 +00:00
Rob Savoye
ece87dfb94 Add info target. 1993-06-01 01:37:45 +00:00
Per Bothner
a9f5cf7be2 * Makefile.in (install): Also install ar and ranlib in
$(tooldir)/bin;  needed for building libgcc.a.
	* objdump.c (objdump_print_address):  Fix the check
	"coincidental" label matches by dis-allowing undefined
	or com symbols.
1993-05-28 22:07:47 +00:00
Rob Savoye
47a488df26 Add a blank install target so the top level makefile won't die. 1993-05-28 04:31:51 +00:00
Jeffrey Osier
6c69b6bde1 * biutils.texi: revised c++filt chapter 1993-05-28 00:00:59 +00:00
K. Richard Pixley
87756e15db added things-to-lose sections 1993-05-27 06:44:29 +00:00
Ian Lance Taylor
4447efa217 * Makefile.in (FLAGS_TO_PASS): Pass down CC and CFLAGS. 1993-05-27 00:28:16 +00:00
Rob Savoye
b64d5e491a configure.in template that supports *only* make check. (for releases) 1993-05-26 01:55:00 +00:00
Rob Savoye
2a775d5158 Makefile fragment that supports *only* make check. (for releases) 1993-05-26 01:44:49 +00:00
Ken Raeburn
875607cb0d elf32 updates 1993-05-25 20:39:21 +00:00
Ken Raeburn
f50af42bbf Makefile.in (DISTSTUFF): Don't build binutils.mm.
objdump.c (slurp_symtab): Print warning for bad symbol table.
1993-05-25 04:28:56 +00:00
David D. Zuhn
8a6d5d4f93 INFO-DIR-ENTRY formatting tweaks 1993-05-24 22:33:43 +00:00
David MacKenzie
6cfbdb50e6 Move printing from bfd to nm and add POSIX and SysV compatibility. 1993-05-21 21:09:58 +00:00
David MacKenzie
386803c0be Improve error messages. 1993-05-21 19:39:15 +00:00
Ian Lance Taylor
efc7599b10 lib directory is no longer present 1993-05-17 19:32:50 +00:00
Roland Pesch
e32341a77c Minor cleanups to c++filt node, and copyright dates. 1993-05-15 00:35:08 +00:00
Per Bothner
b6216af269 * Makefile.in (underscore.c): Automatically generate
(using nm) a file with the variable prepends_underscore.
	* Makefile.in (c++filt):  Link underscore.o with cplus-dem.o
	so that initial underscores get removed iff appropriate.
	* binutils.texi:  Preliminary documentation for c++filt.
	* Makefile.in, binutils.texi:  Set to version 2.2.
1993-05-15 00:25:03 +00:00
Per Bothner
20e54bf2c2 * NEWS: Mention copy->objcopy renaming and new c++filt program. 1993-05-14 18:13:52 +00:00
Ian Lance Taylor
df14d9573c * objcopy.c: Renamed from copy.c, updated comments accordingly.
* Makefile.in, binutils.texi: Renamed copy to objcopy.
	* is-strip.c, maybe-strip.c, not-strip.c: Updated comments for
	rename of copy to objcopy.
1993-05-12 19:08:53 +00:00
Per Bothner
1269d44115 * binutils.texi (strip, -v option): Fix typo. 1993-05-11 00:21:13 +00:00
Ian Lance Taylor
9fd2cc00be * Makefile.in (RUNTEST): Define.
(FLAGS_TO_PASS): Pass down RUNTEST.
1993-05-07 20:58:26 +00:00
Per Bothner
f6dddd4e1d * Makefile.in: Change definition of $(tooldir) to match FSF. 1993-05-04 02:12:50 +00:00
David MacKenzie
c3f471a401 Fix typo. 1993-04-30 17:42:22 +00:00
David MacKenzie
690f0433d0 Had a duplicate listing for -v. 1993-04-30 01:09:10 +00:00
David MacKenzie
4d9b5d5a33 Fix up usage summaries and examples. Document a few missing options. 1993-04-29 18:17:10 +00:00
David MacKenzie
be64eeae07 More fixes to usage messages. 1993-04-29 18:15:53 +00:00
David MacKenzie
1f72cab137 Document missing options. Use -- instead of + for long options. 1993-04-29 18:15:00 +00:00
David MacKenzie
3602ba8163 Add hyphens in usage messages. 1993-04-29 06:55:21 +00:00
David MacKenzie
d244269886 Clean up usage messages and option parsers.
Add program name to some error messages.
1993-04-29 06:45:39 +00:00
David MacKenzie
b703c078e2 Fix use of @dots and strip usage message. 1993-04-29 05:52:59 +00:00
David MacKenzie
ec40bbb87f Clean up English and Texinfo usage. 1993-04-29 03:39:02 +00:00
Steve Chamberlain
6f57570423 Support for the SH. 1993-04-27 01:39:38 +00:00
Rob Savoye
fff5d9ed97 Remove so cvs -P will work right. 1993-04-22 05:02:03 +00:00
Rob Savoye
fc81b8baaa Moved the only file to dejagnu/lib, so this is empty. 1993-04-22 04:47:38 +00:00
Rob Savoye
a0aabdf178 Moved to dejagnu/lib since it's now real generic. 1993-04-22 04:46:46 +00:00
Rob Savoye
e0ba174efd Updated since all the init module names changed. 1993-04-22 04:45:31 +00:00
Rob Savoye
11fdc75ce6 hange nm.all to binutils.all. Remove chill stuff. 1993-04-22 04:42:37 +00:00
Rob Savoye
fdee169611 Add testsuite directory. 1993-04-22 04:38:31 +00:00
Rob Savoye
39287eb73f * Makefile.in: Added FLAGS_TO_PASS so tests get run on freshly
built binaries if they exist. (otherwise the path)
1993-04-19 21:08:32 +00:00
Rob Savoye
0fd9814fe5 Mostly cleanup. Doesn't prints it's own pass/fail message anymore. 1993-04-19 21:05:03 +00:00
Rob Savoye
9ef534b90d Gets names to test from higher level makefile. 1993-04-19 20:55:11 +00:00
Ian Lance Taylor
545a27683e Please don't add declarations of random system functions to general
source files if you can possibly avoid it.  They inevitably fail on
some system somewhere.

	* objdump.c: Removed useless fprintf declaration.
1993-04-09 18:22:57 +00:00
Rob Savoye
a54a5a9ebc Rename to util-defs.exp and turn into generic procedures. 1993-04-08 05:26:10 +00:00
Rob Savoye
3e7f73db77 * Makefile.in: Changed check target to use DejaGnu. 1993-04-08 05:23:39 +00:00
Rob Savoye
6edcdd0ddb All use new util_test proc. 1993-04-08 05:16:13 +00:00
Rob Savoye
c50fa6b3c6 Replaced by just $(target_os) name. Use new util_test proc. 1993-04-08 05:15:20 +00:00
Rob Savoye
c3361cd3ca Changed "make check" target to use DejaGnu. 1993-04-08 05:12:06 +00:00
Rob Savoye
e57072116f Get rid of all the links. 1993-04-08 05:10:49 +00:00
Jim Kingdon
720b3aed42 New print_address for disassemblers, merge a29k and i960 disassemblers 1993-04-02 00:18:47 +00:00
Jim Kingdon
f79feb23c0 remove another reference to sparc-pinsn.c 1993-04-01 18:36:14 +00:00
Jim Kingdon
3ac166b105 this is part of the binutils/gdb sparc disassembler merge 1993-04-01 16:58:41 +00:00
Jim Kingdon
f7ed13c7d5 merge binutils and gdb sparc disassemblers 1993-04-01 16:56:06 +00:00
Jim Kingdon
5d0734a7d7 provide a new interface (using read_memory_func) to call the disassemblers
which copes with errors in a plausible way
1993-03-31 21:43:25 +00:00
Ken Raeburn
12da177528 objdump.c: Use correct prototype of fprintf, else it won't compile on ANSI
C systems.
1993-03-29 13:22:16 +00:00
Steve Chamberlain
9d19b85b6a add h8500 1993-03-19 22:41:15 +00:00
Jim Kingdon
452b40b631 mention long options in usage message 1993-03-19 18:58:10 +00:00
Per Bothner
229c82cb94 * nm.c: Modify behavior of -o flag for archives to match
BSD4.4 and Sunos 4:  Prefix archive name before each line.
1993-03-19 01:56:10 +00:00
Per Bothner
2e8adbd7f4 * m68k-pinsn.c: Removed. Subsumed by ../opcodes/m68k-dis.c.
* i386-pinsn.c:  Removed.  Subsumed by ../opcodes/i386-dis.c.
	* Makefile.in:  Adjust accordingly.
	* objdump.c:  Support new-style disassemblers (ones that use
	the interface of ../include/dis-asm.h).
1993-03-19 00:12:50 +00:00
Ian Lance Taylor
16788ca9fd Removed obsolete Makefile.dos. 1993-03-09 18:16:38 +00:00
Per Bothner
7f7b0a77db * Makefile.in: When making tar file, remove texinfo/*,
except for texinfo/texinfo.tex.
1993-02-26 00:14:49 +00:00
Per Bothner
3048fb38f0 * ardup.c: Add extern declaration of strdup.
* Makefile.in (testsuite):  Add 'else true' since otherwise
	Ultrix /bin/sh complains.
1993-02-25 23:59:10 +00:00
Per Bothner
ee948e4e23 In comment on how to make tar file, fix cvs tag name binutils->ld_utils. 1993-02-25 04:04:00 +00:00
Per Bothner
eba174cea6 * Makefile.in: Set VERSION to 2.1.
* README, NEWS: Updates.
	* nm.c:  Add -v as a synonym for -V.
1993-02-25 03:48:13 +00:00
Mike Werner
4f8b1219bf * configure.in: added testsuite to configdirs.
* Makefile.in: added support for building testsuite.
1993-02-24 03:02:37 +00:00
Per Bothner
7721e5b345 * objdump.c (disassemble_data): Print function names when
given by bfd_find_nearest_line.  If not - still print
	line numbers.
1993-02-23 07:00:32 +00:00
Mike Werner
0545aa1ae9 * binutils/testsuite: made modifications to testcases, etc., to allow
them to work properly  given the reorganization of deja-gnu and the
	relocation of the testcases from deja-gnu to a "tool" subdirectory.
1993-02-22 16:12:45 +00:00
Ken Raeburn
d9971b8304 from minyard@bnr.ca: free up copy of section contents each time through loop 1993-02-22 15:31:30 +00:00
John Gilmore
699bfeaeb9 For MTW 1993-02-21 19:55:15 +00:00
Mike Werner
2614a439a8 * binutils/testsuite: Initial creation of binutils/testsuite.
Migrated dejagnu testcases and support files for testing nm to
	binutils/testsuite from deja-gnu.  These files were moved "as is"
	with no modifications.	This migration is part of a major overhaul
	of dejagnu.  The modifications to these testcases, etc., which
	will allow them to work with the new version of dejagnu will be
	made in a future update.
1993-02-21 19:34:51 +00:00
David D. Zuhn
7c8592905d removing excess verbosity 1993-02-13 10:15:53 +00:00
David D. Zuhn
9c994225bf keep NEWS, remove RCS cruft 1993-02-13 08:52:56 +00:00
Fred Fish
c921e2aa7b * Makefile.in (LIBIBERTY_SRC_DIR, LIBIBERTY_BIN_DIR): New macros.
* Makefile.in (LIBIBERTY):  Use LIBIBERTY_BIN_DIR.
	* Makefile.in (DEMANGLER_PROG):  New program to build.  Add macro
	and rule.
	* Makefile.in (PROGS):  Add DEMANGLER_PROG.
1993-02-12 18:08:35 +00:00
Ian Lance Taylor
a625bbb1e8 Tue Jan 26 11:56:33 1993 Ian Lance Taylor (ian@cygnus.com)
* copy.c, nm.c, objdump.c, size.c: Use new bfd_is_com_section
	macro rather than checking for equality to bfd_com_section.
1993-01-26 19:57:59 +00:00
Per Bothner
fc561ccda8 * arsup.h (interactive), bucomm.h (program_name): Prefix
with 'extern', to avoid warnings from some compilers.
1993-01-06 23:19:45 +00:00
Steve Chamberlain
dc5dcabb9b >
* arparse.y: fix unnecessary shift/reduce
1993-01-06 23:16:17 +00:00
Per Bothner
eeece52d14 * Makefile.in: Make check depend on all.
* Makefile.in (distclean): Remove sysdep.h.
	* size.c:  Use %u format where appropriate.
	* objdump.c:  Standardize:  L_SET -> SEEK_SET.
	* objdump.c:  Use new macro bfd_asymbol_bfd.
	* configure.in:  Allow std-host as the default ${mys_host}.
1992-12-22 23:52:26 +00:00
Per Bothner
e2fe2df4d3 * Makefile.in (dist): Fix permissions before release.
* size.c:  Use bfd_size_type (and long) where appropriate.
	* ar.c:  Make writing a map the default, to be compatible
	with SYSV and Posix.2.  Remove some bogus kludges that
	handled __.SYMDEF directly.
	* NEWS:  New file.
1992-12-16 02:13:17 +00:00
K. Richard Pixley
43bbd567f2 recording file death 1992-12-08 04:59:31 +00:00
David D. Zuhn
b19753b911 include file handling changes 1992-11-08 00:01:46 +00:00
David D. Zuhn
3f97524f59 more include changes 1992-11-08 00:00:58 +00:00
John Gilmore
a644baaa03 * i960-pinsn.c (MEM_MAX, MEM_SIZ): Set upper bound properly. 1992-11-06 08:14:14 +00:00
John Gilmore
e87cc81623 Missed one use of PROTO. 1992-11-05 12:08:17 +00:00
John Gilmore
151a6341c6 Clean up some old BFD ansification macros.
* arsup.h, bucomm.h, objdump.h:  Remove EXFUN from binutils.
It still remains as a local macro in gmalloc.c, which is derived
from some other copy of GNU Malloc somewhere (FIXME).

* ar.c, objdump.c, size.c:  Replace EXFUN with PROTO.  Make static
fns really static.
* arsup.h:  Declare extract_files.
1992-11-05 12:01:44 +00:00
Ian Lance Taylor
42b600fa46 Mon Nov 2 12:36:14 1992 Ian Lance Taylor (ian@cygnus.com)
* config/delta88.mh, config/hp300.mh, config/hppahpux.mh,
	config/i386v.mh: removed -DUSG from HDEFINES.
	hosts/delta88.h, hosts/hp300.h, hosts/hppahpux.h, hosts/i386v.h:
	defined USE_UTIME.
	hosts/i386v.h: don't define POSIX_UTIME.
1992-11-02 20:43:55 +00:00
Per Bothner
918c2f61e5 * binutils.tex: Document yesterday's changes to strip and copy. 1992-10-15 20:59:17 +00:00
Per Bothner
cc8787efe1 * copy.c: Re-do command-line parsing to use getopt_long().
Add long option names.  Re-think option letters to be more
	consistent.
	* copy.c:  New function filter_symbols() for stripping only
	debug-symbols and/or local symbols.  Use these to support
	the previously-missing options of the old FSF strip.
1992-10-14 20:35:29 +00:00
Roland Pesch
4928b97be9 Move "@c @smallbook" and "@c @cropmarks" out of titlepage, so if someone
uncomments them they affect the whole document...
1992-10-13 23:19:05 +00:00
John Gilmore
1bf20983a2 * configure.in (host): Use ${srcdir}/../bfd/configure.host rather
than repeating a copy of it here.
1992-10-13 08:25:08 +00:00
Ken Raeburn
7c9264045a * copy.c (main): Even if is_strip, accept -d argument indicating alternate
output format.  Needed by gdb for Nindy.

* m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
1992-10-08 01:13:12 +00:00
Jeffrey Osier
e31e9a8d00 added copy documentation per Roland 1992-10-06 23:36:54 +00:00
Per Bothner
8d6ae8fcc5 * Makefile.in (*clean rules): Some cleaning up.
* Makefile.in (dist): Make diststuff in gprof for a dist.
	* ar.c (do_show_version):  New function.
	* ar.c (main):  Fix so "ar -V" works.
1992-10-06 21:25:08 +00:00
John Gilmore
c005c66cca * i960-pinsn.c: Change bzero to memset.
* sparc-pinsn.c:  Change index to strchr.
1992-09-26 05:41:54 +00:00
Ian Lance Taylor
e69e7dd6c0 Patches from WRS:
Mon Sep 21 14:39:56 1992  Ian Lance Taylor  (ian@cygnus.com)

	* m68k-pinsn (print_insn_arg, fetch_arg): added support for
	operands to memory management instructions, from WRS.
1992-09-21 22:29:51 +00:00
Ian Lance Taylor
94a4a00523 Changes to make an installed cross-compiler find everything correctly.
Tue Sep 15 15:26:38 1992  Ian Lance Taylor  (ian@cygnus.com)

	* Makefile.in (install): if $(tooldir) exists, install nm and
	strip in $(tooldir)/bin.
1992-09-15 23:26:41 +00:00
Per Bothner
a51d4b418b * Makefile.in: Let's call it version 2.0. 1992-09-03 21:14:53 +00:00
Per Bothner
947b85258d * Makefile.in: Bump to version 0.98.
* TODO, README:  Minor updates.
1992-09-03 06:01:09 +00:00
Per Bothner
8d5d0e117f * Makefile.in: Added mostlyclean, distclean rules,
and cleaned up clean, realclean.
1992-09-02 07:26:15 +00:00
Ian Lance Taylor
3790af1d33 Brought forward from p3:
Sun Aug 30 21:18:59 1992  Ian Lance Taylor  (ian@cygnus.com)

	* Makefile.in: map program names through program_transform_name
	when installing.
1992-09-01 01:13:11 +00:00
Mike Werner
fd9d7e4a76 Link libopcodes with objdump 1992-08-31 23:23:34 +00:00
Steve Chamberlain
a4ef860176 Disassemble for z8k and build using opcode library 1992-08-31 22:28:08 +00:00
Jim Wilson
93fd00fbbf Handle new v9 insn argument codes, and delete support for obsolete ones.
Otherwise not updated or tested, since v9 support is obviously incomplete,
and it can't possibly work right without some effort.
1992-08-31 17:03:47 +00:00
Per Bothner
455a0d2890 * Makefile.in: Bump to versions 1.97.90.
* cplus-dem.c:  Removed.  Was nowhere used - and if some
	programs are changed to to demangling should now use the
	versions in libiberty.
1992-08-31 01:11:18 +00:00
Brendan Kehoe
582e962abd * configure.in: add we32k 1992-08-27 22:04:34 +00:00
Steve Chamberlain
817b5a60ab * ar.c (map_over_members): if the element of the archive has a
null name, fill it in.

	* nm.c (do_one_rel_file): only warn if a bfd's flags say there
	will be symbols and there aren't any.
1992-08-24 22:37:04 +00:00
Per Bothner
ce6a2aabc1 Re-do change for revision 1.28 that got trashed by 1.29. 1992-08-20 04:04:50 +00:00
Ian Lance Taylor
1090c41efc This is for PR 628.
Wed Aug 19 11:20:25 1992  Ian Lance Taylor  (ian@cygnus.com)

	* m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
1992-08-19 18:27:12 +00:00
Rob Savoye
305c1e74c3 Added option to print the version number. 1992-08-19 03:48:17 +00:00
Rob Savoye
5c670bc122 Added -V option to print version number. 1992-08-19 03:45:36 +00:00
Rob Savoye
249c6fc0d6 Added +version (-V) option to print version number. 1992-08-19 03:25:51 +00:00
Rob Savoye
8fb94c7a78 Added -V option to print the version number. 1992-08-19 03:24:16 +00:00
Ian Lance Taylor
f478fcf663 Moved in from p3:
Tue Aug 18 13:28:44 1992  Ian Lance Taylor  (ian@cygnus.com)

	* config/mh-apollo68v: removed -g from CC definition.

	* Makefile.in: always create installation directories.
1992-08-18 20:34:26 +00:00
Per Bothner
d6b38bfb24 * m68k-pinsn.c: Minor fix in style of output (don't use
range to indicate floating point control registers).
1992-08-18 01:35:31 +00:00
Per Bothner
a00721fc4a * ar.c (main): Don't *always* set the verbose flag! 1992-08-12 06:46:02 +00:00
Roland Pesch
1815e42cc3 Strip has mutated; remove all existing option documentation, document
only -v (verbose).
1992-08-08 01:13:23 +00:00
Per Bothner
ee9d275b29 * copy.c: When is_strip (because it is invoked as the strip
program), follow traditional argv processing:
	'strip file1 file2' now strips file1 and file2, rather
	than stripping file1 (as input), leaving output in file2.
1992-08-05 18:46:00 +00:00
David D. Zuhn
d4aea631b3 fix INFO-DIR-ENTRY 1992-08-04 08:24:09 +00:00
David Henkel-Wallace
e49dde896f more hp config stuff via xpro 1992-07-23 18:41:54 +00:00
K. Richard Pixley
d1289d7234 removed rcsids 1992-07-18 01:40:47 +00:00
K. Richard Pixley
249608be94 removed rcsid 1992-07-16 23:56:00 +00:00