amigaos-binutils/ld
bebbo 3713addeaa disabled flavor sorting 2018-05-12 20:05:15 +02:00
..
emulparams @R changes to work with gcc-6.2.0 2016-11-28 22:19:06 +01:00
emultempl * bfd/aoutx.h (swap_std_reloc_out): Use bfd_asymbol_flavour. 2008-12-23 16:23:14 +00:00
po - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
scripttempl * ld/emulparams/amiga.sh (PAGE_SIZE, NONPAGED_TEXT_START_ADDR): Remove 2009-01-05 12:52:12 +00:00
testsuite - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ChangeLog - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ChangeLog-9197 applied BUTILS_2_14->BUTILS_AMIGA_20031201 patch 2006-03-15 23:35:05 +00:00
ChangeLog-9899 applied BUTILS_2_14->BUTILS_AMIGA_20031201 patch 2006-03-15 23:35:05 +00:00
MAINTAINERS - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
Makefile.am applied binutils-20041204 patch 2006-03-15 23:38:39 +00:00
Makefile.in applied binutils-20041204 patch 2006-03-15 23:38:39 +00:00
NEWS - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
README - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
TODO - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
acinclude.m4 - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
aclocal.m4 - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
config.in - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
configdoc.texi - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
configure applied BUTILS_2_14->BUTILS_AMIGA_20031201 patch 2006-03-15 23:35:05 +00:00
configure.host applied patch to bring it in sync with latest CVS head 2006-03-16 00:07:44 +00:00
configure.in - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
configure.tgt @R changes to work with gcc-6.2.0 2016-11-28 22:19:06 +01:00
deffile.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
deffilep.y - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
dep-in.sed - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
fdl.texi - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
gen-doc.texi - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
genscripts.sh - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
h8-doc.texi - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ld.1 - checkin of certain files being automatically generated with newer version of flex/bison&co. 2015-03-26 08:15:01 +00:00
ld.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ld.info - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ld.info-1 - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ld.info-2 - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ld.info-3 - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ld.info-4 - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ld.info-5 - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ld.info-6 - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ld.texinfo - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldcref.c - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldctor.c * bfd/aoutx.h (swap_std_reloc_out): Use bfd_asymbol_flavour. 2008-12-23 16:23:14 +00:00
ldctor.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldemul.c - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldemul.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldexp.c @B fix compatibilty issues for VC 2017-02-06 15:04:37 +01:00
ldexp.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldfile.c disabled flavor sorting 2018-05-12 20:05:15 +02:00
ldfile.h applied patch to bring it in sync with latest CVS head 2006-03-16 00:07:44 +00:00
ldgram.c - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldgram.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldgram.y - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldint.texinfo - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldlang.c @B fix stabs handling - subtract vma from entries 2017-07-06 23:33:18 +02:00
ldlang.h applied BUTILS_2_14->BUTILS_AMIGA_20031201 patch 2006-03-15 23:35:05 +00:00
ldlex.c @B fix compatibilty issues for VC 2017-02-06 15:04:37 +01:00
ldlex.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldlex.l - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldmain.c @I add #include "config.h" and add an explicit void to remove warnings 2017-02-18 11:33:19 +01:00
ldmain.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldmisc.c - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldmisc.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldver.c - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldver.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldver.texi - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldwrite.c - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
ldwrite.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
lexsup.c - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
mac-ld.r - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
mpw-config.in - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
mpw-make.sed - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
mri.c - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
mri.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
pe-dll.c - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
pe-dll.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
stamp-h.in - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00
sysdep.h - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00

README

		README for LD

This is the 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 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 supports 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 supports a control language.

* There is a user manual (ld.texinfo), as well as the
  beginnings of an internals manual (ldint.texinfo).

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
or using the --with-lib-path configure switch.

To build just the linker, make the target all-ld from the top level
directory (one directory above this one).

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

See the ldint.texinfo manual.

Reporting bugs etc
===========================

See ../binutils/README.

Known problems
==============

The Solaris linker normally exports all dynamic symbols from an
executable.  The GNU linker does not do this by default.  This is
because the GNU linker tries to present the same interface for all
similar targets (in this case, all native ELF targets).  This does not
matter for normal programs, but it can make a difference for programs
which try to dlopen an executable, such as PERL or Tcl.  You can make
the GNU linker export all dynamic symbols with the -E or
--export-dynamic command line option.

HP/UX 9.01 has a shell bug that causes the linker scripts to be
generated incorrectly.  The symptom of this appears to be "fatal error
- scanner input buffer overflow" error messages.  There are various
workarounds to this:
  * Build and install bash, and build with "make SHELL=bash".
  * Update to a version of HP/UX with a working shell (e.g., 9.05).
  * Replace "(. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc)" in
    genscripts.sh with "sh ${srcdir}..." (no parens) and make sure the
    emulparams script used exports any shell variables it sets.