Blame ld/NEWS

Packit ba3681
-*- text -*-
Packit ba3681
Packit ba3681
Changes in 2.30:
Packit ba3681
Packit ba3681
* Add -z separate-code to generate separate code PT_LOAD segment.
Packit ba3681
Packit ba3681
* Add "-z undefs" command line option as the inverse of the "-z defs" option.
Packit ba3681
Packit ba3681
* Add -z globalaudit command line option to force audit libraries to be run
Packit ba3681
  for every dynamic object loaded by an executable - provided that the loader
Packit ba3681
  supports this functionality.
Packit ba3681
Packit ba3681
* Tighten linker script grammar around file name specifiers to prevent the use
Packit ba3681
  of SORT_BY_ALIGNMENT and SORT_BY_INIT_PRIORITY on filenames.  These would
Packit ba3681
  previously be accepted but had no effect.
Packit ba3681
Packit ba3681
* The EXCLUDE_FILE directive can now be placed within any SORT_* directive
Packit ba3681
  within input section lists.
Packit ba3681
Packit ba3681
Changes in 2.29:
Packit ba3681
Packit ba3681
* Support for -z shstk in the x86 ELF linker to generate
Packit ba3681
  GNU_PROPERTY_X86_FEATURE_1_SHSTK in ELF GNU program properties.
Packit ba3681
Packit ba3681
* Add support for GNU_PROPERTY_X86_FEATURE_1_SHSTK in ELF GNU program
Packit ba3681
  properties in the x86 ELF linker.
Packit ba3681
Packit ba3681
* Add support for GNU_PROPERTY_X86_FEATURE_1_IBT in ELF GNU program
Packit ba3681
  properties in the x86 ELF linker.
Packit ba3681
Packit ba3681
* Support for -z ibtplt in the x86 ELF linker to generate IBT-enabled
Packit ba3681
  PLT.
Packit ba3681
Packit ba3681
* Support for -z ibt in the x86 ELF linker to generate IBT-enabled
Packit ba3681
  PLT as well as GNU_PROPERTY_X86_FEATURE_1_IBT in ELF GNU program
Packit ba3681
  properties.
Packit ba3681
Packit ba3681
* Add support for ELF SHF_GNU_MBIND and PT_GNU_MBIND_XXX.
Packit ba3681
Packit ba3681
* Add support for ELF GNU program properties.
Packit ba3681
Packit ba3681
* Add support for the Texas Instruments PRU processor.
Packit ba3681
Packit ba3681
* When configuring for arc*-*-linux* targets the default linker emulation will
Packit ba3681
  change if --with-cpu=nps400 is used at configure time.
Packit ba3681
Packit ba3681
* Improve assignment of LMAs to orphan sections in some edge cases where a
Packit ba3681
  mixture of both AT>LMA_REGION and AT(LMA) are used.
Packit ba3681
Packit ba3681
* Orphan sections placed after an empty section that has an AT(LMA) will now
Packit ba3681
  take an load memory address starting from LMA.
Packit ba3681
Packit ba3681
* Section groups can now be resolved (the group deleted and the group members
Packit ba3681
  placed like normal sections) at partial link time either using the new linker
Packit ba3681
  option --force-group-allocation or by placing FORCE_GROUP_ALLOCATION into the
Packit ba3681
  linker script.
Packit ba3681
Packit ba3681
Changes in 2.28:
Packit ba3681
Packit ba3681
* The EXCLUDE_FILE linker script construct can now be applied outside of the
Packit ba3681
  section list in order for the exclusions to apply over all input sections in
Packit ba3681
  the list.
Packit ba3681
Packit ba3681
* Add support for the RISC-V architecture.
Packit ba3681
Packit ba3681
* The command line option --no-eh-frame-hdr can now be used in ELF based
Packit ba3681
  linkers to disable the automatic generation of .eh_frame_hdr sections.
Packit ba3681
Packit ba3681
* Add --in-implib=<infile> to the ARM linker to enable specifying a set of
Packit ba3681
  Secure Gateway veneers that must exist in the output import library specified
Packit ba3681
  by --out-implib=<outfile> and the address they must have.  As such,
Packit ba3681
  --in-implib is only supported in combination with --cmse-implib.
Packit ba3681
Packit ba3681
* Extended the --out-implib=<file> option, previously restricted to x86 PE
Packit ba3681
  targets, to any ELF based target.  This allows the generation of an import
Packit ba3681
  library for an ELF executable, which can then be used by another application
Packit ba3681
  to link against the executable.
Packit ba3681
Packit ba3681
Changes in 2.27:
Packit ba3681
Packit ba3681
* Add a configure option --enable-relro to decide whether -z relro should
Packit ba3681
  be enabled in ELF linker by default.  Default to yes for all Linux
Packit ba3681
  targets except FRV, HPPA, IA64 and MIPS.  Note that -z relro can increase
Packit ba3681
  disk and memory size.
Packit ba3681
Packit ba3681
* Support for -z noreloc-overflow in the x86-64 ELF linker to disable
Packit ba3681
  relocation overflow check.
Packit ba3681
Packit ba3681
* Add -z common/-z nocommon options for ELF targets to control whether to
Packit ba3681
  convert common symbols to the STT_COMMON type during a relocatable link.
Packit ba3681
Packit ba3681
* Support for -z nodynamic-undefined-weak in the x86 ELF linker, which
Packit ba3681
  avoids dynamic relocations against undefined weak symbols in executable.
Packit ba3681
Packit ba3681
* The NOCROSSREFSTO command was added to the linker script language.
Packit ba3681
Packit ba3681
* Add --no-apply-dynamic-relocs to the AArch64 linker to do not apply link-time
Packit ba3681
  values for dynamic relocations.
Packit ba3681
Packit ba3681
Changes in 2.26:
Packit ba3681
Packit ba3681
* Add --fix-stm32l4xx-629360 to the ARM linker to enable a link-time
Packit ba3681
  workaround for a bug in the bus matrix / memory controller for some of
Packit ba3681
  the STM32 Cortex-M4 based products (STM32L4xx)
Packit ba3681
Packit ba3681
* Add a configure option --enable-compressed-debug-sections={all,ld} to
Packit ba3681
  decide whether DWARF debug sections should be compressed by default.
Packit ba3681
Packit ba3681
* Add support for the ARC EM/HS, and ARC600/700 architectures.
Packit ba3681
Packit ba3681
* Experimental support for linker garbage collection (--gc-sections)
Packit ba3681
  has been enabled for COFF and PE based targets.
Packit ba3681
Packit ba3681
* New command line option for ELF targets to compress DWARF debug
Packit ba3681
  sections, --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
Packit ba3681
Packit ba3681
* New command line option, --orphan-handling=[place|warn|error|discard], to
Packit ba3681
  adjust how orphan sections are handled.  The default is 'place' which gives
Packit ba3681
  the current behaviour, 'warn' and 'error' issue a warning or error
Packit ba3681
  respectively when orphan sections are found, and 'discard' will discard all
Packit ba3681
  orphan sections.
Packit ba3681
Packit ba3681
* Add support for LLVM plugin.
Packit ba3681
Packit ba3681
* Add --print-memory-usage option to report memory blocks usage.
Packit ba3681
Packit ba3681
* Add --require-defined option, it's like --undefined except the new symbol
Packit ba3681
  must be defined by the end of the link.
Packit ba3681
Packit ba3681
Changes in 2.25:
Packit ba3681
Packit ba3681
* PE binaries now once again contain real timestamps by default.  To disable
Packit ba3681
  the inclusion of a timestamp in a PE binary, use the --no-insert-timestamp
Packit ba3681
  command line option.
Packit ba3681
Packit ba3681
* Replace support for openrisc and or32 with support for or1k.
Packit ba3681
Packit ba3681
* Add support for the --build-id command line option to COFF based targets.
Packit ba3681
Packit ba3681
* x86/x86_64 pe-coff now supports the --build-id option.
Packit ba3681
Packit ba3681
* Add support for the Andes NDS32.
Packit ba3681
Packit ba3681
Changes in 2.24:
Packit ba3681
Packit ba3681
* Add LOG2CEIL() builtin function to the linker script language
Packit ba3681
Packit ba3681
* Add support for the Texas Instruments MSP430X processor.
Packit ba3681
Packit ba3681
* Add support for Altera Nios II.
Packit ba3681
Packit ba3681
* Add support for the V850E3V5 architecture.
Packit ba3681
Packit ba3681
* Add support for the Imagination Technologies Meta processor.
Packit ba3681
Packit ba3681
* --enable-new-dtags no longer generates old dtags in addition to new dtags.
Packit ba3681
Packit ba3681
* Remove linker support for MIPS ECOFF targets.
Packit ba3681
Packit ba3681
* Add ALIGN_WITH_INPUT to the linker script language to force the alignment of
Packit ba3681
  an output section to use the maximum alignment of all its input sections.
Packit ba3681
Packit ba3681
Changes in 2.23:
Packit ba3681
Packit ba3681
* Enable compressed debug section feature for x86/x86_64 pe-coff.
Packit ba3681
Packit ba3681
* Add support for the 64-bit ARM architecture: AArch64.
Packit ba3681
Packit ba3681
* Added SORT_NONE to the linker script language to disable section sorting.
Packit ba3681
Packit ba3681
* Add a linker-provided symbol when producing ELF output, '__ehdr_start'
Packit ba3681
  to point to the ELF file header (and nearby program headers) in the
Packit ba3681
  program's memory image.
Packit ba3681
Packit ba3681
* Add support for S12X processor.
Packit ba3681
Packit ba3681
* Add support for the VLE extension to the PowerPC architecture.
Packit ba3681
Packit ba3681
* Add support for the Freescale XGATE architecture.
Packit ba3681
Packit ba3681
* Add option -f FILE on AIX (for response file).
Packit ba3681
Packit ba3681
* Add support for the Renesas RL78 architecture.
Packit ba3681
Packit ba3681
* Add support for the Adapteva EPIPHANY architecture.
Packit ba3681
Packit ba3681
Changes in 2.22:
Packit ba3681
Packit ba3681
* --copy-dt-needed-entries is no longer enabled by default.  Instead
Packit ba3681
  --no-copy-dt-needed-entries is the default.
Packit ba3681
Packit ba3681
* INPUT_SECTION_FLAGS has been added to the linker script language
Packit ba3681
  to allow selection of input sections by section header section flags.
Packit ba3681
Packit ba3681
* Add support for the Tilera TILEPro and TILE-Gx architectures.
Packit ba3681
Packit ba3681
* Added SORT_BY_INIT_PRIORITY to the linker script language to permit
Packit ba3681
  sorting sections by numerical value of the GCC init_priority attribute
Packit ba3681
  encoded in the section name.
Packit ba3681
Packit ba3681
Changes in 2.21:
Packit ba3681
Packit ba3681
* Linker script expression evaluation is somewhat more sane.  This may
Packit ba3681
  break scripts that depend on quirks of the old expression evaluation.
Packit ba3681
Packit ba3681
* Turn off underscoring for x86_64 PE+-COFF targets.  For old behavior the
Packit ba3681
  option --enable-leading-mingw64-underscores can be used on configure of
Packit ba3681
  bfd.
Packit ba3681
Packit ba3681
* Add support for the TMS320C6000 (TI C6X) processor family.
Packit ba3681
Packit ba3681
* --add-needed renamed to --copy-dt-needed-entries in order to avoid confusion
Packit ba3681
  with --as-needed option.
Packit ba3681
Packit ba3681
* Extend .def file syntax by '== <ID>' for imports and exports. This allows
Packit ba3681
  to alias the import/export table name written in PE image.
Packit ba3681
Packit ba3681
* Add --exclude-all-symbols option to PE based linkers.  This prevents all
Packit ba3681
  symbols from automatically being exported.
Packit ba3681
Packit ba3681
* Add support for the Renesas RX processor.
Packit ba3681
Packit ba3681
* Add support for alpha-vms target.
Packit ba3681
Packit ba3681
Changes in 2.20:
Packit ba3681
Packit ba3681
* GNU/Linux targets now support the STB_GNU_UNIQUE symbol binding.  This is a
Packit ba3681
  GNU extension to the standard set of ELF symbol bindings.  The binding will
Packit ba3681
  be passed on to the dynamic linker which will make sure that in the entire
Packit ba3681
  process there is just one symbol with the given name and type in use.
Packit ba3681
Packit ba3681
* PE targets now support a GNU extension to allow the alignment of common
Packit ba3681
  common symbols to be specified.  This support uses custom options in
Packit ba3681
  the .drectve section, which will be disregarded by the native tools.
Packit ba3681
Packit ba3681
* PE targets now add primitive support for ELF version scripts; symbols
Packit ba3681
  are not versioned, but the local and global symbol visibility directives
Packit ba3681
  are respected when filtering symbols in auto-export mode.
Packit ba3681
Packit ba3681
* New option --no-export-dynamic to undo the effect of the -E and
Packit ba3681
  --export-dynamic options.
Packit ba3681
Packit ba3681
* ELF: --warn-alternate-em option to warn if an object has alternate
Packit ba3681
  ELF machine code.
Packit ba3681
Packit ba3681
* New script function REGION_ALIAS to add alias names to memory regions.
Packit ba3681
Packit ba3681
* PE targets no longer make use of the long section names PE extension to
Packit ba3681
  the COFF format when generating executable images, by default.  The old
Packit ba3681
  (slightly non-conformant) behaviour can still be invoked by using the
Packit ba3681
  new '--enable-long-section-names' command-line option.  It is also enabled
Packit ba3681
  automatically in the presence of un-stripped debug information, as GDB
Packit ba3681
  needs to be able to find the debug info sections by their full names.
Packit ba3681
Packit ba3681
* For GNU/Linux systems the linker will now avoid processing any relocations
Packit ba3681
  made against symbols of the STT_GNU_IFUNC type and instead emit them into
Packit ba3681
  the resulting binary for processing by the loader.
Packit ba3681
Packit ba3681
* --as-needed now links in a dynamic library if it satisfies undefined
Packit ba3681
  symbols in regular objects, or in other dynamic libraries.  In the
Packit ba3681
  latter case the library is not linked if it is found in a DT_NEEDED
Packit ba3681
  entry of one of the libraries already linked.
Packit ba3681
Packit ba3681
* Add a new command line option, -Ttext-segment ADDR, for ELF targets
Packit ba3681
  to set the address of the first byte of the text segment.
Packit ba3681
Packit ba3681
* Add support for Sunplus score architecture.
Packit ba3681
Packit ba3681
* Add new option --use-nul-prefixed-import-tables to ld for PE targets to
Packit ba3681
  allow fallback to old import table generation with null element prefix.
Packit ba3681
Packit ba3681
* Windows PE systems now support a new --exclude-modules-for-implib option,
Packit ba3681
  allowing users to partition object files and archive members between a DLL
Packit ba3681
  and its associated import library as they are generated during linking.
Packit ba3681
Packit ba3681
* Add support for Lattice Mico32 (lm32) architecture.
Packit ba3681
Packit ba3681
* Add CR16 ELF --embedded-relocs (used to embedded relocations into binaries
Packit ba3681
  for Embedded-PIC code) option.
Packit ba3681
Packit ba3681
* Add to the PE/PE+ targets the support of two different kinds of
Packit ba3681
  pseudo-relocations.  They can be selected by the switches
Packit ba3681
  --enable-runtime-pseudo-reloc-v1 and --enable-runtime-pseudo-reloc-v2.
Packit ba3681
  For the switch --enable-runtime-pseudo-reloc it uses for 32-bit
Packit ba3681
  runtime pseudo relocation version one, for 64-bit the version two.
Packit ba3681
Packit ba3681
Changes in 2.19:
Packit ba3681
Packit ba3681
* Linker scripts support a new INSERT command that makes it easier to
Packit ba3681
  augment the default script.
Packit ba3681
Packit ba3681
* Linker script input section filespecs may now specify a file within an
Packit ba3681
  archive by writing "archive:file".
Packit ba3681
Packit ba3681
* The --sort-common switch now has an optional argument which specifies the
Packit ba3681
  direction of sorting.
Packit ba3681
Packit ba3681
* The M68K linker now supports multiple GOT generation schemes controlled via
Packit ba3681
  the --got=<type> command line option.
Packit ba3681
Packit ba3681
* The ARM EABI linker will now generate stubs for function calls to symbols
Packit ba3681
  that are too far away.  The placement of the stubs is controlled by a new
Packit ba3681
  linker command line option: --stub-group-size=N.
Packit ba3681
Packit ba3681
Changes in 2.18:
Packit ba3681
Packit ba3681
* Linker sources now released under version 3 of the GNU General Public
Packit ba3681
  License.
Packit ba3681
Packit ba3681
* ELF: New --build-id option to generate a unique per-binary identifier
Packit ba3681
  embedded in a note section.
Packit ba3681
Packit ba3681
* Added support for National Semicondutor CompactRISC (ie CR16) target.
Packit ba3681
Packit ba3681
* -l:foo now searches the library path for a filename called foo,
Packit ba3681
  without converting it to libfoo.a or libfoo.so.
Packit ba3681
Packit ba3681
* Add a new command line option '--default-script=FILE' or '-dT FILE'
Packit ba3681
  which specifies a replacement for the built in, default linker
Packit ba3681
  script.
Packit ba3681
Packit ba3681
* ELF: Add -Bsymbolic-functions, --dynamic-list-cpp-new, which puts C++
Packit ba3681
  operator new and delete on the dynamic list, and --dynamic-list-data,
Packit ba3681
  builtin list for --dynamic-list, which puts global data symbols on the
Packit ba3681
  dynamic list.
Packit ba3681
Packit ba3681
* Add support for x86_64 PE+ target.
Packit ba3681
Packit ba3681
* Add support for Score target.
Packit ba3681
Packit ba3681
* ELF: Add --dynamic-list option to specify a list of global symbols
Packit ba3681
  whose references shouldn't be bound to the definition within the
Packit ba3681
  shared library, or a list of symbols which should be added to the
Packit ba3681
  symbol table in the executable.
Packit ba3681
Packit ba3681
* The default output section LMA has changed for allocatable sections from
Packit ba3681
  being equal to VMA, to keeping the difference between LMA and VMA the same as
Packit ba3681
  the previous output section in the same region.  This is a more useful
Packit ba3681
  default when using overlays and other cases where you specify an LMA
Packit ba3681
  differing from the VMA for some sections.
Packit ba3681
Packit ba3681
* New switch: --print-gc-sections to list any sections removed by garabge
Packit ba3681
  collection.
Packit ba3681
Packit ba3681
* ARM: Added --vfp11-denorm-fix option to work around an erratum in current
Packit ba3681
  VFP11 coprocessors.
Packit ba3681
Packit ba3681
Changes in 2.17:
Packit ba3681
Packit ba3681
* Support for the Infineon XC16X has been added by KPIT Cummins Infosystems.
Packit ba3681
Packit ba3681
* Modify the Linux linker search order to better match ld.so search order.
Packit ba3681
  Look for DT_NEEDED libraries in paths specified by ld.so.conf before
Packit ba3681
  searching the default directories, rather than vice versa.
Packit ba3681
  Use $prefix/etc/ld.so.conf if it exists, otherwise /etc/ld.so.conf.
Packit ba3681
Packit ba3681
* PE-COFF: Forward exports from DLL's can now be specified in .def files
Packit ba3681
  passed directly to ld.
Packit ba3681
Packit ba3681
* Support for the Z80 processor family has been added.
Packit ba3681
Packit ba3681
* Add support for the "@<file>" syntax to the command line, so that extra
Packit ba3681
  switches can be read from <file>.
Packit ba3681
Packit ba3681
Changes in 2.16:
Packit ba3681
Packit ba3681
* Support for the R_ARM_V4BX relocation as defined in the ARM AAELF
Packit ba3681
  specification has been added via the --fix-v4bx command-line option.
Packit ba3681
Packit ba3681
* New linker script construct AS_NEEDED(), which sets the --as-needed flag
Packit ba3681
  for input files listed inside of it.
Packit ba3681
Packit ba3681
* A new command-line option, --sysroot, can be used to override the
Packit ba3681
  default sysroot location.  It only applies to toolchains that were
Packit ba3681
  configured using --with-sysroot.
Packit ba3681
Packit ba3681
* New linker script functions: ORIGIN() and LENGTH() which return information
Packit ba3681
  about a specified memory region.
Packit ba3681
Packit ba3681
* Port to MAXQ processor contributed by HCL Tech.
Packit ba3681
Packit ba3681
* Added SEGMENT_START to the linker script language to permit the user to
Packit ba3681
  override the base address for a segment from the command-line.
Packit ba3681
Packit ba3681
* ELF: --warn-shared-textrel option to warn if adding a DT_TEXTREL to a shared
Packit ba3681
  object.
Packit ba3681
Packit ba3681
* Added SORT_BY_NAME and SORT_BY_ALIGNMENT to the linker script
Packit ba3681
  language to permit sorting sections by section name or section
Packit ba3681
  maximum alignment.
Packit ba3681
Packit ba3681
* Added a new linker command line switch, --sort-section name|alignment,
Packit ba3681
  to sort sections by section name or maximum alignment.
Packit ba3681
Packit ba3681
* ELF: --add-needed/--no-add-needed options to control if a DT_NEEDED tag
Packit ba3681
  should be added when a shared library comes from DT_NEEDED tags.
Packit ba3681
Packit ba3681
* Support for the crx-elf target added.
Packit ba3681
Packit ba3681
* Support for the sh-symbianelf target added.
Packit ba3681
Packit ba3681
* A new linker command line switch has been added which allows the hash table
Packit ba3681
  size to be set to a suitable prime value near to its argument.  This switch
Packit ba3681
  is --hash-size=<NUMBER>.  Also if the switch --reduce-memory-overheads is
Packit ba3681
  used, and --hash-size has not been used, then the default value will be set
Packit ba3681
  to 1021.
Packit ba3681
Packit ba3681
* Linker map files are now generated with an O(N) algorithm for finding symbols
Packit ba3681
  that are defined in each section.  This uses about 40% more memory for
Packit ba3681
  symbols than the old O(N^2) algorithm.  You can use the new
Packit ba3681
  --reduce-memory-overheads option to select the old algorithm; this option
Packit ba3681
  might also be used in the future to select similar tradeoffs.
Packit ba3681
Packit ba3681
Changes in 2.15:
Packit ba3681
Packit ba3681
* ELF: --as-needed/--no-as-needed options to control if a DT_NEEDED tag should
Packit ba3681
  be added only when a shared library is referenced.
Packit ba3681
Packit ba3681
* PE: --large-address-aware option to indicate executables support virtual
Packit ba3681
  addresses greater than 2 gigabytes.
Packit ba3681
Packit ba3681
* DWARF 2 support for i386pe added.
Packit ba3681
Packit ba3681
* The linker script operator DEFINED() will now yield 1 only for a symbol that
Packit ba3681
  is defined before the statement where DEFINED is used.
Packit ba3681
Packit ba3681
* The MIPS --embedded-relocs (used to embed relocations into binaries for
Packit ba3681
  Embedded-PIC code) is deprecated and will be removed in a future release.
Packit ba3681
Packit ba3681
* cr16c support added by NSC.
Packit ba3681
Packit ba3681
* m32r Linux (ELF) support added by Renesas.
Packit ba3681
Packit ba3681
* Improved linker's handling of unresolved symbols.  The switch
Packit ba3681
  --unresolved-symbols=<method> has been added to tell the linker when it
Packit ba3681
  should report them and the switch --warn-unresolved-symbols has been added to
Packit ba3681
  make reports be issued as warning messages rather than errors.
Packit ba3681
Packit ba3681
Changes in 2.14:
Packit ba3681
Packit ba3681
* Added support for Xtensa architecture.
Packit ba3681
Packit ba3681
* Added --with-sysroot configure switch to specify a target system root, for
Packit ba3681
  linking against a target filesystem image.
Packit ba3681
Packit ba3681
* Added --accept-unknown-linker-format to restore old linker behaviour (pre
Packit ba3681
  2.14) of silently accepting and linking in any files in an unknown binary
Packit ba3681
  file format.
Packit ba3681
Packit ba3681
* Added --no-omagic to undo the effects of the -N option.
Packit ba3681
Packit ba3681
* Support for Texas Instruments TMS320C4x and TMS320C3x series of
Packit ba3681
  DSP's contributed by Michael Hayes and Svein E. Seldal.
Packit ba3681
Packit ba3681
* Added --with-lib-path configure switch to specify default value for
Packit ba3681
  LIB_PATH.
Packit ba3681
Packit ba3681
* ARM port to QNX operating system added by Graeme Peterson.
Packit ba3681
Packit ba3681
* IP2K support added by Denis Chertykov.
Packit ba3681
Packit ba3681
Changes in 2.13:
Packit ba3681
Packit ba3681
* Support for the Fujitsu FRV architecture added by Red Hat. Models for FR400
Packit ba3681
  and FR500 included.
Packit ba3681
Packit ba3681
Changes in version 2.13:
Packit ba3681
Packit ba3681
* DEC VAX ELF support, by Matt Thomas.
Packit ba3681
Packit ba3681
Changes in version 2.12:
Packit ba3681
Packit ba3681
* Support for Don Knuth's MMIX, by Hans-Peter Nilsson.
Packit ba3681
Packit ba3681
* Support for the OpenRISC 32-bit embedded processor by OpenCores.
Packit ba3681
Packit ba3681
* Support for -z nocopyreloc in the x86 ELF linker, which disables
Packit ba3681
  production of copy relocs.  Warning: using this option may result in
Packit ba3681
  non-sharable applications.
Packit ba3681
Packit ba3681
* Support for -z combreloc in the ELF linker, which puts dynamic
Packit ba3681
  relocations against the same symbol together, so that dynamic linker
Packit ba3681
  can use an one-entry symbol lookup cache.
Packit ba3681
Packit ba3681
* Support for ELF SHF_MERGE section merging, by Jakub Jelinek.
Packit ba3681
Packit ba3681
Changes in version 2.11:
Packit ba3681
Packit ba3681
* Support for AMD x86-64 architecture, by Jan Hubicka, SuSE Labs.
Packit ba3681
Packit ba3681
* Support added for eliminating duplicate DWARF2 debug information by
Packit ba3681
  having the compiler generate the information in sections called
Packit ba3681
  .gnu.linkonce.wi.XXXX where XXXX is a checksum for the contents.  The
Packit ba3681
  linker then merges these sections together into the normal .debug_info
Packit ba3681
  section.
Packit ba3681
Packit ba3681
* The native ELF linker now searches the directories in DT_RUNPATH or
Packit ba3681
  DT_RPATH of a shared library for shared libraries needed by it.
Packit ba3681
Packit ba3681
* TI C54x support, by Timothy Wall.
Packit ba3681
Packit ba3681
* Added command line switch --section-start to set the start address of any
Packit ba3681
  specified section.
Packit ba3681
Packit ba3681
* Added ability to emit full relocation information in linked executables,
Packit ba3681
  enabled by --emit-relocs.  Some post-linkage optimization tools need
Packit ba3681
  this information in order to be able to correctly identify and perform
Packit ba3681
  symbol relative addressing in the event of changes in section contents
Packit ba3681
  (instructions being added or deleted, extending data sections, etc.)
Packit ba3681
Packit ba3681
* Support for i860, by Jason Eckhardt (preliminary, alpha quality).
Packit ba3681
Packit ba3681
* Support for CRIS (Axis Communications ETRAX series).
Packit ba3681
Packit ba3681
* Support for PDP-11 and 2.11BSD a.out format, by Lars Brinkhoff.
Packit ba3681
Packit ba3681
Changes in version 2.10:
Packit ba3681
Packit ba3681
* Added AT> to the linker script language to allow load-time allocation of
Packit ba3681
  sections into regions.
Packit ba3681
Packit ba3681
* Added garbage collection of unused sections, enabled by --gc-sections.
Packit ba3681
  It does require a bit of backend support; currently implemented are
Packit ba3681
  arm-elf, avr-elf, d10v-elf, fr30-elf, i386-elf, m32r-elf, m68k-elf,
Packit ba3681
  mcore-elf, mips-elf, mn10300-elf, ppc-elf, sh-elf, sparc-elf, and v850-elf.
Packit ba3681
  Others will ignore the option.
Packit ba3681
Packit ba3681
* Added SORT to the linker script language to permit sorting sections by file
Packit ba3681
  name or section name.
Packit ba3681
Packit ba3681
* Added EXTERN to the linker script language as an equivalent to the -u
Packit ba3681
  command-line option.
Packit ba3681
Packit ba3681
* Added ASSERT to the linker script language.
Packit ba3681
Packit ba3681
* Added EXCLUDE_FILE to the linker script language for further control over
Packit ba3681
  wildcard file names.
Packit ba3681
Packit ba3681
* Added -O option to optimize linker output (as of this writing, this only
Packit ba3681
  affects ELF shared library generation).
Packit ba3681
Packit ba3681
* The -e option now accepts a number as well as a symbol name.
Packit ba3681
Packit ba3681
* Added --no-undefined option to disallow undefined symbols when creating a
Packit ba3681
  shared library.
Packit ba3681
Packit ba3681
* The linker now issues a warning, not an error, for an undefined symbol when
Packit ba3681
  using -Bsymbolic; use the new --no-undefined option to get the old
Packit ba3681
  behaviour.
Packit ba3681
Packit ba3681
* Added --demangle and --no-demangle options.
Packit ba3681
Packit ba3681
Changes in version 2.9:
Packit ba3681
Packit ba3681
* Added SQUAD to the linker script language.
Packit ba3681
Packit ba3681
* New option --no-warn-mismatch.
Packit ba3681
Packit ba3681
* The MEMORY command now parses the attributes to determine where sections that
Packit ba3681
  are not placed in a specific memory region are placed.
Packit ba3681
Packit ba3681
Changes in version 2.8:
Packit ba3681
Packit ba3681
* Linker scripts may now contain shell wildcard characters for file and section
Packit ba3681
  names.
Packit ba3681
Packit ba3681
* The linker now supports symbol versions in ELF.
Packit ba3681
Packit ba3681
* The NOCROSSREFS command was added to the linker script language.
Packit ba3681
Packit ba3681
* The LOADADDR expression was added to the linker script language.
Packit ba3681
Packit ba3681
* MAX and MIN functions were added to the linker script language.
Packit ba3681
Packit ba3681
* The OVERLAY construct was added to the linker script language.
Packit ba3681
Packit ba3681
* New option --warn-section-align to warn when the address of an output section
Packit ba3681
  changes due to alignment of an input section.
Packit ba3681
Packit ba3681
* New options --filter/-F and --auxiliary/-f.
Packit ba3681
Packit ba3681
Changes in version 2.7:
Packit ba3681
Packit ba3681
* New option --cref to print out a cross reference table.
Packit ba3681
Packit ba3681
* New option --wrap SYMBOL.
Packit ba3681
Packit ba3681
* New option --no-whole-archive, to turn off the effect of --whole-archive.
Packit ba3681
Packit ba3681
* Input sections assigned to the output section /DISCARD/ in the linker script
Packit ba3681
  are not included in the output file.
Packit ba3681
Packit ba3681
* The SunOS and ELF linkers now merge stabs debugging information which uses
Packit ba3681
  the N_BINCL and N_EINCL stab types.  This reduces the amount of debugging
Packit ba3681
  information generated.
Packit ba3681
Packit ba3681
Changes in version 2.6:
Packit ba3681
Packit ba3681
* When an ELF section name is representable as a C identifier (this is not true
Packit ba3681
of most ELF section names), the linker will automatically define symbols
Packit ba3681
__start_SECNAME and __stop_SECNAME, where SECNAME is the section name, at the
Packit ba3681
beginning and the end of the section.  This is used by glibc.
Packit ba3681
Packit ba3681
  Addendum: Current versions of the linker (at least for version 2.18 onwards
Packit ba3681
and possibly much earlier as well) place two restrictions on this feature:  The
Packit ba3681
symbols are only implemented for orphaned sections, not for explicitly placed
Packit ba3681
sections and they are PROVIDEd rather than being defined.
Packit ba3681
Packit ba3681
* When an ELF section named .gnu.warning is encountered in an input file, the
Packit ba3681
contents of the section are displayed as an error message, and the section is
Packit ba3681
not copied into the output file.  This is used by glibc.
Packit ba3681
Packit ba3681
* When an ELF section named .gnu.warning.SYMBOL is encountered in an input
Packit ba3681
file, and the symbol SYMBOL is referenced by some object file, the contents of
Packit ba3681
the section are displayed as an error message.  The section is not copied into
Packit ba3681
the output file, unless doing a relocatable or shared link.  This is used by
Packit ba3681
glibc.
Packit ba3681
Packit ba3681
* New options -split-by-reloc and -split-by-file.
Packit ba3681
Packit ba3681
* The linker now supports linking PIC compiled code on SPARC SunOS.  It can
Packit ba3681
also create SPARC SunOS shared libraries, and, like the native SunOS linker,
Packit ba3681
will do so whenever there is an undefined symbol in the link and neither the -e
Packit ba3681
nor the -r option was used.
Packit ba3681
Packit ba3681
* The -rpath option may be used on SunOS to set the list of directories to be
Packit ba3681
searched at run time.  This overrides the default of building the list from the
Packit ba3681
-L options.
Packit ba3681
Packit ba3681
* The COFF linker now combines debugging information for structs, unions, and
Packit ba3681
enums, so that even if the same type is defined in multiple input files it will
Packit ba3681
only be defined once in the output file.  The --traditional-format switch will
Packit ba3681
prevent this optimization.
Packit ba3681
Packit ba3681
Changes in version 2.5:
Packit ba3681
Packit ba3681
* The linker now supports linking against SunOS shared libraries.  It still can
Packit ba3681
not link SunOS PIC (Position Independent Code) files, so it can not be used to
Packit ba3681
generate shared libraries.
Packit ba3681
Packit ba3681
* The linker now supports linking against ELF shared libraries for the i386
Packit ba3681
(UnixWare) and SPARC (Solaris).  It can also link ELF PIC files, and can be
Packit ba3681
used to generate shared libraries.  Shared library generation is not well
Packit ba3681
tested; please report any problems encountered.  The linker is now enabled for
Packit ba3681
Solaris again.
Packit ba3681
Packit ba3681
* Eric Youngdale has contributed Linux support code, including linking against
Packit ba3681
Linux a.out shared libraries.  The linker produces Linux QMAGIC binaries.
Packit ba3681
Packit ba3681
* The ELF backend has been converted to the new linker code.  To use the new
Packit ba3681
ELF linker, each particular target requires a relocation function.  So far,
Packit ba3681
this function has been written for i386 (UnixWare), SPARC (Solaris) MIPS (Irix
Packit ba3681
5), and HPPA ELF targets.
Packit ba3681
Packit ba3681
* The -( (--start-group) and -) (--end-group) options have been added to
Packit ba3681
support searching a group of archives as though they were a single archive.
Packit ba3681
This can also be used in a linker script, as GROUP ( files ).
Packit ba3681
Packit ba3681
* When a file is named on the command line, and the linker does not recognize
Packit ba3681
it as an object file, the linker will now treat the file as a linker script
Packit ba3681
file.  A linker script named in this way augments, but does not replace, the
Packit ba3681
default linker script.
Packit ba3681
Packit ba3681
* The -warn-once option was added.  It causes the linker to only warn once per
Packit ba3681
undefined symbol, rather than once per reference.
Packit ba3681
Packit ba3681
* The COFF backend has been converted to the new linker code.  As with ELF, to
Packit ba3681
use the new linker, each particular target requires a relocation function.  So
Packit ba3681
far, this function has been written for the i386, m68k, a29k and SH targets.
Packit ba3681
Packit ba3681
* The -V flag was made a synonym for -v, for SVR4 compatibility.  The old -V
Packit ba3681
behaviour is available via --verbose.
Packit ba3681
Packit ba3681
Changes in version 2.4:
Packit ba3681
Packit ba3681
* New linker code, by Steve Chamberlain and Ian Taylor.  For a.out and ecoff
Packit ba3681
  formats (so far), this should result in considerable savings in time
Packit ba3681
  and memory used while linking; slightly poorer performance than
Packit ba3681
  before for formats not converted yet.
Packit ba3681
Packit ba3681
* Command-line parsing is no longer done with flex.  This means
Packit ba3681
  oddball characters in filenames won't get treated as argument
Packit ba3681
  separators.
Packit ba3681
Packit ba3681
* HP-PA ELF support, by Jeff Law.  (No SOM support yet.)
Packit ba3681
Packit ba3681
* Mach i386 support, by David Mackenzie.
Packit ba3681
Packit ba3681
* Irix 4 shared libraries are now supported (Irix 5 uses ELF, and ELF shared
Packit ba3681
  libraries are not yet supported).
Packit ba3681
Packit ba3681
* COFF shared libraries (as on SCO) should work as well.
Packit ba3681
Packit ba3681
* The linker is disabled for Solaris.  (Actually, it was in 2.3 also, I just
Packit ba3681
  forgot to note it.)  Some of their C library routines don't work when
Packit ba3681
  statically linked, and the GNU linker doesn't support dynamic linking yet.
Packit ba3681
Packit ba3681
Changes in version 2.3:
Packit ba3681
Packit ba3681
* Weak symbols are now supported.
Packit ba3681
Packit ba3681
* ELF support has been added.  The linker has been bootstrapped on
Packit ba3681
  UnixWare and Solaris.
Packit ba3681
Packit ba3681
* Alpha OSF/1 support has been added (non dynamic linking only).
Packit ba3681
Packit ba3681
Changes in version 2.2:
Packit ba3681
Packit ba3681
* The `bfd' library has been updated to reduce a.out-format string
Packit ba3681
  table size.  The effect of this is that files linked from many input
Packit ba3681
  files with duplicate symbols (`-g' debugging records, or identical
Packit ba3681
  static symbols) should be much smaller.
Packit ba3681
Packit ba3681
Changes in version 2.1:
Packit ba3681
Packit ba3681
* The ld -ySYMBOL flag (to trace references to SYMBOL) is now implemented.
Packit ba3681
Packit ba3681
* There is now support for writing ECOFF files, so ld and the
Packit ba3681
  other utilities should work on Risc/Ultrix and Irix.
Packit ba3681
Packit ba3681

Packit ba3681
Copyright (C) 2012-2018 Free Software Foundation, Inc.
Packit ba3681
Packit ba3681
Copying and distribution of this file, with or without modification,
Packit ba3681
are permitted in any medium without royalty provided the copyright
Packit ba3681
notice and this notice are preserved.
Packit ba3681
Packit ba3681
Local variables:
Packit ba3681
fill-column: 79
Packit ba3681
End: