You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Andrew Burgess d4ed4da3f5 ld: Fix mistake in ChangeLog 10 years ago
..
emulparams Support -pie for arm*-eabi targets. 10 years ago
emultempl Add support for disabling automatic generation of .eh_frame_hdr sections in ELF based linkers. 10 years ago
po Copyright update for binutils 10 years ago
scripttempl FT32 linker script cleanup 10 years ago
testsuite Fix ld --gc-section segfault with ARMv8-M entry function in absolute section 10 years ago
.gitignore bfd/binutils/gas/gprof/ld/libiberty/opcodes: add .gitignore 16 years ago
ChangeLog ld: Fix mistake in ChangeLog 10 years ago
ChangeLog-0001 Add copyright notices 14 years ago
ChangeLog-0203 Add copyright notices 14 years ago
ChangeLog-2004 Add copyright notices 14 years ago
ChangeLog-2005 Add copyright notices 14 years ago
ChangeLog-2006 Add copyright notices 14 years ago
ChangeLog-2007 Add copyright notices 14 years ago
ChangeLog-2008 strip off +x bits on non-executable/script files 13 years ago
ChangeLog-2009 Remove trailing spaces in ld 11 years ago
ChangeLog-2010 Add copyright notices 14 years ago
ChangeLog-2011 Add copyright notices 14 years ago
ChangeLog-2012 Rotate binutils ChangeLog for 2013 13 years ago
ChangeLog-2013 New Year - binutils ChangeLog rotation 12 years ago
ChangeLog-2014 ChangeLog rotatation and copyright year update 11 years ago
ChangeLog-2015 binutils ChangeLog rotation 10 years ago
ChangeLog-9197 Remove trailing spaces in ld 11 years ago
ChangeLog-9899 Add copyright notices 14 years ago
MAINTAINERS Copyright update for binutils 10 years ago
Makefile.am Do not pass host compiler sanitization flags on to linker testsuite. 10 years ago
Makefile.in Do not pass host compiler sanitization flags on to linker testsuite. 10 years ago
NEWS Add support for disabling automatic generation of .eh_frame_hdr sections in ELF based linkers. 10 years ago
README Copyright update for binutils 10 years ago
TODO 19990502 sourceware import 27 years ago
aclocal.m4 Regenerate Makefile.in/aclocal.m4 automake 1.11.6 10 years ago
config.in ld: Add a linker configure option --enable-relro 10 years ago
configure Set BFD_VERSION to 2.27.51 10 years ago
configure.ac ld: Add a linker configure option --enable-relro 10 years ago
configure.host Copyright update for binutils 10 years ago
configure.tgt powerpc ld configure 10 years ago
deffile.h Copyright update for binutils 10 years ago
deffilep.y Copyright update for binutils 10 years ago
dep-in.sed * dep-in.sed: Don't use \n in replacement part of s command. 17 years ago
elf-hints-local.h Remove trailing white spaces in ld 13 years ago
fdl.texi etc/ChangeLog 16 years ago
gen-doc.texi Copyright update for binutils 10 years ago
genscrba.sh ld: 18 years ago
genscripts.sh Copyright update for binutils 10 years ago
h8-doc.texi Copyright update for binutils 10 years ago
ld.h Add support for creating ELF import libraries 10 years ago
ld.texinfo ld: Extend documentation for EXCLUDE_FILE 10 years ago
ldbuildid.c Fix warning in ldbuildid.c mingw32 code 10 years ago
ldbuildid.h Copyright update for binutils 10 years ago
ldcref.c Formatting fixes. 10 years ago
ldctor.c Formatting fixes. 10 years ago
ldctor.h Copyright update for binutils 10 years ago
ldemul.c Formatting fixes. 10 years ago
ldemul.h Copyright update for binutils 10 years ago
ldexp.c Early expression evaluation 10 years ago
ldexp.h Copyright update for binutils 10 years ago
ldfile.c Formatting fixes. 10 years ago
ldfile.h Copyright update for binutils 10 years ago
ldgram.y Add new NOCROSSREFS_TO linker script command 10 years ago
ldint.texinfo Copyright update for binutils 10 years ago
ldlang.c Ignore symbols defined in SHF_EXCLUDE sections 10 years ago
ldlang.h Add new NOCROSSREFS_TO linker script command 10 years ago
ldlex-wrapper.c Copyright update for binutils 10 years ago
ldlex.h Add support for creating ELF import libraries 10 years ago
ldlex.l ld: track linker-definedness of symbols 10 years ago
ldmain.c Formatting fixes. 10 years ago
ldmain.h Copyright update for binutils 10 years ago
ldmisc.c Delete bfd_my_archive macro 10 years ago
ldmisc.h Copyright update for binutils 10 years ago
ldver.c Copyright update for binutils 10 years ago
ldver.h Copyright update for binutils 10 years ago
ldwrite.c Formatting fixes. 10 years ago
ldwrite.h Copyright update for binutils 10 years ago
lexsup.c Add support for disabling automatic generation of .eh_frame_hdr sections in ELF based linkers. 10 years ago
mri.c Copyright update for binutils 10 years ago
mri.h Copyright update for binutils 10 years ago
pe-dll.c Ignore DWARF debug information with a version of 0 - assume that it is padding. 10 years ago
pe-dll.h Copyright update for binutils 10 years ago
pep-dll.c Copyright update for binutils 10 years ago
pep-dll.h Copyright update for binutils 10 years ago
plugin.c ld: Restore file offset after a plugin fails to claim a file 10 years ago
plugin.h Copyright update for binutils 10 years ago
stamp-h.in 19990502 sourceware import 27 years ago
sysdep.h Copyright update for binutils 10 years ago
testplug.c ld: Restore file offset after a plugin fails to claim a file 10 years ago
testplug2.c Remove redundant sizeof on EXPECTED_VIEW_LENGTH 10 years ago
testplug3.c Copyright update for binutils 10 years ago
testplug4.c Remove redundant sizeof on EXPECTED_VIEW_LENGTH 10 years ago

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.

Copyright (C) 2012-2016 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.