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.
 
 
 
 
 
 
Alan Modra b39910205f Account for .tbss alignment when adjusting start of relro 11 years ago
..
emulparams Add support for AArch64 CloudABI binaries. 11 years ago
emultempl Fixes an invalid warning about memory region overflow on the ARM. 11 years ago
po Updated (simplified) Chinese translations for ld, bfd, binutils and gold. 11 years ago
scripttempl New ARC implementation. 11 years ago
testsuite Revert "[LD][AARCH64]Add TLSIE relaxation support under large memory model." 11 years ago
.gitignore bfd/binutils/gas/gprof/ld/libiberty/opcodes: add .gitignore 16 years ago
ChangeLog Account for .tbss alignment when adjusting start of relro 11 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 14 years ago
ChangeLog-2013 New Year - binutils ChangeLog rotation 13 years ago
ChangeLog-2014 ChangeLog rotatation and copyright year update 12 years ago
ChangeLog-9197 Remove trailing spaces in ld 11 years ago
ChangeLog-9899 Add copyright notices 14 years ago
MAINTAINERS ChangeLog rotatation and copyright year update 12 years ago
Makefile.am Add support for AArch64 CloudABI binaries. 11 years ago
Makefile.in Regenerate ld/Makefile.in 11 years ago
NEWS Add markers for release 2.26 11 years ago
README ChangeLog rotatation and copyright year update 12 years ago
TODO 19990502 sourceware import 28 years ago
aclocal.m4 * configure.in (AC_CHECK_FUNCS): Add setlocale. 15 years ago
config.in Reset x86 Linux targets to not compressing debug sections by default. Enable compression of debug sections by default in the linker, if so configured. 11 years ago
configure Bump version to 2.26.51 11 years ago
configure.ac Properly check --enable-compressed-debug-sections={yes,all} 11 years ago
configure.host Remove trailing spaces in ld 11 years ago
configure.tgt Add support for AArch64 CloudABI binaries. 11 years ago
deffile.h ChangeLog rotatation and copyright year update 12 years ago
deffilep.y ChangeLog rotatation and copyright year update 12 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 14 years ago
fdl.texi etc/ChangeLog 16 years ago
gen-doc.texi ChangeLog rotatation and copyright year update 12 years ago
genscrba.sh ld: 19 years ago
genscripts.sh ChangeLog rotatation and copyright year update 12 years ago
h8-doc.texi ChangeLog rotatation and copyright year update 12 years ago
ld.h ld: Extend options for altering orphan handling behaviour. 11 years ago
ld.texinfo DATA_SEGMENT_ALIGN documentation is not consistent with behaviour 11 years ago
ldbuildid.c ChangeLog rotatation and copyright year update 12 years ago
ldbuildid.h ChangeLog rotatation and copyright year update 12 years ago
ldcref.c ChangeLog rotatation and copyright year update 12 years ago
ldctor.c Add output_type to bfd_link_info 11 years ago
ldctor.h ChangeLog rotatation and copyright year update 12 years ago
ldemul.c ld: Extend options for altering orphan handling behaviour. 11 years ago
ldemul.h ChangeLog rotatation and copyright year update 12 years ago
ldexp.c Evaluate __start_* and __stop_* symbol PROVIDE expressions early 11 years ago
ldexp.h Delay converting linker script defined symbols from absolute 11 years ago
ldfile.c Add output_type to bfd_link_info 11 years ago
ldfile.h ChangeLog rotatation and copyright year update 12 years ago
ldgram.y Allow symbols in MEMORY region specification 12 years ago
ldint.texinfo Remove trailing spaces in ld 11 years ago
ldlang.c Account for .tbss alignment when adjusting start of relro 11 years ago
ldlang.h Re: Orphan output section with multiple input sections 11 years ago
ldlex-wrapper.c ChangeLog rotatation and copyright year update 12 years ago
ldlex.h Add --no-dynamic-linker option to ld, for static PIE use 11 years ago
ldlex.l Eat newlines inside INPUT statements in linker scripts 11 years ago
ldmain.c Reset x86 Linux targets to not compressing debug sections by default. Enable compression of debug sections by default in the linker, if so configured. 11 years ago
ldmain.h ChangeLog rotatation and copyright year update 12 years ago
ldmisc.c Make binutils abort message GDB friendly 11 years ago
ldmisc.h ChangeLog rotatation and copyright year update 12 years ago
ldver.c Correct printed year in copyright notices 12 years ago
ldver.h ChangeLog rotatation and copyright year update 12 years ago
ldwrite.c Add output_type to bfd_link_info 11 years ago
ldwrite.h ChangeLog rotatation and copyright year update 12 years ago
lexsup.c Fix reporting of command line options that need an argument, but which occur as the last option on the command line. 11 years ago
mri.c ChangeLog rotatation and copyright year update 12 years ago
mri.h ChangeLog rotatation and copyright year update 12 years ago
pe-dll.c Add output_type to bfd_link_info 11 years ago
pe-dll.h ChangeLog rotatation and copyright year update 12 years ago
pep-dll.c ChangeLog rotatation and copyright year update 12 years ago
pep-dll.h ChangeLog rotatation and copyright year update 12 years ago
plugin.c Remove link_info.pic 11 years ago
plugin.h Update plugin_maybe_claim 12 years ago
stamp-h.in 19990502 sourceware import 28 years ago
sysdep.h ChangeLog rotatation and copyright year update 12 years ago
testplug.c The initial support for LDPT_GET_VIEW 12 years ago
testplug2.c Add a testcase for PR ld/17973 12 years ago
testplug3.c Remove unused dump_tv_tag 12 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-2015 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.