* ld.h (check_nocrossrefs): Declare.
[platform/upstream/binutils.git] / ld / NEWS
1 -*- text -*-
2
3 Changes since version 2.7:
4
5 * Linker scripts may now contain shell wildcard characters for file and section
6   names.
7
8 * The NOCROSSREFS command was added to the linker script language.
9
10 Changes since version 2.6:
11
12 * New option --cref to print out a cross reference table.
13
14 * New option --wrap SYMBOL.
15
16 * New option --no-whole-archive, to turn off the effect of --whole-archive.
17
18 * Input sections assigned to the output section /DISCARD/ in the linker script
19   are not included in the output file.
20
21 * The SunOS and ELF linkers now merge stabs debugging information which uses
22   the N_BINCL and N_EINCL stab types.  This reduces the amount of debugging
23   information generated.
24
25 Changes since version 2.5:
26
27 * When an ELF section name is representable as a C identifier (this is not true
28 of most ELF section names), the linker will automatically define symbols
29 __start_SECNAME and __stop_SECNAME, where SECNAME is the section name, at the
30 beginning and the end of the section.  This is used by glibc.
31
32 * When an ELF section named .gnu.warning is encountered in an input file, the
33 contents of the section are displayed as an error message, and the section is
34 not copied into the output file.  This is used by glibc.
35
36 * When an ELF section named .gnu.warning.SYMBOL is encountered in an input
37 file, and the symbol SYMBOL is referenced by some object file, the contents of
38 the section are displayed as an error message.  The section is not copied into
39 the output file, unless doing a relocateable or shared link.  This is used by
40 glibc.
41
42 * New options -split-by-reloc and -split-by-file.
43
44 * The linker now supports linking PIC compiled code on SPARC SunOS.  It can
45 also create SPARC SunOS shared libraries, and, like the native SunOS linker,
46 will do so whenever there is an undefined symbol in the link and neither the -e
47 nor the -r option was used.
48
49 * The -rpath option may be used on SunOS to set the list of directories to be
50 searched at run time.  This overrides the default of building the list from the
51 -L options.
52
53 * The COFF linker now combines debugging information for structs, unions, and
54 enums, so that even if the same type is defined in multiple input files it will
55 only be defined once in the output file.  The --traditional-format switch will
56 prevent this optimization.
57
58 Changes since version 2.4:
59
60 * The linker now supports linking against SunOS shared libraries.  It still can
61 not link SunOS PIC (Position Independent Code) files, so it can not be used to
62 generate shared libaries.
63
64 * The linker now supports linking against ELF shared libraries for the i386
65 (UnixWare) and SPARC (Solaris).  It can also link ELF PIC files, and can be
66 used to generate shared libraries.  Shared library generation is not well
67 tested; please report any problems encountered.  The linker is now enabled for
68 Solaris again.
69
70 * Eric Youngdale has contributed Linux support code, including linking against
71 Linux a.out shared libraries.  The linker produces Linux QMAGIC binaries.
72
73 * The ELF backend has been converted to the new linker code.  To use the new
74 ELF linker, each particular target requires a relocation function.  So far,
75 this function has been written for i386 (UnixWare), SPARC (Solaris) MIPS (Irix
76 5), and HPPA ELF targets.
77
78 * The -( (--start-group) and -) (--end-group) options have been added to
79 support searching a group of archives as though they were a single archive.
80 This can also be used in a linker script, as GROUP ( files ).
81
82 * When a file is named on the command line, and the linker does not recognize
83 it as an object file, the linker will now treat the file as a linker script
84 file.  A linker script named in this way augments, but does not replace, the
85 default linker script.
86
87 * The -warn-once option was added.  It causes the linker to only warn once per
88 undefined symbol, rather than once per reference.
89
90 * The COFF backend has been converted to the new linker code.  As with ELF, to
91 use the new linker, each particular target requires a relocation function.  So
92 far, this function has been written for the i386, m68k, a29k and SH targets.
93
94 * The -V flag was made a synonym for -v, for SVR4 compatibility.  The old -V
95 behaviour is available via --verbose.
96
97 Changes since version 2.3:
98
99 * New linker code, by Steve Chamberlain and Ian Taylor.  For a.out and ecoff
100   formats (so far), this should result in considerable savings in time
101   and memory used while linking; slightly poorer performance than
102   before for formats not converted yet.
103
104 * Command-line parsing is no longer done with flex.  This means
105   oddball characters in filenames won't get treated as argument
106   separators.
107
108 * HP-PA ELF support, by Jeff Law.  (No SOM support yet.)
109
110 * Mach i386 support, by David Mackenzie.
111
112 * Irix 4 shared libraries are now supported (Irix 5 uses ELF, and ELF shared
113   libraries are not yet supported).
114
115 * COFF shared libraries (as on SCO) should work as well.
116
117 * The linker is disabled for Solaris.  (Actually, it was in 2.3 also, I just
118   forgot to note it.)  Some of their C library routines don't work when
119   statically linked, and the GNU linker doesn't support dynamic linking yet.
120
121 Changes since version 2.2:
122
123 * Weak symbols are now supported.
124
125 * ELF support has been added.  The linker has been bootstrapped on
126   UnixWare and Solaris.
127
128 * Alpha OSF/1 support has been added (non dynamic linking only).
129
130 Changes since version 2.1:
131
132 * The `bfd' library has been updated to reduce a.out-format string
133   table size.  The effect of this is that files linked from many input
134   files with duplicate symbols (`-g' debugging records, or identical
135   static symbols) should be much smaller.
136
137 Changes since version 2.0:
138
139 * The ld -ySYMBOL flag (to trace references to SYMBOL) is now implemented.
140
141 * There is now support for writing ECOFF files, so ld and the
142   other utilities should work on Risc/Ultrix and Irix.
143
144 \f
145 Local variables:
146 fill-column: 79
147 End: