binutils-gdb/ld
Ian Lance Taylor dd16b6557e * lexsup.c (parse_args): Don't set link_info.shared for -assert
pure-text.  Pass true, not 1, to lang_add_entry.
	* emultempl/sunos.em (find_assign): New static variable.
	(found_assign): New static variable.
	(gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
	If not a relocateable link, and no start symbol was specified on
	the command line, and there are any undefined symbols, set
	link_info.shared.  If link_info.shared is set, set the address of
	the .text section to 0x20.
	(gld${EMULATION_NAME}_find_assignment): Rename from
	gld${EMULATION_NAME}_find_statement_assignment.  If find_assign is
	set, then just set found_assign based on whether an assignment is
	found to find_assign.
	(gld${EMULATION_NAME}_get_script): Don't use a special script when
	producing a shared library.
	* emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
	* scripttempl/aout.sc: Remove CREATE_SHLIB tests.
	* ldlang.c (entry_from_cmdline): New global variable.
	(lang_add_entry): Change cmdline parameter from int to boolean.
	Use global entry_from_cmdline rather than function static
	from_cmdline.
	* ldlang.h (entry_from_cmdline): Declare.
	(lang_add_entry): Change declaration of second parameter from int
	to boolean.
	* ldgram.y: Pass false, not 0, to lang_add_entry.
1995-09-29 15:33:29 +00:00
..
emulparams * lexsup.c (parse_args): Handle -assert. 1995-09-28 16:36:34 +00:00
emultempl * lexsup.c (parse_args): Handle -assert. 1995-09-28 16:36:34 +00:00
scripttempl * lexsup.c (parse_args): Handle -assert. 1995-09-28 16:36:34 +00:00
testsuite * ld-shared/shared.exp: Run the tests on sparc*-*-sunos4*. Add 1995-09-28 16:39:55 +00:00
.Sanitize * config.in: Rename from config.h.in. 1995-09-07 17:20:53 +00:00
acconfig.h * configure.in: Rewrite to use autoconf. 1995-09-06 18:58:05 +00:00
ChangeLog * lexsup.c (parse_args): Don't set link_info.shared for -assert 1995-09-29 15:33:29 +00:00
config.in * config.in: Rename from config.h.in. 1995-09-07 17:20:53 +00:00
configure * config.in: Rename from config.h.in. 1995-09-07 17:20:53 +00:00
configure.bat
configure.host * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*) 1995-09-08 20:34:05 +00:00
configure.in * config.in: Rename from config.h.in. 1995-09-07 17:20:53 +00:00
configure.tgt Revert Linux directory searching: it turns out that Linux no longer 1995-09-11 15:04:49 +00:00
dep-in.sed
genscripts.sh
h8-doc.texi
ld.1
ld.h
ld.texinfo
ldctor.c
ldctor.h
ldemul.c
ldexp.c * ldexp.c (fold_name): In case NAME, permit an absolute symbol 1995-01-31 17:40:50 +00:00
ldexp.h
ldfile.c
ldfile.h
ldgram.y * ldgram.y: Tweak casesymlist to avoid bison errors. 1995-08-16 16:26:57 +00:00
ldint.texinfo
ldlang.c * configure.host (sparc-*-sunos64*): Remove. 1995-09-07 14:52:12 +00:00
ldlang.h
ldlex.h
ldlex.l
ldmain.c
ldmain.h
ldmisc.c
ldmisc.h Made many changes to eliminate gcc warnings. Made various 1993-12-11 22:55:55 +00:00
ldver.c
ldver.h
ldwrite.c
ldwrite.h
lexsup.c * ld.h (parsing_defsym): Declare. 1995-09-28 19:18:07 +00:00
Makefile.in Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>: 1995-09-18 18:57:59 +00:00
mpw-config.in
mpw-emipsidt.c * configure.in: Rewrite to use autoconf. 1995-09-06 18:58:05 +00:00
mpw-esh.c * configure.in: Rewrite to use autoconf. 1995-09-06 18:58:05 +00:00
mpw-make.in
mri.c
mri.h
NEWS mention creating SunOS shared libraries 1995-09-28 16:41:31 +00:00
README
sysdep.h * configure.in: Rewrite to use autoconf. 1995-09-06 18:58:05 +00:00
TODO

This is a BETA release of a completely rewritten GNU linker.
It is distributed with other "binary utilities" which should
be in ../binutils.  See ../binutils/README for more general notes,
including where to send bug reports.

There are many new features of the linker:

* The linker uses a Binary File Descriptor library (../bfd)
that it uses to read and write object files.  This helps
insulate the linker itself from the format of object files.

* The linker support a number of different object file
formats.  It can even handle multiple formats at once:
Read two input formats and write a third.

* The linker can be configured for cross-linking.

* The linker contains a control language.

* There is a manual.

Installation
============

See ../binutils/README.
If you want to make a cross-linker, you may want to specify
a different search path of -lfoo libraries than the default.
You can do this by setting the LIB_PATH variable in ./Makefile.

Porting to a new target
=======================

A new target configuration may need a new linker script (.sc file)
to specify linker actions (such as the layout of the output).
See if one of the existing ones are suitable.
Note that the Makefile generates variants of the standard script
that are used when ld is passed -r -Ur -N or -n options.
These variant default scripts are generated from the "master"
script using sed scripts that may not work in all cases.
Look at the rules and comments in ld/Makefile.in to make sure
you stay with the rules.

Otherwise, you may need to add a new "emulation" (a sample of a
recently added target and emulation is for the SOny 68k News
family - look for files named *news*).

Also see the notes in ../binutils/README.

Reporting bugs etc
===========================
See ../binutils/README.