]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/NEWS
* ldgram.y: Add ALIGN_WITH_INPUT output section attribute.
[thirdparty/binutils-gdb.git] / ld / NEWS
1 -*- text -*-
2
3 * Add support for the Texas Instruments MSP430X processor.
4
5 * Add support for Altera Nios II.
6
7 * Add support for the V850E3V5 architecture.
8
9 * Add support for the Imagination Technologies Meta processor.
10
11 * --enable-new-dtags no longer generates old dtags in addition to new dtags.
12
13 * Remove linker support for MIPS ECOFF targets.
14
15 * Add ALIGN_WITH_INPUT to the linker script language to force the alignment of
16 an output section to use the maximum alignment of all its input sections.
17
18 Changes in 2.23:
19
20 * Enable compressed debug section feature for x86/x86_64 pe-coff.
21
22 * Add support for the 64-bit ARM architecture: AArch64.
23
24 * Added SORT_NONE to the linker script language to disable section sorting.
25
26 * Add a linker-provided symbol when producing ELF output, '__ehdr_start'
27 to point to the ELF file header (and nearby program headers) in the
28 program's memory image.
29
30 * Add support for S12X processor.
31
32 * Add support for the VLE extension to the PowerPC architecture.
33
34 * Add support for the Freescale XGATE architecture.
35
36 * Add option -f FILE on AIX (for response file).
37
38 * Add support for the Renesas RL78 architecture.
39
40 * Add support for the Adapteva EPIPHANY architecture.
41
42 Changes in 2.22:
43
44 * --copy-dt-needed-entries is no longer enabled by default. Instead
45 --no-copy-dt-needed-entries is the default.
46
47 * INPUT_SECTION_FLAGS has been added to the linker script language
48 to allow selection of input sections by section header section flags.
49
50 * Add support for the Tilera TILEPro and TILE-Gx architectures.
51
52 * Added SORT_BY_INIT_PRIORITY to the linker script language to permit
53 sorting sections by numerical value of the GCC init_priority attribute
54 encoded in the section name.
55
56 Changes in 2.21:
57
58 * Linker script expression evaluation is somewhat more sane. This may
59 break scripts that depend on quirks of the old expression evaluation.
60
61 * Turn off underscoring for x86_64 PE+-COFF targets. For old behavior the
62 option --enable-leading-mingw64-underscores can be used on configure of
63 bfd.
64
65 * Add support for the TMS320C6000 (TI C6X) processor family.
66
67 * --add-needed renamed to --copy-dt-needed-entries in order to avoid confusion
68 with --as-needed option.
69
70 * Extend .def file syntax by '== <ID>' for imports and exports. This allows
71 to alias the import/export table name written in PE image.
72
73 * Add --exclude-all-symbols option to PE based linkers. This prevents all
74 symbols from automatically being exported.
75
76 * Add support for the Renesas RX processor.
77
78 * Add support for alpha-vms target.
79
80 Changes in 2.20:
81
82 * GNU/Linux targets now support the STB_GNU_UNIQUE symbol binding. This is a
83 GNU extension to the standard set of ELF symbol bindings. The binding will
84 be passed on to the dynamic linker which will make sure that in the entire
85 process there is just one symbol with the given name and type in use.
86
87 * PE targets now support a GNU extension to allow the alignment of common
88 common symbols to be specified. This support uses custom options in
89 the .drectve section, which will be disregarded by the native tools.
90
91 * PE targets now add primitive support for ELF version scripts; symbols
92 are not versioned, but the local and global symbol visibility directives
93 are respected when filtering symbols in auto-export mode.
94
95 * New option --no-export-dynamic to undo the effect of the -E and
96 --export-dynamic options.
97
98 * ELF: --warn-alternate-em option to warn if an object has alternate
99 ELF machine code.
100
101 * New script function REGION_ALIAS to add alias names to memory regions.
102
103 * PE targets no longer make use of the long section names PE extension to
104 the COFF format when generating executable images, by default. The old
105 (slightly non-conformant) behaviour can still be invoked by using the
106 new '--enable-long-section-names' command-line option. It is also enabled
107 automatically in the presence of un-stripped debug information, as GDB
108 needs to be able to find the debug info sections by their full names.
109
110 * For GNU/Linux systems the linker will now avoid processing any relocations
111 made against symbols of the STT_GNU_IFUNC type and instead emit them into
112 the resulting binary for processing by the loader.
113
114 * --as-needed now links in a dynamic library if it satisfies undefined
115 symbols in regular objects, or in other dynamic libraries. In the
116 latter case the library is not linked if it is found in a DT_NEEDED
117 entry of one of the libraries already linked.
118
119 * Add a new command line option, -Ttext-segment ADDR, for ELF targets
120 to set the address of the first byte of the text segment.
121
122 * Add support for Sunplus score architecture.
123
124 * Add new option --use-nul-prefixed-import-tables to ld for PE targets to
125 allow fallback to old import table generation with null element prefix.
126
127 * Windows PE systems now support a new --exclude-modules-for-implib option,
128 allowing users to partition object files and archive members between a DLL
129 and its associated import library as they are generated during linking.
130
131 * Add support for Lattice Mico32 (lm32) architecture.
132
133 * Add CR16 ELF --embedded-relocs (used to embedded relocations into binaries
134 for Embedded-PIC code) option.
135
136 * Add to the PE/PE+ targets the support of two different kinds of
137 pseudo-relocations. They can be selected by the switches
138 --enable-runtime-pseudo-reloc-v1 and --enable-runtime-pseudo-reloc-v2.
139 For the switch --enable-runtime-pseudo-reloc it uses for 32-bit
140 runtime pseudo relocation version one, for 64-bit the version two.
141
142 Changes in 2.19:
143
144 * Linker scripts support a new INSERT command that makes it easier to
145 augment the default script.
146
147 * Linker script input section filespecs may now specify a file within an
148 archive by writing "archive:file".
149
150 * The --sort-common switch now has an optional argument which specifies the
151 direction of sorting.
152
153 * The M68K linker now supports multiple GOT generation schemes controlled via
154 the --got=<type> command line option.
155
156 * The ARM EABI linker will now generate stubs for function calls to symbols
157 that are too far away. The placement of the stubs is controlled by a new
158 linker command line option: --stub-group-size=N.
159
160 Changes in 2.18:
161
162 * Linker sources now released under version 3 of the GNU General Public
163 License.
164
165 * ELF: New --build-id option to generate a unique per-binary identifier
166 embedded in a note section.
167
168 * Added support for National Semicondutor CompactRISC (ie CR16) target.
169
170 * -l:foo now searches the library path for a filename called foo,
171 without converting it to libfoo.a or libfoo.so.
172
173 * Add a new command line option '--default-script=FILE' or '-dT FILE'
174 which specifies a replacement for the built in, default linker
175 script.
176
177 * ELF: Add -Bsymbolic-functions, --dynamic-list-cpp-new, which puts C++
178 operator new and delete on the dynamic list, and --dynamic-list-data,
179 builtin list for --dynamic-list, which puts global data symbols on the
180 dynamic list.
181
182 * Add support for x86_64 PE+ target.
183
184 * Add support for Score target.
185
186 * ELF: Add --dynamic-list option to specify a list of global symbols
187 whose references shouldn't be bound to the definition within the
188 shared library, or a list of symbols which should be added to the
189 symbol table in the executable.
190
191 * The default output section LMA has changed for allocatable sections from
192 being equal to VMA, to keeping the difference between LMA and VMA the same as
193 the previous output section in the same region. This is a more useful
194 default when using overlays and other cases where you specify an LMA
195 differing from the VMA for some sections.
196
197 * New switch: --print-gc-sections to list any sections removed by garabge
198 collection.
199
200 * ARM: Added --vfp11-denorm-fix option to work around an erratum in current
201 VFP11 coprocessors.
202
203 Changes in 2.17:
204
205 * Support for the Infineon XC16X has been added by KPIT Cummins Infosystems.
206
207 * Modify the Linux linker search order to better match ld.so search order.
208 Look for DT_NEEDED libraries in paths specified by ld.so.conf before
209 searching the default directories, rather than vice versa.
210 Use $prefix/etc/ld.so.conf if it exists, otherwise /etc/ld.so.conf.
211
212 * PE-COFF: Forward exports from DLL's can now be specified in .def files
213 passed directly to ld.
214
215 * Support for the Z80 processor family has been added.
216
217 * Add support for the "@<file>" syntax to the command line, so that extra
218 switches can be read from <file>.
219
220 Changes in 2.16:
221
222 * Support for the R_ARM_V4BX relocation as defined in the ARM AAELF
223 specification has been added via the --fix-v4bx command-line option.
224
225 * New linker script construct AS_NEEDED(), which sets the --as-needed flag
226 for input files listed inside of it.
227
228 * A new command-line option, --sysroot, can be used to override the
229 default sysroot location. It only applies to toolchains that were
230 configured using --with-sysroot.
231
232 * New linker script functions: ORIGIN() and LENGTH() which return information
233 about a specified memory region.
234
235 * Port to MAXQ processor contributed by HCL Tech.
236
237 * Added SEGMENT_START to the linker script language to permit the user to
238 override the base address for a segment from the command-line.
239
240 * ELF: --warn-shared-textrel option to warn if adding a DT_TEXTREL to a shared
241 object.
242
243 * Added SORT_BY_NAME and SORT_BY_ALIGNMENT to the linker script
244 language to permit sorting sections by section name or section
245 maximum alignment.
246
247 * Added a new linker command line switch, --sort-section name|alignment,
248 to sort sections by section name or maximum alignment.
249
250 * ELF: --add-needed/--no-add-needed options to control if a DT_NEEDED tag
251 should be added when a shared library comes from DT_NEEDED tags.
252
253 * Support for the crx-elf target added.
254
255 * Support for the sh-symbianelf target added.
256
257 * A new linker command line switch has been added which allows the hash table
258 size to be set to a suitable prime value near to its argument. This switch
259 is --hash-size=<NUMBER>. Also if the switch --reduce-memory-overheads is
260 used, and --hash-size has not been used, then the default value will be set
261 to 1021.
262
263 * Linker map files are now generated with an O(N) algorithm for finding symbols
264 that are defined in each section. This uses about 40% more memory for
265 symbols than the old O(N^2) algorithm. You can use the new
266 --reduce-memory-overheads option to select the old algorithm; this option
267 might also be used in the future to select similar tradeoffs.
268
269 Changes in 2.15:
270
271 * ELF: --as-needed/--no-as-needed options to control if a DT_NEEDED tag should
272 be added only when a shared library is referenced.
273
274 * PE: --large-address-aware option to indicate executables support virtual
275 addresses greater than 2 gigabytes.
276
277 * DWARF 2 support for i386pe added.
278
279 * The linker script operator DEFINED() will now yield 1 only for a symbol that
280 is defined before the statement where DEFINED is used.
281
282 * The MIPS --embedded-relocs (used to embed relocations into binaries for
283 Embedded-PIC code) is deprecated and will be removed in a future release.
284
285 * cr16c support added by NSC.
286
287 * m32r Linux (ELF) support added by Renesas.
288
289 * Improved linker's handling of unresolved symbols. The switch
290 --unresolved-symbols=<method> has been added to tell the linker when it
291 should report them and the switch --warn-unresolved-symbols has been added to
292 make reports be issued as warning messages rather than errors.
293
294 Changes in 2.14:
295
296 * Added support for Xtensa architecture.
297
298 * Added --with-sysroot configure switch to specify a target system root, for
299 linking against a target filesystem image.
300
301 * Added --accept-unknown-linker-format to restore old linker behaviour (pre
302 2.14) of silently accepting and linking in any files in an unknown binary
303 file format.
304
305 * Added --no-omagic to undo the effects of the -N option.
306
307 * Support for Texas Instruments TMS320C4x and TMS320C3x series of
308 DSP's contributed by Michael Hayes and Svein E. Seldal.
309
310 * Added --with-lib-path configure switch to specify default value for
311 LIB_PATH.
312
313 * ARM port to QNX operating system added by Graeme Peterson.
314
315 * IP2K support added by Denis Chertykov.
316
317 Changes in 2.13:
318
319 * Support for the Fujitsu FRV architecture added by Red Hat. Models for FR400
320 and FR500 included.
321
322 Changes in version 2.13:
323
324 * DEC VAX ELF support, by Matt Thomas.
325
326 Changes in version 2.12:
327
328 * Support for Don Knuth's MMIX, by Hans-Peter Nilsson.
329
330 * Support for the OpenRISC 32-bit embedded processor by OpenCores.
331
332 * Support for -z nocopyreloc in the x86 ELF linker, which disables
333 production of copy relocs. Warning: using this option may result in
334 non-sharable applications.
335
336 * Support for -z combreloc in the ELF linker, which puts dynamic
337 relocations against the same symbol together, so that dynamic linker
338 can use an one-entry symbol lookup cache.
339
340 * Support for ELF SHF_MERGE section merging, by Jakub Jelinek.
341
342 Changes in version 2.11:
343
344 * Support for AMD x86-64 architecture, by Jan Hubicka, SuSE Labs.
345
346 * Support added for eliminating duplicate DWARF2 debug information by
347 having the compiler generate the information in sections called
348 .gnu.linkonce.wi.XXXX where XXXX is a checksum for the contents. The
349 linker then merges these sections together into the normal .debug_info
350 section.
351
352 * The native ELF linker now searches the directories in DT_RUNPATH or
353 DT_RPATH of a shared library for shared libraries needed by it.
354
355 * TI C54x support, by Timothy Wall.
356
357 * Added command line switch --section-start to set the start address of any
358 specified section.
359
360 * Added ability to emit full relocation information in linked executables,
361 enabled by --emit-relocs. Some post-linkage optimization tools need
362 this information in order to be able to correctly identify and perform
363 symbol relative addressing in the event of changes in section contents
364 (instructions being added or deleted, extending data sections, etc.)
365
366 * Support for i860, by Jason Eckhardt (preliminary, alpha quality).
367
368 * Support for CRIS (Axis Communications ETRAX series).
369
370 * Support for PDP-11 and 2.11BSD a.out format, by Lars Brinkhoff.
371
372 Changes in version 2.10:
373
374 * Added AT> to the linker script language to allow load-time allocation of
375 sections into regions.
376
377 * Added garbage collection of unused sections, enabled by --gc-sections.
378 It does require a bit of backend support; currently implemented are
379 arm-elf, avr-elf, d10v-elf, fr30-elf, i386-elf, m32r-elf, m68k-elf,
380 mcore-elf, mips-elf, mn10300-elf, ppc-elf, sh-elf, sparc-elf, and v850-elf.
381 Others will ignore the option.
382
383 * Added SORT to the linker script language to permit sorting sections by file
384 name or section name.
385
386 * Added EXTERN to the linker script language as an equivalent to the -u
387 command-line option.
388
389 * Added ASSERT to the linker script language.
390
391 * Added EXCLUDE_FILE to the linker script language for further control over
392 wildcard file names.
393
394 * Added -O option to optimize linker output (as of this writing, this only
395 affects ELF shared library generation).
396
397 * The -e option now accepts a number as well as a symbol name.
398
399 * Added --no-undefined option to disallow undefined symbols when creating a
400 shared library.
401
402 * The linker now issues a warning, not an error, for an undefined symbol when
403 using -Bsymbolic; use the new --no-undefined option to get the old
404 behaviour.
405
406 * Added --demangle and --no-demangle options.
407
408 Changes in version 2.9:
409
410 * Added SQUAD to the linker script language.
411
412 * New option --no-warn-mismatch.
413
414 * The MEMORY command now parses the attributes to determine where sections that
415 are not placed in a specific memory region are placed.
416
417 Changes in version 2.8:
418
419 * Linker scripts may now contain shell wildcard characters for file and section
420 names.
421
422 * The linker now supports symbol versions in ELF.
423
424 * The NOCROSSREFS command was added to the linker script language.
425
426 * The LOADADDR expression was added to the linker script language.
427
428 * MAX and MIN functions were added to the linker script language.
429
430 * The OVERLAY construct was added to the linker script language.
431
432 * New option --warn-section-align to warn when the address of an output section
433 changes due to alignment of an input section.
434
435 * New options --filter/-F and --auxiliary/-f.
436
437 Changes in version 2.7:
438
439 * New option --cref to print out a cross reference table.
440
441 * New option --wrap SYMBOL.
442
443 * New option --no-whole-archive, to turn off the effect of --whole-archive.
444
445 * Input sections assigned to the output section /DISCARD/ in the linker script
446 are not included in the output file.
447
448 * The SunOS and ELF linkers now merge stabs debugging information which uses
449 the N_BINCL and N_EINCL stab types. This reduces the amount of debugging
450 information generated.
451
452 Changes in version 2.6:
453
454 * When an ELF section name is representable as a C identifier (this is not true
455 of most ELF section names), the linker will automatically define symbols
456 __start_SECNAME and __stop_SECNAME, where SECNAME is the section name, at the
457 beginning and the end of the section. This is used by glibc.
458
459 Addendum: Current versions of the linker (at least for version 2.18 onwards
460 and possibly much earlier as well) place two restrictions on this feature: The
461 symbols are only implemented for orphaned sections, not for explicitly placed
462 sections and they are PROVIDEd rather than being defined.
463
464 * When an ELF section named .gnu.warning is encountered in an input file, the
465 contents of the section are displayed as an error message, and the section is
466 not copied into the output file. This is used by glibc.
467
468 * When an ELF section named .gnu.warning.SYMBOL is encountered in an input
469 file, and the symbol SYMBOL is referenced by some object file, the contents of
470 the section are displayed as an error message. The section is not copied into
471 the output file, unless doing a relocatable or shared link. This is used by
472 glibc.
473
474 * New options -split-by-reloc and -split-by-file.
475
476 * The linker now supports linking PIC compiled code on SPARC SunOS. It can
477 also create SPARC SunOS shared libraries, and, like the native SunOS linker,
478 will do so whenever there is an undefined symbol in the link and neither the -e
479 nor the -r option was used.
480
481 * The -rpath option may be used on SunOS to set the list of directories to be
482 searched at run time. This overrides the default of building the list from the
483 -L options.
484
485 * The COFF linker now combines debugging information for structs, unions, and
486 enums, so that even if the same type is defined in multiple input files it will
487 only be defined once in the output file. The --traditional-format switch will
488 prevent this optimization.
489
490 Changes in version 2.5:
491
492 * The linker now supports linking against SunOS shared libraries. It still can
493 not link SunOS PIC (Position Independent Code) files, so it can not be used to
494 generate shared libraries.
495
496 * The linker now supports linking against ELF shared libraries for the i386
497 (UnixWare) and SPARC (Solaris). It can also link ELF PIC files, and can be
498 used to generate shared libraries. Shared library generation is not well
499 tested; please report any problems encountered. The linker is now enabled for
500 Solaris again.
501
502 * Eric Youngdale has contributed Linux support code, including linking against
503 Linux a.out shared libraries. The linker produces Linux QMAGIC binaries.
504
505 * The ELF backend has been converted to the new linker code. To use the new
506 ELF linker, each particular target requires a relocation function. So far,
507 this function has been written for i386 (UnixWare), SPARC (Solaris) MIPS (Irix
508 5), and HPPA ELF targets.
509
510 * The -( (--start-group) and -) (--end-group) options have been added to
511 support searching a group of archives as though they were a single archive.
512 This can also be used in a linker script, as GROUP ( files ).
513
514 * When a file is named on the command line, and the linker does not recognize
515 it as an object file, the linker will now treat the file as a linker script
516 file. A linker script named in this way augments, but does not replace, the
517 default linker script.
518
519 * The -warn-once option was added. It causes the linker to only warn once per
520 undefined symbol, rather than once per reference.
521
522 * The COFF backend has been converted to the new linker code. As with ELF, to
523 use the new linker, each particular target requires a relocation function. So
524 far, this function has been written for the i386, m68k, a29k and SH targets.
525
526 * The -V flag was made a synonym for -v, for SVR4 compatibility. The old -V
527 behaviour is available via --verbose.
528
529 Changes in version 2.4:
530
531 * New linker code, by Steve Chamberlain and Ian Taylor. For a.out and ecoff
532 formats (so far), this should result in considerable savings in time
533 and memory used while linking; slightly poorer performance than
534 before for formats not converted yet.
535
536 * Command-line parsing is no longer done with flex. This means
537 oddball characters in filenames won't get treated as argument
538 separators.
539
540 * HP-PA ELF support, by Jeff Law. (No SOM support yet.)
541
542 * Mach i386 support, by David Mackenzie.
543
544 * Irix 4 shared libraries are now supported (Irix 5 uses ELF, and ELF shared
545 libraries are not yet supported).
546
547 * COFF shared libraries (as on SCO) should work as well.
548
549 * The linker is disabled for Solaris. (Actually, it was in 2.3 also, I just
550 forgot to note it.) Some of their C library routines don't work when
551 statically linked, and the GNU linker doesn't support dynamic linking yet.
552
553 Changes in version 2.3:
554
555 * Weak symbols are now supported.
556
557 * ELF support has been added. The linker has been bootstrapped on
558 UnixWare and Solaris.
559
560 * Alpha OSF/1 support has been added (non dynamic linking only).
561
562 Changes in version 2.2:
563
564 * The `bfd' library has been updated to reduce a.out-format string
565 table size. The effect of this is that files linked from many input
566 files with duplicate symbols (`-g' debugging records, or identical
567 static symbols) should be much smaller.
568
569 Changes in version 2.1:
570
571 * The ld -ySYMBOL flag (to trace references to SYMBOL) is now implemented.
572
573 * There is now support for writing ECOFF files, so ld and the
574 other utilities should work on Risc/Ultrix and Irix.
575
576 \f
577 Copyright (C) 2012 Free Software Foundation, Inc.
578
579 Copying and distribution of this file, with or without modification,
580 are permitted in any medium without royalty provided the copyright
581 notice and this notice are preserved.
582
583 Local variables:
584 fill-column: 79
585 End: