ld, gold: remove support for -z bndplt (MPX prefix)
[binutils-gdb.git] / ld / NEWS
1 -*- text -*-
2
3 * The linker has a new command line option to suppress the generation of any
4 warning or error messages. This can be useful when there is a need to create
5 a known non-working binary. The option is -w or --no-warnings.
6
7 * ld now supports zstd compressed debug sections. The new option
8 --compress-debug-sections=zstd compresses debug sections with zstd.
9
10 * Add --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
11 that selects the default compression algorithm
12 for --enable-compressed-debug-sections.
13
14 * Remove support for -z bndplt (MPX prefix instructions).
15
16 Changes in 2.39:
17
18 * The ELF linker will now generate a warning message if the stack is made
19 executable. By default this warning is not issued if the user has
20 specifically requested an executable stack via the "-z execstack"
21 command line option, but the warning can be forced via the new
22 "--warn-execstack" option. Alternatively all warnings about creating
23 an executable stack can be suppressed via the "--no-warn-execstack"
24 option.
25
26 In addition the ELF linker will also warn if it creates a memory resident
27 segment with all three of the Read, Write and eXecute permissions set, or
28 if it creates a thread local data segment with the eXecute permission set.
29 These warnings can be disabled via --no-warn-rwx-segments option and
30 re-enabled via the --warn-rwx-segments option.
31
32 New configure options can also control these new features:
33
34 --enable-warn-execstack=no
35 will disable the warnings about creating an executable stack.
36
37 --enable-warn-execstack=yes
38 will make --warn-execstack enabled by default.
39
40 --enable-warn-rwx-segments=no
41 will make --no-warn-rwx-segments enabled by default.
42
43 --enable-default-execstack=no
44 will stop the creation of an executable stack simply because an input file
45 is missing a .note.GNU-stack section, even on architectures where this
46 behaviour is the default.
47
48 * TYPE=<type> is now supported in an output section description to set the
49 section type value.
50
51 * Remove (rudimentary) support for the x86-64 sub-architectures Intel L1OM and
52 Intel K1OM.
53
54 * The ELF linker now supports a new --package-metadata option that allows
55 embedding a JSON payload in accordance to the Package Metadata specification.
56 If support for libjansson is enabled at build time, the linker will use it to
57 validate the input. This can be enabled with --enable-jansson.
58 For more details, see: https://systemd.io/ELF_PACKAGE_METADATA/
59
60 Changes in 2.38:
61
62 * Add -z pack-relative-relocs/-z no pack-relative-relocs to x86 ELF
63 linker to pack relative relocations in the DT_RELR section.
64
65 * Add support for the LoongArch architecture.
66
67 * Add -z indirect-extern-access/-z noindirect-extern-access to x86 ELF
68 linker to control canonical function pointers and copy relocation.
69
70 * Add --max-cache-size=SIZE to set the the maximum cache size to SIZE
71 bytes.
72
73 Changes in 2.37:
74
75 * arm-symbianelf support removed.
76
77 * Add -z report-relative-reloc to x86 ELF linker to report dynamic
78 relative relocations.
79
80 * Add -z start-stop-gc to disable special treatment of __start_*/__stop_*
81 references when --gc-sections.
82
83 * Add -Bno-symbolic to cancel -Bsymbolic and -Bsymbolic-functions.
84
85 Changes in 2.36:
86
87 * Add libdep plugin, for linking dependencies of static libraries that
88 were recorded by ar in the __.LIBDEP archive member.
89
90 * Add --error-handling-script=<NAME> command line option to allow a helper
91 script to be invoked when an undefined symbol or a missing library is
92 encountered. This option can be suppressed via the configure time
93 switch: --enable-error-handling-script=no.
94
95 * Add -z lam-u48 to x86-64 ELF linker to generate LAM_U48 property.
96
97 * Add -z lam-u57 to x86-64 ELF linker to enerate LAM_U57 property.
98
99 * Add -z lam-u48-report=[none|warning|error] to report missing LAM_U48
100 property.
101
102 * Add -z lam-u57-report=[none|warning|error] to report missing LAM_U57
103 property.
104
105 * Add -z lam-report=[none|warning|error] to report missing LAM_U48 and
106 LAM_U57 properties.
107
108 * Add -z x86-64-{baseline|v[234]} to the x86 ELF linker to mark
109 x86-64-{baseline|v[234]} ISA level as needed.
110
111 * Add -z unique-symbol to avoid duplicated local symbol names.
112
113 * The creation of PE format DLLs now defaults to using a more secure set of DLL
114 characteristics.
115
116 * The linker now deduplicates the types in .ctf sections. The new
117 command-line option --ctf-share-types describes how to do this:
118 its default value, share-unconflicted, produces the most compact
119 output.
120
121 * The linker now omits the "variable section" from .ctf sections by
122 default, saving space. This is almost certainly what you want
123 unless you are working on a project that has its own analogue
124 of symbol tables that are not reflected in the ELF symtabs.
125
126 * Add support for the SHF_GNU_RETAIN ELF section flag.
127 This flag specifies that the section should not be garbage collected by the
128 linker.
129
130 Changes in 2.35:
131
132 * X86 NaCl target support is removed.
133
134 * Add ELF linker command-line options, --export-dynamic-symbol and
135 --export-dynamic-symbol-list, to make symbols dynamic.
136
137 * Add a configure option, --enable-textrel-check=[no|yes|warning|error],
138 to decide what ELF linker should do by default with DT_TEXTREL in an
139 executable or shared library. Default to yes for Linux/x86 targets.
140
141 * The -Map=<filename> command line option has been extended so that if
142 <filename> is a directory then <filename>/<output-filename>.map will be
143 created.
144
145 * Add a command-line option for ELF linker, --warn-textrel, to warn that
146 DT_TEXTREL is set in a position-independent executable or shared object.
147
148 * Add command-line options --enable-non-contiguous-regions and
149 --enable-non-contiguous-regions-warnings.
150
151 * Add command-line option --imagic for the pdp11-aout target to output format
152 IMAGIC (0411) for separate instruction and data spaces, and change the
153 default format option for pdp11-aout to be --omagic.
154
155 * Relative pathnames in INPUT() and GROUP() directives in linker scripts are
156 searched relative to the directory of the linker script before other search
157 paths.
158
159 * Add ELF linker command-line option `-z start-stop-visibility=...' to control
160 the visibility of synthetic `__start_SECNAME` and `__stop_SECNAME` symbols.
161
162 * Add command-line option --dependency-file to write a Make-style dependency
163 file listing the input files consulted by the linker, like the files written
164 by the compiler's -M -MP options.
165
166 Changes in 2.34:
167
168 * The ld check for "PHDR segment not covered by LOAD segment" is more
169 effective, catching cases that were wrongly allowed by previous versions of
170 ld. If you see this error it is likely you are linking with a bad linker
171 script or the binary you are building is not intended to be loaded by a
172 dynamic loader. In the latter case --no-dynamic-linker is appropriate.
173
174 * cr16c support removed.
175
176 * Add support for z80-elf.
177
178 * Add support for relocation of each byte or word of multibyte value to Z80
179 targets.
180
181 * Add support for Zilog eZ80 (both ADL and Z80 mode) and Zilog Z180 CPUs.
182
183 Changes in 2.33:
184
185 * Add command-line option --no-print-map-discarded.
186
187 * The Cortex-A53 Erratum 843419 workaround now supports a choice of which
188 workaround to use. The option --fix-cortex-a53-843419 now takes an
189 optional argument --fix-cortex-a53-843419[=full|adr|adrp] which can be
190 used to force a particular workaround to be used. See --help for AArch64
191 for more details.
192
193 * Add target handlers for AArch64 for ELF GNU program properties.
194
195 * Add support for GNU_PROPERTY_AARCH64_FEATURE_1_BTI in ELF GNU program
196 properties in the AArch64 ELF linker.
197
198 * Add support for GNU_PROPERTY_AARCH64_FEATURE_1_PAC in ELF GNU program
199 properties in the AArch64 ELF linker.
200
201 * Add -z force-bti for AArch64 to enable GNU_PROPERTY_AARCH64_FEATURE_1_BTI
202 on output while warning about missing GNU_PROPERTY_AARCH64_FEATURE_1_BTI
203 on inputs and use PLTs protected with BTI.
204
205 * Add -z pac-plt for AArch64 to pick PAC enabled PLTs.
206
207 Changes in 2.32:
208
209 * Report property change in linker map file when merging GNU properties.
210
211 * Add support for the C-SKY processor series.
212
213 * -t now doesn't report members within archives, unless -t is given twice.
214 A single -t is now more useful when generating a list of files that should be
215 packaged for a linker bug report. For example:
216 gcc hello.c -save-temps -Wl,-t | xargs realpath | sort | uniq > files
217 tar cJf test.tar.xz `cat files`
218
219 Changes in 2.31:
220
221 * Speed up direct linking with DLLs for Cygwin and Mingw targets.
222
223 * Add a configure option --enable-separate-code to decide whether
224 -z separate-code should be enabled in ELF linker by default. Default
225 to yes for Linux/x86 targets. Note that -z separate-code can increase
226 disk and memory size.
227
228 Changes in 2.30:
229
230 * Add -z separate-code to generate separate code PT_LOAD segment.
231
232 * Add "-z undefs" command-line option as the inverse of the "-z defs" option.
233
234 * Add -z globalaudit command-line option to force audit libraries to be run
235 for every dynamic object loaded by an executable - provided that the loader
236 supports this functionality.
237
238 * Tighten linker script grammar around file name specifiers to prevent the use
239 of SORT_BY_ALIGNMENT and SORT_BY_INIT_PRIORITY on filenames. These would
240 previously be accepted but had no effect.
241
242 * The EXCLUDE_FILE directive can now be placed within any SORT_* directive
243 within input section lists.
244
245 Changes in 2.29:
246
247 * Support for -z shstk in the x86 ELF linker to generate
248 GNU_PROPERTY_X86_FEATURE_1_SHSTK in ELF GNU program properties.
249
250 * Add support for GNU_PROPERTY_X86_FEATURE_1_SHSTK in ELF GNU program
251 properties in the x86 ELF linker.
252
253 * Add support for GNU_PROPERTY_X86_FEATURE_1_IBT in ELF GNU program
254 properties in the x86 ELF linker.
255
256 * Support for -z ibtplt in the x86 ELF linker to generate IBT-enabled
257 PLT.
258
259 * Support for -z ibt in the x86 ELF linker to generate IBT-enabled
260 PLT as well as GNU_PROPERTY_X86_FEATURE_1_IBT in ELF GNU program
261 properties.
262
263 * Add support for ELF SHF_GNU_MBIND and PT_GNU_MBIND_XXX.
264
265 * Add support for ELF GNU program properties.
266
267 * Add support for the Texas Instruments PRU processor.
268
269 * When configuring for arc*-*-linux* targets the default linker emulation will
270 change if --with-cpu=nps400 is used at configure time.
271
272 * Improve assignment of LMAs to orphan sections in some edge cases where a
273 mixture of both AT>LMA_REGION and AT(LMA) are used.
274
275 * Orphan sections placed after an empty section that has an AT(LMA) will now
276 take an load memory address starting from LMA.
277
278 * Section groups can now be resolved (the group deleted and the group members
279 placed like normal sections) at partial link time either using the new linker
280 option --force-group-allocation or by placing FORCE_GROUP_ALLOCATION into the
281 linker script.
282
283 Changes in 2.28:
284
285 * The EXCLUDE_FILE linker script construct can now be applied outside of the
286 section list in order for the exclusions to apply over all input sections in
287 the list.
288
289 * Add support for the RISC-V architecture.
290
291 * The command-line option --no-eh-frame-hdr can now be used in ELF based
292 linkers to disable the automatic generation of .eh_frame_hdr sections.
293
294 * Add --in-implib=<infile> to the ARM linker to enable specifying a set of
295 Secure Gateway veneers that must exist in the output import library specified
296 by --out-implib=<outfile> and the address they must have. As such,
297 --in-implib is only supported in combination with --cmse-implib.
298
299 * Extended the --out-implib=<file> option, previously restricted to x86 PE
300 targets, to any ELF based target. This allows the generation of an import
301 library for an ELF executable, which can then be used by another application
302 to link against the executable.
303
304 Changes in 2.27:
305
306 * Add a configure option --enable-relro to decide whether -z relro should
307 be enabled in ELF linker by default. Default to yes for all Linux
308 targets except FRV, HPPA, IA64 and MIPS. Note that -z relro can increase
309 disk and memory size.
310
311 * Support for -z noreloc-overflow in the x86-64 ELF linker to disable
312 relocation overflow check.
313
314 * Add -z common/-z nocommon options for ELF targets to control whether to
315 convert common symbols to the STT_COMMON type during a relocatable link.
316
317 * Support for -z nodynamic-undefined-weak in the x86 ELF linker, which
318 avoids dynamic relocations against undefined weak symbols in executable.
319
320 * The NOCROSSREFSTO command was added to the linker script language.
321
322 * Add --no-apply-dynamic-relocs to the AArch64 linker to do not apply link-time
323 values for dynamic relocations.
324
325 Changes in 2.26:
326
327 * Add --fix-stm32l4xx-629360 to the ARM linker to enable a link-time
328 workaround for a bug in the bus matrix / memory controller for some of
329 the STM32 Cortex-M4 based products (STM32L4xx)
330
331 * Add a configure option --enable-compressed-debug-sections={all,ld} to
332 decide whether DWARF debug sections should be compressed by default.
333
334 * Add support for the ARC EM/HS, and ARC600/700 architectures.
335
336 * Experimental support for linker garbage collection (--gc-sections)
337 has been enabled for COFF and PE based targets.
338
339 * New command-line option for ELF targets to compress DWARF debug
340 sections, --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
341
342 * New command-line option, --orphan-handling=[place|warn|error|discard], to
343 adjust how orphan sections are handled. The default is 'place' which gives
344 the current behaviour, 'warn' and 'error' issue a warning or error
345 respectively when orphan sections are found, and 'discard' will discard all
346 orphan sections.
347
348 * Add support for LLVM plugin.
349
350 * Add --print-memory-usage option to report memory blocks usage.
351
352 * Add --require-defined option, it's like --undefined except the new symbol
353 must be defined by the end of the link.
354
355 Changes in 2.25:
356
357 * PE binaries now once again contain real timestamps by default. To disable
358 the inclusion of a timestamp in a PE binary, use the --no-insert-timestamp
359 command-line option.
360
361 * Replace support for openrisc and or32 with support for or1k.
362
363 * Add support for the --build-id command-line option to COFF based targets.
364
365 * x86/x86_64 pe-coff now supports the --build-id option.
366
367 * Add support for the Andes NDS32.
368
369 Changes in 2.24:
370
371 * Add LOG2CEIL() builtin function to the linker script language
372
373 * Add support for the Texas Instruments MSP430X processor.
374
375 * Add support for Altera Nios II.
376
377 * Add support for the V850E3V5 architecture.
378
379 * Add support for the Imagination Technologies Meta processor.
380
381 * --enable-new-dtags no longer generates old dtags in addition to new dtags.
382
383 * Remove linker support for MIPS ECOFF targets.
384
385 * Add ALIGN_WITH_INPUT to the linker script language to force the alignment of
386 an output section to use the maximum alignment of all its input sections.
387
388 Changes in 2.23:
389
390 * Enable compressed debug section feature for x86/x86_64 pe-coff.
391
392 * Add support for the 64-bit ARM architecture: AArch64.
393
394 * Added SORT_NONE to the linker script language to disable section sorting.
395
396 * Add a linker-provided symbol when producing ELF output, '__ehdr_start'
397 to point to the ELF file header (and nearby program headers) in the
398 program's memory image.
399
400 * Add support for S12X processor.
401
402 * Add support for the VLE extension to the PowerPC architecture.
403
404 * Add support for the Freescale XGATE architecture.
405
406 * Add option -f FILE on AIX (for response file).
407
408 * Add support for the Renesas RL78 architecture.
409
410 * Add support for the Adapteva EPIPHANY architecture.
411
412 Changes in 2.22:
413
414 * --copy-dt-needed-entries is no longer enabled by default. Instead
415 --no-copy-dt-needed-entries is the default.
416
417 * INPUT_SECTION_FLAGS has been added to the linker script language
418 to allow selection of input sections by section header section flags.
419
420 * Add support for the Tilera TILEPro and TILE-Gx architectures.
421
422 * Added SORT_BY_INIT_PRIORITY to the linker script language to permit
423 sorting sections by numerical value of the GCC init_priority attribute
424 encoded in the section name.
425
426 Changes in 2.21:
427
428 * Linker script expression evaluation is somewhat more sane. This may
429 break scripts that depend on quirks of the old expression evaluation.
430
431 * Turn off underscoring for x86_64 PE+-COFF targets. For old behavior the
432 option --enable-leading-mingw64-underscores can be used on configure of
433 bfd.
434
435 * Add support for the TMS320C6000 (TI C6X) processor family.
436
437 * --add-needed renamed to --copy-dt-needed-entries in order to avoid confusion
438 with --as-needed option.
439
440 * Extend .def file syntax by '== <ID>' for imports and exports. This allows
441 to alias the import/export table name written in PE image.
442
443 * Add --exclude-all-symbols option to PE based linkers. This prevents all
444 symbols from automatically being exported.
445
446 * Add support for the Renesas RX processor.
447
448 * Add support for alpha-vms target.
449
450 Changes in 2.20:
451
452 * GNU/Linux targets now support the STB_GNU_UNIQUE symbol binding. This is a
453 GNU extension to the standard set of ELF symbol bindings. The binding will
454 be passed on to the dynamic linker which will make sure that in the entire
455 process there is just one symbol with the given name and type in use.
456
457 * PE targets now support a GNU extension to allow the alignment of common
458 common symbols to be specified. This support uses custom options in
459 the .drectve section, which will be disregarded by the native tools.
460
461 * PE targets now add primitive support for ELF version scripts; symbols
462 are not versioned, but the local and global symbol visibility directives
463 are respected when filtering symbols in auto-export mode.
464
465 * New option --no-export-dynamic to undo the effect of the -E and
466 --export-dynamic options.
467
468 * ELF: --warn-alternate-em option to warn if an object has alternate
469 ELF machine code.
470
471 * New script function REGION_ALIAS to add alias names to memory regions.
472
473 * PE targets no longer make use of the long section names PE extension to
474 the COFF format when generating executable images, by default. The old
475 (slightly non-conformant) behaviour can still be invoked by using the
476 new '--enable-long-section-names' command-line option. It is also enabled
477 automatically in the presence of un-stripped debug information, as GDB
478 needs to be able to find the debug info sections by their full names.
479
480 * For GNU/Linux systems the linker will now avoid processing any relocations
481 made against symbols of the STT_GNU_IFUNC type and instead emit them into
482 the resulting binary for processing by the loader.
483
484 * --as-needed now links in a dynamic library if it satisfies undefined
485 symbols in regular objects, or in other dynamic libraries. In the
486 latter case the library is not linked if it is found in a DT_NEEDED
487 entry of one of the libraries already linked.
488
489 * Add a new command-line option, -Ttext-segment ADDR, for ELF targets
490 to set the address of the first byte of the text segment.
491
492 * Add support for Sunplus score architecture.
493
494 * Add new option --use-nul-prefixed-import-tables to ld for PE targets to
495 allow fallback to old import table generation with null element prefix.
496
497 * Windows PE systems now support a new --exclude-modules-for-implib option,
498 allowing users to partition object files and archive members between a DLL
499 and its associated import library as they are generated during linking.
500
501 * Add support for Lattice Mico32 (lm32) architecture.
502
503 * Add CR16 ELF --embedded-relocs (used to embedded relocations into binaries
504 for Embedded-PIC code) option.
505
506 * Add to the PE/PE+ targets the support of two different kinds of
507 pseudo-relocations. They can be selected by the switches
508 --enable-runtime-pseudo-reloc-v1 and --enable-runtime-pseudo-reloc-v2.
509 For the switch --enable-runtime-pseudo-reloc it uses for 32-bit
510 runtime pseudo relocation version one, for 64-bit the version two.
511
512 Changes in 2.19:
513
514 * Linker scripts support a new INSERT command that makes it easier to
515 augment the default script.
516
517 * Linker script input section filespecs may now specify a file within an
518 archive by writing "archive:file".
519
520 * The --sort-common switch now has an optional argument which specifies the
521 direction of sorting.
522
523 * The M68K linker now supports multiple GOT generation schemes controlled via
524 the --got=<type> command-line option.
525
526 * The ARM EABI linker will now generate stubs for function calls to symbols
527 that are too far away. The placement of the stubs is controlled by a new
528 linker command-line option: --stub-group-size=N.
529
530 Changes in 2.18:
531
532 * Linker sources now released under version 3 of the GNU General Public
533 License.
534
535 * ELF: New --build-id option to generate a unique per-binary identifier
536 embedded in a note section.
537
538 * Added support for National Semicondutor CompactRISC (ie CR16) target.
539
540 * -l:foo now searches the library path for a filename called foo,
541 without converting it to libfoo.a or libfoo.so.
542
543 * Add a new command-line option '--default-script=FILE' or '-dT FILE'
544 which specifies a replacement for the built in, default linker
545 script.
546
547 * ELF: Add -Bsymbolic-functions, --dynamic-list-cpp-new, which puts C++
548 operator new and delete on the dynamic list, and --dynamic-list-data,
549 builtin list for --dynamic-list, which puts global data symbols on the
550 dynamic list.
551
552 * Add support for x86_64 PE+ target.
553
554 * Add support for Score target.
555
556 * ELF: Add --dynamic-list option to specify a list of global symbols
557 whose references shouldn't be bound to the definition within the
558 shared library, or a list of symbols which should be added to the
559 symbol table in the executable.
560
561 * The default output section LMA has changed for allocatable sections from
562 being equal to VMA, to keeping the difference between LMA and VMA the same as
563 the previous output section in the same region. This is a more useful
564 default when using overlays and other cases where you specify an LMA
565 differing from the VMA for some sections.
566
567 * New switch: --print-gc-sections to list any sections removed by garabge
568 collection.
569
570 * ARM: Added --vfp11-denorm-fix option to work around an erratum in current
571 VFP11 coprocessors.
572
573 Changes in 2.17:
574
575 * Support for the Infineon XC16X has been added by KPIT Cummins Infosystems.
576
577 * Modify the Linux linker search order to better match ld.so search order.
578 Look for DT_NEEDED libraries in paths specified by ld.so.conf before
579 searching the default directories, rather than vice versa.
580 Use $prefix/etc/ld.so.conf if it exists, otherwise /etc/ld.so.conf.
581
582 * PE-COFF: Forward exports from DLL's can now be specified in .def files
583 passed directly to ld.
584
585 * Support for the Z80 processor family has been added.
586
587 * Add support for the "@<file>" syntax to the command line, so that extra
588 switches can be read from <file>.
589
590 Changes in 2.16:
591
592 * Support for the R_ARM_V4BX relocation as defined in the ARM AAELF
593 specification has been added via the --fix-v4bx command-line option.
594
595 * New linker script construct AS_NEEDED(), which sets the --as-needed flag
596 for input files listed inside of it.
597
598 * A new command-line option, --sysroot, can be used to override the
599 default sysroot location. It only applies to toolchains that were
600 configured using --with-sysroot.
601
602 * New linker script functions: ORIGIN() and LENGTH() which return information
603 about a specified memory region.
604
605 * Port to MAXQ processor contributed by HCL Tech.
606
607 * Added SEGMENT_START to the linker script language to permit the user to
608 override the base address for a segment from the command-line.
609
610 * ELF: --warn-shared-textrel option to warn if adding a DT_TEXTREL to a shared
611 object.
612
613 * Added SORT_BY_NAME and SORT_BY_ALIGNMENT to the linker script
614 language to permit sorting sections by section name or section
615 maximum alignment.
616
617 * Added a new linker command-line switch, --sort-section name|alignment,
618 to sort sections by section name or maximum alignment.
619
620 * ELF: --add-needed/--no-add-needed options to control if a DT_NEEDED tag
621 should be added when a shared library comes from DT_NEEDED tags.
622
623 * Support for the crx-elf target added.
624
625 * Support for the sh-symbianelf target added.
626
627 * A new linker command-line switch has been added which allows the hash table
628 size to be set to a suitable prime value near to its argument. This switch
629 is --hash-size=<NUMBER>. Also if the switch --reduce-memory-overheads is
630 used, and --hash-size has not been used, then the default value will be set
631 to 1021.
632
633 * Linker map files are now generated with an O(N) algorithm for finding symbols
634 that are defined in each section. This uses about 40% more memory for
635 symbols than the old O(N^2) algorithm. You can use the new
636 --reduce-memory-overheads option to select the old algorithm; this option
637 might also be used in the future to select similar tradeoffs.
638
639 Changes in 2.15:
640
641 * ELF: --as-needed/--no-as-needed options to control if a DT_NEEDED tag should
642 be added only when a shared library is referenced.
643
644 * PE: --large-address-aware option to indicate executables support virtual
645 addresses greater than 2 gigabytes.
646
647 * DWARF 2 support for i386pe added.
648
649 * The linker script operator DEFINED() will now yield 1 only for a symbol that
650 is defined before the statement where DEFINED is used.
651
652 * The MIPS --embedded-relocs (used to embed relocations into binaries for
653 Embedded-PIC code) is deprecated and will be removed in a future release.
654
655 * cr16c support added by NSC.
656
657 * m32r Linux (ELF) support added by Renesas.
658
659 * Improved linker's handling of unresolved symbols. The switch
660 --unresolved-symbols=<method> has been added to tell the linker when it
661 should report them and the switch --warn-unresolved-symbols has been added to
662 make reports be issued as warning messages rather than errors.
663
664 Changes in 2.14:
665
666 * Added support for Xtensa architecture.
667
668 * Added --with-sysroot configure switch to specify a target system root, for
669 linking against a target filesystem image.
670
671 * Added --accept-unknown-linker-format to restore old linker behaviour (pre
672 2.14) of silently accepting and linking in any files in an unknown binary
673 file format.
674
675 * Added --no-omagic to undo the effects of the -N option.
676
677 * Support for Texas Instruments TMS320C4x and TMS320C3x series of
678 DSP's contributed by Michael Hayes and Svein E. Seldal.
679
680 * Added --with-lib-path configure switch to specify default value for
681 LIB_PATH.
682
683 * ARM port to QNX operating system added by Graeme Peterson.
684
685 * IP2K support added by Denis Chertykov.
686
687 Changes in 2.13:
688
689 * Support for the Fujitsu FRV architecture added by Red Hat. Models for FR400
690 and FR500 included.
691
692 Changes in version 2.13:
693
694 * DEC VAX ELF support, by Matt Thomas.
695
696 Changes in version 2.12:
697
698 * Support for Don Knuth's MMIX, by Hans-Peter Nilsson.
699
700 * Support for the OpenRISC 32-bit embedded processor by OpenCores.
701
702 * Support for -z nocopyreloc in the x86 ELF linker, which disables
703 production of copy relocs. Warning: using this option may result in
704 non-sharable applications.
705
706 * Support for -z combreloc in the ELF linker, which puts dynamic
707 relocations against the same symbol together, so that dynamic linker
708 can use an one-entry symbol lookup cache.
709
710 * Support for ELF SHF_MERGE section merging, by Jakub Jelinek.
711
712 Changes in version 2.11:
713
714 * Support for AMD x86-64 architecture, by Jan Hubicka, SuSE Labs.
715
716 * Support added for eliminating duplicate DWARF2 debug information by
717 having the compiler generate the information in sections called
718 .gnu.linkonce.wi.XXXX where XXXX is a checksum for the contents. The
719 linker then merges these sections together into the normal .debug_info
720 section.
721
722 * The native ELF linker now searches the directories in DT_RUNPATH or
723 DT_RPATH of a shared library for shared libraries needed by it.
724
725 * TI C54x support, by Timothy Wall.
726
727 * Added command-line switch --section-start to set the start address of any
728 specified section.
729
730 * Added ability to emit full relocation information in linked executables,
731 enabled by --emit-relocs. Some post-linkage optimization tools need
732 this information in order to be able to correctly identify and perform
733 symbol relative addressing in the event of changes in section contents
734 (instructions being added or deleted, extending data sections, etc.)
735
736 * Support for i860, by Jason Eckhardt (preliminary, alpha quality).
737
738 * Support for CRIS (Axis Communications ETRAX series).
739
740 * Support for PDP-11 and 2.11BSD a.out format, by Lars Brinkhoff.
741
742 Changes in version 2.10:
743
744 * Added AT> to the linker script language to allow load-time allocation of
745 sections into regions.
746
747 * Added garbage collection of unused sections, enabled by --gc-sections.
748 It does require a bit of backend support; currently implemented are
749 arm-elf, avr-elf, d10v-elf, fr30-elf, i386-elf, m32r-elf, m68k-elf,
750 mcore-elf, mips-elf, mn10300-elf, ppc-elf, sh-elf, sparc-elf, and v850-elf.
751 Others will ignore the option.
752
753 * Added SORT to the linker script language to permit sorting sections by file
754 name or section name.
755
756 * Added EXTERN to the linker script language as an equivalent to the -u
757 command-line option.
758
759 * Added ASSERT to the linker script language.
760
761 * Added EXCLUDE_FILE to the linker script language for further control over
762 wildcard file names.
763
764 * Added -O option to optimize linker output (as of this writing, this only
765 affects ELF shared library generation).
766
767 * The -e option now accepts a number as well as a symbol name.
768
769 * Added --no-undefined option to disallow undefined symbols when creating a
770 shared library.
771
772 * The linker now issues a warning, not an error, for an undefined symbol when
773 using -Bsymbolic; use the new --no-undefined option to get the old
774 behaviour.
775
776 * Added --demangle and --no-demangle options.
777
778 Changes in version 2.9:
779
780 * Added SQUAD to the linker script language.
781
782 * New option --no-warn-mismatch.
783
784 * The MEMORY command now parses the attributes to determine where sections that
785 are not placed in a specific memory region are placed.
786
787 Changes in version 2.8:
788
789 * Linker scripts may now contain shell wildcard characters for file and section
790 names.
791
792 * The linker now supports symbol versions in ELF.
793
794 * The NOCROSSREFS command was added to the linker script language.
795
796 * The LOADADDR expression was added to the linker script language.
797
798 * MAX and MIN functions were added to the linker script language.
799
800 * The OVERLAY construct was added to the linker script language.
801
802 * New option --warn-section-align to warn when the address of an output section
803 changes due to alignment of an input section.
804
805 * New options --filter/-F and --auxiliary/-f.
806
807 Changes in version 2.7:
808
809 * New option --cref to print out a cross reference table.
810
811 * New option --wrap SYMBOL.
812
813 * New option --no-whole-archive, to turn off the effect of --whole-archive.
814
815 * Input sections assigned to the output section /DISCARD/ in the linker script
816 are not included in the output file.
817
818 * The SunOS and ELF linkers now merge stabs debugging information which uses
819 the N_BINCL and N_EINCL stab types. This reduces the amount of debugging
820 information generated.
821
822 Changes in version 2.6:
823
824 * When an ELF section name is representable as a C identifier (this is not true
825 of most ELF section names), the linker will automatically define symbols
826 __start_SECNAME and __stop_SECNAME, where SECNAME is the section name, at the
827 beginning and the end of the section. This is used by glibc.
828
829 Addendum: Current versions of the linker (at least for version 2.18 onwards
830 and possibly much earlier as well) place two restrictions on this feature: The
831 symbols are only implemented for orphaned sections, not for explicitly placed
832 sections and they are PROVIDEd rather than being defined.
833
834 * When an ELF section named .gnu.warning is encountered in an input file, the
835 contents of the section are displayed as an error message, and the section is
836 not copied into the output file. This is used by glibc.
837
838 * When an ELF section named .gnu.warning.SYMBOL is encountered in an input
839 file, and the symbol SYMBOL is referenced by some object file, the contents of
840 the section are displayed as an error message. The section is not copied into
841 the output file, unless doing a relocatable or shared link. This is used by
842 glibc.
843
844 * New options -split-by-reloc and -split-by-file.
845
846 * The linker now supports linking PIC compiled code on SPARC SunOS. It can
847 also create SPARC SunOS shared libraries, and, like the native SunOS linker,
848 will do so whenever there is an undefined symbol in the link and neither the -e
849 nor the -r option was used.
850
851 * The -rpath option may be used on SunOS to set the list of directories to be
852 searched at run time. This overrides the default of building the list from the
853 -L options.
854
855 * The COFF linker now combines debugging information for structs, unions, and
856 enums, so that even if the same type is defined in multiple input files it will
857 only be defined once in the output file. The --traditional-format switch will
858 prevent this optimization.
859
860 Changes in version 2.5:
861
862 * The linker now supports linking against SunOS shared libraries. It still can
863 not link SunOS PIC (Position Independent Code) files, so it can not be used to
864 generate shared libraries.
865
866 * The linker now supports linking against ELF shared libraries for the i386
867 (UnixWare) and SPARC (Solaris). It can also link ELF PIC files, and can be
868 used to generate shared libraries. Shared library generation is not well
869 tested; please report any problems encountered. The linker is now enabled for
870 Solaris again.
871
872 * Eric Youngdale has contributed Linux support code, including linking against
873 Linux a.out shared libraries. The linker produces Linux QMAGIC binaries.
874
875 * The ELF backend has been converted to the new linker code. To use the new
876 ELF linker, each particular target requires a relocation function. So far,
877 this function has been written for i386 (UnixWare), SPARC (Solaris) MIPS (Irix
878 5), and HPPA ELF targets.
879
880 * The -( (--start-group) and -) (--end-group) options have been added to
881 support searching a group of archives as though they were a single archive.
882 This can also be used in a linker script, as GROUP ( files ).
883
884 * When a file is named on the command line, and the linker does not recognize
885 it as an object file, the linker will now treat the file as a linker script
886 file. A linker script named in this way augments, but does not replace, the
887 default linker script.
888
889 * The -warn-once option was added. It causes the linker to only warn once per
890 undefined symbol, rather than once per reference.
891
892 * The COFF backend has been converted to the new linker code. As with ELF, to
893 use the new linker, each particular target requires a relocation function. So
894 far, this function has been written for the i386, m68k, a29k and SH targets.
895
896 * The -V flag was made a synonym for -v, for SVR4 compatibility. The old -V
897 behaviour is available via --verbose.
898
899 Changes in version 2.4:
900
901 * New linker code, by Steve Chamberlain and Ian Taylor. For a.out and ecoff
902 formats (so far), this should result in considerable savings in time
903 and memory used while linking; slightly poorer performance than
904 before for formats not converted yet.
905
906 * Command-line parsing is no longer done with flex. This means
907 oddball characters in filenames won't get treated as argument
908 separators.
909
910 * HP-PA ELF support, by Jeff Law. (No SOM support yet.)
911
912 * Mach i386 support, by David Mackenzie.
913
914 * Irix 4 shared libraries are now supported (Irix 5 uses ELF, and ELF shared
915 libraries are not yet supported).
916
917 * COFF shared libraries (as on SCO) should work as well.
918
919 * The linker is disabled for Solaris. (Actually, it was in 2.3 also, I just
920 forgot to note it.) Some of their C library routines don't work when
921 statically linked, and the GNU linker doesn't support dynamic linking yet.
922
923 Changes in version 2.3:
924
925 * Weak symbols are now supported.
926
927 * ELF support has been added. The linker has been bootstrapped on
928 UnixWare and Solaris.
929
930 * Alpha OSF/1 support has been added (non dynamic linking only).
931
932 Changes in version 2.2:
933
934 * The `bfd' library has been updated to reduce a.out-format string
935 table size. The effect of this is that files linked from many input
936 files with duplicate symbols (`-g' debugging records, or identical
937 static symbols) should be much smaller.
938
939 Changes in version 2.1:
940
941 * The ld -ySYMBOL flag (to trace references to SYMBOL) is now implemented.
942
943 * There is now support for writing ECOFF files, so ld and the
944 other utilities should work on Risc/Ultrix and Irix.
945
946 \f
947 Copyright (C) 2012-2022 Free Software Foundation, Inc.
948
949 Copying and distribution of this file, with or without modification,
950 are permitted in any medium without royalty provided the copyright
951 notice and this notice are preserved.
952
953 Local variables:
954 fill-column: 79
955 End: