bfd: remove unused local variables in elf32-score, elf32-score7 and elfxx-mips
[deliverable/binutils-gdb.git] / ld / NEWS
CommitLineData
252b5132 1-*- text -*-
7feec526 2
a91e1603
L
3* Add support for ELF SHF_GNU_MBIND and PT_GNU_MBIND_XXX.
4
46bed679
L
5* Add support for ELF GNU program properties.
6
0220170b
DD
7* Add support for the Texas Instruments PRU processor.
8
d7488716
AB
9* When configuring for arc*-*-linux* targets the default linker emulation will
10 change if --with-cpu=nps400 is used at configure time.
11
77f5e65e
AB
12* Improve assignment of LMAs to orphan sections in some edge cases where a
13 mixture of both AT>LMA_REGION and AT(LMA) are used.
14
14ea2c1b
AB
15* Orphan sections placed after an empty section that has an AT(LMA) will now
16 take an load memory address starting from LMA.
17
9703a4ef
TG
18Changes in 2.28:
19
8f1732fc
AB
20* The EXCLUDE_FILE linker script construct can now be applied outside of the
21 section list in order for the exclusions to apply over all input sections in
22 the list.
23
e23eba97 24* Add support for the RISC-V architecture.
76359541 25
29063f8b
NC
26* The command line option --no-eh-frame-hdr can now be used in ELF based
27 linkers to disable the automatic generation of .eh_frame_hdr sections.
28
0955507f
TP
29* Add --in-implib=<infile> to the ARM linker to enable specifying a set of
30 Secure Gateway veneers that must exist in the output import library specified
31 by --out-implib=<outfile> and the address they must have. As such,
32 --in-implib is only supported in combination with --cmse-implib.
33
76359541
TP
34* Extended the --out-implib=<file> option, previously restricted to x86 PE
35 targets, to any ELF based target. This allows the generation of an import
36 library for an ELF executable, which can then be used by another application
37 to link against the executable.
38
96a84ea3
TG
39Changes in 2.27:
40
647e4d46
L
41* Add a configure option --enable-relro to decide whether -z relro should
42 be enabled in ELF linker by default. Default to yes for all Linux
43 targets except FRV, HPPA, IA64 and MIPS.
44
4c10bbaa
L
45* Support for -z noreloc-overflow in the x86-64 ELF linker to disable
46 relocation overflow check.
47
b8871f35
L
48* Add -z common/-z nocommon options for ELF targets to control whether to
49 convert common symbols to the STT_COMMON type during a relocatable link.
50
aec6b87e
L
51* Support for -z nodynamic-undefined-weak in the x86 ELF linker, which
52 avoids dynamic relocations against undefined weak symbols in executable.
53
cdf96953
MF
54* The NOCROSSREFSTO command was added to the linker script language.
55
1f56df9d
JW
56* Add --no-apply-dynamic-relocs to the AArch64 linker to do not apply link-time
57 values for dynamic relocations.
58
7feec526
TG
59Changes in 2.26:
60
a504d23a
LA
61* Add --fix-stm32l4xx-629360 to the ARM linker to enable a link-time
62 workaround for a bug in the bus matrix / memory controller for some of
63 the STM32 Cortex-M4 based products (STM32L4xx)
81c23f82 64
6c3bc0f8
NC
65* Add a configure option --enable-compressed-debug-sections={all,ld} to
66 decide whether DWARF debug sections should be compressed by default.
67
886a2506
NC
68* Add support for the ARC EM/HS, and ARC600/700 architectures.
69
0f088b2a
KT
70* Experimental support for linker garbage collection (--gc-sections)
71 has been enabled for COFF and PE based targets.
72
ea556d25
L
73* New command line option for ELF targets to compress DWARF debug
74 sections, --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
75
c005eb9e
AB
76* New command line option, --orphan-handling=[place|warn|error|discard], to
77 adjust how orphan sections are handled. The default is 'place' which gives
78 the current behaviour, 'warn' and 'error' issue a warning or error
79 respectively when orphan sections are found, and 'discard' will discard all
80 orphan sections.
3ea60775 81
b0619670
L
82* Add support for LLVM plugin.
83
3604cb1f
TG
84* Add --print-memory-usage option to report memory blocks usage.
85
0a618243
AB
86* Add --require-defined option, it's like --undefined except the new symbol
87 must be defined by the end of the link.
88
c50415e2
TG
89Changes in 2.25:
90
eeb14e5a
LZ
91* PE binaries now once again contain real timestamps by default. To disable
92 the inclusion of a timestamp in a PE binary, use the --no-insert-timestamp
93 command line option.
94
73589c9d
CS
95* Replace support for openrisc and or32 with support for or1k.
96
61e2488c
JT
97* Add support for the --build-id command line option to COFF based targets.
98
99* x86/x86_64 pe-coff now supports the --build-id option.
100
35c08157
KLC
101* Add support for the Andes NDS32.
102
58ca03a2
TG
103Changes in 2.24:
104
2e53f7d6
NC
105* Add LOG2CEIL() builtin function to the linker script language
106
13761a11
NC
107* Add support for the Texas Instruments MSP430X processor.
108
36591ba1
SL
109* Add support for Altera Nios II.
110
78c8d46c
NC
111* Add support for the V850E3V5 architecture.
112
a3c62988
NC
113* Add support for the Imagination Technologies Meta processor.
114
b1b00fcc
MF
115* --enable-new-dtags no longer generates old dtags in addition to new dtags.
116
e8044f35
RS
117* Remove linker support for MIPS ECOFF targets.
118
1eec346e
NC
119* Add ALIGN_WITH_INPUT to the linker script language to force the alignment of
120 an output section to use the maximum alignment of all its input sections.
121
af18cb59
TG
122Changes in 2.23:
123
8d55a8a0
KT
124* Enable compressed debug section feature for x86/x86_64 pe-coff.
125
da2bb560
NC
126* Add support for the 64-bit ARM architecture: AArch64.
127
eda680f8
L
128* Added SORT_NONE to the linker script language to disable section sorting.
129
62655c7b
RM
130* Add a linker-provided symbol when producing ELF output, '__ehdr_start'
131 to point to the ELF file header (and nearby program headers) in the
132 program's memory image.
133
6927f982
NC
134* Add support for S12X processor.
135
b9c361e0
JL
136* Add support for the VLE extension to the PowerPC architecture.
137
f6c1a2d5
NC
138* Add support for the Freescale XGATE architecture.
139
a72173de
TG
140* Add option -f FILE on AIX (for response file).
141
99c513f6
DD
142* Add support for the Renesas RL78 architecture.
143
cfb8c092
NC
144* Add support for the Adapteva EPIPHANY architecture.
145
a7142d94
TG
146Changes in 2.22:
147
d064f206
NC
148* --copy-dt-needed-entries is no longer enabled by default. Instead
149 --no-copy-dt-needed-entries is the default.
150
ae17ab41 151* INPUT_SECTION_FLAGS has been added to the linker script language
cfb8c092 152 to allow selection of input sections by section header section flags.
ae17ab41 153
69f56ae1 154* Add support for the Tilera TILEPro and TILE-Gx architectures.
90b3661c 155
02ecc8e9 156* Added SORT_BY_INIT_PRIORITY to the linker script language to permit
cfb8c092
NC
157 sorting sections by numerical value of the GCC init_priority attribute
158 encoded in the section name.
02ecc8e9 159
44f45767
TG
160Changes in 2.21:
161
5fec8599
L
162* Linker script expression evaluation is somewhat more sane. This may
163 break scripts that depend on quirks of the old expression evaluation.
164
17f73277
KT
165* Turn off underscoring for x86_64 PE+-COFF targets. For old behavior the
166 option --enable-leading-mingw64-underscores can be used on configure of
167 bfd.
168
40b36596
JM
169* Add support for the TMS320C6000 (TI C6X) processor family.
170
ddbb8a31
NC
171* --add-needed renamed to --copy-dt-needed-entries in order to avoid confusion
172 with --as-needed option.
173
7fcab871
KT
174* Extend .def file syntax by '== <ID>' for imports and exports. This allows
175 to alias the import/export table name written in PE image.
176
a72173de 177* Add --exclude-all-symbols option to PE based linkers. This prevents all
2927aaca
NC
178 symbols from automatically being exported.
179
c7927a3c
NC
180* Add support for the Renesas RX processor.
181
75875724
TG
182* Add support for alpha-vms target.
183
81c23f82
TG
184Changes in 2.20:
185
3e7a7d11
NC
186* GNU/Linux targets now support the STB_GNU_UNIQUE symbol binding. This is a
187 GNU extension to the standard set of ELF symbol bindings. The binding will
188 be passed on to the dynamic linker which will make sure that in the entire
189 process there is just one symbol with the given name and type in use.
ce11ba6c 190
c1711530
DK
191* PE targets now support a GNU extension to allow the alignment of common
192 common symbols to be specified. This support uses custom options in
193 the .drectve section, which will be disregarded by the native tools.
194
09e2aba4
DK
195* PE targets now add primitive support for ELF version scripts; symbols
196 are not versioned, but the local and global symbol visibility directives
197 are respected when filtering symbols in auto-export mode.
198
267e2722
CD
199* New option --no-export-dynamic to undo the effect of the -E and
200 --export-dynamic options.
201
a0c402a5
L
202* ELF: --warn-alternate-em option to warn if an object has alternate
203 ELF machine code.
204
4a93e180
NC
205* New script function REGION_ALIAS to add alias names to memory regions.
206
88183869
DK
207* PE targets no longer make use of the long section names PE extension to
208 the COFF format when generating executable images, by default. The old
209 (slightly non-conformant) behaviour can still be invoked by using the
3efd345c
DK
210 new '--enable-long-section-names' command-line option. It is also enabled
211 automatically in the presence of un-stripped debug information, as GDB
212 needs to be able to find the debug info sections by their full names.
88183869 213
d8045f23
NC
214* For GNU/Linux systems the linker will now avoid processing any relocations
215 made against symbols of the STT_GNU_IFUNC type and instead emit them into
216 the resulting binary for processing by the loader.
217
28024d9d
L
218* --as-needed now links in a dynamic library if it satisfies undefined
219 symbols in regular objects, or in other dynamic libraries. In the
220 latter case the library is not linked if it is found in a DT_NEEDED
221 entry of one of the libraries already linked.
222
258795f5
L
223* Add a new command line option, -Ttext-segment ADDR, for ELF targets
224 to set the address of the first byte of the text segment.
225
c3b7224a
NC
226* Add support for Sunplus score architecture.
227
ce11ba6c
KT
228* Add new option --use-nul-prefixed-import-tables to ld for PE targets to
229 allow fallback to old import table generation with null element prefix.
230
e1c37eb5
DK
231* Windows PE systems now support a new --exclude-modules-for-implib option,
232 allowing users to partition object files and archive members between a DLL
233 and its associated import library as they are generated during linking.
234
84e94c90
NC
235* Add support for Lattice Mico32 (lm32) architecture.
236
62655c7b 237* Add CR16 ELF --embedded-relocs (used to embedded relocations into binaries
7251ccbf
SR
238 for Embedded-PIC code) option.
239
6cb442d3
KT
240* Add to the PE/PE+ targets the support of two different kinds of
241 pseudo-relocations. They can be selected by the switches
242 --enable-runtime-pseudo-reloc-v1 and --enable-runtime-pseudo-reloc-v2.
243 For the switch --enable-runtime-pseudo-reloc it uses for 32-bit
244 runtime pseudo relocation version one, for 64-bit the version two.
245
6e33da12
TG
246Changes in 2.19:
247
66c103b7
AM
248* Linker scripts support a new INSERT command that makes it easier to
249 augment the default script.
250
967928e9 251* Linker script input section filespecs may now specify a file within an
66c103b7 252 archive by writing "archive:file".
967928e9 253
de7dd2bd
NC
254* The --sort-common switch now has an optional argument which specifies the
255 direction of sorting.
256
7fb9f789
NC
257* The M68K linker now supports multiple GOT generation schemes controlled via
258 the --got=<type> command line option.
259
66c103b7
AM
260* The ARM EABI linker will now generate stubs for function calls to symbols
261 that are too far away. The placement of the stubs is controlled by a new
262 linker command line option: --stub-group-size=N.
726150b7 263
7c3d153f
NC
264Changes in 2.18:
265
f96b4a7b
NC
266* Linker sources now released under version 3 of the GNU General Public
267 License.
268
c0065db7
RM
269* ELF: New --build-id option to generate a unique per-binary identifier
270 embedded in a note section.
271
3d3d428f 272* Added support for National Semicondutor CompactRISC (ie CR16) target.
a19bcec6 273
bcb674cf
RS
274* -l:foo now searches the library path for a filename called foo,
275 without converting it to libfoo.a or libfoo.so.
276
14be8564
L
277* Add a new command line option '--default-script=FILE' or '-dT FILE'
278 which specifies a replacement for the built in, default linker
279 script.
280
40b36307
L
281* ELF: Add -Bsymbolic-functions, --dynamic-list-cpp-new, which puts C++
282 operator new and delete on the dynamic list, and --dynamic-list-data,
283 builtin list for --dynamic-list, which puts global data symbols on the
284 dynamic list.
285
99ad8390
NC
286* Add support for x86_64 PE+ target.
287
1c0d3aa6
NC
288* Add support for Score target.
289
55255dae
L
290* ELF: Add --dynamic-list option to specify a list of global symbols
291 whose references shouldn't be bound to the definition within the
292 shared library, or a list of symbols which should be added to the
293 symbol table in the executable.
294
dc0b6aa0
AM
295* The default output section LMA has changed for allocatable sections from
296 being equal to VMA, to keeping the difference between LMA and VMA the same as
297 the previous output section in the same region. This is a more useful
298 default when using overlays and other cases where you specify an LMA
299 differing from the VMA for some sections.
300
c17d87de
NC
301* New switch: --print-gc-sections to list any sections removed by garabge
302 collection.
303
c6dd86c6 304* ARM: Added --vfp11-denorm-fix option to work around an erratum in current
f96b4a7b 305 VFP11 coprocessors.
c6dd86c6 306
c17d87de 307Changes in 2.17:
cf88bb9f 308
d70c5fc7
NC
309* Support for the Infineon XC16X has been added by KPIT Cummins Infosystems.
310
dfcffada
AM
311* Modify the Linux linker search order to better match ld.so search order.
312 Look for DT_NEEDED libraries in paths specified by ld.so.conf before
313 searching the default directories, rather than vice versa.
314 Use $prefix/etc/ld.so.conf if it exists, otherwise /etc/ld.so.conf.
c1446dba 315
4b5bd4e7
DS
316* PE-COFF: Forward exports from DLL's can now be specified in .def files
317 passed directly to ld.
318
3c9b82ba
NC
319* Support for the Z80 processor family has been added.
320
3e8a519c
MM
321* Add support for the "@<file>" syntax to the command line, so that extra
322 switches can be read from <file>.
323
957d91c1
NC
324Changes in 2.16:
325
319850b4
JB
326* Support for the R_ARM_V4BX relocation as defined in the ARM AAELF
327 specification has been added via the --fix-v4bx command-line option.
328
b717d30e
JJ
329* New linker script construct AS_NEEDED(), which sets the --as-needed flag
330 for input files listed inside of it.
331
e2243057
RS
332* A new command-line option, --sysroot, can be used to override the
333 default sysroot location. It only applies to toolchains that were
334 configured using --with-sysroot.
335
3ec57632
NC
336* New linker script functions: ORIGIN() and LENGTH() which return information
337 about a specified memory region.
338
7499d566
NC
339* Port to MAXQ processor contributed by HCL Tech.
340
ba916c8a
MM
341* Added SEGMENT_START to the linker script language to permit the user to
342 override the base address for a segment from the command-line.
343
8fdd7217
NC
344* ELF: --warn-shared-textrel option to warn if adding a DT_TEXTREL to a shared
345 object.
346
bcaa7b3e
L
347* Added SORT_BY_NAME and SORT_BY_ALIGNMENT to the linker script
348 language to permit sorting sections by section name or section
349 maximum alignment.
350
351* Added a new linker command line switch, --sort-section name|alignment,
352 to sort sections by section name or maximum alignment.
353
8fdd7217
NC
354* ELF: --add-needed/--no-add-needed options to control if a DT_NEEDED tag
355 should be added when a shared library comes from DT_NEEDED tags.
14b3c463 356
1fe1f39c
NC
357* Support for the crx-elf target added.
358
1a320fbb 359* Support for the sh-symbianelf target added.
1fe1f39c 360
2d643429
NC
361* A new linker command line switch has been added which allows the hash table
362 size to be set to a suitable prime value near to its argument. This switch
363 is --hash-size=<NUMBER>. Also if the switch --reduce-memory-overheads is
364 used, and --hash-size has not been used, then the default value will be set
365 to 1021.
366
35835446
JR
367* Linker map files are now generated with an O(N) algorithm for finding symbols
368 that are defined in each section. This uses about 40% more memory for
369 symbols than the old O(N^2) algorithm. You can use the new
370 --reduce-memory-overheads option to select the old algorithm; this option
371 might also be used in the future to select similar tradeoffs.
372
2d643429 373Changes in 2.15:
14b3c463 374
8fdd7217
NC
375* ELF: --as-needed/--no-as-needed options to control if a DT_NEEDED tag should
376 be added only when a shared library is referenced.
c0065db7 377
8fdd7217 378* PE: --large-address-aware option to indicate executables support virtual
26d2d8a2
BF
379 addresses greater than 2 gigabytes.
380
1b169501
BF
381* DWARF 2 support for i386pe added.
382
c894ddfb
HPN
383* The linker script operator DEFINED() will now yield 1 only for a symbol that
384 is defined before the statement where DEFINED is used.
385
7a7f4e42
CD
386* The MIPS --embedded-relocs (used to embed relocations into binaries for
387 Embedded-PIC code) is deprecated and will be removed in a future release.
388
0949843d
NC
389* cr16c support added by NSC.
390
6edf0760
NC
391* m32r Linux (ELF) support added by Renesas.
392
560e09e9
NC
393* Improved linker's handling of unresolved symbols. The switch
394 --unresolved-symbols=<method> has been added to tell the linker when it
395 should report them and the switch --warn-unresolved-symbols has been added to
396 make reports be issued as warning messages rather than errors.
397
43c58ae6
CD
398Changes in 2.14:
399
e8fd7476
NC
400* Added support for Xtensa architecture.
401
9c8ebd6a
DJ
402* Added --with-sysroot configure switch to specify a target system root, for
403 linking against a target filesystem image.
404
312b768e
NC
405* Added --accept-unknown-linker-format to restore old linker behaviour (pre
406 2.14) of silently accepting and linking in any files in an unknown binary
407 file format.
408
63fd3b82
NC
409* Added --no-omagic to undo the effects of the -N option.
410
004d9caf
NC
411* Support for Texas Instruments TMS320C4x and TMS320C3x series of
412 DSP's contributed by Michael Hayes and Svein E. Seldal.
c0065db7 413
8e523c23
NC
414* Added --with-lib-path configure switch to specify default value for
415 LIB_PATH.
416
7e392df6
NC
417* ARM port to QNX operating system added by Graeme Peterson.
418
cf88bb9f
NC
419* IP2K support added by Denis Chertykov.
420
2cbb2eef
NC
421Changes in 2.13:
422
423* Support for the Fujitsu FRV architecture added by Red Hat. Models for FR400
424 and FR500 included.
7d553a40 425
37020578
JT
426Changes in version 2.13:
427
428* DEC VAX ELF support, by Matt Thomas.
429
9a66911f
NC
430Changes in version 2.12:
431
49fda6c8
HPN
432* Support for Don Knuth's MMIX, by Hans-Peter Nilsson.
433
3b16e843
NC
434* Support for the OpenRISC 32-bit embedded processor by OpenCores.
435
8bd621d8
AM
436* Support for -z nocopyreloc in the x86 ELF linker, which disables
437 production of copy relocs. Warning: using this option may result in
438 non-sharable applications.
5b343f5a 439
db6751f2
JJ
440* Support for -z combreloc in the ELF linker, which puts dynamic
441 relocations against the same symbol together, so that dynamic linker
442 can use an one-entry symbol lookup cache.
443
444* Support for ELF SHF_MERGE section merging, by Jakub Jelinek.
445
9a66911f
NC
446Changes in version 2.11:
447
b8355149
JH
448* Support for AMD x86-64 architecture, by Jan Hubicka, SuSE Labs.
449
18e03609
NC
450* Support added for eliminating duplicate DWARF2 debug information by
451 having the compiler generate the information in sections called
452 .gnu.linkonce.wi.XXXX where XXXX is a checksum for the contents. The
453 linker then merges these sections together into the normal .debug_info
454 section.
252b5132 455
ec4eb78a
L
456* The native ELF linker now searches the directories in DT_RUNPATH or
457 DT_RPATH of a shared library for shared libraries needed by it.
458
2d30b3da
TW
459* TI C54x support, by Timothy Wall.
460
176355da 461* Added command line switch --section-start to set the start address of any
c0065db7 462 specified section.
176355da 463
a712da20
NC
464* Added ability to emit full relocation information in linked executables,
465 enabled by --emit-relocs. Some post-linkage optimization tools need
466 this information in order to be able to correctly identify and perform
467 symbol relative addressing in the event of changes in section contents
468 (instructions being added or deleted, extending data sections, etc.)
469
22b36938
JE
470* Support for i860, by Jason Eckhardt (preliminary, alpha quality).
471
5bcac8a4
HPN
472* Support for CRIS (Axis Communications ETRAX series).
473
500800ca
NC
474* Support for PDP-11 and 2.11BSD a.out format, by Lars Brinkhoff.
475
919e4093
AM
476Changes in version 2.10:
477
c0065db7 478* Added AT> to the linker script language to allow load-time allocation of
5948916f
TW
479 sections into regions.
480
c0065db7 481* Added garbage collection of unused sections, enabled by --gc-sections.
252b5132 482 It does require a bit of backend support; currently implemented are
4667035e
AM
483 arm-elf, avr-elf, d10v-elf, fr30-elf, i386-elf, m32r-elf, m68k-elf,
484 mcore-elf, mips-elf, mn10300-elf, ppc-elf, sh-elf, sparc-elf, and v850-elf.
987fd5b4 485 Others will ignore the option.
252b5132
RH
486
487* Added SORT to the linker script language to permit sorting sections by file
488 name or section name.
489
490* Added EXTERN to the linker script language as an equivalent to the -u
491 command-line option.
492
493* Added ASSERT to the linker script language.
494
277c9afe
ILT
495* Added EXCLUDE_FILE to the linker script language for further control over
496 wildcard file names.
497
252b5132 498* Added -O option to optimize linker output (as of this writing, this only
500800ca 499 affects ELF shared library generation).
252b5132
RH
500
501* The -e option now accepts a number as well as a symbol name.
502
2575273d
ILT
503* Added --no-undefined option to disallow undefined symbols when creating a
504 shared library.
505
9b1d3b78
ILT
506* The linker now issues a warning, not an error, for an undefined symbol when
507 using -Bsymbolic; use the new --no-undefined option to get the old
508 behaviour.
509
252b5132
RH
510* Added --demangle and --no-demangle options.
511
512Changes in version 2.9:
513
514* Added SQUAD to the linker script language.
515
516* New option --no-warn-mismatch.
517
518* The MEMORY command now parses the attributes to determine where sections that
519 are not placed in a specific memory region are placed.
520
521Changes in version 2.8:
522
523* Linker scripts may now contain shell wildcard characters for file and section
524 names.
525
526* The linker now supports symbol versions in ELF.
527
528* The NOCROSSREFS command was added to the linker script language.
529
530* The LOADADDR expression was added to the linker script language.
531
532* MAX and MIN functions were added to the linker script language.
533
534* The OVERLAY construct was added to the linker script language.
535
536* New option --warn-section-align to warn when the address of an output section
537 changes due to alignment of an input section.
538
539* New options --filter/-F and --auxiliary/-f.
540
541Changes in version 2.7:
542
543* New option --cref to print out a cross reference table.
544
545* New option --wrap SYMBOL.
546
547* New option --no-whole-archive, to turn off the effect of --whole-archive.
548
549* Input sections assigned to the output section /DISCARD/ in the linker script
550 are not included in the output file.
551
552* The SunOS and ELF linkers now merge stabs debugging information which uses
553 the N_BINCL and N_EINCL stab types. This reduces the amount of debugging
554 information generated.
555
556Changes in version 2.6:
557
558* When an ELF section name is representable as a C identifier (this is not true
45f111cc
NC
559of most ELF section names), the linker will automatically define symbols
560__start_SECNAME and __stop_SECNAME, where SECNAME is the section name, at the
561beginning and the end of the section. This is used by glibc.
562
563 Addendum: Current versions of the linker (at least for version 2.18 onwards
564and possibly much earlier as well) place two restrictions on this feature: The
565symbols are only implemented for orphaned sections, not for explicitly placed
566sections and they are PROVIDEd rather than being defined.
252b5132
RH
567
568* When an ELF section named .gnu.warning is encountered in an input file, the
569contents of the section are displayed as an error message, and the section is
570not copied into the output file. This is used by glibc.
571
572* When an ELF section named .gnu.warning.SYMBOL is encountered in an input
573file, and the symbol SYMBOL is referenced by some object file, the contents of
574the section are displayed as an error message. The section is not copied into
1049f94e 575the output file, unless doing a relocatable or shared link. This is used by
252b5132
RH
576glibc.
577
578* New options -split-by-reloc and -split-by-file.
579
580* The linker now supports linking PIC compiled code on SPARC SunOS. It can
581also create SPARC SunOS shared libraries, and, like the native SunOS linker,
582will do so whenever there is an undefined symbol in the link and neither the -e
583nor the -r option was used.
584
585* The -rpath option may be used on SunOS to set the list of directories to be
586searched at run time. This overrides the default of building the list from the
587-L options.
588
589* The COFF linker now combines debugging information for structs, unions, and
590enums, so that even if the same type is defined in multiple input files it will
591only be defined once in the output file. The --traditional-format switch will
592prevent this optimization.
593
594Changes in version 2.5:
595
596* The linker now supports linking against SunOS shared libraries. It still can
597not link SunOS PIC (Position Independent Code) files, so it can not be used to
07f3b6ad 598generate shared libraries.
252b5132
RH
599
600* The linker now supports linking against ELF shared libraries for the i386
601(UnixWare) and SPARC (Solaris). It can also link ELF PIC files, and can be
602used to generate shared libraries. Shared library generation is not well
603tested; please report any problems encountered. The linker is now enabled for
604Solaris again.
605
606* Eric Youngdale has contributed Linux support code, including linking against
607Linux a.out shared libraries. The linker produces Linux QMAGIC binaries.
608
609* The ELF backend has been converted to the new linker code. To use the new
610ELF linker, each particular target requires a relocation function. So far,
611this function has been written for i386 (UnixWare), SPARC (Solaris) MIPS (Irix
6125), and HPPA ELF targets.
613
614* The -( (--start-group) and -) (--end-group) options have been added to
615support searching a group of archives as though they were a single archive.
616This can also be used in a linker script, as GROUP ( files ).
617
618* When a file is named on the command line, and the linker does not recognize
619it as an object file, the linker will now treat the file as a linker script
620file. A linker script named in this way augments, but does not replace, the
621default linker script.
622
623* The -warn-once option was added. It causes the linker to only warn once per
624undefined symbol, rather than once per reference.
625
626* The COFF backend has been converted to the new linker code. As with ELF, to
627use the new linker, each particular target requires a relocation function. So
628far, this function has been written for the i386, m68k, a29k and SH targets.
629
630* The -V flag was made a synonym for -v, for SVR4 compatibility. The old -V
631behaviour is available via --verbose.
632
633Changes in version 2.4:
634
635* New linker code, by Steve Chamberlain and Ian Taylor. For a.out and ecoff
636 formats (so far), this should result in considerable savings in time
637 and memory used while linking; slightly poorer performance than
638 before for formats not converted yet.
639
640* Command-line parsing is no longer done with flex. This means
641 oddball characters in filenames won't get treated as argument
642 separators.
643
644* HP-PA ELF support, by Jeff Law. (No SOM support yet.)
645
646* Mach i386 support, by David Mackenzie.
647
648* Irix 4 shared libraries are now supported (Irix 5 uses ELF, and ELF shared
649 libraries are not yet supported).
650
651* COFF shared libraries (as on SCO) should work as well.
652
653* The linker is disabled for Solaris. (Actually, it was in 2.3 also, I just
654 forgot to note it.) Some of their C library routines don't work when
655 statically linked, and the GNU linker doesn't support dynamic linking yet.
656
657Changes in version 2.3:
658
659* Weak symbols are now supported.
660
661* ELF support has been added. The linker has been bootstrapped on
662 UnixWare and Solaris.
663
664* Alpha OSF/1 support has been added (non dynamic linking only).
665
666Changes in version 2.2:
667
668* The `bfd' library has been updated to reduce a.out-format string
669 table size. The effect of this is that files linked from many input
670 files with duplicate symbols (`-g' debugging records, or identical
671 static symbols) should be much smaller.
672
673Changes in version 2.1:
674
675* The ld -ySYMBOL flag (to trace references to SYMBOL) is now implemented.
676
677* There is now support for writing ECOFF files, so ld and the
678 other utilities should work on Risc/Ultrix and Irix.
679
680\f
2571583a 681Copyright (C) 2012-2017 Free Software Foundation, Inc.
5bf135a7
NC
682
683Copying and distribution of this file, with or without modification,
684are permitted in any medium without royalty provided the copyright
685notice and this notice are preserved.
686
252b5132
RH
687Local variables:
688fill-column: 79
689End:
This page took 0.824799 seconds and 4 git commands to generate.