Commit Graph

332 Commits

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