NEWS 34 KB

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