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