Commit graph

380 commits

Author SHA1 Message Date
Stan Shebs
fe2750e101 Mon Jan 17 13:57:25 1994 Stan Shebs (shebs@andros.cygnus.com)
* objdump.c (stab_name): Allocate dynamically.
	(stab_print): Use pointers to strings instead of char arrays.
	(dump_stabs): Change alloc and init of arrays appropriately.
	(dump_stabs_1): Always decide whether to print stab_name or
	the stab's type number, if unnamed.
1994-01-17 22:03:42 +00:00
Ken Raeburn
446918c82c * binutils.all/objdump.exp: Trim list of format names expected, and accept any
known CPU type.
1994-01-17 21:58:53 +00:00
Ian Lance Taylor
46050fe4d0 * objcopy.c (strip_main, copy_main): Don't clobber the input file
if copy_file fails.
1994-01-14 21:44:44 +00:00
Ian Lance Taylor
1edb7335e6 * nlmconv.c (main): Warn about an attempt to use a shared library
with uninitialized data.
1994-01-14 20:58:43 +00:00
Ian Lance Taylor
e70f2bde6f * nlmconv.c (setup_sections): Make sure that we align the
output_offset of each input section appropriately.
1994-01-14 19:55:42 +00:00
Ian Lance Taylor
02a68547b9 * objdump.c (dump_relocs): Don't crash if section name is NULL. 1994-01-13 22:34:51 +00:00
Ken Raeburn
096aefc040 * bucomm.c (xmalloc, xrealloc): Deleted.
* bucomm.h (xmalloc, xrealloc): Prototypes fixed to correspond to libiberty
versions.
1994-01-09 20:37:30 +00:00
David MacKenzie
eae0423857 * binutils.texi: Add a chapter summarizing the ways to select
aspects of the target for each program.

	* objdump.c (long_options, usage): Add long equivalents for all
	remaining short options that lacked them.
	* binutils.texi objdump.1: Document them.

	* size.c (usage): Tweak usage message.
	* size.1: Add missing `=' in examples.

	* binutils.texi strip.1 objcopy.1 nlmconv.1 objcopy.c nlmconv.c:
	Use "--target=bfdname" as the option to select the BFD target,
	like nm and size already do.
	Reserve "--format=format" for textual output selection options, but
	for now keep old option names as obsolete for backward compatibility.

	* strings.c (main, strings_object_file, usage): Add --target option.
	* binutils.texi strings.1: Document it.
1994-01-06 19:49:06 +00:00
Ian Lance Taylor
9ef23d71b3 Various entries. 1993-12-23 17:29:32 +00:00
Ian Lance Taylor
6336b309dc gcc -Wall lint:
* ar.c (main): Put parens around assignment used as truth value.
	* objdump.c (display_bfd): Declare return value as void.
	(stab_print): Use "" instead of 0 to initialize array.
	(dump_stabs_1): Print vma using printf_vma.
	(display_info): Put parens around assignment used as truth value.
	* strings.c (print_strings): Cast printf arguments.
1993-12-23 17:29:06 +00:00
Ian Lance Taylor
6972011b96 * nlmheader.y (command): Accept MAP and FULLMAP without arguments.
* nlmconv.c (main): Change error message for MAP and FULLMAP.
1993-12-10 19:29:10 +00:00
Ian Lance Taylor
4e58b3ebfc * nlmconv.c (main): Warn about imported symbols that are not in
the IMPORT list even if the IMPORT keyword is not used.

Fixes PR 4006.
1993-12-10 05:51:25 +00:00
Ian Lance Taylor
0f6df2eee0 * nlmconv.c (debug, unlink_on_exit): New static variables.
(long_options): Add "debug" and "linker".
	(main): Handle -d and -l arguments.  Make command line input and
	output files optional.  Parse the command file before opening the
	BFD's, which requires storing more information in local variables.
	If INPUT names multiple files, link them together.  Use OUTPUT for
	the output file name if not named on command line.
	(show_usage): Changed for new options.
	(link_inputs): New function to automatically invoke linker to
	handle multiple INPUT files.
	(choose_temp_base_try, choose_temp_base, pexecute): New functions,
	mostly copied from gcc/gcc.c.
	* nlmconv.h (input_files, output_file): Declare.
	* nlmheader.y (input_files, output_file): Define.
	(command): Support INPUT with a string_list argument.  Support
	OUTPUT.
	(string_list): Renamed from module_list.
	* Makefile.in (nlmconv.o): Define LD_NAME based on
	program_transform_name.

Fixes PR 3974.
1993-12-10 05:33:49 +00:00
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