binutils-gdb/ld
Ian Lance Taylor b400f56dbb Make the ELF linker handle orphaned sections reasonably. Also,
define __start_SECNAME and __stop_SECNAME around sections whose
	names can be represented in C, for the benefit of symbol sets in
	glibc.
	* ldemul.h (ldemul_place_orphan): Declare.
	(ld_emulation_xfer_type): Add place_orphan field.
	* ldemul.c (ldemul_place_orphan): New function.
	* ldlang.h (wild_doit): Declare.
	* ldlang.c (wild_doit): Make nonstatic.
	(lang_place_orphans): Call ldemul_place_orphan.
	* emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
	(hold_section, hold_use, hold_text, hold_data, hold_bss): New
	static variables.
	(gld${EMULATION_NAME}_place_orphan): New static function.
	(gld${EMULATION_NAME}_place_section): New static function.
	(ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
1994-08-18 20:10:54 +00:00
..
config ns32k port from Ian Dall 1994-07-14 19:20:53 +00:00
emulparams ns32k port from Ian Dall 1994-07-14 19:20:53 +00:00
emultempl
scripttempl * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end. 1994-07-22 20:55:45 +00:00
testsuite
.Sanitize Elim dup of file names 1994-06-30 23:19:26 +00:00
cdtest-bar.cc
cdtest-foo.cc
cdtest-foo.h
cdtest-main.cc
cdtest.exp
ChangeLog Make the ELF linker handle orphaned sections reasonably. Also, 1994-08-18 20:10:54 +00:00
ChangeLog.gm
ChangeLog.mpw * mpw-config.in (emulname): Set based on target. 1994-06-28 20:20:35 +00:00
config.h
configure
configure.bat
configure.in ns32k port from Ian Dall 1994-07-14 19:20:53 +00:00
dep-in.sed
genscripts.sh
h8-doc.texi
ld.1
ld.h
ld.texinfo * ld.h (args_type): Add field rpath. 1994-07-20 19:55:36 +00:00
ldctor.c
ldctor.h
ldemul.c
ldexp.c * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end. 1994-07-22 20:55:45 +00:00
ldexp.h
ldfile.c
ldfile.h
ldgram.y
ldint.texinfo
ldlang.c * ldlang.c (lang_common): Pass desired alignment to 1994-07-22 18:46:28 +00:00
ldlang.h
ldlex.h
ldlex.l * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end. 1994-07-22 20:55:45 +00:00
ldmain.c
ldmain.h
ldmisc.c
ldmisc.h
ldver.c
ldver.h
ldwrite.c
ldwrite.h
lexsup.c * lexsup.c (parse_args): Changed "retain-symbols-file" from 1994-07-08 15:06:29 +00:00
Makefile.in ns32k port from Ian Dall 1994-07-14 19:20:53 +00:00
mpw-config.in * mpw-config.in (emulname): Set based on target. 1994-06-28 20:20:35 +00:00
mpw-em.c
mpw-make.in * mpw-config.in (emulname): Set based on target. 1994-06-28 20:20:35 +00:00
mpw-xconfig.in Fix typo 1994-06-30 00:08:11 +00:00
mri.c
mri.h
NEWS
README
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.