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.
 
 
 
 
 
 
Chenghua Xu ac8cb70f36 [MIPS] Add Loongson 3A1000 proccessor support. 8 years ago
..
emulparams Add support for the C_SKY series of processors. 8 years ago
emultempl Delay evaluation of alignment expressions in output sections 8 years ago
po Updated Bulgarian translation for the ld/ directory 8 years ago
scripttempl Explain what happens for PE targeted linkers in the case where the user actually tries to provide __CTOR_LIST__ and/or __DTOR_LIST__ symbols. 8 years ago
testsuite [MIPS] Add Loongson 3A1000 proccessor support. 8 years ago
.gitignore bfd/binutils/gas/gprof/ld/libiberty/opcodes: add .gitignore 16 years ago
ChangeLog [MIPS] Add Loongson 3A1000 proccessor support. 8 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-2016 ChangeLog rotation 9 years ago
ChangeLog-2017 ChangeLog rotation 8 years ago
ChangeLog-9197 Remove trailing spaces in ld 11 years ago
ChangeLog-9899 Add copyright notices 14 years ago
MAINTAINERS Update year range in copyright notice of binutils files 8 years ago
Makefile.am Prune BFD warnings for unknown GNU properties 8 years ago
Makefile.in Prune BFD warnings for unknown GNU properties 8 years ago
NEWS Add support for the C_SKY series of processors. 8 years ago
README Bump to autoconf 2.69 and automake 1.15.1 8 years ago
TODO 19990502 sourceware import 27 years ago
aclocal.m4 Bump to autoconf 2.69 and automake 1.15.1 8 years ago
config.in Bump to autoconf 2.69 and automake 1.15.1 8 years ago
configure Regenerate configure and pot files with updated binutils version number. 8 years ago
configure.ac Bump to autoconf 2.69 and automake 1.15.1 8 years ago
configure.host Remove m88k support 8 years ago
configure.tgt Add support for the C_SKY series of processors. 8 years ago
deffile.h Speed up direct linking with DLLs on Windows (2/2). 8 years ago
deffilep.y Speed up direct linking with DLLs on Windows (2/2). 8 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 Add support for the C_SKY series of processors. 8 years ago
genscrba.sh ld: 19 years ago
genscripts.sh ld: Enable using separate linker script for -z relro 8 years ago
h8-doc.texi Bump to autoconf 2.69 and automake 1.15.1 8 years ago
ld.h Update year range in copyright notice of binutils files 8 years ago
ld.texi Update the documentation of the linker's --hash-style option. 8 years ago
ldbuildid.c Update year range in copyright notice of binutils files 8 years ago
ldbuildid.h Update year range in copyright notice of binutils files 8 years ago
ldcref.c ld error/warning messages 8 years ago
ldctor.c ld error/warning messages 8 years ago
ldctor.h Update year range in copyright notice of binutils files 8 years ago
ldemul.c powerpc common-page-size 8 years ago
ldemul.h Update year range in copyright notice of binutils files 8 years ago
ldexp.c Delay evaluation of alignment expressions in output sections 8 years ago
ldexp.h Delay evaluation of alignment expressions in output sections 8 years ago
ldfile.c ld error/warning messages 8 years ago
ldfile.h Update year range in copyright notice of binutils files 8 years ago
ldgram.y ld error/warning messages 8 years ago
ldint.texi Fix use of "command line X" in binutils doc 8 years ago
ldlang.c Delay evaluation of alignment expressions in output sections 8 years ago
ldlang.h Delay evaluation of alignment expressions in output sections 8 years ago
ldlex-wrapper.c Update year range in copyright notice of binutils files 8 years ago
ldlex.h [MicroBlaze] PIC data text relative 8 years ago
ldlex.l Update PRU assembler to corect hardware register numbering for DWARF. 8 years ago
ldmain.c [MicroBlaze] PIC data text relative 8 years ago
ldmain.h Update year range in copyright notice of binutils files 8 years ago
ldmisc.c ld error/warning messages 8 years ago
ldmisc.h Update year range in copyright notice of binutils files 8 years ago
ldver.c Update year range in copyright notice of binutils files 8 years ago
ldver.h Update year range in copyright notice of binutils files 8 years ago
ldwrite.c ld error/warning messages 8 years ago
ldwrite.h Update year range in copyright notice of binutils files 8 years ago
lexsup.c ld: Properly display default for -z separate-code 8 years ago
mri.c Remove m68k-aout and m68k-coff support 8 years ago
mri.h Update year range in copyright notice of binutils files 8 years ago
pe-dll.c Remove arm-epoc-pe support 8 years ago
pe-dll.h Speed up direct linking with DLLs on Windows (1/2). 8 years ago
pep-dll.c Speed up direct linking with DLLs on Windows (1/2). 8 years ago
pep-dll.h Speed up direct linking with DLLs on Windows (1/2). 8 years ago
plugin.c ld: Set non_ir_ref_regular for --undefined SYMBOL 8 years ago
plugin.h Update year range in copyright notice of binutils files 8 years ago
stamp-h.in 19990502 sourceware import 27 years ago
sysdep.h Update year range in copyright notice of binutils files 8 years ago
testplug.c Update year range in copyright notice of binutils files 8 years ago
testplug2.c Update year range in copyright notice of binutils files 8 years ago
testplug3.c Update year range in copyright notice of binutils files 8 years ago
testplug4.c Update year range in copyright notice of binutils files 8 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.texi), as well as the
beginnings of an internals manual (ldint.texi).

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.texi 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-2018 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.