Add Michael Chansain as C++ testsuite maintainer.
[deliverable/binutils-gdb.git] / ld / README
CommitLineData
252b5132
RH
1This is the GNU linker. It is distributed with other "binary
2utilities" which should be in ../binutils. See ../binutils/README for
3more general notes, including where to send bug reports.
4
5There are many features of the linker:
6
7* The linker uses a Binary File Descriptor library (../bfd)
8 that it uses to read and write object files. This helps
9 insulate the linker itself from the format of object files.
10
11* The linker supports a number of different object file
12 formats. It can even handle multiple formats at once:
13 Read two input formats and write a third.
14
15* The linker can be configured for cross-linking.
16
17* The linker supports a control language.
18
19* There is a user manual (ld.texinfo), as well as the
20 beginnings of an internals manual (ldint.texinfo).
21
22Installation
23============
24
25See ../binutils/README.
26
27If you want to make a cross-linker, you may want to specify
28a different search path of -lfoo libraries than the default.
29You can do this by setting the LIB_PATH variable in ./Makefile.
30
31To build just the linker, make the target all-ld from the top level
32directory (one directory above this one).
33
34Porting to a new target
35=======================
36
37See the ldint.texinfo manual.
38
39Reporting bugs etc
40===========================
41
42See ../binutils/README.
43
44Known problems
45==============
46
47The Solaris linker normally exports all dynamic symbols from an
48executable. The GNU linker does not do this by default. This is
49because the GNU linker tries to present the same interface for all
50similar targets (in this case, all native ELF targets). This does not
51matter for normal programs, but it can make a difference for programs
52which try to dlopen an executable, such as PERL or Tcl. You can make
53the GNU linker export all dynamic symbols with the -E or
54--export-dynamic command line option.
55
56HP/UX 9.01 has a shell bug that causes the linker scripts to be
57generated incorrectly. The symptom of this appears to be "fatal error
58- scanner input buffer overflow" error messages. There are various
59workarounds to this:
60 * Build and install bash, and build with "make SHELL=bash".
61 * Update to a version of HP/UX with a working shell (e.g., 9.05).
62 * Replace "(. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc)" in
63 genscripts.sh with "sh ${srcdir}..." (no parens) and make sure the
64 emulparams script used exports any shell variables it sets.
This page took 0.1234 seconds and 4 git commands to generate.