ChangeLog-2010 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381
  1. 2010-12-31 Robert Millan <rmh@gnu.org>
  2. Richard Sandiford <rdsandiford@googlemail.com>
  3. * configure.tgt: Recognize mips-freebsd and mips-kfreebsd-gnu.
  4. * emulparams/elf32btsmip_fbsd.sh: New file.
  5. * emulparams/elf32btsmipn32_fbsd.sh: Likewise.
  6. * emulparams/elf32ltsmip_fbsd.sh: Likewise.
  7. * emulparams/elf32ltsmipn32_fbsd.sh: Likewise.
  8. * emulparams/elf64btsmip_fbsd.sh: Likewise.
  9. * emulparams/elf64ltsmip_fbsd.sh: Likewise.
  10. * Makefile.am: Add build rules for `eelf32btsmip_fbsd.c',
  11. `eelf32btsmipn32_fbsd.c', `eelf32ltsmip_fbsd.c',
  12. `eelf32ltsmipn32_fbsd.c', `eelf64btsmip_fbsd.c' and
  13. `eelf64ltsmip_fbsd.c'.
  14. * Makefile.in: Regenerate.
  15. 2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
  16. * emulparams/elf32_x86_64.sh: New.
  17. * configure.tgt (targ64_extra_emuls): Add elf32_x86_64 for
  18. i[3-7]86-*-linux-*.
  19. (targ_extra_libpath): Likewise.
  20. (targ_extra_emuls): Add elf32_x86_64 for x86_64-*-linux-*.
  21. (targ_extra_libpath): Likewise.
  22. * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64.c.
  23. (eelf32_x86_64.c): New.
  24. * Makefile.in: Regenerated.
  25. 2010-12-20 Alan Modra <amodra@gmail.com>
  26. PR ld/12327
  27. * ld.texinfo (Expression Section): Describe treatment of numbers
  28. and absolute symbols.
  29. * ldemul.c (after_open_default): Look up __ld_compatibility.
  30. * ldexp.c (fold_name): Convert absolute symbols to numbers when
  31. inside output section definitions, or when __ld_compatibility >= 221.
  32. (exp_fold_tree_1): Convert numbers to absolute when not in output
  33. section definition and __ld_compatibility < 221. Don't always
  34. convert values outside an output section definition to absolute.
  35. * ldexp.h (uses_defined): Comment.
  36. * ldlang.c (ld_compatibility): New variable.
  37. * ldlang.h (ld_compatibility): Declare.
  38. * emultempl/aix.em, * emultempl/armcoff.em, * emultempl/beos.em,
  39. * emultempl/elf32.em, * emultempl/genelf.em, * emultempl/lnk960.em,
  40. * emultempl/m68kcoff.em, * emultempl/mmo.em, * emultempl/pe.em,
  41. * emultempl/pep.em, * emultempl/sunos.em, * emultempl/z80.em: Call
  42. after_open_default from after_open function.
  43. 2010-12-20 Alan Modra <amodra@gmail.com>
  44. PR ld/12001
  45. Revert 2010-11-03 Nick Clifton
  46. * ldlang.c (ldlang_def_chain_list): Delete.
  47. (insert_defined, ldlang_add_def, lang_place_defineds): Delete.
  48. (lang_process): Don't call lang_place_defineds.
  49. (lang_add_assignment): Don't do anything special for --defsym.
  50. * ldexp.h (struct ldexp_control): Add uses_defined.
  51. (exp_fold_tree_no_dot): Declare.
  52. * ldexp.c (exp_fold_tree): Clear uses_defined.
  53. (exp_fold_tree_no_dot): Likewise. Make global.
  54. (fold_name <DEFINED>): Set uses_defined.
  55. (exp_fold_tree_1 <etree_assign>): Define symbol during first phase
  56. even when the value being assigned isn't valid.
  57. * ldlang.c (open_input_bfds): Process assignment statements.
  58. (lang_process): Bump lang_statement_iteration.
  59. (scan_for_self_assignment): Formatting.
  60. (print_assignment): Style.
  61. 2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
  62. * Makefile.am (GENSCRIPTS): Add @enable_initfini_array@.
  63. * NEWS: Mention SORT_BY_INIT_PRIORITY.
  64. * configure.in: Add AC_CANONICAL_BUILD.
  65. Add --enable-initfini-array.
  66. * genscripts.sh (ENABLE_INITFINI_ARRAY): New.
  67. * ld.h (sort_type): Add by_init_priority.
  68. * ld.texinfo: Document SORT_BY_INIT_PRIORITY.
  69. * ldgram.y (SORT_BY_INIT_PRIORITY): New.
  70. (wildcard_spec): Handle SORT_BY_INIT_PRIORITY.
  71. * ldlang.c (get_init_priority): New.
  72. (compare_section): Use get_init_priority for by_init_priority.
  73. * ldlex.l (SORT_BY_INIT_PRIORITY): New.
  74. * scripttempl/elf.sc: Support ENABLE_INITFINI_ARRAY.
  75. * Makefile.in: Regenerated.
  76. * aclocal.m4: Regenerated.
  77. * config.in: Likewise.
  78. * configure: Likewise.
  79. 2010-12-13 Alan Modra <amodra@gmail.com>
  80. * ldlang.c (load_symbols): Correct last change.
  81. 2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
  82. * ldlang.c (load_symbols): Optimize for add_archive_element.
  83. 2010-12-09 Mike Frysinger <vapier@gentoo.org>
  84. * .gitignore: New file.
  85. 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
  86. * lexsup.c (ld_options): Add -flto and -flto-partition= for
  87. GCC LTO option compatibility.
  88. 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
  89. PR ld/12288
  90. * plugin.c (message): Don't add the trailing `\n' for
  91. LDPL_ERROR.
  92. 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
  93. PR ld/12288
  94. * testplug.c: Remove the trailing `\n' from TV_MESSAGE.
  95. 2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
  96. PR ld/12288
  97. * plugin.c (message): Use putchar for the trailing `\n'.
  98. 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
  99. Dmitry Gorbachev <d.g.gorbachev@gmail.com>
  100. PR ld/12289
  101. * ldmain.c (main): Don't call plugin_call_cleanup.
  102. * plugin.c (plugin_call_cleanup): Make it static.
  103. (message): Don't call plugin_call_cleanup.
  104. (plugin_load_plugins): Call xatexit with plugin_call_cleanup.
  105. 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
  106. PR ld/12289
  107. * plugin.c (message): Call plugin_call_cleanup on fatal
  108. error.
  109. 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
  110. * plugin.c (message): Add a space after `:' in error message.
  111. 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
  112. * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n'
  113. to einfo.
  114. (get_symbols): Likewise.
  115. (plugin_notice): Likewise.
  116. (plugin_multiple_definition): Likewise.
  117. 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
  118. PR ld/12288
  119. * plugin.c (message): Add the trailing `\n'.
  120. 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
  121. * ldfile.c (ldfile_open_file_search): Check maybe_archive instead
  122. of is_archive.
  123. * emultempl/aix.em: Likewise.
  124. * emultempl/elf32.em: Likewise.
  125. * emultempl/linux.em: Likewise.
  126. * emultempl/pe.em: Likewise.
  127. * emultempl/pep.em: Likewise.
  128. * emultempl/sunos.em: Likewise.
  129. * emultempl/vms.em: Likewise.
  130. * ldlang.c (new_afile): Set maybe_archive instead of is_archive..
  131. * ldlang.h (lang_input_statement_struct): Replace is_archive
  132. with maybe_archive.
  133. 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
  134. PR ld/12277
  135. * plugin.c (asymbol_from_plugin_symbol): Properly convert LTO
  136. plugin visibility to ELF visibility.
  137. (is_visible_from_outside): Re-indent.
  138. 2010-12-04 Alan Modra <amodra@gmail.com>
  139. * ldlang.c (lang_size_sections_1): Align lma using same alignment
  140. as for vma.
  141. 2010-12-03 H.J. Lu <hongjiu.lu@intel.com>
  142. * lexsup.c (ld_options): Fix a typo in comments.
  143. 2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
  144. * plugin.h: Re-indent.
  145. 2010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>
  146. * configure.tgt: Add sparc64-rtems.
  147. 2010-11-26 Alan Modra <amodra@gmail.com>
  148. * po/ja.po: Update.
  149. 2010-11-25 Alan Modra <amodra@gmail.com>
  150. * po/bg.po: Update.
  151. * po/es.po: Update.
  152. * po/fi.po: Update.
  153. * po/ja.po: New.
  154. * po/zh_CN.po: Update.
  155. 2010-11-25 Jan Hubicka <hubicka@ucw.cz>
  156. * scripttempl/elf.sc: Group .text.exit, text.startup and .text.hot
  157. sections.
  158. 2010-11-23 Matthias Klose <doko@ubuntu.com>
  159. * configure.ac: For --enable-gold, handle value `default' instead of
  160. `both*'. Always install ld as ld.gold, install as ld if gold is
  161. the default.
  162. * configure: Regenerate.
  163. 2010-11-21 H.J. Lu <hongjiu.lu@intel.com>
  164. * ldfile.c: Re-indent plugin code.
  165. * ldlang.c: Likewise.
  166. * ldmain.c: Likewise.
  167. * plugin.c: Likewise.
  168. 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
  169. PR ld/12246
  170. * plugin.c (asymbol_from_plugin_symbol): Set alignment of
  171. common symbol to 1 for For ELF targets.
  172. 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
  173. PR ld/12247
  174. * lexsup.c (parse_args): Properly report loading plugin error.
  175. 2010-11-19 Dave Korn <dave.korn.cygwin@gmail.com>
  176. * plugin.c (is_visible_from_outside): New function.
  177. (get_symbols): Use it.
  178. 2010-11-16 Jie Zhang <jie.zhang@analog.com>
  179. * Makefile.am (eelf32bfinfd.c, eelf32bfin.c): Depend on bfin.em.
  180. * Makefile.in: Regenerated.
  181. * emulparams/bfin.sh (EXTRA_EM_FILE): Set.
  182. * emulparams/elf32bfinfd.sh (EXTRA_EM_FILE): Likewise.
  183. * emultempl/bfin.em: New.
  184. 2010-11-16 Yasuaki Taniguchi <taniguchi.yasua@jp.fujitsu.com>
  185. * emultempl/pe.em (_list_options): Correct typo.
  186. * emultempl/pep.em (_list_options): Likewise.
  187. 2010-11-08 Thomas Schwinge <thomas@schwinge.name>
  188. * configure.host: Add stanza for *-*-gnu*.
  189. 2010-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
  190. * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
  191. 2010-11-05 Tristan Gingold <gingold@adacore.com>
  192. * po/ld.pot: Regenerate
  193. * po/POTFILES.in: Regenerate
  194. 2010-11-05 Tristan Gingold <gingold@adacore.com>
  195. * NEWS: Add marker for 2.21.
  196. 2010-11-05 Dave Korn <dave.korn.cygwin@gmail.com>
  197. * plugin.h (plugin_active_plugins_p): New prototype.
  198. (is_ir_dummy_bfd): Delete prototype.
  199. * plugin.c: Fix formatting issues.
  200. (is_ir_dummy_bfd): Make static.
  201. (plugin_active_plugins_p): New function.
  202. * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
  203. are loaded. Always close file descriptor after claim handler returns.
  204. * ldmain.c (add_archive_element): Likewise.
  205. 2010-11-05 Alan Modra <amodra@gmail.com>
  206. * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.
  207. (map_input_to_output_sections): Likewise.
  208. (lang_size_sections_1): Likewise.
  209. (IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
  210. (lang_check_section_addresses): Likewise.
  211. 2010-11-04 Kai Tietz <kai.tietz@onevision.com>
  212. * scripttempl/pe.sc (.debug_types): New.
  213. * scripttempl/pep.sc: Likewise.
  214. 2010-11-04 Alan Modra <amodra@gmail.com>
  215. * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
  216. 2010-11-03 Nick Clifton <nickc@redhat.com>
  217. PR ld/12001
  218. * ldlang.c (ldlang_def_chain_list): New variable. Contains a list
  219. of symbols defined via the --defsym command line option and
  220. currently waiting assignment.
  221. (insert_defined): Add a defined symbol to the symbol table.
  222. (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
  223. (lang_place_defineds): Walk ldlang_def_chain_list defining the
  224. symbols.
  225. (lang_process): Call lang_place_defineds.
  226. (lang_add_assignment): If the assignment has come from a --defsym
  227. command line option then call lang_add_def.
  228. 2010-11-03 Alan Modra <amodra@gmail.com>
  229. * Makefile.am (eelf64hppa.c): Correct dependencies.
  230. * Makefile.in: Regenerate.
  231. 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
  232. * scripttempl/armbpabi.sc: Include compressed DWARF debug
  233. sections.
  234. * scripttempl/avr.sc: Likewise.
  235. * scripttempl/elf32cr16.sc: Likewise.
  236. * scripttempl/elf32crx.sc: Likewise.
  237. * scripttempl/elf32msp430.sc: Likewise.
  238. * scripttempl/elf32msp430_3.sc: Likewise.
  239. * scripttempl/elf32sh-symbian.sc: Likewise.
  240. * scripttempl/elf64hppa.sc: Likewise.
  241. * scripttempl/elf_chaos.sc: Likewise.
  242. * scripttempl/elfd10v.sc: Likewise.
  243. * scripttempl/elfd30v.sc: Likewise.
  244. * scripttempl/elfi370.sc: Likewise.
  245. * scripttempl/elfm68hc11.sc: Likewise.
  246. * scripttempl/elfm68hc12.sc: Likewise.
  247. * scripttempl/elfxtensa.sc: Likewise.
  248. * scripttempl/ip2k.sc: Likewise.
  249. * scripttempl/iq2000.sc: Likewise.
  250. * scripttempl/mep.sc: Likewise.
  251. * scripttempl/mmo.sc: Likewise.
  252. * scripttempl/v850.sc: Likewise.
  253. * scripttempl/xstormy16.sc: Likewise.
  254. 2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
  255. * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
  256. bfd_openr returns.
  257. * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
  258. * scripttempl/elf.sc: Include compressed DWARF debug sections.
  259. 2010-10-28 Alan Modra <amodra@gmail.com>
  260. * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
  261. 2010-10-28 Matthias Klose <doko@ubuntu.com>
  262. * ld.texinfo: Add directory section for info document.
  263. * ldint.texinfo: Likewise.
  264. 2010-10-28 Alan Modra <amodra@gmail.com>
  265. * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
  266. --no-undefined-version, don't report dot sym versions added by ld.
  267. 2010-10-28 Alan Modra <amodra@gmail.com>
  268. * ldlang.h (ldlang_add_undef): Add cmdline param.
  269. * ldlang.c (undef_from_cmdline): New var.
  270. (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
  271. (lang_end): Really require -e or -u from command line on
  272. relocatable --gc-sections.
  273. * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
  274. * ldgram.y (extern_name_list_body): Likewise.
  275. * lexsup.c (parse_args): Likewise.
  276. * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
  277. 2010-10-25 Alan Modra <amodra@gmail.com>
  278. * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
  279. Formatting.
  280. 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  281. * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
  282. elf32-sparc-sol2.
  283. * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
  284. elf64-sparc-sol2.
  285. 2010-10-22 Alan Modra <amodra@gmail.com>
  286. * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
  287. output when section has no contents.
  288. (build_link_order <lang_reloc_statement_enum>): Likewise.
  289. 2010-10-21 Joseph Myers <joseph@codesourcery.com>
  290. * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
  291. .c6xabi.attributes, not __TI_build_attributes.
  292. 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
  293. * plugin.c (get_symbols): Check symbol type correctly.
  294. 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
  295. * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
  296. * configure: Regenerate.
  297. * config.in: Likewise.
  298. * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
  299. trival LoadLibrary-based replacement for Windows systems.
  300. [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
  301. replacement based on GetProcAddress.
  302. [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
  303. * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
  304. anymore, use its own guard.
  305. 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
  306. * plugin.c (add_input_file): Take copy of input string.
  307. (add_input_library): Likewise.
  308. (set_extra_library_path): Likewise.
  309. 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
  310. Apply LD plugin patch series (part 6/6).
  311. * ldlang.c (load_symbols): Handle bfd subsitution when calling the
  312. add_archive_element callback.
  313. * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
  314. member to the plugins and if claimed set "subsbfd" output parameter to
  315. point to the dummy IR-only BFD.
  316. 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
  317. Apply LD plugin patch series (part 5/6).
  318. * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
  319. find the elf symbol data and set the visibility in the st_other field.
  320. 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
  321. Apply LD plugin patch series (part 4/6).
  322. * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
  323. plugin_call_all_symbols_read to before setting of gc_sym_list, and
  324. open any new input files that may have been added during it.
  325. * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
  326. plugin_multiple_definition and let it have first say over what to do
  327. with the clashing definitions.
  328. * plugin.c (no_more_claiming): New boolean variable.
  329. (plugin_cached_allow_multiple_defs): Likewise.
  330. (add_input_file): Implement.
  331. (add_input_library): Likewise.
  332. (set_extra_library_path): Likewise.
  333. (plugin_call_claim_file): Don't do anything when no_more_claiming set.
  334. (plugin_call_all_symbols_read): Set it. Disable link info
  335. "allow_multiple_definition" flag, but cache its value.
  336. (plugin_multiple_definition): New function.
  337. * plugin.h (plugin_multiple_definition): Add prototype.
  338. * testplug.c (addfile_enum_t): New enumerated typedef.
  339. (add_file_t): New struct typedef.
  340. (addfiles_list): New variable.
  341. (addfiles_tail_chain_ptr): Likewise.
  342. (record_add_file): New function.
  343. (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
  344. (onall_symbols_read): Iterate the list of new files, libs and dirs,
  345. adding them.
  346. 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
  347. Apply LD plugin patch series (part 3/6).
  348. * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
  349. * plugin.c (non_ironly_hash): Add new bfd hash table.
  350. (plugin_load_plugins): Exit early if no plugins to load. If plugins
  351. do load successfully, set notice_all flag in link info.
  352. (get_symbols): Implement.
  353. (plugin_load_plugins): Exit early if no plugins to load, else after
  354. loading plugins successfully enable notice_all mode.
  355. (init_non_ironly_hash): Lazily init non_ironly_hash table.
  356. (plugin_notice): Record symbols referenced from non-IR files in the
  357. non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
  358. tracking for symbols from dummy IR bfds.
  359. * plugin.h: Fix formatting.
  360. (plugin_notice): Add prototype.
  361. * testplug.c (dumpresolutions): New global var.
  362. (parse_options): Accept "dumpresolutions".
  363. (onall_symbols_read): Get syms and dump resolutions if it was given.
  364. 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
  365. Apply LD plugin patch series (part 2/6).
  366. * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
  367. during compat checks if they pass, instead offer any successfully
  368. opened and accepted file to the plugin claim file hooks chain. Create
  369. a dummy bfd to accept symbols added by the plugin, if the plugin
  370. claims the file.
  371. * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
  372. read hook chain before ldemul_after_open.
  373. * ldlang.h (struct lang_input_statement_struct): Add new single-bit
  374. 'claimed' flag.
  375. * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
  376. (IRONLY_SUFFIX_LEN): Length of the above string.
  377. (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
  378. to store symbols for ir-only files.
  379. (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
  380. (asymbol_from_plugin_symbol): New function converts symbol formats.
  381. (add_symbols): Call it to convert plugin syms to bfd syms and add
  382. them to the dummy bfd.
  383. * plugin.h: Add missing include guards.
  384. (plugin_get_ir_dummy_bfd): Add prototype.
  385. (is_ir_dummy_bfd): Likewise.
  386. * testplug.c (TV_MESSAGE): New helper macro.
  387. (struct claim_file): New struct.
  388. (claim_file_t): New typedef.
  389. (tag_names[]): Make static and const.
  390. (claimfiles_list): New variable.
  391. (claimfiles_tail_chain_ptr): Likewise.
  392. (last_claimfile): Likewise.
  393. (record_claim_file): Record a file to claim on a singly-linked list.
  394. (parse_symdefstr): Parse an ASCII representation of a symbol from a
  395. plugin option into the fields of a struct ld_plugin_symbol.
  396. (record_claimed_file_symbol): Use it to parse plugin option for
  397. adding a symbol.
  398. (parse_option): Parse claim file and add symbol options.
  399. (dump_tv_tag): Use TV_MESSAGE.
  400. (onload): Likewise.
  401. (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
  402. claim and claim this file if required, adding any symbols specified.
  403. (onall_symbols_read): Make static and use TV_MESSAGE.
  404. (oncleanup): Likewise.
  405. 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
  406. Apply LD plugin patch series (part 1/6).
  407. * configure.in: Add AC_CHECKs for file io and dlfcn headers and
  408. functions and AC_SEARCH for -ldl.
  409. (enable_plugins): New shell variable set if above tests find dlopen
  410. functionality.
  411. (ENABLE_PLUGINS): Add related automake conditional.
  412. * configure: Regenerate.
  413. * config.in: Likewise.
  414. * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
  415. on ENABLE_PLUGINS being defined.
  416. (PLUGIN_H): Likewise for header file.
  417. (PLUGIN_OBJECT): Likewise for object file.
  418. (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
  419. (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
  420. (CFILES): Use PLUGIN_C.
  421. (HFILES): Use PLUGIN_H.
  422. (OFILES): Use PLUGIN_OBJECT.
  423. (ld_new_SOURCES): Use PLUGIN_C.
  424. (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
  425. (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
  426. for test plugin.
  427. (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
  428. (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
  429. * Makefile.in: Regenerate.
  430. * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
  431. sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
  432. (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
  433. (O_WRONLY): Likewise.
  434. (O_RDWR): Likewise.
  435. (O_ACCMODE): Likewise.
  436. (O_BINARY): Likewise.
  437. (SEEK_SET): Likewise.
  438. (SEEK_CUR): Likewise.
  439. (SEEK_END): Likewise.
  440. * ldmisc.c (vfinfo): Make non-static. Add %p format char.
  441. * ldmisc.h (vfinfo): Declare extern prototype.
  442. * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
  443. OPTION_PLUGIN and OPTION_PLUGIN_OPT.
  444. (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
  445. (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
  446. option parsing is complete.
  447. * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
  448. after lang_finish.
  449. * plugin.c: New source file.
  450. * plugin.h: Likewise new header.
  451. * testplug.c: New source file.
  452. 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  453. * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
  454. basever_syms to global_syms.
  455. Emit global_syms into .dynamic section for all executables and
  456. shared objects.
  457. (elf_solaris2_after_allocation): New function.
  458. (LDEMUL_AFTER_ALLOCATION): Use it.
  459. * emulparams/solaris2.sh: New file.
  460. * emulparams/elf32_sparc_sol2.sh: Use it.
  461. * emulparams/elf64_sparc_sol2.sh: Likewise.
  462. * emulparams/elf_i386_sol2.sh: Likewise.
  463. * emulparams/elf_x86_64_sol2.sh: Likewise.
  464. * Makefile.am (eelf32_sparc_sol2.c): Depend on
  465. $(srcdir)/emulparams/solaris2.sh.
  466. (eelf64_sparc_sol2.c): Likewise.
  467. (eelf_x86_64_sol2.c): Likewise.
  468. (eelf_i386_sol2.c): Likewise.
  469. * Makefile.in: Regenerate.
  470. 2010-10-06 Nick Clifton <nickc@redhat.com>
  471. * ld.texinfo: Update description of computation of VMA and LMA
  472. addresses for output sections.
  473. 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  474. * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
  475. * Makefile.in: Regenerate.
  476. * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
  477. (ALL_EMULATION_SOURCES): ... this new variable.
  478. (ALL_64_EMULATIONS): Rewrite in terms of ...
  479. (ALL_64_EMULATION_SOURCES): ... this new variable.
  480. (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
  481. variables.
  482. (eelf32microblaze.c): Fix indentation.
  483. * Makefile.in: Regenerate.
  484. 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
  485. * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
  486. _bfd_elf_single_rel_hdr.
  487. 2010-10-01 Alan Modra <amodra@gmail.com>
  488. PR ld/12066
  489. * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
  490. * ld.texinfo (Expression Section): Don't say absolute symbols
  491. are addresses.
  492. 2010-09-29 Alan Modra <amodra@gmail.com>
  493. * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
  494. section for orphans handled here.
  495. 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  496. * configure: Regenerate.
  497. 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
  498. * scripttempl/armcoff.sc: Revert 2010-09-22 change.
  499. 2010-09-23 Alan Modra <amodra@gmail.com>
  500. * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
  501. to output section on a final link.
  502. 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
  503. * ldlang.c (lang_add_section): Allow for debugging
  504. section to be marked as noload but to keep content.
  505. (IGNORE_SECTION): Likewise.
  506. (lang_check_section_addresses): Likewise.
  507. * ldwrite.c (build_link_order): Likewise.
  508. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
  509. idata to orphan set.
  510. * emultempl/pep.em: Likewise.
  511. * scripttempl/armcoff.sc: Separate idata
  512. and add __IAT_start__ and __IAT_end__ labels.
  513. * scripttempl/pe.sc: Likewise.
  514. * scripttempl/pep.sc: Likewise.
  515. 2010-09-20 David S. Miller <davem@davemloft.net>
  516. * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
  517. 2010-09-16 Alan Modra <amodra@gmail.com>
  518. * ld.texinfo (NOLOAD): Do not erroneously state that contents will
  519. appear in output file.
  520. * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
  521. unless SEC_COFF_SHARED_LIBRARY.
  522. (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
  523. output sections.
  524. (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
  525. to update dot in region. Ditto when setting SEC_ALLOC if dot
  526. advanced due to assignment.
  527. * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
  528. 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
  529. * scripttempl/pep.sc: Add .xdata segment and
  530. put into .pdata all segments beginning with .pdata.
  531. 2010-09-10 Alan Modra <amodra@gmail.com>
  532. PR ld/11931
  533. * ldlang.h (lang_for_each_statement_worker): Declare.
  534. * ldlang.c (lang_for_each_statement_worker): Make global. Don't
  535. recurse into children of output_section_statement with constraint
  536. set to -1.
  537. (print_assignment): Handle NULL output_section->bfd_section.
  538. (lang_size_sections_1): Ignore output section statement address
  539. when constraint is -1.
  540. * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
  541. 2010-09-09 Tristan Gingold <gingold@adacore.com>
  542. * NEWS: Add a entry for alpha-vms.
  543. 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
  544. * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
  545. newly cloned section.
  546. 2010-09-02 Richard Henderson <rth@redhat.com>
  547. * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
  548. 2010-08-31 Nick Clifton <nickc@redhat.com>
  549. * ldlex.l (WILDCHAR): Add the caret and exclamation point
  550. characters, so that they can be used inside globs.
  551. 2010-08-31 Nick Clifton <nickc@redhat.com>
  552. * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
  553. a region's attributes.
  554. 2010-08-31 Alan Modra <amodra@gmail.com>
  555. * scripttempl/mmo.sc: Move assignment to "Main" inside .text
  556. output section statement.
  557. 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
  558. PR ld/11946
  559. * emultempl/elf32.em (_before_allocation): Check audit entry
  560. only on ELF input.
  561. 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
  562. PR ld/11937
  563. * emultempl/elf32.em (_after_open): Find one .eh_frame section
  564. for --eh-frame-hdr.
  565. 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
  566. PR ld/11937
  567. * emultempl/elf32.em (_after_open): Find an ELF input for
  568. --build-id and --eh-frame-hdr.
  569. 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
  570. * Makefile.am (eshlelf_fd.c): Correct the name of the tool
  571. directory.
  572. * Makefile.in: Regenerate.
  573. 2010-08-20 Nick Clifton <nickc@redhat.com>
  574. * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
  575. returning NULL.
  576. 2010-08-19 Alan Modra <amodra@gmail.com>
  577. * NEWS: Mention change in linker script expression evaluation.
  578. 2010-08-19 Alan Modra <amodra@gmail.com>
  579. * ld.texinfo (Expression Section): Detail expression evaluation.
  580. (Builtin Functions <ADDR>): Correct.
  581. (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
  582. the same as ADDR.
  583. (Builtin Functions <SEGMENT_START>): Typo fix.
  584. * ldexp.c (new_number): New function.
  585. (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
  586. (fold_unary <'~', '!', '-'>): Don't make_abs.
  587. (fold_binary): Simplify result section logic. Return NULL section
  588. for logical ops.
  589. (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
  590. a consistent result.
  591. (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
  592. (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
  593. (fold_name <NAME>): No need to handle absolute symbols differently
  594. from relative ones.
  595. (fold_name <ORIGIN>): Don't return valid result when
  596. lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
  597. (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
  598. (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
  599. a plain number to dot, assume the value is relative to expld.section.
  600. Make terms not in an output section, absolute.
  601. * ldlang.c (print_assignment): Fix style nit.
  602. (lang_size_sections_1): Cope with NULL expld.result.section.
  603. (lang_do_assignments_1): Likewise.
  604. 2010-08-12 Alan Modra <amodra@gmail.com>
  605. * ldexp.c (new_rel): Remove "str". Update all call sites.
  606. (exp_fold_tree_1): When assigning to dot, calculate nextdot
  607. using expld.result.section rather than expld.section.
  608. 2010-08-06 Alan Modra <amodra@gmail.com>
  609. PR ld/11887
  610. * ldlang.c (lang_add_vers_depend): Don't leave version_needed
  611. uninitialised.
  612. 2010-07-28 Alan Modra <amodra@gmail.com>
  613. * ldexp.c (exp_print_tree): Print function-like binary nodes as
  614. functions rather than in-fix operators. Use fputs and fputc
  615. where appropriate.
  616. 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
  617. Ina Pandit <ina.pandit@kpitcummins.com>
  618. * configure.tgt: Match all v850 targets.
  619. 2010-07-20 Mike Frysinger <vapier@gentoo.org>
  620. * ld.texinfo (VERSION): Remove "int" from example script and add ";".
  621. Declare the default language as C.
  622. 2010-07-17 Alan Modra <amodra@gmail.com>
  623. * ldlang.c (lang_check_section_addresses): Catch overlap for
  624. sections that wrap around the address space.
  625. 2010-06-29 Nick Clifton <nickc@redhat.com>
  626. * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
  627. with the .gcc_except_table. prefix.
  628. 2010-06-29 Alan Modra <amodra@gmail.com>
  629. * emulparams/maxqcoff.sh: Delete file.
  630. * scripttempl/maxqcoff.sc: Delete file.
  631. * Makefile.am: Remove references to maxq.
  632. * configure.tgt: Likewise.
  633. * Makefile.in: Regenerate.
  634. * configure: Regenerate.
  635. * po/POTFILES.in: Regenerate.
  636. 2010-06-27 Alan Modra <amodra@gmail.com>
  637. * pe-dll.c (fill_edata): Avoid set but unused warning.
  638. (pe_walk_relocs_of_symbol): Delete set but unused variables.
  639. (generate_reloc, pe_implied_import_dll): Likewise.
  640. * emultempl/aix.em (open_dynamic_archive): Likewise.
  641. * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
  642. (xtensa_layout_wild): Likewise.
  643. (xtensa_colocate_output_literals_callback): Likewise.
  644. 2010-06-25 Alan Modra <amodra@gmail.com>
  645. * emultempl/ppc64elf.em (prelim_size_sections): New function.
  646. (ppc_before_allocation): Use it. Size sections before toc edit too.
  647. 2010-06-25 Alan Modra <amodra@gmail.com>
  648. * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
  649. 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
  650. * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
  651. auto-import and merge-rdata defaults same for i[3-7]86 and
  652. x86_64 mingw.
  653. 2010-06-15 Joseph Myers <joseph@codesourcery.com>
  654. * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
  655. 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
  656. PR ld/11603
  657. * pe-dll.c (process_def_file_and_drectve): Reorder check for
  658. forwarded export name after check for ordinary export.
  659. 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
  660. * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
  661. 2010-06-08 Nick Clifton <nickc@redhat.com>
  662. * fdl.texi: Replace with v1.3 text.
  663. * ld.texinfo: Replace abbreviated 20th century year numbers with
  664. full versions.
  665. * ldint.texinfo: Likewise.
  666. Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
  667. include of the fdl.texi file.
  668. 2010-06-01 Tristan Gingold <gingold@adacore.com>
  669. * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
  670. readonly output-section. Handle LIB$INITIALIZE and sections
  671. created by gcc.
  672. * emultempl/vms.em (vms_place_orphan): Add comments.
  673. 2010-05-28 Nick Clifton <nickc@redhat.com>
  674. * Makefile.am (eshlelf_fd.c): Fix typo in rule.
  675. * Makefile.in: Regenerate.
  676. 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
  677. PR ld/11628
  678. * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
  679. multiple of maximum page size.
  680. 2010-05-25 Nick Clifton <nickc@redhat.com>
  681. * Makefile.am: Fix typo.
  682. * Makefile.in: Regenerate.
  683. 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
  684. Joseph Myers <joseph@codesourcery.com>
  685. Andrew Stubbs <ams@codesourcery.com>
  686. * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
  687. (eshelf_fd.c, eshlelf_fd.c): New rules.
  688. * Makefile.in: Regenerate.
  689. * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
  690. emulations.
  691. * emulparams/shelf_fd.sh: New file.
  692. * emulparams/shlelf_fd.sh: New file.
  693. * emulparams/shlelf_linux.sh: Update comment.
  694. 2010-05-25 Jay Krell <jay.krell@cornell.edu>
  695. PR ld/11621
  696. * Makefile.am: Replace all occurences of .o with .@OBJEXT@
  697. * Makefile.in: Regenerate.
  698. 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
  699. * deffilep.y (opt_name): Allow leading dot.
  700. (dot_name): Likewise.
  701. (anylang_id): Likewise.
  702. * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
  703. default auto_import.
  704. (gld${EMULATION_NAME}_handle_option): Warn about v1.
  705. (pep_find_data_imports): Remove superflous warnings about
  706. auto-import.
  707. (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
  708. and active pseudo-relocation-v2 rdata into data section.
  709. * emultempl/pe.em (default_merge_rdata): New shell variable.
  710. (MERGE_RDATA_V2): New macro.
  711. (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
  712. selected script.
  713. 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
  714. * emultempl/pe.em (is_underscoring): New helper function.
  715. (gld_${EMULATION_NAME}_before_parse): Replace code
  716. for pe(p)_leading_underscore detection by is_underscoring.
  717. (U): Likewise.
  718. (GET_INIT_SYMBOL_NAME): Likewise.
  719. (U_SIZE): Likewise.
  720. (set_pe_name):
  721. (set_entry_point):
  722. (gld_${EMULATION_NAME}_set_symbols):
  723. * emultempl/pep.em: Likewise.
  724. * pe-dll.c (pe_detail_list): Set default
  725. underscoring for x64 target.
  726. (pe_dll_id_target): Add initialization of
  727. pe(p)_leading_underscore.
  728. 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
  729. * pe-dll.c: Removed trailing whitespaces.
  730. 2010-05-14 Alan Modra <amodra@gmail.com>
  731. PR ld/11583
  732. * ldexp.c (exp_fold_tree_1): If assignment source expression is
  733. invalid, make the destination symbol undefined.
  734. 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
  735. * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
  736. Initialize pe(p)_leading_underscore variable.
  737. (set_pe_name): Likewise.
  738. * emultempl/pep.em: Likewise.
  739. Additional change default to non-underscore for
  740. pep_leading_underscore equal to -1.
  741. 2010-05-07 Tristan Gingold <gingold@adacore.com>
  742. * Makefile.in: Regenerate with automake 1.11.1.
  743. * aclocal.m4: Ditto.
  744. 2010-05-05 Nick Clifton <nickc@redhat.com>
  745. * po/es.po: Updated Spanish translation.
  746. 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
  747. * pe-dll.c (_nm_-symbols): Use always underscored variant
  748. for symbols.
  749. (__imp_-symbols): Likewise.
  750. (___imp_-symbols): Likewise.
  751. * NEWS: Mention ABI change for x64 PE-COFF.
  752. 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
  753. * Makefile.am (install-exec-local): Properly install ld as
  754. default cross linker.
  755. * Makefile.in: Regenerated.
  756. 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
  757. Nick Clifton <nickc@redhat.com>
  758. * configure.in (install_as_default): Define and set to true
  759. unless --enable-gold=both/gold has been specified.
  760. * configure: Regenerate.
  761. * Makefile.am (transform): Use ld.bfd as the default name of
  762. the linker.
  763. (install-exec-local): Also install the executable as a binary
  764. named 'ld' if install_as_default is true.
  765. * Makefile.in: Regenerate.
  766. 2010-04-22 Nick Clifton <nickc@redhat.com>
  767. * po/ld.pot: Updated by the Translation project.
  768. * po/vi.po: Updated Vietnamese translation.
  769. * po/bg.po: Updated Bulgarian translation.
  770. 2010-04-15 Andrew Haley <aph@redhat.com>
  771. * emultempl/armelf.em (merge_exidx_entries): New variable.
  772. (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
  773. ("no-merge-exidx-entries"): New option.
  774. * ld.texinfo (merge-exidx-entries): Document this option.
  775. 2010-04-14 Tristan Gingold <gingold@adacore.com>
  776. * emulparams/alphavms.sh: New file.
  777. * emultempl/vms.em: New file.
  778. * scripttempl/alphavms.sc: New file.
  779. * configure.tgt (alpha*-*-*vms*): Added.
  780. * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
  781. (ealphavms.c): New target.
  782. * Makefile.in: Regenerate.
  783. 2010-04-09 Nick Clifton <nickc@redhat.com>
  784. * ldlang.c (wild_sort): Remove unused variable section_name.
  785. 2010-04-07 Alan Modra <amodra@gmail.com>
  786. * configure: Regenerate.
  787. 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
  788. PR ld/11434
  789. * ld/testsuite/ld-x86-64/unique1.d: New.
  790. * ld/testsuite/ld-x86-64/unique1.s: Likewise.
  791. * ld-x86-64/x86-64.exp: Run unique1.
  792. 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
  793. * emultempl/pep.em (U): Macro modified.
  794. (U_SIZE): New helper macro.
  795. (GET_INIT_SYMBOL_NAME): Likewise.
  796. (enum options): Add OPTION_NO_LEADING_UNDERSCORE
  797. and OPTION_LEADING_UNDERSCORE enumerator-values.
  798. (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
  799. option.
  800. (definfo): Add new member is_c_symbol.
  801. (D): Add to macro underscore mode parameter.
  802. (init): Add definition for is_c_symbol.
  803. (gld_${EMULATION_NAME}_list_options): Display new options.
  804. (set_pep_name): Adjust underscoring dependent fixed
  805. symbol handling.
  806. (gld_${EMULATION_NAME}_set_symbols): Likewise.
  807. (saw_option): Likewise.
  808. (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
  809. (set_entry_point): Initial initial_symbol_char dependent to
  810. target's default and new option flag pep_leading_underscore.
  811. * emultempl/pe.em (U): Macro modified.
  812. (U_SIZE): New helper macro.
  813. (GET_INIT_SYMBOL_NAME): Likewise.
  814. (OPTION_LEADING_UNDERSCORE): Add new option define.
  815. (OPTION_NO_LEADING_UNDERSCORE): Likewise.
  816. (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
  817. option.
  818. (definfo): Add new member is_c_symbol.
  819. (D): Add to macro underscore mode parameter.
  820. (init): Add definition for is_c_symbol.
  821. (gld_${EMULATION_NAME}_list_options): Display new options.
  822. (set_pep_name): Adjust underscoring dependent fixed
  823. symbol handling.
  824. (gld_${EMULATION_NAME}_set_symbols): Likewise.
  825. (saw_option): Likewise.
  826. (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
  827. (set_entry_point): Initial initial_symbol_char dependent to
  828. target's default and new option flag pep_leading_underscore.
  829. * pe-dll.c (pe_leading_underscore): New flag variable.
  830. (pe_detail_list): Remove const to allow modify of
  831. member underscore.
  832. (pe_dll_id_target): Initialize pe_details' underscore variable
  833. dependent to target's default and flag pe_leading_underscore.
  834. * pe-dll.h (pe_leading_underscore): Add extern declaration of
  835. option flag.
  836. * pep-dll.c (pe_leading_underscore): Add alias define for
  837. pep_leading_underscore.
  838. * pep-dll.h (pep_leading_underscore) Add extern declaration of
  839. option flag.
  840. * ld.texinfo: Add documentation for --(no-)leading-underscore
  841. option.
  842. 2010-03-26 Alan Modra <amodra@gmail.com>
  843. PR ld/11426
  844. * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
  845. (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
  846. 2010-03-25 Joseph Myers <joseph@codesourcery.com>
  847. * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
  848. eelf32_tic6x_le.o.
  849. (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
  850. * NEWS: Add news entry for TI C6X support.
  851. * configure.tgt (tic6x-*-*): New.
  852. * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
  853. 2010-03-23 Joseph Myers <joseph@codesourcery.com>
  854. * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
  855. BSS_NAME): Define if not already defined. Use in place of some
  856. hardcoded section names.
  857. 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
  858. * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
  859. 2010-03-18 Aymeric Vincent <vincent@labri.fr>
  860. PR ld/11384
  861. * emultempl/sh64elf.em: Add missing EOF.
  862. 2010-03-18 Doug Semler <dougsemler@gmail.com>
  863. * pe-dll.c (make_one): Make text section readonly.
  864. (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
  865. the jump stub on X86 as /SAFESEH compatible for
  866. native toolchains.
  867. 2010-03-17 Alan Modra <amodra@gmail.com>
  868. * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
  869. *prev instead. Update all callers.
  870. 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
  871. * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
  872. region and phdrs as their placement section.
  873. 2010-03-15 Alan Modra <amodra@gmail.com>
  874. * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
  875. (ppc_before_allocation): Call sort_toc_sections.
  876. (no_toc_sort, OPTION_NO_TOC_SORT): New.
  877. (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
  878. PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
  879. 2010-03-14 Alan Modra <amodra@gmail.com>
  880. PR ld/11378
  881. * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
  882. ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
  883. 2010-03-11 George Gensure <werkt0@gmail.com>
  884. PR ld/11367
  885. * ldcref.c (handle_asneeded_cref): Correct copying of refs.
  886. 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  887. * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
  888. eelf_i386_sol2.o.
  889. (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
  890. (eelf32_sparc_sol2.c): New rule.
  891. (eelf64_sparc_sol2.c): Likewise.
  892. (eelf_x86_64_sol2.c): Likewise.
  893. (eelf_i386_sol2.c): Likewise.
  894. * Makefile.in: Regenerate.
  895. * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
  896. elf_i386_sol2.
  897. Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
  898. (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
  899. Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
  900. (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
  901. Add target_extra_emuls.
  902. (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
  903. Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
  904. (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
  905. Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
  906. * emulparams/elf32_sparc_sol2.sh: New file.
  907. * emulparams/elf64_sparc_sol2.sh: New file.
  908. * emulparams/elf_i386_sol2.sh: New file.
  909. * emulparams/elf_x86_64_sol2.sh: New file.
  910. * emultempl/solaris2.em: New file.
  911. 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
  912. PR ld/11330
  913. * ld.texinfo: Replace explicitely with explicitly.
  914. 2010-02-27 Jie Zhang <jie@codesourcery.com>
  915. * scripttempl/armbpabi.sc: Don't combine .init_array.* or
  916. .fini_array.* when do relocatable linking.
  917. * scripttempl/elf.sc: Likewise.
  918. * scripttempl/elf32sh-symbian.sc: Likewise.
  919. * scripttempl/elf64hppa.sc: Likewise.
  920. * scripttempl/elfxtensa.sc: Likewise.
  921. 2010-02-26 Alan Modra <amodra@gmail.com>
  922. * scripttempl/elf.sc (.fini_array): Place input .fini_array after
  923. .fini_array.*.
  924. * scripttempl/armbpabi.sc: Likewise.
  925. * scripttempl/elf32sh-symbian.sc: Likewise.
  926. * scripttempl/elf64hppa.sc: Likewise.
  927. * scripttempl/elfxtensa.sc: Likewise.
  928. 2010-02-25 Alan Modra <amodra@gmail.com>
  929. PR ld/11304
  930. * ldlang.c (init_os): Remove isec param. Don't check for
  931. bfd_section already set or call bfd_init_private_section_data
  932. here.
  933. (exp_init_os): Update init_os call.
  934. (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
  935. flags. Call bfd_init_private_section_data here.
  936. (map_input_to_output_sections): Tidy. Update init_os calls.
  937. Use os->sectype to select sec flags for lang_data_statement.
  938. 2010-02-23 Alan Modra <amodra@gmail.com>
  939. PR ld/11304
  940. * ldlang.c: Revert last patch.
  941. 2010-02-23 Nick Clifton <nickc@redhat.com>
  942. * po/bg.po: Updated Bulgarian translation.
  943. 2010-02-22 Alan Modra <amodra@gmail.com>
  944. PR ld/11304
  945. * ldlang.c (exp_init_os): Delete forward declaration.
  946. (init_os): Don't check for bfd_section already created and don't
  947. init addr_tree and load_base expressions here.
  948. (map_input_to_output_sections): Only map input to output sections
  949. and set constraints here, and as an exception, create output
  950. sections which have their address set. Move all the other code to..
  951. (create_other_output_sections): ..here. New function. Handle init
  952. of addr_tree and load_base here too.
  953. (lang_process): Call create_other_output_sections.
  954. 2010-02-19 Alan Modra <amodra@gmail.com>
  955. * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
  956. * Makefile.in: Regenerate.
  957. 2010-02-19 Alan Modra <amodra@gmail.com>
  958. * ldlang.c (unique_section_p): Add os param. Allow group
  959. sections to match /DISCARD/. Update all callers.
  960. * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
  961. (LDEMUL_BEFORE_ALLOCATION): Define.
  962. 2010-02-15 Nick Clifton <nickc@redhat.com>
  963. * po/vi.po: Updated Vietnamese translation.
  964. 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
  965. * Makefile.am (CFILES): Add ldlex-wrapper.c.
  966. (OFILES): Replace ldlex.c with ldlex-wrapper.c.
  967. (ldlex.o): Replace with...
  968. (ldlex-wrapper.o): ...this new rule.
  969. (EXTRA_ld_new_SOURCES): Add ldlex.l.
  970. (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
  971. * Makefile.in: Regenerate.
  972. * ldlex.l (sysdep.h): Don't include here.
  973. * ldlex-wrapper.c: New file.
  974. 2010-02-09 Alan Modra <amodra@gmail.com>
  975. * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
  976. function parameters.
  977. 2010-02-05 Nick Clifton <nickc@redhat.com>
  978. * configure.in (ALL_LIBGUAS): Add bg.
  979. * configure: Regenerate.
  980. * po/bg.po: New Bulgarian translation.
  981. 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
  982. * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
  983. --target1-abs and --target1-rel options.
  984. 2010-02-03 Nick Clifton <nickc@redhat.com>
  985. * emultempl/alphaelf.em: Update value expected from elf_object_id.
  986. * emultempl/hppaelf.em: Likewise.
  987. * emultempl/mipself.em: Likewise.
  988. * emultempl/ppc32elf.em: Likewise.
  989. * emultempl/ppc64elf.em: Likewise.
  990. 2010-02-03 Alan Modra <amodra@gmail.com>
  991. * emultempl/ppc64elf.em (build_toc_list): Report errors from
  992. ppc64_elf_next_toc_section.
  993. (after_allocation): Update for changed function names and params.
  994. Run second pass of multitoc partitioning.
  995. 2010-01-21 Jon Grant <jg@jguk.org>
  996. Nick Clifton <nickc@redhat.com>
  997. PR 4437
  998. * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
  999. a missing file or library. Instead mark the entry as missing and
  1000. set the global flag to indicate that missing files were
  1001. encountered.
  1002. * ldlang.c (missing_files): New exported variable.
  1003. (load_symbols): Skip loading if the file is missing.
  1004. (open_input_bfds): Terminate link if any input files were
  1005. missing.
  1006. * ldlang.h (struct lang_input_statement_struct): Add missing_file
  1007. field.
  1008. Add export of missing_file variable.
  1009. 2010-01-13 DJ Delorie <dj@redhat.com>
  1010. * emultempl/elf32.em (_place_orphan): If an input section doesn't
  1011. match an existing output section, but an unused output section
  1012. statement does match, use it.
  1013. * emultempl/pe.em (_place_orphan): Likewise.
  1014. * emultempl/pep.em (_place_orphan): Likewise.
  1015. 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1016. * configure: Regenerate.
  1017. * Makefile.in: Regenerate.
  1018. 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
  1019. * ldver.c (ldversion): Change to "Copyright 2010".
  1020. 2010-01-08 Alan Modra <amodra@gmail.com>
  1021. PR 11107
  1022. * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
  1023. For older changes see ChangeLog-2009
  1024. Copyright (C) 2010 Free Software Foundation, Inc.
  1025. Copying and distribution of this file, with or without modification,
  1026. are permitted in any medium without royalty provided the copyright
  1027. notice and this notice are preserved.
  1028. Local Variables:
  1029. mode: change-log
  1030. left-margin: 8
  1031. fill-column: 74
  1032. version-control: never
  1033. End: