ChangeLog-2009 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649
  1. 2009-12-17 Dave Korn <dave.korn.cygwin@gmail.com>
  2. * pe-dll.c (generate_reloc): Take account of wrapper options when
  3. testing if a weak symbol is defined or not, and when it is not,
  4. consider whether the default value requires a base reloc anyway.
  5. 2009-12-17 Dave Korn <dave.korn.cygwin@gmail.com>
  6. * deffilep.y (def_file_free): Add missing shadow parameter renaming.
  7. (def_file_print): Likewise.
  8. (def_stash_module): Likewise.
  9. (def_file_add_import): Likewise.
  10. 2009-12-11 Nick Clifton <nickc@redhat.com>
  11. * Makefile.in: Regenerate.
  12. * configure: Regenerate.
  13. * deffilep.y: Fix shadowed variable warnings.
  14. * ldlang.c: Likewise.
  15. * ldmain.c: Likewise.
  16. * pe-dll.c: Likewise.
  17. * emultempl/elf32.em: Likewise.
  18. 2009-12-09 Alan Modra <amodra@bigpond.net.au>
  19. PR ld/11012
  20. * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Move .rela.opd ..
  21. (INITIAL_RELOC_SECTIONS): .. to here. New define.
  22. * scripttempl/elf.sc: Expand INITIAL_RELOC_SECTIONS.
  23. 2009-12-04 Jie Zhang <jie.zhang@analog.com>
  24. * ld.texinfo: Make it clear that --nmagic disables linking
  25. against shared libraries.
  26. 2009-11-30 Joseph Myers <joseph@codesourcery.com>
  27. * configure: Regenerate.
  28. 2009-11-30 Alan Modra <amodra@bigpond.net.au>
  29. PR ld/11006
  30. * lexsup.c (parse_args): Allow nested --start-group, --end-group.
  31. 2009-11-27 Tristan Gingold <gingold@adacore.com>
  32. * pe-dll.c (pe_implied_import_dll): Return early if there is no
  33. export entries.
  34. 2009-11-26 Nick Clifton <nickc@redhat.com>
  35. PR ld/10956
  36. * ld.h (struct args_type): Rename 'relax' field to
  37. 'disable_target_specific_optimizations' and turn it into a
  38. tri-state variable.
  39. (RELAXATION_DISABLED_BY_DEFAULT): New macro.
  40. (RELAXATION_DISABLED_BY_USER): New macro.
  41. (RELAXATION_ENABLED): New macro.
  42. (DISABLE_RELAXATION): New macro.
  43. (ENABLE_RELAXATION): New macro.
  44. * lexsup (enum option_values): Add OPTION_NO_RELAX.
  45. (struct ld_options): Add --no-relax.
  46. (parse_args): Handle OPTION_NO_RELAX. Use DISABLE_RELAXATION and
  47. ENABLE_RELAXATION macros.
  48. * ldlang.c (lang_relax_sections): Use RELAXATION_ENABLED macro.
  49. (lang_process): Likewise.
  50. * ldmain.c (main): Initialise
  51. disable_target_specific_optimizations field.
  52. (multiple_definition): Use RELAXATION_ENABLED macro.
  53. * ld.texinfo: Document new command line option.
  54. * emultempl/alphaelf.em: Remove --no-relax option.
  55. (before_allocation): Test RELAXATION_DISABLED_BY_USER macro.
  56. Use ENABLE_RELAXATION macro.
  57. * emultempl/avrelf.em: (after_allocation): Test RELAXATION_ENABLED
  58. macro.
  59. * emultempl/cr16elf.em: Remove --no-relax option.
  60. (before_allocation): Test RELAXATION_DISABLED_BY_USER macro.
  61. Use ENABLE_RELAXATION macro.
  62. * emultempl/crxelf.em: Remove --no-relax option.
  63. (before_allocation): Test RELAXATION_DISABLED_BY_USER macro.
  64. Use ENABLE_RELAXATION macro.
  65. * emultempl/mmix-elfnmmo.em: (before_allocation): Use
  66. ENABLE_RELAXATION macro.
  67. * emultempl/needrelax.em: (before_allocation): Use
  68. ENABLE_RELAXATION macro.
  69. * emultempl/ppc32elf.em: (before_allocation): Test
  70. RELAXATION_DISABLED_BY_DEFAULT macro. Use
  71. ENABLE_RELAXATION macro.
  72. * emultempl/sh64elf.em: (before_allocation): Test
  73. RELAXATION_ENABLED macro. Use DISABLE_RELAXATION macro.
  74. * emultempl/xtensaelf.em: Remove --no-relax option.
  75. (before_allocation): Test RELAXATION_ENABLED macro.
  76. Use ENABLE_RELAXATION macro.
  77. 2009-11-25 Kai Tietz <kai.tietz@onevision.com>
  78. * scripttempl/pe.sc: (.note.GNU-stack): Mark as discardable.
  79. (.gnu.lto_*): Likewise.
  80. * scripttempl/pep.sc: (.note.GNU-stack): Mark as discardable.
  81. (.gnu.lto_*): Likewise.
  82. 2009-11-23 Paul Brook <paul@codesourcery.com>
  83. * ldexp.c: Copy symbol type for simple assignments.
  84. 2009-11-20 Thomas Schwinge <thomas@codesourcery.com>
  85. * emulparams/armelf.sh (OTHER_READONLY_SECTIONS)
  86. <__exidx_start, __exidx_end>: Use PROVIDE_HIDDEN.
  87. * emulparams/armelf_linux_eabi.sh (OTHER_READONLY_SECTIONS)
  88. <__exidx_start, __exidx_end>: Likewise.
  89. * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS)
  90. <.ARM.exidx$$Base, __exidx_start, __exidx_end, .ARM.exidx$$Limit>:
  91. Likewise.
  92. 2009-11-19 Matthias Klose <doko@ubuntu.com>
  93. PR ld/9863
  94. * emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
  95. with __data_start.
  96. 2009-11-19 Ben Elliston <bje@au.ibm.com>
  97. * ldlex.l: Enable nounput flex option.
  98. 2009-11-15 Kai Tietz <kai.tietz@onevision.com>
  99. * pe-dll.c (pe_undef_alias_cdecl_match): New function.
  100. (pe_find_cdecl_alias_match): New function.
  101. (pe_process_import_defs): Add matching for import symbols
  102. declared as cdecl for fastcall/stdcall.
  103. * emultempl/pe.em (pe_undef_cdecl_match): Treat fastcall
  104. symbols, too.
  105. (pe_fixup_stdcalls): Likewise.
  106. (gld_XXX_after_open): Redo scanning for imported
  107. fastcall/stdcall symbols as cdecl one.
  108. * emultempl/pep.em (pep_undef_cdecl_match): Treat fastcall
  109. symbols, too.
  110. (pep_fixup_stdcalls): Likewise.
  111. (gld_XXX_after_open): Redo scanning for imported
  112. fastcall/stdcall symbols as cdecl one.
  113. 2009-11-11 Nick Clifton <nickc@redhat.com>
  114. * po/id.po: Updated Indonesian translation.
  115. 2009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  116. * configure.in: Call ACX_LARGEFILE. Stop calling AC_SYS_LARGEFILE.
  117. * aclocal.m4: Regenerate.
  118. * configure: Regenerate.
  119. 2009-11-10 Nick Clifton <nickc@redhat.com>
  120. PR ld/10864
  121. * ld.texinfo (Entry Point): Mention that the default entry symbol
  122. is not 'start' on some targets.
  123. 2009-11-06 H.J. Lu <hongjiu.lu@intel.com>
  124. PR ld/10912
  125. * ldmain.c (add_DT_NEEDED_for_dynamic): Default to TRUE.
  126. 2009-11-06 Kai Tietz <kai.tietz@onevision.com>
  127. * pe.em (DEFAULT_PSEUDO_RELOC_VERSION): New macro.
  128. (gld_XXX_before_parse): Set pseudo-relocation default
  129. version to DEFAULT_PSEUDO_RELOC_VERSION.
  130. (gldXXX_handle_option): Likewise.
  131. 2009-11-05 Nick Clifton <nickc@redhat.com>
  132. * lexsup.c: Rename --add-needed to --copy-dt-needed-entries.
  133. * ldlang.h (struct lang_input_statement_struct): Rename add_needed
  134. to add_DT_NEEDED_for_dynamic. Rename as_needed to
  135. add_DT_NEEDED_for_regular.
  136. * ldlang.c: Likewise.
  137. * ldlang.h: Likewise.
  138. * ldlang.c: Use the new variable names.
  139. * ldgram.y: Likewise.
  140. * emultempl/elf32.em: Likewise.
  141. * ld.texinfo: Document the renamed option. Also mention its
  142. affect on the resolution of dynamic symbols.
  143. * NEWS: Mention the changed option name.
  144. 2009-11-04 Kai Tietz <kai.tietz@onevision.com>
  145. * emulparams/arm_epoc_pe.sh: Remove ENTRY.
  146. * emulparams/arm_wince_pe.sh: Likewise.
  147. * emulparams/i386pe.sh: Likewise.
  148. * emulparams/i386pe_posix.sh: Likewise.
  149. * emulparams/mcorepe.sh: Likewise.
  150. * emulparams/mipspe.sh: Likewise.
  151. * emulparams/ppcpe.sh: Likewise.
  152. * emulparams/armpe.sh: Likewise.
  153. * emulparams/i386pep.sh: Likewise.
  154. * emulparams/shpe.sh: Likewise.
  155. Additionally cleaned up double-defined
  156. variables SUBSYSTEM and INITIAL_SYMBOL_CHAR.
  157. * emultempl/pe.em: Remove use of ENTRY.
  158. (pe_subsystem): New local variable.
  159. (gld_XXX_before_parse): Don't set default
  160. entry point here.
  161. (set_entry_point): New function to set entry
  162. point.
  163. (set_pe_subsystem): Remove code for entry point.
  164. (gld_XXX_after_parse): Use set_entry_point here.
  165. * emultempl/pep.em: Likewise.
  166. 2009-10-29 Nathan Sidwell <nathan@codesourcery.com>
  167. * emulparams/vxworks.sh (OTHER_READONLY_SECTIONS): Move into ...
  168. (OTHER_READWRITE_SECTIONS): ... here.
  169. 2009-10-28 Kai Tietz <kai.tietz@onevision.com>
  170. * emultempl/pep.em (U): Define underscore macro.
  171. (init): Use for __ImageBase U macro.
  172. 2009-10-23 Kai Tietz <kai.tietz@onevision.com>
  173. * deffile.h (def_file_export): New member its_name.
  174. (def_file_import): Likewise.
  175. (def_file_add_export): Add argument its_name.
  176. (def_file_add_import): Likewise.
  177. * deffilep.y (def_exports): Add argument its_name.
  178. (def_import): Likewise.
  179. (EQUAL): Add new token for '=='.
  180. (opt_equalequal_name): New rule.
  181. (expline): Add rule opt_equalequal_name.
  182. (impline): Likewise.
  183. (def_file_free): Free for exports and imports
  184. the optional member its_name.
  185. (def_lex): Add scan of '==' as EQUAL.
  186. * pe-dll.c (pe_export_sort): Sort for its_name too.
  187. (process_def_file_and_drectve): Adjust calls to
  188. def_file_add_export.
  189. (generate_edata): Take its_name in account.
  190. (make_one): Likewise.
  191. (pe_process_import_defs): Likewise.
  192. (pe_dll_generate_def_file): Add print of new '==' option.
  193. * ld.texinfo: Extend documentation about .def file syntax.
  194. * NEWS: Mention new feature.
  195. 2009-10-23 Kai Tietz <kai.tietz@onevision.com>
  196. * deffilep.y (def_lex): Allow '<' and '>' characters in identifier
  197. strings.
  198. 2009-10-23 Ryan Mansfield <rmansfield@qnx.com>
  199. PR ld/10489
  200. * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Handle
  201. drive specifiers for DOS based filesystems in rpath-link strings.
  202. 2009-10-19 Nick Clifton <nickc@redhat.com>
  203. * Makefile.am: Remove spurious sanitization marker.
  204. * Makefile.in: Regenerate.
  205. 2009-10-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
  206. * emultempl/pe.em (OPTION_EXCLUDE_ALL_SYMBOLS): New macro.
  207. (gld${EMULATION_NAME}_add_options): Add new --exclude-all-symbols option
  208. to exclude all symbols from automatic export.
  209. (gld_${EMULATION_NAME}_list_options): Describe it.
  210. (gld${EMULATION_NAME}_handle_option): Handle it.
  211. * emultempl/pep.em: Likewise to all the above.
  212. * pe-dll.c (pe_dll_exclude_all_symbols): New variable.
  213. (process_def_file_and_drectve): Use it.
  214. * pe-dll.h (pe_dll_exclude_all_symbols): Declare.
  215. * pep-dll.c (pep_dll_exclude_all_symbols): Define pep_ alias.
  216. * pep-dll.h (pe_dll_exclude_all_symbols): Declare.
  217. * NEWS: Mention the new feature.
  218. * ld.texinfo: Document the new command line switch.
  219. 2009-10-14 Andreas Schwab <schwab@linux-m68k.org>
  220. * ldlex.l (yy_input): Remove second argument and return the value
  221. instead.
  222. (YY_INPUT): Adjust.
  223. 2009-10-14 Alan Modra <amodra@bigpond.net.au>
  224. * emultempl/netbsd.em (gldnetbsd_before_parse): Typo fix.
  225. 2009-10-14 Ryan Mansfield <rmansfield@qnx.com>
  226. * ldlang.c (load_symbols): Set whole_archive from entry when
  227. parsing a linker script.
  228. 2009-10-10 Alan Modra <amodra@bigpond.net.au>
  229. * scripttempl/elf32cr16.sc: Revert 2009-09-28 changes.
  230. * scripttempl/elf32cr16c.sc: Likewise.
  231. * scripttempl/elf32crx.sc: Likewise.
  232. * scripttempl/tic54xcoff.sc: Likewise.
  233. * scripttempl/aix.sc: Likewise.
  234. * scripttempl/avr.sc: Likewise.
  235. * scripttempl/elf32msp430.sc: Likewise.
  236. * scripttempl/elf32msp430_3.sc: Likewise.
  237. * scripttempl/elf32sh-symbian.sc: Likewise.
  238. * scripttempl/elf_chaos.sc: Likewise.
  239. * scripttempl/elfi370.sc: Likewise.
  240. * scripttempl/nw.sc: Likewise.
  241. * scripttempl/psos.sc: Likewise.
  242. * scripttempl/armbpabi.sc: Likewise.
  243. * scripttempl/elf.sc: Likewise.
  244. * scripttempl/elf64hppa.sc: Likewise.
  245. * scripttempl/elfd10v.sc: Likewise.
  246. * scripttempl/elfd30v.sc: Likewise.
  247. * scripttempl/elfm68hc11.sc: Likewise.
  248. * scripttempl/elfm68hc12.sc: Likewise.
  249. * scripttempl/elfmicroblaze.sc: Likewise.
  250. * scripttempl/elfxtensa.sc: Likewise.
  251. * scripttempl/iq2000.sc: Likewise.
  252. * scripttempl/mep.sc: Likewise.
  253. * scripttempl/xstormy16.sc: Likewise.
  254. 2009-10-09 Alan Modra <amodra@bigpond.net.au>
  255. PR ld/10749
  256. * ldlang.c (lang_size_sections_1): Zero section vmas only for COFF.
  257. 2009-10-08 Alan Modra <amodra@bigpond.net.au>
  258. PR ld/10744
  259. * ldlang.c (lang_new_phdr): Allow FILEHDR/PHDRS on more than the
  260. first PT_LOAD header.
  261. * ld.texinfo: Update.
  262. 2009-10-06 Nathan Sidwell <nathan@codesourcery.com>
  263. * ldlang.c (lang_new_phdr): Check PHDRS and FILEHDR in loadable
  264. segments do not appear after a different loadable segment.
  265. * ld.texinfo (PHDRS): Document order of processing segments.
  266. Document where PHDRS and FILEHDR may appear.
  267. 2009-10-03 Alan Modra <amodra@bigpond.net.au>
  268. * emultempl/ppc32elf.em (emit_stub_syms): Init to -1.
  269. (ppc_after_open): Set emit_stubs_syms by default when shared.
  270. (OPTION_NO_STUBSYMS): Define.
  271. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
  272. PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms.
  273. * emultempl/ppc64elf.em (emit_stub_syms): Init to -1.
  274. (gld${EMULATION_NAME}_finish): Set emit_stubs_syms by default.
  275. (OPTION_NO_STUBSYMS): Define.
  276. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
  277. PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms.
  278. 2009-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
  279. * emulparams/m68kelf.sh (NOP): Use 0x4e71 (nop) rather than 0x4e75
  280. (rts).
  281. 2009-09-29 DJ Delorie <dj@redhat.com>
  282. * Makefile.am: Add rules to build RX emulation.
  283. * configure.tgt: Likewise.
  284. * NEWS: Mention support for RX architecture.
  285. * Makefile.in: Regenerate.
  286. * emulparams/elf32rx.sh: New file.
  287. * emultempl/rxelf.em: New file.
  288. 2009-09-29 Alan Modra <amodra@bigpond.net.au>
  289. * ldlang.c (lang_size_sections_1): Allow scripts to specify a
  290. non-zero vma even when relocatable.
  291. 2009-09-28 Alan Modra <amodra@bigpond.net.au>
  292. * scripttempl/elf32cr16.sc: Emit empty script for ld -r and ld -Ur.
  293. * scripttempl/elf32cr16c.sc: Likewise.
  294. * scripttempl/elf32crx.sc: Likewise.
  295. * scripttempl/tic54xcoff.sc: Likewise.
  296. * scripttempl/aix.sc: Delete ${RELOCATING-0}.
  297. * scripttempl/avr.sc: Likewise.
  298. * scripttempl/elf32msp430.sc: Likewise.
  299. * scripttempl/elf32msp430_3.sc: Likewise.
  300. * scripttempl/elf32sh-symbian.sc: Likewise.
  301. * scripttempl/elf_chaos.sc: Likewise.
  302. * scripttempl/elfi370.sc: Likewise.
  303. * scripttempl/nw.sc: Likewise.
  304. * scripttempl/psos.sc: Likewise.
  305. * scripttempl/armbpabi.sc: Delete ${RELOCATING-0} and ${CONSTRUCTING-0}.
  306. * scripttempl/elf.sc: Likewise.
  307. * scripttempl/elf64hppa.sc: Likewise.
  308. * scripttempl/elfd10v.sc: Likewise.
  309. * scripttempl/elfd30v.sc: Likewise.
  310. * scripttempl/elfm68hc11.sc: Likewise.
  311. * scripttempl/elfm68hc12.sc: Likewise.
  312. * scripttempl/elfmicroblaze.sc: Likewise.
  313. * scripttempl/elfxtensa.sc: Likewise.
  314. * scripttempl/iq2000.sc: Likewise.
  315. * scripttempl/mep.sc: Likewise.
  316. * scripttempl/xstormy16.sc: Likewise.
  317. 2009-09-27 Christopher Faylor <me+cygwin@cgf.cx>
  318. PR ld/10634
  319. * ldlang.c (lang_size_sections_1): Always force output vma to zero for
  320. relocatable sections.
  321. (lang_size_sections_1): Revert previous COFF-only accommodation for
  322. relocatable sections.
  323. 2009-09-25 Martin Thuresson <martint@google.com>
  324. Update sources to make arm targets compile cleanly with
  325. -Wc++-compat:
  326. * emultempl/armelf.em: Add casts.
  327. 2009-09-23 Matt Rice <ratmice@gmail.com>
  328. * emultempl/elf32.em (gld${EMULATION_NAME}_add_options): Add --audit,
  329. --depaudit, and -P options.
  330. (gld${EULATION_NAME}_handle_options): Ditto.
  331. (gld${EULATION_NAME}_list_options): Ditto.
  332. (gld${EMULATION_NAME}_append_to_separated_string): New function for
  333. handling rpath-like colon separated strings.
  334. (gld${EMULATION_NAME}_before_allocation): Pass the audit and depaudit
  335. libs to bfd. Propagate DT_AUDIT from needed libs to depaudit.
  336. * ld.texinfo: Document new options.
  337. 2009-09-23 Nick Clifton <nickc@redhat.com>
  338. * po/vi.po: Updated Vietnamese translation.
  339. 2009-09-22 Alan Modra <amodra@bigpond.net.au>
  340. * scripttempl/a29k.sc: Delete.
  341. * scripttempl/ebmon29k.sc: Delete.
  342. * scripttempl/m68klynx.sc: Delete.
  343. * scripttempl/sa29200.sc: Delete.
  344. * scripttempl/sparclynx.sc: Delete.
  345. 2009-09-21 Alan Modra <amodra@bigpond.net.au>
  346. * emultempl/ppc32elf.em (no_tls_get_addr_opt): New var.
  347. (ppc_before_allocation): Pass to ppc_elf_tls_setup.
  348. (OPTION_NO_TLS_GET_ADDR_OPT): Define. Redefine other options in
  349. terms of previous option.
  350. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
  351. --no-tls-get-addr-optimize.
  352. (PARSE_AND_LIST_ARGS_CASES): Handle it.
  353. * emultempl/ppc64elf.em (no_tls_get_addr_opt): New var.
  354. (ppc_before_allocation): Pass to ppc64_elf_tls_setup.
  355. (OPTION_NO_TLS_GET_ADDR_OPT): Define.
  356. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
  357. --no-tls-get-addr-optimize.
  358. (PARSE_AND_LIST_ARGS_CASES): Handle it.
  359. 2009-09-18 Nick Clifton <nickc@redhat.com>
  360. * po/es.po: Updated Spanish translation.
  361. 2009-09-13 Alan Modra <amodra@bigpond.net.au>
  362. PR ld/6766
  363. * lexsup.c (parse_args <-e>): Revert 2009-03-18 change.
  364. * ldemul.c (after_parse_default): Add entry symbol as undef.
  365. * emultempl/alphaelf.em (alpha_after_parse): Call after_parse_default.
  366. * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
  367. * emultempl/crxelf.em (crxelf_after_parse): Likewise.
  368. * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
  369. * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Likewise.
  370. * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Call
  371. after_parse_default and delete now duplicate code.
  372. * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
  373. * scripttempl/elf32cr16.sc: No need to make entry extern.
  374. * scripttempl/elf32cr16c.sc: Likewise.
  375. * scripttempl/elf32crx.sc: Likewise.
  376. * scripttempl/elf32xc16xs.sc: Only provide ENTRY on final link.
  377. 2009-09-11 Nick Clifton <nickc@redhat.com>
  378. * po/ld.pot: Updated by the Translation project.
  379. * po/fi.po: Updated Finnish translation.
  380. 2009-09-11 Martin Thuresson <martint@google.com>
  381. Updated sources to compile cleanly with -Wc++-compat:
  382. * ld.h (enum endian_enum,enum symbolic_enum,enum
  383. dynamic_list_enum): Move to top level.
  384. * ldcref.c: Add casts.
  385. * ldctor.c: Add casts.
  386. * ldexp.c
  387. * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level.
  388. * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead
  389. of integer.
  390. * ldlang.h (enum statement_enum): Move to top level.
  391. * ldmain.c: Add casts.
  392. * ldwrite.c: Add casts.
  393. * lexsup.c: Add casts. (enum control_enum): Move to top level.
  394. * mri.c: Add casts. (mri_draw_tree): Use enum name instead of
  395. integer.
  396. 2009-09-09 Alan Modra <amodra@bigpond.net.au>
  397. * scripttempl/aix.sc: Only provide ENTRY on final link.
  398. * scripttempl/alpha.sc: Likewise.
  399. * scripttempl/armcoff.sc: Likewise.
  400. * scripttempl/crisaout.sc: Likewise.
  401. * scripttempl/delta68.sc: Likewise.
  402. * scripttempl/ebmon29k.sc: Likewise.
  403. * scripttempl/elf32xc16x.sc: Likewise.
  404. * scripttempl/elf32xc16xl.sc: Likewise.
  405. * scripttempl/elfmicroblaze.sc: Likewise.
  406. * scripttempl/epocpe.sc: Likewise.
  407. * scripttempl/h8300.sc: Likewise.
  408. * scripttempl/h8300h.sc: Likewise.
  409. * scripttempl/h8300hn.sc: Likewise.
  410. * scripttempl/h8300s.sc: Likewise.
  411. * scripttempl/h8300sn.sc: Likewise.
  412. * scripttempl/h8300sx.sc: Likewise.
  413. * scripttempl/h8300sxn.sc: Likewise.
  414. * scripttempl/hppaelf.sc: Likewise.
  415. * scripttempl/i386beos.sc: Likewise.
  416. * scripttempl/i386coff.sc: Likewise.
  417. * scripttempl/i386go32.sc: Likewise.
  418. * scripttempl/m68kaux.sc: Likewise.
  419. * scripttempl/m68klynx.sc: Likewise.
  420. * scripttempl/m88kbcs.sc: Likewise.
  421. * scripttempl/maxqcoff.sc: Likewise.
  422. * scripttempl/mcorepe.sc: Likewise.
  423. * scripttempl/mips.sc: Likewise.
  424. * scripttempl/ppcpe.sc: Likewise.
  425. * scripttempl/sa29200.sc: Likewise.
  426. * scripttempl/sparccoff.sc: Likewise.
  427. * scripttempl/sparclynx.sc: Likewise.
  428. * scripttempl/tic4xcoff.sc: Likewise.
  429. * scripttempl/tic54xcoff.sc: Likewise.
  430. * scripttempl/tic80coff.sc: Likewise.
  431. * scripttempl/z8000.sc: Likewise.
  432. 2009-09-07 Tristan Gingold <gingold@adacore.com>
  433. * po/ld.pot: Regenerate.
  434. 2009-09-05 Martin Thuresson <martin@mtme.org>
  435. * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols,
  436. gld${EMULATION_NAME}_try_needed): Rename variable class to
  437. link_class.
  438. 2009-09-04 Tristan Gingold <gingold@adacore.com>
  439. * NEWS: Add marker for 2.20.
  440. 2009-09-04 Alan Modra <amodra@bigpond.net.au>
  441. * scripttempl/elf.sc (.text): Add cold text sections.
  442. 2009-09-04 Jie Zhang <jie.zhang@analog.com>
  443. * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Add .l2.text
  444. and .l2.data.
  445. 2009-09-03 Dave Korn <dave.korn.cygwin@gmail.com>
  446. * scripttempl/pe.sc (.text): Add "*(.text.*)" in order to catch
  447. new GCC hot/cold/unlikely partitions.
  448. * scripttempl/pep.sc: Likewise.
  449. * scripttempl/epocpe.sc: Likewise.
  450. * scripttempl/mcorepe.sc: Likewise.
  451. * scripttempl/ppcpe.sc: Likewise.
  452. 2009-09-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  453. * Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
  454. source file name for generated files which may be in $(srcdir).
  455. * Makefile.in: Regenerate.
  456. 2009-09-01 H.J. Lu <hongjiu.lu@intel.com>
  457. * ldver.c (ldversion): Change to "Copyright 2009".
  458. 2009-09-01 Jie Zhang <jie.zhang@analog.com>
  459. * scripttempl/elf.sc: Add ${USER_LABEL_PREFIX} to _start, etext,
  460. _stack and __bss_start.
  461. * emulparams/bfin.sh (ENTRY): Remove.
  462. 2009-08-30 Alan Modra <amodra@bigpond.net.au>
  463. PR ld/10569
  464. * ldexp.c (fold_name <MAXPAGESIZE>): Return config.maxpagesize.
  465. (fold_name <COMMONPAGESIZE>): Similarly.
  466. * ldlang.c (output_target): Make global.
  467. * ldlang.h (output_target): Declare.
  468. * ldmain.c (main): Set config.maxpagesize from bfd_emul_get_maxpagesize.
  469. Similarly for config.commonpagesize.
  470. * ldemul.c (set_output_arch_default): Call bfd_emul_set_maxpagesize
  471. and bfd_emul_set_commonpagesize.
  472. * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Don't call
  473. bfd_emul_set_maxpagesize or bfd_emul_set_commonpagesize here.
  474. 2009-08-29 Martin Thuresson <martin@mtme.org>
  475. * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
  476. (exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
  477. to new_e.
  478. * ldfile.c (ldfile_add_library_path): Rename variable new to
  479. new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
  480. * ldlang.c (new_statement, lang_final, lang_add_wild)
  481. (lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
  482. (lang_add_insert): Rename variable new to new_stmt. (new_afile):
  483. Added missing cast. (lang_memory_region_lookup): Rename variable
  484. new to new_region. (init_os): Rename variable new to
  485. new_userdata. (lang_add_section): Rename variable new to
  486. new_section. (ldlang_add_undef): Rename variable new to
  487. new_undef. (realsymbol): Rename variable new to new_name.
  488. 2009-08-26 Nick Clifton <nickc@redhat.com>
  489. PR ld/10555
  490. * emultempl/elf32.em (_after_open): Do not create a
  491. .note.gnu-build-id section if there are no input files.
  492. 2009-08-24 Nick Clifton <nickc@redhat.com>
  493. * scripttempl/elfxtensa.sc (DISCARDED): Discard sections with
  494. .gnu.lto_ prefix.
  495. * scripttempl/armbpabi.sc: Likewise.
  496. * scripttempl/elf32sh-symbian.sc: Likewise.
  497. * scripttempl/elf64hppa.sc: Likewise.
  498. * scripttempl/mep.sc: Likewise.
  499. 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  500. * Makefile.am (ldmain.o, ldfile.o): Fix typos in non-fastdep
  501. rules.
  502. (eelf32_spu.o): Add dependency tracking.
  503. * Makefile.in: Regenerate.
  504. * Makefile.am (am__skiplex, am__skipyacc): New.
  505. * Makefile.in: Regenerate.
  506. 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  507. * Makefile.am (bin_PROGRAMS): Renamed from ...
  508. (noinst_PROGRAMS): ... this.
  509. (transform): Override, including the renaming of ld-new to ld.
  510. (install-exec-local): Installation of ld in $(bindir) not needed
  511. here any more.
  512. (AM_CPPFLAGS): Renamed from ...
  513. (INCLUDES): ... this.
  514. (MAINTAINERCLEANFILES): Add ld.1.
  515. * Makefile.in: Regenerate.
  516. * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus. Add
  517. no-texinfo.tex, no-dist, foreign.
  518. (TEXINFO_TEX): New variable.
  519. (install-data-local): Removed, not needed any more.
  520. (all): Dependencies upon info and ld.1 not needed any more.
  521. (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Removed.
  522. (mkdep generated section): Removed.
  523. (ldgram.o, ldlex.o, deffilep.o, ldmain.o, ldfile.o): Rewrite to
  524. use automake dependency tracking mechanism.
  525. (EXTRA_ld_new_SOURCES): Add pep-dll.c, pe-dll.c, and
  526. $(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c) so their
  527. dependencies are tracked too.
  528. (BUILT_SOURCES): New, list $(GENERATED_HFILES) to ensure they
  529. are built early.
  530. * configure.in: Use AM_MAINTAINER_MODE.
  531. * aclocal.m4, configure, Makefile.in: Regenerate.
  532. * Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am)
  533. (install-pdf-recursive, html__strip_dir, install-html)
  534. (install-html-am, install-html-recursive): Remove.
  535. * Makefile.in: Regenerate.
  536. * Makefile.in: Regenerate.
  537. * aclocal.m4: Likewise.
  538. * config.in: Likewise.
  539. * configure: Likewise.
  540. 2009-08-21 Richard Guenther <rguenther@suse.de>
  541. * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
  542. 2009-08-12 Tristan Gingold <gingold@adacore.com>
  543. * ld.h (fat_user_section_struct): Add map_symbol_def_count field.
  544. * ldlang.c (hash_entry_addr_cmp): New function.
  545. (print_all_symbols): Sort the symbols by address before printing them.
  546. 2009-08-10 Alan Modra <amodra@bigpond.net.au>
  547. PR 10474
  548. * ldemul.c (after_allocation_default): Run lang_relax_sections.
  549. * ldlang.h (lang_relax_sections): Declare.
  550. * ldlang.c (relax_sections): Delete.
  551. (lang_relax_sections): New function.
  552. (lang_process): Don't relax directly from here.
  553. * emultempl/alphaelf.em (alpha_finish): Call finish_default.
  554. * emultempl/armelf.em (arm_elf_after_allocation): Delete. Move body..
  555. (gld${EMULATION_NAME}_finish): ..to here. Move existing code..
  556. (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
  557. (LDEMUL_AFTER_ALLOCATION): Update.
  558. * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete.
  559. (avr_elf_after_allocation): New function.
  560. (LDEMUL_AFTER_ALLOCATION): Define.
  561. * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call
  562. lang_relax_sections.
  563. * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete. Move..
  564. (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
  565. (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update.
  566. * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
  567. (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
  568. (LDEMUL_FINISH): Delete.
  569. (LDEMUL_AFTER_ALLOCATION): Define.
  570. * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
  571. (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
  572. (LDEMUL_FINISH): Delete.
  573. (LDEMUL_AFTER_ALLOCATION): Define.
  574. * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete. Move..
  575. (m68hc11elf_after_allocation): ..to here. New function.
  576. (LDEMUL_FINISH): Delete.
  577. (LDEMUL_AFTER_ALLOCATION): Define.
  578. * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
  579. gld${EMULATION_NAME}_after_allocation.
  580. * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call
  581. gld${EMULATION_NAME}_after_allocation.
  582. * emultempl/mmo.em (mmo_finish): Delete. Move body..
  583. (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
  584. (LDEMUL_FINISH): Define.
  585. * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp.
  586. (gld${EMULATION_NAME}_finish): Move code sizing sections..
  587. (gld${EMULATION_NAME}_after_allocation): ..to here.
  588. * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
  589. Call gld${EMULATION_NAME}_after_allocation.
  590. * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete
  591. bfd_elf_discard_info and map_segments call.
  592. 2009-08-06 Michael Eager <eager@eagercon.com>
  593. * Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to
  594. ALL_EMULATIONS, targets.
  595. * Makefile.in: Regenerate.
  596. * configure.tgt: Add microblaze*-linux*, microblaze* targets.
  597. * emulparams/elf32mb_linux.sh: New.
  598. * emulparams/elf32microblaze.sh. New.
  599. * scripttempl/elfmicroblaze.sc: New.
  600. 2009-08-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
  601. * emulparams/elf32_spu.sh (OTHER_READONLY_SECTIONS): Add .fixup
  602. section and __fixup_start symbol.
  603. * emultempl/spuelf.em (params): Initialize emit_fixups member.
  604. (spu_before_allocation): Call spu_elf_size_sections.
  605. (OPTION_SPU_EMIT_FIXUPS): Define.
  606. (PARSE_AND_LIST_LONGOPTS): Add --emit-fixups.
  607. (PARSE_AND_LIST_ARGS_CASES): Handle --emit-fixups.
  608. * ld.texinfo (--emit-fixups): Document.
  609. 2009-08-04 Alan Modra <amodra@bigpond.net.au>
  610. PR 10474
  611. * emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize,
  612. not size, after lang_reset_memory_regions.
  613. 2009-07-30 Alan Modra <amodra@bigpond.net.au>
  614. * emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
  615. * emulparams/elf_i386.sh (IREL_IN_PLT): Define.
  616. * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define.
  617. * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections
  618. when !IREL_IN_PLT.
  619. 2009-07-29 Hans-Peter Nilsson <hp@bitrange.com>
  620. * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
  621. the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
  622. (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
  623. (ENTRY): Don't emit for relocateable links.
  624. (/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
  625. * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
  626. elf64-mmix.
  627. * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
  628. provide "Main" or set "_start.", for relocateable links.
  629. 2009-07-27 Nick Clifton <nickc@redhat.com>
  630. * (po/fi.po): Updated Finnish translation.
  631. 2009-07-25 H.J. Lu <hongjiu.lu@intel.com>
  632. * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
  633. is supported. Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
  634. (targ_extra_emuls): Likewise.
  635. * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
  636. eelf_l1om_fbsd.o
  637. (eelf_l1om.c): New.
  638. (eelf_l1om_fbsd.c): Likewise.
  639. * Makefile.in: Regenerated.
  640. * emulparams/elf_l1om.sh: New.
  641. * emulparams/elf_l1om_fbsd.sh: Likewise.
  642. 2009-07-23 Ulrich Drepper <drepper@redhat.com>
  643. * NEWS: Mention the linker's support for symbols with a binding of
  644. STB_GNU_UNIQUE.
  645. 2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
  646. PR ld/10429
  647. * ldlang.c (insert_os_after): Tie assignments to non-alloc
  648. output sections if there is no-input section.
  649. 2009-07-11 Alan Modra <amodra@bigpond.net.au>
  650. * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
  651. output sections.
  652. 2009-07-10 Alan Modra <amodra@bigpond.net.au>
  653. * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
  654. linker relaxation if it might be necessary.
  655. 2009-07-10 Alan Modra <amodra@bigpond.net.au>
  656. * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
  657. 2009-07-06 Matthias Klose <doko@ubuntu.com>
  658. * ld.texinfo: Fix typo.
  659. 2009-07-03 Tristan Gingold <gingold@adacore.com>
  660. * scripttempl/pep.sc: Put .eh_frame in its own section.
  661. * scripttempl/pe.sc: Ditto.
  662. 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
  663. * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
  664. * scripttempl/pep.sc: Likewise.
  665. 2009-06-25 Tristan Gingold <gingold@adacore.com>
  666. * ldlang.c (print_input_section): Add is_discarded parameter. Adjust
  667. prototype.
  668. (lang_map): Print the size of discarded sections.
  669. (print_statement): Adjust call to print_input_section.
  670. 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
  671. Merge cegcc and mingw32ce target name changes from CeGCC project:
  672. 2008-09-24 Pedro Alves <pedroalves@users.sourceforge.net>
  673. * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
  674. ${tooldir}/lib/w32api.
  675. 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
  676. * configure.tgt: Add arm*-*-cegcc* target.
  677. 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
  678. * configure.tgt: Add arm-*-mingw32ce* target.
  679. 2009-06-10 Philip Blundell <philb@gnu.org>
  680. * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
  681. if section has no ELF data.
  682. 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
  683. * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
  684. 2009-06-05 H.J. Lu <hongjiu.lu@intel.com>
  685. * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
  686. 2009-06-04 Alan Modra <amodra@bigpond.net.au>
  687. * dep-in.sed: Don't use \n in replacement part of s command.
  688. * Makefile.am (DEP1): LC_ALL for uniq.
  689. * Makefile.in: Regenerate.
  690. 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
  691. * scripttempl/elf.sc (PLT): Add "*(.iplt)".
  692. (GOT): Add "*(.igot.plt)a" and "*(.igot)".
  693. (GOTPLT): Add "*(.igot)".
  694. (__rel_iplt_start): New.
  695. (__rel_iplt_end): Likewise.
  696. (__rela_iplt_start): Likewise.
  697. (__rela_iplt_end): Likewise.
  698. 2009-05-27 Dave Korn <dave.korn.cygwin@gmail.com>
  699. * deffilep.y (%union): Add new string-type semantic value 'digits'.
  700. (%token): Remove NUMBER as token, add DIGITS.
  701. (%type): Add NUMBER as type. Add new id types anylang_id, opt_id.
  702. (ALIGNCOMM): Parse an anylang_id instead of a plain ID.
  703. (anylang_id): New production.
  704. (opt_digits): Likewise.
  705. (opt_id): Likewise.
  706. (NUMBER): Likewise.
  707. (def_lex): Return strings of digits in raw string form as DIGITS
  708. token, instead of converting to numeric integer type.
  709. 2009-05-26 Nathan Sidwell <nathan@codesourcery.com>
  710. * ldmain.c (main): Don't reject --relax -r.
  711. * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
  712. partial links.
  713. 2009-05-26 Nick Clifton <nickc@redhat.com>
  714. * po/id.po: Updated Indonesian translation.
  715. * po/ld.pot: Updated template file.
  716. 2009-05-26 Alan Modra <amodra@bigpond.net.au>
  717. * dep-in.sed: Output one filename per line with all lines having
  718. continuation backslash. Prefix first line with "A", following
  719. lines with "B".
  720. * Makefile.am (DEP): Don't use dep.sed here.
  721. (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
  722. sort and uniq.
  723. * Makefile.in: Regenerate.
  724. 2009-05-26 Alan Modra <amodra@bigpond.net.au>
  725. * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
  726. 2009-05-22 Julian Brown <julian@codesourcery.com>
  727. * emultempl/armelf.em (fix_cortex_a8): New.
  728. (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
  729. (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
  730. bfd_elf32_arm_set_target_relocs.
  731. (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
  732. (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
  733. (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
  734. (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
  735. * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
  736. 2009-05-22 Nathan Sidwell <nathan@codesourcery.com>
  737. * ldlang.c (lang_check_section_addresses): Ignore non-loadable
  738. sections when checking for overlap. Clarify error message
  739. concerns load address.
  740. 2009-05-22 Alan Modra <amodra@bigpond.net.au>
  741. * Makefile.am: Run "make dep-am".
  742. * Makefile.in: Regenerate.
  743. 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
  744. * NEWS: Mention new feature.
  745. * deffile.h (def_file_aligncomm): Add new struct definition.
  746. (def_file): Add new def_file_aligncomm member.
  747. * deffilep.y (%token): Add new ALIGNCOMM token.
  748. (command): Add production rule for ALIGNCOMM.
  749. (def_file_free): Free any chained def_file_aligncomm structs.
  750. (diropts[]): Add entry for '-aligncomm' .drectve command.
  751. (def_aligncomm): New grammar function.
  752. * ld.texinfo: Document new feature.
  753. * pe-dll.c (process_def_file): Rename from this ...
  754. (process_def_file_and_drectve): ... to this, updating all callers,
  755. and process any aligncomms chained to the def file after scanning
  756. all .drectve sections.
  757. (generate_edata): Updated to match.
  758. (pe_dll_build_sections): Likewise.
  759. 2009-05-17 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
  760. * pe-dll.c (process_def_file): Do not create empty export table.
  761. 2009-05-15 Alan Modra <amodra@bigpond.net.au>
  762. * ldlang.c (lang_output_section_statement_lookup): Add function
  763. comment. Make "name" non-const. Ensure duplicate entries use
  764. the same string, allowing simple comparison in hash bucket loop.
  765. Tweak constraint check.
  766. (next_matching_output_section_statement): New function.
  767. * ldlang.h (lang_output_section_statement_lookup): Update.
  768. (next_matching_output_section_statement): Declare.
  769. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
  770. combine orphan sections when input sections flags differ in
  771. alloc or load.
  772. * emultempl/pe.em: Formatting throughout.
  773. (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
  774. * emultempl/pep.em: Formatting throughout.
  775. (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
  776. 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
  777. * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
  778. compact stubs with software i-cache.
  779. 2009-05-14 Alan Modra <amodra@bigpond.net.au>
  780. * emultempl/spuelf.em (spu_before_allocation): Call
  781. spu_elf_place_overlay_data.
  782. 2009-05-14 Alan Modra <amodra@bigpond.net.au>
  783. * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
  784. assignment inside output section statement. Ensure only one
  785. set of symbols per output section.
  786. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
  787. dollar sections before dollar sections. Correct add_child
  788. list insertion.
  789. * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
  790. 2009-05-05 Paul Brook <paul@codesourcery.com>
  791. * emultempl/armelf.em (compare_output_sec_vma): New function.
  792. (gld${EMULATION_NAME}_finish): Add exidx munging code.
  793. 2009-05-05 Anatoly Sokolov <aesok@post.ru>
  794. * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
  795. * emulparams/avr1.sh (DATA_ORIGIN): Add.
  796. * emulparams/avr2.sh (DATA_ORIGIN): Add.
  797. * emulparams/avr25.sh (DATA_ORIGIN): Add.
  798. * emulparams/avr3.sh (DATA_ORIGIN): Add.
  799. * emulparams/avr31.sh (DATA_ORIGIN): Add.
  800. * emulparams/avr35.sh (DATA_ORIGIN): Add.
  801. * emulparams/avr4.sh (DATA_ORIGIN): Add.
  802. * emulparams/avr5.sh (DATA_ORIGIN): Add.
  803. * emulparams/avr51.sh (DATA_ORIGIN): Add.
  804. (DATA_LENGTH): Update.
  805. * emulparams/avr6.sh (DATA_ORIGIN): Add.
  806. (DATA_LENGTH): Update.
  807. 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
  808. * NEWS: Mention new feature.
  809. * ld.texinfo (--version-script): Document extent of PE support.
  810. (WIN32): Mention --version-script. Extend auto-export description.
  811. * pe-dll.c (process_def_file): Use version script info to filter
  812. symbols from auto-export.
  813. * testsuite/ld-pe/vers-script-1.d: New file.
  814. * testsuite/ld-pe/vers-script-2.d: New file.
  815. * testsuite/ld-pe/vers-script-3.d: New file.
  816. * testsuite/ld-pe/vers-script-4.d: New file.
  817. * testsuite/ld-pe/vers-script-1.ver: New file.
  818. * testsuite/ld-pe/vers-script-2.ver: New file.
  819. * testsuite/ld-pe/vers-script-3.ver: New file.
  820. * testsuite/ld-pe/vers-script-4.ver: New file.
  821. * testsuite/ld-pe/vers-script-dll.c: New file.
  822. * testsuite/ld-pe/vers-script.exp: New test script.
  823. 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
  824. * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
  825. 2009-04-30 Nick Clifton <nickc@redhat.com>
  826. * NEWS: Mention support for IFUNC symbols.
  827. 2009-04-29 Anthony Green <green@moxielogic.com>
  828. * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
  829. position out to accommodate larger programs.
  830. 2009-04-29 Chris Demetriou <cgd@google.com>
  831. * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
  832. (ld_options): Likewise.
  833. (parse_args): Likewise.
  834. * ld.texinfo: Document --no-export-dynamic.
  835. * NEWS: Mention --no-export-dynamic.
  836. 2009-04-29 Alan Modra <amodra@bigpond.net.au>
  837. * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
  838. 2009-04-25 Alan Modra <amodra@bigpond.net.au>
  839. PR 10061
  840. * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
  841. param.
  842. 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
  843. * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
  844. (arm_elf_set_bfd_for_interworking): Delete.
  845. (arm_elf_before_allocation): Do not set the interworking BFD.
  846. Move allocation inside not-dynamic block.
  847. (arm_elf_create_output_section_statements): Create glue sections
  848. and set the interworking BFD here.
  849. (LDEMUL_AFTER_OPEN): Delete.
  850. 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
  851. * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
  852. 2009-04-15 Anthony Green <green@moxielogic.com>
  853. * configure.tgt: Add moxie support.
  854. * Makefile.am: Add moxie files.
  855. * Makefile.in: Rebuilt.
  856. * emulparams/elf32moxie.sh: New file.
  857. * scripttempl/moxie.sc: New file.
  858. 2009-04-15 Kazu Hirata <kazu@codesourcery.com>
  859. * ldlang.c: Do not include limits.h.
  860. 2009-04-14 Alan Modra <amodra@bigpond.net.au>
  861. PR ld/10047
  862. * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
  863. ldscripts in build tree. Don't repeat search for ../lib/ldscripts.
  864. 2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
  865. * ldfile.c (ldfile_find_command_file): Revert the last change.
  866. 2009-04-11 H.J. Lu <hongjiu.lu@intel.com>
  867. PR ld/10047
  868. * ldfile.c (ldfile_find_command_file): First try raw name.
  869. 2009-04-09 Nick Clifton <nickc@redhat.com>
  870. PR 9824
  871. * ld.texinfo (Output Section Constraint): New node. Documents the
  872. ONLY_IF_RO and ONLY_IF_RW constraints.
  873. (Symbolic Constants): New node. Documents the CONSTANT operator.
  874. 2009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de>
  875. * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
  876. of fork/execvp.
  877. 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
  878. * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
  879. (ld_options): Likewise.
  880. (parse_args): Likewise.
  881. * ld.texinfo: Document --warn-alternate-em.
  882. * NEWS: Mention --warn-alternate-em.
  883. 2009-04-07 DJ Delorie <dj@redhat.com>
  884. * emulparams/elf32mep.sh: Change default endian to little.
  885. 2009-04-07 Nick Clifton <nickc@redhat.com>
  886. * ld.texinfo (Output Section Address): Note that specifying an
  887. address for an output section will only change the location
  888. counter if the output section is used.
  889. 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
  890. * ldfile.c (ldfile_find_command_file): Initialize result.
  891. 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
  892. * ld.texinfo (-L): Mention that -L options do not affect how ld
  893. searches for a linker script unless -T option is specified.
  894. * ldfile.c (ldfile_find_command_file): Append the path obtained
  895. from the program name to the search path instead of
  896. prepending. Add a new parameter "default_only". Restrict the
  897. search to the default script location if the new parameter is
  898. true.
  899. (ldfile_open_command_file_1): New.
  900. (ldfile_open_command_file): Call ldfile_open_command_file_1.
  901. (ldfile_open_default_command_file): New.
  902. 2009-04-03 Nathan Sidwell <nathan@codesourcery.com>
  903. * ldlang.c (lang_leave_output_section_statement): Set lma_region
  904. if it is not overridden and section is for the same vma region as
  905. the previous section.
  906. 2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
  907. PR ld/6744
  908. * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
  909. * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
  910. warning if --export-dynamic was passed on command-line.
  911. * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
  912. 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
  913. * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
  914. function.
  915. (ld_${EMULATION_NAME}_emulation): Use it.
  916. 2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
  917. PR ld/9970
  918. * ldlang.c (lang_end): Warn missing entry symbol for -pie.
  919. 2009-03-19 Alan Modra <amodra@bigpond.net.au>
  920. * emultempl/spuelf.em (spu_before_allocation): Report errors from
  921. spu_elf_find_overlays.
  922. 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
  923. PR ld/6766
  924. * lexsup.c (parse_args): Call ldlang_add_undef for -e.
  925. 2009-03-18 Alan Modra <amodra@bigpond.net.au>
  926. * ld.h: Remove alloca handling.
  927. 2009-03-17 Alan Modra <amodra@bigpond.net.au>
  928. * emultempl/spu_icache.S: Add new entry to dummy handler.
  929. * emultempl/spu_icache.o_c: Regenerate.
  930. * emultempl/spuelf.em (params): Init new field.
  931. (no_overlays): New static var.
  932. (spu_before_allocation): Use it.
  933. (OPTION_SPU_COMPACT_STUBS): Define.
  934. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
  935. (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays
  936. handling.
  937. 2009-03-17 Alan Modra <amodra@bigpond.net.au>
  938. * configure.host (HOSTING_LIBS): Two dollars on shell variable
  939. expansion to suit make.
  940. 2009-03-17 Alan Modra <amodra@bigpond.net.au>
  941. * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
  942. * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
  943. * aclocal.m4: Regenerate.
  944. * configure: Regenerate.
  945. * Makefile.in: Regenerate.
  946. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  947. * emultempl/aix.em (auto_export_flags): New variable.
  948. (explicit_auto_export_flags): Likewise.
  949. (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
  950. (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
  951. (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
  952. -bnoexpall and -bnoexpfull.
  953. (gld${EMULATION_NAME}_handle_option): Handle them.
  954. (gld${EMULATION_NAME}_before_allocation): Update the call to
  955. bfd_size_dynamic_sections.
  956. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  957. * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
  958. -berok and -bernotok control link_info.unresolved_syms_in_objects
  959. and link_info.unresolved_syms_in_shared_libs instead of
  960. force_make_executable.
  961. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  962. * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
  963. config.dynamic_link to TRUE.
  964. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  965. * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
  966. .text, .data and .bss output sections as SEC_KEEP.
  967. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  968. * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
  969. 2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
  970. Danny Smith <dannysmith@users.sourceforge.net>
  971. * emultmpl/pe.em (pe_dll_characteristics): New variable.
  972. (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
  973. OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
  974. OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
  975. New macros for options to set DllCharacteristics flag bits.
  976. (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
  977. nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
  978. (init): Add DllCharacteristics field.
  979. (gld_${EMULATION_NAME}_list_options): List new options.
  980. (gld${EMULATION_NAME}_handle_option): Handle new options.
  981. * emultmpl/pep.em (pe_dll_characteristics): New variable.
  982. (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
  983. OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
  984. OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
  985. New macros for options to set DllCharacteristics flags.
  986. (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
  987. nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
  988. (init): Add DllCharacteristics field.
  989. (gld_${EMULATION_NAME}_list_options): List new options.
  990. (gld${EMULATION_NAME}_handle_option): Handle new options.
  991. * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
  992. no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
  993. 2009-03-06 Nick Clifton <nickc@redhat.com>
  994. * po/es.po: Updated Spanish translation.
  995. 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
  996. * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
  997. (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
  998. of all input BFDs, looking for debug info. Enable long section names
  999. if any found.
  1000. * emultempl/pe.em (debug_section_p): Likewise.
  1001. (gld_${EMULATION_NAME}_after_open): Likewise.
  1002. * NEWS: Retrospectively adjust news announcement.
  1003. * ld.texinfo: Update documentation to mention new behaviour.
  1004. 2009-03-03 Alan Modra <amodra@bigpond.net.au>
  1005. * Makefile.am: Run "make dep-am".
  1006. * Makefile.in: Regenerate.
  1007. 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
  1008. * ldgram.y: Add support for REGION_ALIAS operator.
  1009. * ldlang.c: Likewise.
  1010. * ldlang.h: Likewise.
  1011. * ldlex.l: Likewise.
  1012. * NEWS: Mention the new feature.
  1013. * ld.texinfo: Document the new feature.
  1014. 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
  1015. * Makefile.am: Replace score elf emulation with score3 and score7
  1016. emulations.
  1017. * Makefile.in: Regenerate,
  1018. * NEWS: Mention support for Score7 architecture.
  1019. * configure.tgt: Add score7 emulation to score-elf target.
  1020. * emulparams/scoreelf.sh: Add score7 support.
  1021. * emultempl/scoreelf.em: Likewise.
  1022. 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  1023. * configure.tgt: Only use elf64hppa target emulation for hpux.
  1024. * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
  1025. (SCRIPT_NAME): Use new script elf64hppa.
  1026. (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
  1027. TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
  1028. OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
  1029. DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
  1030. TEXT_DYNAMIC): Define.
  1031. * emulparams/hppa64linux.sh: Adjust comments.
  1032. * scripttempl/elf64hppa.sc: New file.
  1033. 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1034. * configure: Regenerate.
  1035. 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
  1036. * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
  1037. default state of auto-import flag based on $target.
  1038. 2009-02-24 Joseph Myers <joseph@codesourcery.com>
  1039. * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
  1040. * emultempl/armelf.em (hook_in_stub): Insert after the input section.
  1041. (elf32_arm_add_stub_section): Update comment.
  1042. (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
  1043. 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
  1044. * ld.texinfo (Options): Correct typos in example. Recommend
  1045. using joined forms of syntax for passing options with arguments
  1046. from a driver.
  1047. (-a): Use consistent syntax for documenting option arguments.
  1048. Clean up indexing and markup.
  1049. (-A/--architecture): Likewise.
  1050. (-f/--auxiliary): Likewise.
  1051. (-F/--filter): Likewise.
  1052. (-fini): Likewise.
  1053. (-G/--gpsize): Likewise.
  1054. (-h/-soname):Likewise.
  1055. (-init): Likewise.
  1056. (-l/--library): Likewise.
  1057. (-L/--library-path): Likewise.
  1058. (-m): Likewise.
  1059. (--defsym): Likewise.
  1060. (-I/--dynamic-linker): Likewise.
  1061. (-Map): Likewise.
  1062. (--oformat): Likewise.
  1063. (--retain-symbols-file): Likewise.
  1064. (-rpath): Likewise.
  1065. (-rpath-link): Likewise.
  1066. (--sort-common): Likewise.
  1067. (--sort-section): Likewise.
  1068. (--split-by-file): Likewise.
  1069. (--split-by-reloc): Likewise.
  1070. (--sysroot): Likewise.
  1071. (--section-start): Likewise.
  1072. (-Tbss, -Tdata, -Ttext): Likewise.
  1073. (-Ttext-segment): Likewise.
  1074. (--version-script): Likewise.
  1075. (--wrap): Likewise.
  1076. 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
  1077. * ld.texinfo: Update to mention long section name options.
  1078. * NEWS: Mention new behaviour and command-line options.
  1079. * pe-dll.c (pe_use_coff_long_section_names): New global variable.
  1080. (pe_output_file_set_long_section_names): New function.
  1081. (pe_dll_build_sections): Call it on output BFDs.
  1082. (pe_exe_build_sections): Likewise.
  1083. (pe_dll_fill_sections): Likewise.
  1084. (pe_exe_fill_sections): Likewise.
  1085. * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
  1086. (pe_output_file_set_long_section_names): Add prototype.
  1087. * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
  1088. (pe_output_file_set_long_section_names): Likewise.
  1089. * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
  1090. (pep_output_file_set_long_section_names): Add prototype.
  1091. * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
  1092. (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
  1093. (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
  1094. (gld_${EMULATION_NAME}_list_options): Describe them.
  1095. (gld${EMULATION_NAME}_handle_option): Set or clear global
  1096. pe_use_coff_long_section_names flag when options recognised.
  1097. (gld_${EMULATION_NAME}_after_open): En/disable long section names
  1098. for main output bfd by calling pe_output_file_set_long_section_names.
  1099. * pep.em (enum options): Extend enum with new getopt option values.
  1100. (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
  1101. (gld_${EMULATION_NAME}_list_options): Describe them.
  1102. (gld${EMULATION_NAME}_handle_option): Set or clear global
  1103. pe_use_coff_long_section_names flag when options recognised.
  1104. (gld_${EMULATION_NAME}_after_open): En/disable long section names
  1105. for main output bfd by calling pep_output_file_set_long_section_names.
  1106. 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
  1107. * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
  1108. inadvertent .reloc sections caused by refactoring accident.
  1109. 2009-02-16 Alan Modra <amodra@bigpond.net.au>
  1110. * ldlang.c (process_insert_statements): ASSERT that output section
  1111. statements are in order.
  1112. 2009-02-16 Alan Modra <amodra@bigpond.net.au>
  1113. * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
  1114. (stat_save, stat_save_ptr): New variables.
  1115. (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
  1116. (load_symbols): Likewise. Delete dead "bad_load" code.
  1117. (open_input_bfds): Warn on script containing output sections.
  1118. (lang_enter_output_section_statement): Use push_stat_ptr.
  1119. (lang_enter_group): Likewise.
  1120. (lang_leave_output_section_statement): Use pop_stat_ptr.
  1121. (lang_leave_group): Likewise.
  1122. * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
  1123. * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
  1124. * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
  1125. * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
  1126. * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
  1127. * emultempl/spuelf.em (spu_place_special_section): Likewise.
  1128. * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
  1129. 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
  1130. Missing piece of 2009-01-26 commit
  1131. * ldlang.c (lang_process): Don't consider relocatable flag when
  1132. checking for overlap.
  1133. 2009-02-05 Joseph Myers <joseph@codesourcery.com>
  1134. * emulparams/m68kelf.sh: Add newline at end of file.
  1135. 2009-02-04 Nick Clifton <nickc@redhat.com>
  1136. PR 9805
  1137. * ld.texinfo (--allow-shlib-undefined): Correct description of
  1138. default settings and tidy up the rest of the entry.
  1139. 2009-02-04 Alan Modra <amodra@bigpond.net.au>
  1140. * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
  1141. during relocatable link.
  1142. 2009-02-03 Nick Clifton <nickc@redhat.com>
  1143. PR 9797
  1144. * ld.texinfo (Constants): Document the base-encoding suffixes
  1145. supported in linker scripts.
  1146. 2009-02-03 Alan Modra <amodra@bigpond.net.au>
  1147. * NEWS: Mention --as-needed change.
  1148. 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
  1149. * configure.in: AC_SUBST pdfdir.
  1150. * Makefile.am: Add install-pdf, install-pdf-am,
  1151. and install-pdf-recursive targets. Define pdf__strip_dir.
  1152. * po/Make-in: Add install-pdf target.
  1153. * configure: Regenerate.
  1154. * Makefile.in: Regenerate.
  1155. 2009-01-31 Alan Modra <amodra@bigpond.net.au>
  1156. * ld.texinfo (--as-needed): Update.
  1157. 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
  1158. * emultempl/armelf.em: Correct formatting of help text for
  1159. --no-enum-size-warning option.
  1160. 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
  1161. * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
  1162. * ld.h (args_type): Make check_section_addresses a char.
  1163. * ldmain.c (main): Default check_section_addresses to -1. Check it
  1164. for relocatable links.
  1165. * ld.texinfo (--check-sections): Update documentation.
  1166. 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
  1167. * pe-dll.c (tmp_seq2): New static variable.
  1168. (make_singleton_name_imp): New.
  1169. (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
  1170. avoid duplicate import table generation for same symbol.
  1171. (pe_create_runtime_relocator_reference): Make reference for
  1172. 64-bit 8 bytes.
  1173. 2009-01-21 Alan Modra <amodra@bigpond.net.au>
  1174. * emultempl/spuelf.em (params): Init new field.
  1175. (OPTION_SPU_NON_IA_TEXT): Define.
  1176. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
  1177. (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
  1178. 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
  1179. * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
  1180. (ld_options): Add -Ttext-segment.
  1181. (parse_args): Handle OPTION_TTEXT_SEGMENT.
  1182. * ld.texinfo: Document -Ttext-segment.
  1183. * NEWS: Mention -Ttext-segment.
  1184. * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
  1185. (SHLIB_TEXT_START_ADDR): Likewise.
  1186. 2009-01-13 Alan Modra <amodra@bigpond.net.au>
  1187. * emultempl/spu_icache.o_c: Regenerate.
  1188. 2009-01-12 Alan Modra <amodra@bigpond.net.au>
  1189. * emultempl/spuelf.em (params): Init new fields.
  1190. (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
  1191. (spu_place_special_section): Adjust placement for soft-icache. Pad
  1192. soft-icache section to a fixed size. Clear addr_tree.
  1193. (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
  1194. sections a little more intelligently.
  1195. (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
  1196. (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
  1197. (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
  1198. (OPTION_SPU_LRLIVE): Define.
  1199. (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
  1200. (PARSE_AND_LIST_OPTIONS): Likewise.
  1201. (PARSE_AND_LIST_ARGS_CASES): Handle them.
  1202. * emultempl/spu_icache.S: Dummy file.
  1203. * emultempl/spu_icache.o_c: Regenerate.
  1204. * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
  1205. (spu_icache.o_c): Add rule to build.
  1206. (CLEANFILES): Zap temp files.
  1207. (EXTRA_DIST): Add spu_icache.o_c.
  1208. * Makefile.in: Regenerate.
  1209. 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
  1210. * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
  1211. (gld..._add_options): Add new option
  1212. --use-nul-prefixed-import-tables.
  1213. (gld..._handle_option): Likewise.
  1214. * pep.em: Same as for pe.em.
  1215. * ld.texinfo: Add new option documentation for
  1216. --use-nul-prefixed-import-tables.
  1217. * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
  1218. (make_head): Make prefix leading zero prefix element for
  1219. idata$4 and idata$5 dependent to new flag.
  1220. (make_import_fixup_entry): Remove idata4/5 prefix.
  1221. * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
  1222. * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
  1223. * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
  1224. * NEWS: Add new option.
  1225. 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
  1226. * emultempl/pe.em: Prefix dollar characters to be outputed in
  1227. generated C file.
  1228. * emultempl/pep.em: Likewise.
  1229. 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
  1230. * NEWS: Mention new feature --exclude-modules-for-implib.
  1231. * ld.texinfo: Document new --exclude-modules-for-implib option.
  1232. * pe-dll.c (exclude_list_struct): Change type member from int to
  1233. new enumeration exclude_type.
  1234. (pe_dll_add_excludes): Accept exclude_type instead of int param.
  1235. (auto_export): Replace magic constants by exclude_type values and
  1236. handle new choice EXCLUDEFORIMPLIB.
  1237. (pe_dll_generate_implib): Accept a pointer to the link_info and
  1238. iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
  1239. fresh BFDs for any found and link into import lib archive chain.
  1240. * pe-dll.h (exclude_type): Add new enumerated type to replace magic
  1241. constants previously used for exclude_list_struct type member.
  1242. (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
  1243. * pep-dll.h (exclude_type, pe_dll_add_excludes,
  1244. pe_dll_generate_implib): Likewise to all the above.
  1245. * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
  1246. getopts long option code for new --exclude-modules-for-implib option.
  1247. (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
  1248. (gld_${EMULATION_NAME}_list_options): List usage for it.
  1249. (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
  1250. values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
  1251. (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
  1252. calling pe_dll_generate_implib.
  1253. * emultempl/pep.em (options): Define new enumerated value for getopts
  1254. long option code for new --exclude-modules-for-implib option.
  1255. (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
  1256. gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
  1257. Again, likewise to all the above.
  1258. 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
  1259. * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
  1260. (libnamencmp): New function.
  1261. (auto_export): Use it in place of strncmp when filtering libraries.
  1262. For older changes see ChangeLog-2008
  1263. Copyright (C) 2009 Free Software Foundation, Inc.
  1264. Copying and distribution of this file, with or without modification,
  1265. are permitted in any medium without royalty provided the copyright
  1266. notice and this notice are preserved.
  1267. Local Variables:
  1268. mode: change-log
  1269. left-margin: 8
  1270. fill-column: 74
  1271. version-control: never
  1272. End: