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