binutils-gdb/binutils
Ian Lance Taylor 67c8c90141 * objdump.c (endian): New static variable.
(usage): Mention -EB/-EL/--endian.
	(long_options): Add "endian".
	(disassemble_data): If endianness was specified, replace
	abfd->xvec with a copy of itself with the given endianness.
	(main): Handle -EB/-EL/--endian.
	* binutils.texi, objdump.1: Mention -EB/-EL/--endian.
1996-06-24 20:49:28 +00:00
..
testsuite
.Sanitize Tue Jun 18 15:03:44 1996 Klaus Kaempf <kkaempf@progis.de> 1996-06-18 19:10:39 +00:00
acconfig.h
ar.1
ar.c
arlex.l
arparse.y
arsup.c
arsup.h
binutils.texi * objdump.c (endian): New static variable. 1996-06-24 20:49:28 +00:00
bucomm.c
bucomm.h
budbg.h * stabs.c (struct stab_handle): Add field abfd. 1996-03-22 20:51:47 +00:00
ChangeLog * configure.in: On alpha*-*-osf*, link against libbfd.a if not 1996-06-24 16:04:19 +00:00
coffdump.c
coffgrok.c
coffgrok.h
config.h-vms Tue Jun 18 15:03:44 1996 Klaus Kaempf <kkaempf@progis.de> 1996-06-18 19:10:39 +00:00
config.in
configure * configure: Rebuild with autoconf 2.8. 1996-03-12 17:22:07 +00:00
configure.bat
configure.in * configure.in: Substitute RPATH_ENVVAR. 1996-02-15 18:57:34 +00:00
cxxfilt.man
debug.c tweak last patch 1996-03-12 17:26:23 +00:00
debug.h
deflex.l
defparse.y
dep-in.sed
dlltool.c
filemode.c
ieee.c * ieee.c (struct ieee_handle): Add fields complex_float_index and 1996-03-20 21:49:31 +00:00
is-ranlib.c
is-strip.c
mac-binutils.r
Makefile.in * rdcoff.c: New file. 1996-04-16 17:53:58 +00:00
makefile.vms Tue Jun 18 15:03:44 1996 Klaus Kaempf <kkaempf@progis.de> 1996-06-18 19:10:39 +00:00
maybe-ranlib.c
maybe-strip.c
mpw-config.in
mpw-make.sed * mpw-make.sed: Update to handle shared library support. 1996-02-27 02:13:37 +00:00
NEWS * objdump.c (dump_reloc_set): Add sec parameter. Change all 1996-06-12 03:14:14 +00:00
nlmconv.1 * nlmconv.1: Changed to be recognized by catman -w on Solaris. 1996-03-29 19:36:44 +00:00
nlmconv.c
nlmconv.h
nlmheader.y
nm.1 * nm.c (struct get_relocs_info): Define. 1996-06-12 18:59:47 +00:00
nm.c
not-ranlib.c
not-strip.c
objcopy.1
objcopy.c
objdump.1 * objdump.c (endian): New static variable. 1996-06-24 20:49:28 +00:00
objdump.c * objdump.c (compare_symbols): Sort symbols whose names start with 1996-04-23 16:58:18 +00:00
prdbg.c * debug.c (struct debug_handle): Remove class_mark field. Add 1996-02-12 19:41:09 +00:00
ranlib.1
ranlib.sh
rdcoff.c * rdcoff.c: New file. 1996-04-16 17:53:58 +00:00
rddbg.c * rdcoff.c: New file. 1996-04-16 17:53:58 +00:00
README * README: Add notes on how to build if you don't have ar. 1996-06-06 19:14:16 +00:00
sanity.sh
size.1
size.c
srconv.c
stabs.c * stabs.c (parse_stab_range_type): A complex type is defined as a 1996-03-18 23:06:29 +00:00
strings.1
strings.c
strip.1
sysdump.c
sysinfo.y
syslex.l
TODO
version.c
wrstabs.c * wrstabs.c: New file. 1996-03-20 21:51:25 +00:00

This is a beta release of a completely rewritten binutils distribution.
(Rewritten since binutils 1.x, that is.)

The linker (ld) has been moved into a separate directory, which should be
../ld.  Linker-specific notes are in ../ld/README.

As of version 2.5, the assembler (as) is also included in this package, in
../gas.  Assembler-specific notes can be found in ../gas/README.

These programs have been tested on various architectures.
However, since this is a beta release taken directly from an
evolving source tree, there might be some problems.  In particular,
the programs have not been ported to as many machines as the
old binutils.  There are also features of the old versions
that are missing on the new programs.  We would appreciate
patches to make things run on other machines; especially welcome
are fixes for what used to work on the old programs!
(See ./TODO, as well a ../bfd/TODO and ../ld/TODO.)

Recent changes are in ./NEWS, ../ld/NEWS, and ../gas/NEWS.

Unpacking and Installation -- quick overview
==========================

In this release, the binary utilities, the linker, the generic GNU include
files, the BFD ("binary file description") library, gprof, and getopt all
have directories of their own underneath the binutils-2.7 directory.
The idea is that a variety of GNU tools can
share a common copy of these things.  Configuration scripts and
makefiles exist to cruise up and down this directory tree and
automatically build all the pieces in the right order.

When you unpack the binutils-2.7.tar.gz file, you'll get a directory
called something like `binutils-2.7', which contains:

	COPYING          bfd/             configure*       libiberty/
	COPYING.LIB      binutils/        configure.in     move-if-change*
	CYGNUS           build-all.mk     etc/             opcodes/
	ChangeLog        config/          gprof/           test-build.mk
	Makefile.in      config.guess*    inc

To build binutils, you can just do:

	cd binutils-2.7
	./configure [ --enable-targets='target1,target2...' ]
	make
	make install # copies the programs files into /usr/local/bin
		     # by default.

This will configure and build all the libraries as well as binutils
and the linker.

The --enable-targets option adds support for more binary file
formats besides the default.  By default, support for only the
selected target file format is compiled in.  To add support for more
formats, list them as the argument to --enable-targets, separated by
commas.  For example:

	./configure --enable-targets=sun3,rs6000-aix,decstation

The name 'all' compiles in support for all valid BFD targets (this was
the default in previous releases):

	./configure --enable-targets=all

The binutils can be used in a cross-development environment.
The file etc/configure.texi contains more information.

You can also specify the --enable-shared option when you run
configure.  This will build the BFD and opcodes libraries as shared
libraries.  This will only work on certain systems, and currently will
only work when compiling with gcc.  You can use arguments with the
--enable-shared option to indicate that only certain libraries should
be built shared; for example, --enable-shared=bfd.  The only
possibilities in a binutils release are bfd and opcodes.

The binutils will be linked against the shared libraries.  The build
step will attempt to place the correct library in the runtime search
path for the binaries.  However, in some cases, after you install the
binaries, you may have to set an environment variable, normally
LD_LIBRARY_PATH, so that the system can find the installed libbfd
shared library.

If you specify --enable-commonbfdlib as well as --enable-shared, then
a single shared library will be built containing the bfd, opcodes, and
libiberty libraries.  It will be installed as libbfd.  This option
will make the binutils programs as small as possible.

If you don't have ar
====================

If your system does not already have an ar program, the normal
binutils build process will not work.  In this case, run configure as
usual.  Before running make, run this script:

#!/bin/sh
MAKE=${MAKE-make}
${MAKE} $* AR=true all-libiberty
${MAKE} $* AR=true all-bfd
cd binutils
${MAKE} $* ADDL_DEPS='$(BULIBS)' ADDL_LIBS='$(BULIBS) ../bfd/*.o `cat ../libiberty/required-list ../libiberty/needed-list | sed -e "s,\([^ ][^ ]*\),../libiberty/\1,g"`' ar

This script will build an ar program in binutils/ar.  Move binutils/ar
into a directory on your PATH.  After doing this, you can run make as
usual to build the complete binutils distribution.  You do not need
the ranlib program in order to build the distribution.

Porting
=======
Binutils-2.7 supports many different architectures, but there
are many more not supported, including some that were supported
by earlier versions.  We are hoping for volunteers to
improve this situation.

The major effort in porting binutils to a new host and/or target
architecture involves the BFD library.  There is some documentation
in ../bfd/doc.  The file ../gdb/doc/gdbint.texinfo (distributed
with gdb-4.x) may also be of help.

If your system uses some variant of old-style a.out-format,
you can start with a copy of bfd/newsos3.c, and edit it to fit.
(You may also need to tweak bfd/aout-target.h.)
Alternatively, you could use the host-aout.c target.  This is a
special kludge that only works for native (non-cross) configurations.

Reporting bugs
==============
If you can't track down a bug and send suggestions/patches
for fixes, you should probably *not* be using this release.
We have little time to spend tracking down whatever random bugs you
may run into (except for configurations that Cygnus supports for
its customers).  The general place to send bug reports or patches
is to bug-gnu-utils@ai.mit.edu; you can also send them directly to
raeburn@cygnus.com or ian@cygnus.com.