NEWS 23 KB

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