ChangeLog-2005 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848
  1. 2005-12-28 Jie Zhang <jie.zhang@analog.com>
  2. * emulparams/bfin.sh: Define DATA_END_SYMBOLS and END_SYMBOLS.
  3. And add a prefix '_' to ENTRY.
  4. * scripttempl/elf.sc: Add END_SYMBOLS.
  5. 2005-12-27 H.J. Lu <hongjiu.lu@intel.com>
  6. * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Delete.
  7. (LDEMUL_PLACE_ORPHAN): Delete.
  8. 2005-12-27 Leif Ekblad <leif@rdos.net>
  9. * configure.tgt: Add support for RDOS targets.
  10. 2005-12-27 Nick Clifton <nickc@redhat.com>
  11. * po/vi.po: New Vietnamese translation.
  12. * configure.in (ALL_LINGUAS): Add vi.
  13. * configure: Regenerate.
  14. 2005-12-27 Alan Modra <amodra@bigpond.net.au>
  15. * Makefile.am: Run "make dep-am".
  16. * Makefile.in: Regenerate.
  17. 2005-12-24 Alan Modra <amodra@bigpond.net.au>
  18. * ldlang.h (lang_output_section_statement_type): Add prev.
  19. * ldlang.c (output_statement_newfunc): Set os.prev.
  20. (lang_insert_orphan): Likewise.
  21. (output_prev_sec_find): Use os.prev.
  22. 2005-12-22 Santosh Raktawan <santoshr2@kpitcummins.com>
  23. * ld/emulparms/h8300helf.sh (TINY_READONLY_SECTION,
  24. TINY_DATA_SECTION, TINY_BSS_SECTION): Define.
  25. * ld/emulparms/h8300self.sh: Likewise.
  26. * ld/emulparms/h8300sxelf.sh: Likewise.
  27. * ld/scripttempl/elf.sc: Add TINY_READONLY_SECTION,
  28. TINY_DATA_SECTION, TINY_BSS_SECTION.
  29. 2005-12-19 H.J. Lu <hongjiu.lu@intel.com>
  30. PR ld/2065
  31. * ldlang.c (output_statement_newfunc): Revert the change made on
  32. 2005-11-16.
  33. (output_prev_sec_find): Likewise.
  34. * ldlang.h (lang_statement_list_type): Likewise.
  35. 2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
  36. Second part of ms1 to mt renaming.
  37. * emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust.
  38. 2005-12-14 Jakub Jelinek <jakub@redhat.com>
  39. * scripttempl/elf.sc: Put .gnu.linkonce.d.rel.ro.* sections into
  40. .data.rel.ro output section. Fix a pasto for -z nocombreloc
  41. .rela.data.rel.ro section content.
  42. 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
  43. * Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
  44. (eelf32mt.c): Update target name and dependencies.
  45. * Makefile.in: Rebuilt.
  46. * configure.tgt: Replace ms1 arch with mt arch.
  47. * emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
  48. comment.
  49. 2005-12-11 Bernhard Fischer <aldot@gcc.gnu.org>
  50. * scripttempl/armbpabi.sc: Fix typo in comment for .ctors.
  51. * scripttempl/elf.sc: Ditto.
  52. * scripttempl/elf32sh-symbian.sc: Ditto.
  53. * scripttempl/elf_chaos.sc: Ditto.
  54. * scripttempl/elfd10v.sc: Ditto.
  55. * scripttempl/elfd30v.sc: Ditto.
  56. * scripttempl/elfxtensa.sc: Ditto.
  57. * scripttempl/iq2000.sc: Ditto.
  58. * scripttempl/xstormy16.sc: Ditto.
  59. 2005-12-08 Alan Modra <amodra@bigpond.net.au>
  60. * emultempl/ppc32elf.em (emit_stub_syms): New var.
  61. (ppc_after_open): Pass it to ppc_elf_select_plt_layout.
  62. (PARSE_AND_LIST_PROLOGUE <OPTION_STUBSYMS>): Define.
  63. (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
  64. (PARSE_AND_LIST_OPTIONS): Describe emit-stub-syms.
  65. (PARSE_AND_LIST_OPTIONS): Handle it.
  66. 2005-12-08 Alan Modra <amodra@bigpond.net.au>
  67. * pe-dll.c (build_filler_bfd): Conform error message to standard.
  68. (pe_dll_generate_implib): Use %E in error message.
  69. (add_bfd_to_link): Likewise.
  70. (pe_implied_import_dll): Likewise.
  71. 2005-12-07 Thiemo Seufer <ths@networkno.de>
  72. H.J. Lu <hongjiu.lu@intel.com>
  73. PR ld/1932
  74. * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
  75. Adjust bfd_elf_record_link_assignment call.
  76. * ldexp.c (exp_fold_tree_1): Remove call to bfd_hide_symbol.
  77. 2005-11-25 Jan Beulich <jbeulich@novell.com>
  78. * Makefile.am: Make configdoc.texi writeable before trying
  79. to write to it.
  80. * Makefile.in: Refresh.
  81. 2005-11-24 Alan Modra <amodra@bigpond.net.au>
  82. * ldlang.c (lang_output_section_find_by_flags): Add match_type param.
  83. Run two passes, first using match_type, second without.
  84. * ldlang.h (lang_match_sec_type_func): New typedef.
  85. (lang_output_section_find_by_flags): Update prototype.
  86. bfd_match_sections_by_type and lang_output_section_find_by_flags.
  87. * emultempl/pe.em (place_orphan): Likewise.
  88. 2005-11-24 Alan Modra <amodra@bigpond.net.au>
  89. * ldlang.c (lang_insert_orphan): Skip first assignment to dot
  90. in script when looking for place to insert orphan statements.
  91. 2005-11-18 Alan Modra <amodra@bigpond.net.au>
  92. * emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme.
  93. (.got, .toc1, .opd): Likewise.
  94. 2005-11-18 Alan Modra <amodra@bigpond.net.au>
  95. * ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional
  96. changes to section alignment.
  97. * ldmisc.c (vfinfo): Handle %ld and %lu.
  98. 2005-11-16 Mark Mitchell <mark@codesourcery.com>
  99. * Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
  100. * Makefile.in: Regenerated.
  101. * ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
  102. Add @file documentation.
  103. 2005-11-17 Alan Modra <amodra@bigpond.net.au>
  104. * ldlang.h (lang_input_section_type): Remove "ifile" field.
  105. (lang_insert_orphan, lang_add_section): Update prototypes.
  106. * ldlang.c (lang_insert_orphan): Remove "file" param.
  107. (lang_add_section): Likewise. Update all callers.
  108. (wild_sort): Get an input section's bfd via "section->owner".
  109. (size_input_section): Access just_syms_flag via bfd usrdata.
  110. (lang_place_orphans): Update ldemul_place_orphan call.
  111. * ldemul.h (ldemul_place_orphan): Remove input_statement param.
  112. (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
  113. * ldemul.c (ldemul_place_orphan): Likewise.
  114. * ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
  115. * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
  116. * emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
  117. (sort_sections): Likewise.
  118. (place_orphan): Remove "file" param. Adjust lang_add_section call.
  119. * emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
  120. lang_add_section and lang_insert_orphan calls.
  121. * emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
  122. lang_add_section call.
  123. (build_section_lists): Access just_syms_flag via bfd usrdata.
  124. * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
  125. lang_add_section call.
  126. * emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
  127. lang_add_section and lang_insert_orphan calls.
  128. * emultempl/pe.em (place_orphan): Likewise. Access bfd via section
  129. owner.
  130. * emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
  131. lang_add_section call.
  132. (build_toc_list): Access just_syms_flag via bfd usrdata.
  133. (build_section_lists): Likewise.
  134. * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
  135. param. Adjust place_orphan call.
  136. (ld_build_required_section_dependence): Access bfd via section owner.
  137. 2005-11-16 Alan Modra <amodra@bigpond.net.au>
  138. * ldlang.h (lang_output_section_statement_type): Add prev.
  139. * ldlang.c (new_afile): Always init header.type.
  140. (output_statement_newfunc): Set os.prev.
  141. (output_prev_sec_find): Use os.prev.
  142. (lang_enter_output_section_statement): Formatting.
  143. (lang_final, lang_add_target, lang_add_fill): Likewise.
  144. (lang_add_data, lang_add_reloc): Likewise.
  145. (lang_add_attribute): Only alloc the header.
  146. 2005-11-16 Alan Modra <amodra@bigpond.net.au>
  147. * ld.texinfo (Forced Output Alignment): Specify that this is an
  148. alignment increase, not an override.
  149. * ldlang.c (init_os): Set output section alignment here..
  150. (lang_add_section): ..rather than here.
  151. (lang_size_sections_1): Consolidate alignment code. Warn if section
  152. alignment affects start address when explicit address given.
  153. 2005-11-07 Steve Ellcey <sje@cup.hp.com>
  154. * configure: Regenerate after modifying bfd/warning.m4.
  155. 2005-11-07 Olaf Hering <olh@suse.de>
  156. * ldmain.c (main): Add \n to error message.
  157. 2005-11-04 Alan Modra <amodra@bigpond.net.au>
  158. * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
  159. (output_statement_newfunc): Rewrite.
  160. (lang_output_section_find_1): Merge into..
  161. (lang_output_section_find): ..here.
  162. (lang_output_section_statement_lookup_1): Rewrite to handle
  163. multiple sections with the same name.
  164. (output_statement_table_init): Commonise error message.
  165. (lang_init, open_output): Likewise.
  166. 2005-11-03 Paul Brook <paul@codesourcery.com>
  167. * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
  168. * scripttempl/armbpabi.sc: Make init/fini array consistent with
  169. elf.sc.
  170. * scripttempl/elf32sh-symbian.sc: Ditto.
  171. * scripttempl/elfxtensa.sc: Ditto.
  172. 2005-11-03 Alan Modra <amodra@bigpond.net.au>
  173. * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
  174. memspec. Make "processed" a bitfield.
  175. (lang_data_statement_type, lang_reloc_statement_type): Rename
  176. output_vma to output_offset.
  177. * ldlang.c (lang_output_section_statement_lookup_1): Init
  178. all_input_readonly. Don't init memspec.
  179. (init_os): Remove incorrect comment.
  180. (print_data_statement, print_reloc_statement): Adjust for
  181. lang_data_statement_type and lang_reloc_statement_type change.
  182. (lang_size_sections_1, lang_add_reloc): Likewise.
  183. * ldwrite.c (build_link_order): Likewise.
  184. 2005-10-30 Mark Mitchell <mark@codesourcery.com>
  185. * lexsup.c (help): Document "@FILE".
  186. 2005-10-30 H.J. Lu <hongjiu.lu@intel.com>
  187. * Makefile.am: Run "make dep-am".
  188. * Makefile.in: Regenerated.
  189. * dep-in.sed: Replace " ./" with " ".
  190. 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
  191. * Makefile.am: Add support for Z80
  192. * Makefile.in: Regenerated
  193. * configure.tgt: Add z80-*-coff
  194. * emulparams/z80.sh: New file.
  195. * emultempl/z80.em: New file.
  196. * scripttempl/z80.sc New file.
  197. * NEWS: Mention this new support.
  198. 2005-10-25 Alan Modra <amodra@bigpond.net.au>
  199. * po/ld.pot: Regenerate.
  200. 2005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
  201. * ld.texinfo (--reduce-memory-overheads): Fix typo.
  202. 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
  203. PR ld/1487
  204. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
  205. bfd_match_sections_by_type to match section types.
  206. * ldlang.c (init_os): Take the input section. Call
  207. bfd_init_private_section_data if the input section isn't NULL.
  208. (exp_init_os): Pass NULL to init_os.
  209. (map_input_to_output_sections): Likewise.
  210. (lang_add_section): Pass the input section to init_os.
  211. 2005-10-19 Paul Brook <paul@codesourcery.com>
  212. * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
  213. 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
  214. PR ld/1467
  215. * emultempl/elf32.em: Include "elf-bfd.h".
  216. (gld${EMULATION_NAME}_place_orphan): Check section type and
  217. don't use section name for ELF input sections.
  218. * ld.texinfo: Document orphan section processing.
  219. * ldlang.c (lang_output_section_find_by_flags): Match section
  220. types by calling bfd_match_sections_by_type.
  221. 2005-10-13 Mark Mitchell <mark@codesourcery.com>
  222. * ld.texino: Describe double-quoted string syntax for version
  223. nodes.
  224. * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
  225. * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
  226. Adjust calls to lang_new_vers_pattern to pass literal_p argument.
  227. * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
  228. version nodes without a pattern.
  229. (lang_new_vers_pattern): Add literal_p parameter.
  230. (lang_do_version_exports_section): Pass it.
  231. 2005-10-12 Mark Mitchell <mark@codesourcery.com>
  232. * NEWS: Mention @file.
  233. 2005-10-05 H.J. Lu <hongjiu.lu@intel.com>
  234. PR ld/1396
  235. * ldcref.c (check_refs): Accept bfd_boolean.
  236. (check_local_sym_xref): Pass FALSE to check_refs.
  237. (check_nocrossref): Pass TRUE to check_refs.
  238. (check_refs_info): Add bfd_boolean.
  239. (check_refs): Add bfd_boolean to check_refs_info.
  240. (check_reloc_refs): Match relocations with proper symbols.
  241. * ldmisc.c (vfinfo): Don't add extra ":\n".
  242. 2005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
  243. * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
  244. default entry symbol to ENTRY here.
  245. * scripttempl/pe.sc: Not here.
  246. 2005-09-30 James E Wilson <wilson@specifix.com>
  247. * ldlang.c (lang_startup): Add missing ": " to einfo call.
  248. 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
  249. * Makefile.am: Run "make dep-am".
  250. * Makefile.in: Regenerated.
  251. * aclocal.m4: Likewise.
  252. 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
  253. * ldlang.c (output_statement_hash_entry): New type.
  254. (output_statement_table): New variable for hash table.
  255. (output_statement_newfunc): New function.
  256. (output_statement_table_init): Likewise.
  257. (output_statement_table_free): Likewise.
  258. (lang_init): Call output_statement_table_init.
  259. (lang_finish): Renamed to ...
  260. (lang_end): This.
  261. (lang_process): Updated.
  262. (lang_finish): New function.
  263. (lang_output_section_find_1): Use hash table.
  264. (lang_output_section_statement_lookup_1): Likewise.
  265. * ldlang.h (lang_finish): New.
  266. * ldmain.c (main): Call lang_finish.
  267. 2005-09-30 Mark Mitchell <mark@codesourcery.com>
  268. * ldmain.c (main): Use expandargv.
  269. 2005-09-30 Catherine Moore <clm@cm00re.com>
  270. * Makefile.am: Bfin support.
  271. * Makefile.in: Regenerated.
  272. * aclocal.m4: Regenerated.
  273. * configure.tgt: Bfin support.
  274. * emulparams/bfin.sh: New file.
  275. * emultempl/bfin.em: New file.
  276. 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
  277. * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
  278. version of <locale.h> when ENABLE_NLS is not defined.
  279. 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
  280. * ld.texinfo (ALIGN): Document it as forcing output section
  281. alignment.
  282. * ldgram.y (ALIGN): Support it for forcing output section
  283. alignment.
  284. 2005-09-20 Alan Modra <amodra@bigpond.net.au>
  285. * ldlang.h (lang_output_section_statement_struct): Change type of
  286. "processed" to bfd_boolean.
  287. * ldexp.c (fold_name): Update references to os->processed.
  288. * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
  289. (lang_size_sections_1): Likewise.
  290. (lang_reset_memory_regions): Likewise.
  291. PR ld/1353
  292. * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
  293. so that unused output section statements affect dot.
  294. 2005-09-08 Jakub Jelinek <jakub@redhat.com>
  295. * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
  296. and --eh-frame-hdr options.
  297. 2005-09-07 Alan Modra <amodra@bigpond.net.au>
  298. * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
  299. (exp_fold_tree_1): Print assert message only in final stage of
  300. linking. Trigger assertion failure if expression cannot be
  301. evaluated.
  302. 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
  303. PR ld/1263
  304. * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
  305. --just-symbols on DSO.
  306. 2005-08-18 Alan Modra <amodra@bigpond.net.au>
  307. * scripttempl/elf.sc: Remove commented out defines.
  308. 2005-08-18 Alan Modra <amodra@bigpond.net.au>
  309. * emulparams/a29k.sh: Delete.
  310. * emulparams/ebmon29k.sh: Delete.
  311. * emulparams/sa29200.sh: Delete.
  312. * Makefile.am: Remove a29k support.
  313. * configure.tgt: Likewise.
  314. * ld.texinfo: Likewise.
  315. * Makefile.in: Regenerate.
  316. 2005-08-17 Jakub Jelinek <jakub@redhat.com>
  317. * ldgram.y (vers_defns): Don't lose pattern list before
  318. extern NAME {}. Handle global, local and extern symbol names.
  319. 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  320. * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
  321. Don't increment rel_count of .cranges here. Set rawsize of .cranges.
  322. 2005-08-10 Nick Clifton <nickc@redhat.com>
  323. * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
  324. before lang_size_sections.
  325. 2005-08-09 Alan Modra <amodra@bigpond.net.au>
  326. * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
  327. 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
  328. * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
  329. Add rules to build these emulations.
  330. * Makefile.in: Regenerate.
  331. * configure.tgt (msp430): Add the new variants to the
  332. targ_extra_emuls list.
  333. * emulparams/msp430all.sh: Add entries for the msp430x21xx
  334. variants.
  335. 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
  336. * ld.texinfo: Document PROVIDE_HIDDEN.
  337. * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
  338. (exp_provide): Add and set hidden.
  339. * ldexp.h (etree_type): Add hidden to assign.
  340. * ldgram.y (PROVIDE_HIDDEN): New.
  341. * ldlex.l (PROVIDE_HIDDEN): Likewise.
  342. * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
  343. symbols.
  344. 2005-08-05 Alan Modra <amodra@bigpond.net.au>
  345. * emulparams/elf_x86_64.sh: Revert last change.
  346. * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
  347. 2005-08-05 Alan Modra <amodra@bigpond.net.au>
  348. * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
  349. OTHER_END_SYMBOLS.
  350. * emulparams/armelf_linux.sh: Likewise.
  351. * emulparams/armnto.sh: Likewise.
  352. * emulparams/criself.sh: Likewise.
  353. * emulparams/elf32mcore.sh: Likewise.
  354. * emulparams/criself.sh (OTHER_SYMBOLS): Define.
  355. * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
  356. (OTHER_END_SYMBOLS): Don't define.
  357. * emulparams/elf32fr30.sh: Likewise.
  358. * emulparams/elf64mmix.sh: Likewise.
  359. * emulparams/hppa64linux.sh: Likewise.
  360. * emulparams/m32relf.sh: Likewise.
  361. * emulparams/vxworks.sh: Likewise.
  362. * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
  363. (OTHER_BSS_END_SYMBOLS): Add.
  364. (OTHER_END_SYMBOLS): Move before current end sym definitions.
  365. (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
  366. * scripttempl/elf.sc: Likewise.
  367. * scripttempl/elf32sh-symbian.sc: Likewise.
  368. * scripttempl/elf_chaos.sc: Likewise.
  369. * scripttempl/elfxtensa.sc: Likewise.
  370. * scripttempl/iq2000.sc: Likewise.
  371. * scripttempl/xstormy16.sc: Likewise.
  372. * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
  373. (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
  374. (REL_LARGE, LARGE_SECTIONS): Add.
  375. * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
  376. (REL_LARGE): Define.
  377. * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
  378. (LARGE_SECTIONS): Define.
  379. * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
  380. (LARGE_SECTIONS): Define.
  381. 2005-08-04 Alan Modra <amodra@bigpond.net.au>
  382. * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
  383. * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
  384. (struct ld_emulation_xfer_struct): Remove do_assignments field.
  385. * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
  386. * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
  387. (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
  388. * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
  389. * emultempl/armcoff.em: Likewise.
  390. * emultempl/beos.em: Likewise.
  391. * emultempl/generic.em: Likewise.
  392. * emultempl/gld960.em: Likewise.
  393. * emultempl/gld960c.em: Likewise.
  394. * emultempl/linux.em: Likewise.
  395. * emultempl/lnk960.em: Likewise.
  396. * emultempl/m68kcoff.em: Likewise.
  397. * emultempl/pe.em: Likewise.
  398. * emultempl/sunos.em: Likewise.
  399. * emultempl/ticoff.em: Likewise.
  400. * emultempl/vanilla.em: Likewise.
  401. * emultempl/elf32.em: Likewise.
  402. (gld*_provide_bound_symbols): Delete.
  403. (gld*_provide_init_fini_syms): Delete.
  404. (gld*_before_allocation): Don't call ldemul_do_assignments.
  405. * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
  406. (LDEMUL_DO_ASSIGNMENTS): Delete.
  407. * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
  408. SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
  409. 2005-08-04 Alan Modra <amodra@bigpond.net.au>
  410. * Makefile.am (eelf32m32c.c): Fix dependencies.
  411. * Makefile.in: Regenerate.
  412. 2005-08-04 Alan Modra <amodra@bigpond.net.au>
  413. * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
  414. (finish_default): New function.
  415. * ldemul.h (finish_default): Declare.
  416. * emultempl/aix.em (gld*_before_allocation): Call
  417. before_allocation_default rather than strip_excluded_output_sections.
  418. (ld_*_emulation): Init finish field to finish_default.
  419. * emultempl/armcoff.em: Likewise.
  420. * emultempl/beos.em: Likewise.
  421. * emultempl/elf32.em: Likewise.
  422. * emultempl/generic.em: Likewise.
  423. * emultempl/gld960.em: Likewise.
  424. * emultempl/gld960c.em: Likewise.
  425. * emultempl/hppaelf.em: Likewise.
  426. * emultempl/linux.em: Likewise.
  427. * emultempl/lnk960.em: Likewise.
  428. * emultempl/m68kcoff.em: Likewise.
  429. * emultempl/mmo.em: Likewise.
  430. * emultempl/pe.em: Likewise.
  431. * emultempl/ppc64elf.em: Likewise.
  432. * emultempl/sunos.em: Likewise.
  433. * emultempl/ticoff.em: Likewise.
  434. * emultempl/vanilla.em: Likewise.
  435. 2005-08-03 Alan Modra <amodra@bigpond.net.au>
  436. * ldlang.c (exp_init_os): Handle etree_provide.
  437. * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
  438. (OTHER_BSS_END_SYMBOLS): ..this.
  439. * emulparams/armelf_linux.sh: Likewise.
  440. * emulparams/armnto.sh: Likewise.
  441. * emulparams/criself.sh: Likewise.
  442. * emulparams/crislinux.sh: Likewise.
  443. * emulparams/elf32frv.sh: Likewise.
  444. * emulparams/elf32mcore.sh: Likewise.
  445. * emulparams/elf32ppc.sh: Likewise.
  446. * emulparams/elf32ppclinux.sh: Likewise.
  447. * emulparams/hppa64linux.sh: Likewise.
  448. * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
  449. $OTHER_BSS_END_SYMBOLS.
  450. * scripttempl/elf32sh-symbian.sc: Likewise.
  451. * scripttempl/elf_chaos.sc: Likewise.
  452. * scripttempl/iq2000.sc: Likewise.
  453. * scripttempl/xstormy16.sc: Likewise.
  454. * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
  455. * scripttempl/elfxtensa.sc: Likewise.
  456. 2005-07-29 Nick Clifton <nickc@redhat.com>
  457. * ldmain.c (main): Allow -shared and -static to be used together.
  458. * ld.texinfo (-static): Mention that it is allowed with -shared.
  459. 2005-07-28 DJ Delorie <dj@redhat.com>
  460. * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
  461. unary & address operator, as that breaks GCC's strict aliasing
  462. rules.
  463. 2005-07-25 Jan Hubicka <jh@suse.cz>
  464. H.J. Lu <hongjiu.lu@intel.com>
  465. * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
  466. * scripttempl/elf.sc: Updated for large section support.
  467. 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
  468. * configure.tgt: Remove i[3-7]86-*-rtemself*.
  469. Remove sparc-*-rtemself*.
  470. 2005-07-21 Ben Elliston <bje@gnu.org>
  471. * ldgram.y (ldgram_want_filename): Remove unused static.
  472. 2005-07-20 DJ Delorie <dj@redhat.com>
  473. * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
  474. (EXTRA_EM_FILE): New.
  475. 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
  476. * ldmain.c (main): Reindent.
  477. 2005-07-19 Paul Brook <paul@codesourcery.com>
  478. * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
  479. to determine dynamic linker name.
  480. 2005-07-18 Nick Clifton <nickc@redhat.com>
  481. * configure.tgt: Restore alpha ordering to list of arches.
  482. 2005-07-16 Alan Modra <amodra@bigpond.net.au>
  483. * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
  484. (gld*_before_allocation): Call ldemul_do_assignments rather than
  485. gld*_provide_init_fini_syms directly.
  486. * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
  487. (ppc_do_assignments): New function.
  488. (LDEMUL_AFTER_ALLOCATION): Don't define.
  489. (LDEMUL_DO_ASSIGNMENTS): Define.
  490. 2005-07-16 Alan Modra <amodra@bigpond.net.au>
  491. * Makefile.am: Run "make dep-am".
  492. (emipsidt.c, emipsidtl.c): Depend on generic.em.
  493. * Makefile.in: Regenerate.
  494. 2005-07-15 Alan Modra <amodra@bigpond.net.au>
  495. * ldemul.c (ldemul_do_assignments): New function.
  496. (do_assignments_default): New function.
  497. * ldemul.h (ldemul_do_assignments): Declare.
  498. (do_assignments_default): Declare.
  499. (struct ld_emulation_xfer_struct): Add do_assignments.
  500. * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
  501. * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
  502. * emultempl/armcoff.em: Likewise.
  503. * emultempl/beos.em: Likewise.
  504. * emultempl/generic.em: Likewise.
  505. * emultempl/gld960.em: Likewise.
  506. * emultempl/gld960c.em: Likewise.
  507. * emultempl/linux.em: Likewise.
  508. * emultempl/lnk960.em: Likewise.
  509. * emultempl/m68kcoff.em: Likewise.
  510. * emultempl/pe.em: Likewise.
  511. * emultempl/sunos.em: Likewise.
  512. * emultempl/ticoff.em: Likewise.
  513. * emultempl/vanilla.em: Likewise.
  514. * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
  515. (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
  516. 2005-07-14 Jim Blandy <jimb@redhat.com>
  517. Add support for the Renesas M32C and M16C.
  518. * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
  519. (eelf32m32c.c): New target.
  520. * Makefile.in: Regenerated.
  521. * configure.tgt: Add case for m32c-*-elf.
  522. * emulparams/elf32m32c.sh: New file.
  523. 2005-07-14 Alan Modra <amodra@bigpond.net.au>
  524. * ldlang.c (strip_excluded_output_sections): Don't call
  525. bfd_gc_sections.
  526. * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
  527. (gld*_provide_init_fini_syms): Move.
  528. (gld*_before_allocation): Call the above from here..
  529. (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
  530. * emultempl/hppaelf.em (hppaelf_finish): Likewise.
  531. * emultempl/ppc64elf.em (ppc_finish): Likewise.
  532. 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
  533. * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
  534. i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
  535. powerpcle-*-rtems*.
  536. 2005-07-09 Christopher Faylor <cgf@timesys.com>
  537. * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
  538. relocation by default.
  539. (compute_dll_image_base): Avoid linking into cygwin dll address space.
  540. 2005-07-08 Alan Modra <amodra@bigpond.net.au>
  541. * ldlang.c (wild_sort): Formatting.
  542. (strip_excluded_output_sections): Strip zero size sections here.
  543. * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
  544. (gld*_finish): Don't call the above.
  545. * emultempl/hppaelf.em (hppaelf_finish): Likewise.
  546. * emultempl/ppc64elf.em (ppc_finish): Likewise.
  547. 2005-07-05 Paul Brook <paul@codesourcery.com>
  548. * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
  549. (eelf32ppcvxworks.o): Add dependencies.
  550. * Makefile.in: Regenerate.
  551. * configure.tgt: Add entry for powerpc-vxworks.
  552. * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
  553. * emulparams/elf32ppcvxworks.sh: New file.
  554. * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
  555. (is_ppc_elf32_vec): New function.
  556. (ppc_after_open, ppc_before_allocation,
  557. gld${EMULATION_NAME}_after_allocation): Use it.
  558. 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
  559. * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
  560. * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
  561. 2005-07-04 Mike Frysinger <vapier@gentoo.org>
  562. * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
  563. name.
  564. 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  565. * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
  566. 2005-07-04 Aurelien Jarno <aurel32@debian.org>
  567. * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
  568. 2005-07-01 Alan Modra <amodra@bigpond.net.au>
  569. * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
  570. 2005-06-30 Ben Elliston <bje@gnu.org>
  571. * Makefile.am (check-DEJAGNU): Don't search for expect.
  572. * Makefile.in: Regenerate.
  573. 2005-06-30 Ben Elliston <bje@gnu.org>
  574. * Makefile.am (EXPECT): Set to expect.
  575. (RUNTEST): Likewise, set to runtest.
  576. * Makefile.in: Regenerate.
  577. 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
  578. * emultempl/armelf.em: Add quotes to avoid a null test
  579. expression.
  580. 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
  581. * ld.texinfo (Command Line Options): Add @item for --hash-size.
  582. 2005-06-10 Alan Modra <amodra@bigpond.net.au>
  583. * scripttempt/elf.sc (.bss): Align tail in a way that allows
  584. empty section pruning.
  585. 2005-06-09 Steve Ellcey <sje@cup.hp.com>
  586. * configure.in (AM_BINUTILS_WARNINGS): Add.
  587. (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
  588. * config.in: Regenerate.
  589. * configure: Regenerate.
  590. * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
  591. * ldmain.c: Ditto.
  592. 2005-06-09 Alan Modra <amodra@bigpond.net.au>
  593. * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
  594. 2005-06-09 Alan Modra <amodra@bigpond.net.au>
  595. * ld.h (lang_phase_type): Move to..
  596. * ldexp.h: ..here. Add lang_mark_phase_enum.
  597. (node_type): Remove etree_undef and etree_unspec.
  598. (exp_data_seg): Delete.
  599. (struct ldexp_control, expld): New.
  600. (invalid, exp_mark_used_section): Delete.
  601. (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
  602. exp_get_abs_int): Update prototypes.
  603. * ldexp.c (assigning_to_dot): Delete.
  604. (expld): Define.
  605. (make_abs): Operate directly on expld.result. Update all callers.
  606. (new_abs): Likewise. Return void.
  607. (new_rel_from_abs): Rename from new_rel_from_section.
  608. (new_rel, new_rel_from_abs): Operate on expld.result and return void.
  609. Update all callers.
  610. (fold_unary): Operate on expld.result and return void. Remove
  611. "current_section", "allocation_done", "dot", "dotp" and "mark_used"
  612. params. Update all callers.
  613. (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
  614. (fold_unary <ALIGN_K>): Ensure alignment is absolute.
  615. (fold_unary <ABSOLUTE>): Use make_abs.
  616. (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
  617. allocating_phase.
  618. (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
  619. (fold_binary <'%','/'>): Don't error if marking.
  620. (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
  621. marking.
  622. (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
  623. error when marking.
  624. (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
  625. (exp_fold_tree_1): Don't error when marking.
  626. (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
  627. (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
  628. current section, instead check for NULL dotp.
  629. (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
  630. source unless the symbol is referenced and undefined.
  631. (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
  632. params to expld.
  633. (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
  634. and "mark_used" params. Save params to expld. Update all callers.
  635. (exp_assop): Do without temp var.
  636. (exp_print_tree <etree_undef>): Delete code.
  637. (exp_get_vma): Remove "allocation_done" param. Correct error return.
  638. (exp_get_fill, exp_get_abs_int): Likewise.
  639. (exp_get_value_int): Remove "allocation_done" param.
  640. (exp_mark_used_section): Delete.
  641. * ldgram.y (fill_exp): Update exp_get_fill call.
  642. (origin_spec, length_spec): Update exp_get_vma call.
  643. * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
  644. (lang_mark_used_section_1, lang_mark_used_section): Delete.
  645. (strip_excluded_output_sections): Call one_lang_size_sections_pass in
  646. marking mode. Merge old lang_mark_used_section code. Correct handling
  647. of output sections with excluded input sections and data statements.
  648. Don't drop non-zero sized sections. Don't zap os->bfd_section.
  649. Do set SEC_EXCLUDE when appropriate.
  650. (print_output_section_statement): Update for changed ldexp.c
  651. interface.
  652. (print_assignment, lang_size_sections_1): Likewise.
  653. (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
  654. (lang_new_phdr, lang_record_phdrs): Likewise.
  655. (lang_size_sections): Likewise.
  656. (insert_pad): Use following statement if it is a pad, rather than
  657. creating a new one.
  658. (lang_size_sections_1 <lang_output_section_statement_enum>): Do
  659. process ignored output section to set vma and lma, but don't
  660. update dot for these sections. Don't error if marking.
  661. (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
  662. update dot for ignored sections.
  663. (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
  664. section with SEC_ALLOC.
  665. (one_lang_size_sections_pass): New function.
  666. (lang_size_sections): Remove first five params. Set expld.phase on
  667. entry and exit. Use one_lang_size_sections_pass.
  668. (lang_do_assignments): Remove all params. Update all callers.
  669. (lang_reset_memory_regions): Clear os->processed for all output
  670. section statements.
  671. * ldlang.h (lang_do_assignments): Update prototype.
  672. (lang_size_sections): Likewise.
  673. (one_lang_size_sections_pass): Declare.
  674. * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
  675. lang_size_sections and lang_do_assignments calls.
  676. * emultempl/elf32.em (layout_sections_again): Likewise.
  677. * emultempl/ppc64elf.em (ppc_before_allocation): Use
  678. one_lang_size_sections_pass.
  679. 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
  680. * emulparams/elf32ms1.sh: New.
  681. 2005-06-07 Eric Christopher <echristo@redhat.com>
  682. * Makefile.am (eelf32ms1.c): Use tab.
  683. * Makefile.in: Regenerate.
  684. 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
  685. Michael Snyder <msnyder@redhat.com>
  686. Stan Cox <scox@redhat.com>
  687. * configure.tgt: Same.
  688. * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
  689. (eelf32ms1.c): Add eelf32ms1.c rule.
  690. * Makefile.in: Regenerate.
  691. 2005-06-06 Alan Modra <amodra@bigpond.net.au>
  692. * emultempl/ppc64elf.em (ppc_before_allocation): Always run
  693. ppc64_elf_edit_opd.
  694. 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
  695. * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
  696. section only if the symbol will be defined.
  697. 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
  698. PR 992
  699. * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
  700. section for etree_assign, etree_provide and etree_provided.
  701. Call fold_binary on etree_binary.
  702. * ldlang.c (lang_mark_used_section_1): Handle load base.
  703. 2005-06-03 Alan Modra <amodra@bigpond.net.au>
  704. * ldmain.c (link_callbacks): Add einfo.
  705. (add_archive_element): Use passed info, not link_info.
  706. (constructor_callback): Likewise.
  707. (reloc_overflow): Don't handle null bfd specially.
  708. (reloc_dangerous, unattached_reloc): Likewise.
  709. * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
  710. (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
  711. 2005-06-02 Alan Modra <amodra@bigpond.net.au>
  712. * ldexp.h (etree_value_type): Use "asection *" in place of
  713. "struct lang_output_section_statement_struct *" for "section".
  714. (exp_fold_tree): Likewise.
  715. (exp_mark_used_section): Likewise.
  716. * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
  717. fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
  718. exp_mark_used_section): Likewise for "current_section" param.
  719. (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
  720. exp_get_abs_int): Adjust for above changes.
  721. * ldlang.c (lang_mark_used_section_1, print_assignment,
  722. lang_size_sections_1, lang_do_assignments_1): Likewise.
  723. * ldexp.c (fold_name): Init entire result struct.
  724. 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
  725. * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
  726. 2005-05-31 Zack Weinberg <zack@codesourcery.com>
  727. * ldlang.c (entry_symbol_default): New file-scope global.
  728. (lang_finish): Use it, not a hardwired "start".
  729. (lang_default_entry): Set it.
  730. * ldlang.h: Declare lang_default_entry.
  731. * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
  732. not lang_add_entry, to override default entry point symbol.
  733. 2005-05-29 Richard Henderson <rth@redhat.com>
  734. * emulparams/elf64alpha.sh (PLT): New.
  735. (TEXT_PLT): New.
  736. * emultempl/alphaelf.em (disable_relaxation): New.
  737. (limit_32bit): Rename from elf64alpha_32bit; update all users.
  738. (elf64_alpha_use_secureplt): Declare.
  739. (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
  740. (alpha_after_open): New.
  741. (alpha_before_allocation): New.
  742. (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
  743. (PARSE_AND_LIST_LONGOPTS): Include them.
  744. (PARSE_AND_LIST_OPTIONS): Likewise.
  745. (PARSE_AND_LIST_ARGS_CASES): Likewise.
  746. (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
  747. * scripttempl/elf.sc (TEXT_PLT): New.
  748. (PLT): Use it.
  749. 2005-05-27 Andreas Schwab <schwab@suse.de>
  750. * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
  751. 2005-05-24 Alan Modra <amodra@bigpond.net.au>
  752. * emultempl/ppc32elf.em (after_allocation): Don't call
  753. ppc_elf_set_sdata_syms when relocatable.
  754. 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
  755. * Makefile.am (ld.1): Revert the last 2 changes.
  756. (info-recursive): Depend on ld.1.
  757. * Makefile.in: Regenerated.
  758. 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
  759. * Makefile.am (ld.1): Depend on "info" instead of
  760. "configdoc.texi ldver.texi".
  761. * Makefile.in: Regenerated.
  762. 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
  763. * Makefile.am (ld.1): Depend on "info".
  764. * Makefile.in: Regenerated.
  765. 2005-05-19 Zack Weinberg <zack@codesourcery.com>
  766. * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
  767. * Makefile.in: Regenerate.
  768. 2005-05-17 Zack Weinberg <zack@codesourcery.com>
  769. * ld-arm/mixed-app.d: Adjust expected disassembly a little.
  770. 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
  771. * Makefile.am (ldver.texi): Don't use $<.
  772. * Makefile.in: Regenerated.
  773. 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
  774. * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
  775. $(srcdir) before $(BFDDIR)/doc.
  776. * Makefile.in: Regenerated.
  777. 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
  778. PR 797
  779. * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
  780. take take a bfd_boolean, mark_used. Ignore assert failure if
  781. mark_used is TRUE.
  782. (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
  783. (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
  784. mark_used and pass down.
  785. (fold_unary): Likewise.
  786. (fold_binary): Likewise.
  787. (fold_trinary): Likewise.
  788. (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
  789. (exp_trinop): Likewise.
  790. (exp_unop): Likewise.
  791. (exp_nameop): Likewise.
  792. (exp_get_vma): Likewise.
  793. (exp_get_fill): Likewise.
  794. (exp_get_abs_int): Likewise.
  795. (fold_name): Likewise. Set SEC_KEEP in output section flags.
  796. (exp_mark_used_section): New.
  797. * ldexp.h (exp_mark_used_section): New.
  798. * ldlang.c (lang_output_section_statement_lookup_1): Set the
  799. ignored field to FALSE.
  800. (lang_mark_used_section_1): New.
  801. (lang_mark_used_section): Call lang_mark_used_section_1.
  802. (strip_excluded_output_sections): Call lang_mark_used_section
  803. and check for unused sections.
  804. (lang_size_sections_1): Skip an output section if it should
  805. be ignored.
  806. (lang_do_assignments_1): Likewise.
  807. (lang_process): Don't call lang_mark_used_section here.
  808. * ldlang.h (lang_output_section_statement_type): Change
  809. all_input_readonly to bitfield. Add ignored.
  810. 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
  811. Peter S. Mazinger" <ps.m@gmx.net>
  812. * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
  813. * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
  814. 2005-05-17 Julian Brown <julian@codesourcery.com>
  815. * ldlang.c (print_assignment): Do not rely upon a valid result
  816. having a section associated with it.
  817. 2005-05-17 Nick Clifton <nickc@redhat.com>
  818. * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
  819. see if the same value is being used on the rhs as on the lhs.
  820. (print_assignment): Call scan_for_self_assignment and if it
  821. returns true, do no display the result of the computation but
  822. instead just the final value of the symbol on the lhs.
  823. * ld.texinfo: Document this behaviour and provide an example of
  824. when it will happen.
  825. 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
  826. * Makefile.am (AM_MAKEINFOFLAGS): Define.
  827. (TEXI2DVI): Define.
  828. (ldver.texi): Depend on distributed files instead of built files.
  829. (ld.info): Include $(srcdir) in the rule target. Remove actions.
  830. (ld.dvi): Remove actions.
  831. (MAINTAINERCLEANFILES): Add configdoc.texi.
  832. (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
  833. (install-data-local): Renamed from install.
  834. (Makefile): Remove explicit dependency.
  835. * acinclude.m4: Remove obsolete code.
  836. * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
  837. * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
  838. 2005-05-11 Bob Wilson <bob.wilson@acm.org>
  839. * scripttempl/elfxtensa.sc: Sync up with elf.sc.
  840. * emulparams/elf32xtensa.sh (PLT, GOT): Define.
  841. 2005-05-11 Alan Modra <amodra@bigpond.net.au>
  842. * ldgram.y: Add SPECIAL token.
  843. (sect_constraint): Handle SPECIAL.
  844. * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
  845. (map_input_to_output_sections): Likewise.
  846. * ldlex.l (SPECIAL): Define.
  847. * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
  848. GOT, PLT, GOTPLT): Define.
  849. * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
  850. (ppc_after_open): New function.
  851. (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
  852. (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
  853. (PARSE_AND_LIST_OPTIONS): Document them.
  854. (PARSE_AND_LIST_ARGS_CASES): Handle them.
  855. (LDEMUL_AFTER_OPEN): Define.
  856. * scripttempl/elf.sc (PLT): Don't override existing define.
  857. (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
  858. placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
  859. 2005-05-10 Alan Modra <amodra@bigpond.net.au>
  860. * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
  861. (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
  862. (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
  863. DATA_SEGMENT_RELRO_END in script.
  864. 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
  865. * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
  866. Don't use a removed section.
  867. 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
  868. * ldmain.c (reloc_overflow): Use output_bfd if the symbol
  869. is defined in the ABS section.
  870. 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
  871. * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
  872. Put back !link_info.relocatable.
  873. 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
  874. PR 878
  875. * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
  876. Just check link_info.executable.
  877. 2005-05-06 Nick Clifton <nickc@redhat.com>
  878. * Update the address and phone number of the FSF organization in
  879. the GPL notices in the following files:
  880. aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
  881. ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
  882. ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
  883. ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
  884. ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
  885. sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
  886. emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
  887. emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
  888. emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
  889. emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
  890. emultempl/lnk960.em, emultempl/m68hc1xelf.em,
  891. emultempl/m68kcoff.em, emultempl/m68kelf.em,
  892. emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
  893. emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
  894. emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
  895. emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
  896. emultempl/vanilla.em, emultempl/xtensaelf.em
  897. 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
  898. * scripttempl/elf.sc: Document the usage of __bss_start.
  899. 2005-05-05 Paul Brook <paul@codesourcery.com>
  900. * Makefile.am: Add eelf_i386_vxworks.
  901. * Makefile.in: Regenerate.
  902. * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
  903. * emulparams/elf_i386_vxworks.sh: New file.
  904. * emulparams/vxworks.sh: New file.
  905. * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
  906. 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
  907. * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
  908. Call _bfd_elf_provide_section_bound_symbols.
  909. 2005-05-04 Alan Modra <amodra@bigpond.net.au>
  910. * ldemul.c: Include bfdlink.h.
  911. (ldemul_before_allocation): Assume before_allocation is non-zero.
  912. (before_allocation_default): Call strip_excluded_output_sections.
  913. * ldlang.c (stripped_excluded_sections): New variable.
  914. (lang_add_section): Build input section list for each output
  915. section, attached via map_head and map_tail pointers.
  916. (strip_excluded_output_sections): Make global. Traverse the
  917. input section lists to find which output sections can go. Clear
  918. link_order pointers and set stripped_excluded_sections.
  919. (lang_process): Call strip_excluded_output_sections.
  920. * ldlang.h (strip_excluded_output_sections): Declare.
  921. * ldwrite.c: Update throuhout for link_order_head -> map_head change.
  922. * emultempl/aix.em (before_allocation): Call
  923. strip_excluded_output_sections.
  924. * emultempl/armcoff.em (before_allocation): Likewise.
  925. * emultempl/beos.em (before_allocation): Likewise.
  926. * emultempl/linux.em (before_allocation): Likewise.
  927. * emultempl/pe.em (before_allocation): Likewise.
  928. * emultempl/sunos.em (before_allocation): Likewise.
  929. * emultempl/elf32.em (before_allocation): Likewise. Call
  930. bfd_elf_size_dynsym_hash_dynstr too.
  931. * emultempl/lnk960.em (lnk960_before_allocation): Delete.
  932. (ld_lnk960): Use before_allocation_default.
  933. 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
  934. * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
  935. Updated for bfd_section_list_remove change.
  936. * ldlang.c (lang_insert_orphan): Likewise.
  937. (strip_excluded_output_sections): Likewise.
  938. (sort_sections_by_lma): New.
  939. (lang_check_section_addresses): Sort the sections before
  940. checking addresses.
  941. 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
  942. * configure.tgt: Add h8300*-*-rtemscoff.
  943. Switch h8300*-*-rtems* to elf.
  944. 2005-04-29 Ben Elliston <bje@au.ibm.com>
  945. * ldgram.y (lang_memory_region_type): Make static.
  946. (ldgram_want_filename): Likewise.
  947. * ldemul.c (ld_emulation): Make static.
  948. * ldfile.h (ldfile_find_command_file): Remove extern.
  949. * ldfile.c (ldfile_find_command_file): Make static.
  950. * ldlang.h (unique_section_list): Remove extern declaration.
  951. * ldlang.c (unique_section_list): Make static.
  952. * mri.h (symbol_truncate): Remove extern declaration.
  953. * mri.c (symbol_truncate): Make static.
  954. (order, only_load, address, alias): Likewise.
  955. (alignment, subalignment): Likewise.
  956. 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
  957. * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
  958. Use the first SEC_ALLOC section which isn't SEC_READONLY or the
  959. last SEC_ALLOC section if such a section doesn't exist.
  960. 2005-04-24 Mark Kettenis <kettenis@gnu.org>
  961. * configure.host: Add *-*-openbsd support.
  962. 2005-04-15 Julian Brown <julian@codesourcery.com>
  963. * ld.texinfo: Document --use-blx.
  964. * emultempl/armelf.em (use_blx): New variable.
  965. (arm_elf_create_output_section_statements): Communicate value of
  966. use_blx to bfd.
  967. (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
  968. (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
  969. (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
  970. 2005-04-14 Alan Modra <amodra@bigpond.net.au>
  971. * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
  972. * configure.in: Include ../bfd/warning.m4 contents.
  973. * Makefile.in: Regenerate.
  974. * configure: Regenerate.
  975. 2005-04-12 Alan Modra <amodra@bigpond.net.au>
  976. * Makefile.am: Run "make dep-am".
  977. (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
  978. * Makefile.in: Regenerate.
  979. * config.in: Regenerate.
  980. 2005-04-11 Alan Modra <amodra@bigpond.net.au>
  981. * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
  982. as_needed libs that were not needed.
  983. (gld${EMULATION_NAME}_check_needed): Likewise.
  984. 2005-04-07 Nick Clifton <nickc@redhat.com>
  985. * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
  986. ldfile.h can use the lang_input_statement type.
  987. 2005-04-06 Jakub Jelinek <jakub@redhat.com>
  988. * ldlang.c: Formatting.
  989. (walk_wild_consider_section): Remember return value from wildcardp.
  990. (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
  991. (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
  992. 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
  993. * ld.h (lean_section_userdata_type): Remove.
  994. (fat_section_userdata_type): Remove file field.
  995. (SECTION_USERDATA_SIZE): Remove.
  996. * ldlang.c (init_os): Eliminate initialization of unused
  997. lean_section_userdata_type.
  998. * ldlang.h (callback_t, walk_wild_section_handler_t): New
  999. typedefs.
  1000. (struct lang_wild_statement_struct): Add walk_wild_section_handler
  1001. and handler_data fields.
  1002. * ldlang.c (callback_t): Removed.
  1003. (walk_wild_consider_section, walk_wild_section_general,
  1004. section_iterator_callback, find_section, is_simple_wild,
  1005. match_simple_wild, walk_wild_section_specs1_wild0,
  1006. walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
  1007. walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
  1008. wild_spec_can_overlap, analyze_walk_wild_section_handler): New
  1009. functions.
  1010. (lang_add_wild): Call analyze_walk_wild_section_handler.
  1011. (walk_wild_section): Renamed to walk_wild_section_general and
  1012. created a wrapper function.
  1013. (section_iterator_callback_data): New typedef.
  1014. 2005-04-04 Nick Clifton <nickc@redhat.com>
  1015. * configure.in: Add a check for <unistd.h> providing a prototype
  1016. for getopt() which is compatible with the one in
  1017. include/getopt.h. If so then define HAVE_DECL_GETOPT.
  1018. * configure: Regenerate.
  1019. * config.in (HAVE_DECL_GETOPT): Add.
  1020. * ldemul.c: Include config.h
  1021. * lexsup.c: Likewise.
  1022. * emultempl/elf32.sc: Likewise.
  1023. 2005-03-29 Alan Modra <amodra@bigpond.net.au>
  1024. * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
  1025. New function, extracted from static void gld${EMULATION_NAME}_finish.
  1026. (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
  1027. (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
  1028. * emultempl/ppc64elf.em: Revert last change.
  1029. (ppc_layout_sections_again): Use
  1030. gld${EMULATION_NAME}_layout_sections_again.
  1031. (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
  1032. gld${EMULATION_NAME}_strip_empty_sections and
  1033. gld${EMULATION_NAME}_provide_init_fini_syms.
  1034. * emultempl/hppaelf.em: Similarly.
  1035. 2005-03-29 Alan Modra <amodra@bigpond.net.au>
  1036. * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
  1037. (ppc_finish): Don't call bfd_elf_discard_info.
  1038. * emultempl/hppaelf.em: Similarly.
  1039. 2005-03-24 Nick Clifton <nickc@redhat.com>
  1040. * po/fr.po: Updated French translation.
  1041. 2005-03-23 Mike Frysinger <vapier@gentoo.org>
  1042. Nick Clifton <nickc@redhat.com>
  1043. * configure.host: Accept any C library to accompany a GNU Linux
  1044. implementation, not just the GNU C library.
  1045. * configure.tgt: Likewise.
  1046. * emultempl/elf32.em: Likewise.
  1047. 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
  1048. * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
  1049. (gld${EMULATION_NAME}_finish): Call
  1050. gld${EMULATION_NAME}_provide_bound_symbols to provide
  1051. __preinit_array_start, __preinit_array_end, __init_array_start,
  1052. __init_array_end, __fini_array_start and __fini_array_end.
  1053. * scripttempl/elf.sc: Don't provide __preinit_array_start,
  1054. __preinit_array_end, __init_array_start, __init_array_end,
  1055. __fini_array_start nor __fini_array_end.
  1056. 2005-03-23 Alan Modra <amodra@bigpond.net.au>
  1057. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
  1058. SEC_EXCLUDE on .gnu.warning sections.
  1059. 2005-03-22 Alan Modra <amodra@bigpond.net.au>
  1060. * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
  1061. 2005-03-21 Alan Modra <amodra@bigpond.net.au>
  1062. * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
  1063. function.
  1064. (LDEMUL_AFTER_ALLOCATION): Define.
  1065. 2005-03-21 Alan Modra <amodra@bigpond.net.au>
  1066. * emultempl/ppc64elf.em (ppc_finish): Rename from
  1067. gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
  1068. (LDEMUL_FINISH): Update.
  1069. * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
  1070. * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
  1071. 2005-03-18 Julian Brown <julian@codesourcery.com>
  1072. * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
  1073. .rel.fini_array.
  1074. (.rela.dyn): Add .rela.init_array, .rela.fini_array.
  1075. (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
  1076. 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
  1077. * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
  1078. bfd_section when removing unused empty output sections for
  1079. non-relocatable link.
  1080. 2005-03-19 Alan Modra <amodra@bigpond.net.au>
  1081. * ldlang.c (lang_insert_orphan): Use old section_tail rather than
  1082. traversing the bfd section list to find pointer to new section.
  1083. 2005-03-18 Alan Modra <amodra@bigpond.net.au>
  1084. * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
  1085. input sections into .sdata and .sbss output respectively.
  1086. 2005-03-16 David Heine <dlheine@tensilica.com>
  1087. Bob Wilson <bob.wilson@acm.org>
  1088. * ldlang.c (IGNORE_SECTION): Remove check for zero size.
  1089. (lang_check_section_addresses): Ignore zero size sections here.
  1090. 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
  1091. * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
  1092. unused empty output sections for non-relocatable link.
  1093. * ld.h (args_type): Remove gc_sections.
  1094. * ldlang.c (lang_mark_used_section): New.
  1095. (lang_gc_sections): Use link_info.gc_sections instead of
  1096. command_line.gc_sections.
  1097. * ldmain.c (main): Likewise.
  1098. * lexsup.c (parse_args): Likewise.
  1099. * ldlang.c (lang_process): Call lang_mark_used_section.
  1100. * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
  1101. 2005-03-16 Nick Clifton <nickc@redhat.com>
  1102. Ben Elliston <bje@au.ibm.com>
  1103. * configure.in (werror): New switch: Add -Werror to the
  1104. compiler command line. Enabled by default. Disable via
  1105. --disable-werror.
  1106. * configure: Regenerate.
  1107. 2005-03-16 Alan Modra <amodra@bigpond.net.au>
  1108. * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
  1109. (OTHER_RELRO_SECTIONS): Set this instead.
  1110. 2005-03-15 Nick Clifton <nickc@redhat.com>
  1111. * NEWS: Add cutoff for changes in 2.16 release.
  1112. 2005-03-15 Mikkel Krautz <krautz@gmail.com>
  1113. * configure.tgt (x86_64-elf): Add target.
  1114. 2005-03-15 Alan Modra <amodra@bigpond.net.au>
  1115. * po/es.po: Commit new Spanish translation.
  1116. 2005-03-14 Alan Modra <amodra@bigpond.net.au>
  1117. * ldexp.c (exp_fold_tree): Ensure return value is initialized.
  1118. Tidy etree_assert case.
  1119. 2005-03-14 Alan Modra <amodra@bigpond.net.au>
  1120. * po/tr.po: Commit new Turkish translation.
  1121. 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
  1122. * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
  1123. * Makefile.in: Regenerated.
  1124. * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
  1125. 2005-03-07 Nick Clifton <nickc@redhat.com>
  1126. * po/fr.po: Updated translation.
  1127. 2005-03-05 Alan Modra <amodra@bigpond.net.au>
  1128. * po/ld.pot: Regenerate.
  1129. 2005-03-02 Jan Beulich <jbeulich@novell.com>
  1130. * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
  1131. * pe-dll.c (pe_dll_generate_implib): Likewise.
  1132. 2005-02-24 Ben Elliston <bje@au.ibm.com>
  1133. * ldfile.c: Remove GNU960 conditional code.
  1134. * emultempl/gld960.em: Likewise.
  1135. * emultempl/gld960c.em: Likewise.
  1136. * emultempl/lnk960.em: Likewise.
  1137. 2005-02-24 Nick Clifton <nickc@redhat.com>
  1138. * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
  1139. empty string from calls to concat.
  1140. 2005-02-23 Nick Clifton <nickc@redhat.com>
  1141. * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
  1142. arguments passed to concat() with a NULL.
  1143. * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
  1144. define types needed by ldfile.h
  1145. 2005-02-23 Alan Modra <amodra@bigpond.net.au>
  1146. * pe-dll.c: Warning fixes.
  1147. * emultempl/sunos.em: Likewise.
  1148. 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
  1149. * ldlang.c (section_already_linked): Don't call
  1150. bfd_section_already_linked for dynamic objects.
  1151. 2005-02-22 Alan Modra <amodra@bigpond.net.au>
  1152. * ldexp.c: Warning fixes.
  1153. * ldwrite.c: Likewise.
  1154. * emultempl/elf32.em: Likewise.
  1155. 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
  1156. * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
  1157. tic54x input only.
  1158. (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
  1159. and ECOFF output only.
  1160. 2005-02-21 Alan Modra <amodra@bigpond.net.au>
  1161. * config.in: Regenerate.
  1162. * configure: Regenerate.
  1163. 2005-02-17 Zack Weinberg <zack@codesourcery.com>
  1164. * ldexp.c (assigning_to_dot): New global flag.
  1165. (fold_name): If assigning_to_dot is true, object immediately to
  1166. an undefined symbol.
  1167. (exp_fold_tree): Set and clear assigning_to_dot around the
  1168. recursive call to exp_fold_tree to process the right-hand side
  1169. of an assignment to the location counter.
  1170. 2005-02-17 Paul Brook <paul@codesourcery.com>
  1171. * scripttempl/armbpabi.sc: Add dummy name to version block.
  1172. 2005-02-17 Alan Modra <amodra@bigpond.net.au>
  1173. * ldexp.c (new_abs): Init new.str.
  1174. 2005-02-15 Mark Mitchell <mark@codesourcery.com>
  1175. * configure.in (AC_CHECK_FUNCS): Add glob.
  1176. * configure: Regenerated.
  1177. * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
  1178. not defined.
  1179. (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
  1180. if HAVE_GLOB is not defined.
  1181. 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1182. * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
  1183. lib_path if NATIVE is yes.
  1184. 2005-02-16 Alan Modra <amodra@bigpond.net.au>
  1185. * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
  1186. an error creating fake bfd fatal.
  1187. (ppc_before_allocation): Continue on after errors.
  1188. (gld${EMULATION_NAME}_finish): Likewise.
  1189. 2005-02-15 Nick Clifton <nickc@redhat.com>
  1190. * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
  1191. not declared. It is not used and its presence causes a compile
  1192. time warning.
  1193. 2005-02-11 Zack Weinberg <zack@codesourcery.com>
  1194. * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
  1195. If st.st_ino is zero, do not treat the library as a duplicate.
  1196. 2005-02-10 Jakub Jelinek <jakub@redhat.com>
  1197. * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
  1198. Set BFD_LINKER_CREATED on the stubs bfd.
  1199. * emultempl/ppc64elf.em (ppc_create_output_section_statements):
  1200. Likewise.
  1201. 2005-02-08 Mark Mitchell <mark@codesourcery.com>
  1202. * scripttempl/armbpabi.sc (VERSION): Make special section symbols
  1203. local.
  1204. (Image$$ER_RO$$Base): Define whenever RELOCATING.
  1205. (Image$$ER_RO$$Limit): Likewise.
  1206. (SHT$$INIT_ARRAY$$Base): Likewise.
  1207. (SHT$$INIT_ARRAY$$Limit): Likeise.
  1208. 2005-02-10 Ben Elliston <bje@au.ibm.com>
  1209. * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
  1210. 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
  1211. * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
  1212. to include o32 and n64 emulations.
  1213. (mips64*-*-linux-gnu*): Likewise.
  1214. 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
  1215. * ldmain.c (warning_callback, warning_find_reloc): Prepend
  1216. "warning: " to warning messages.
  1217. 2005-02-04 Alan Modra <amodra@bigpond.net.au>
  1218. * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
  1219. look up symbol for etree_provide here.
  1220. 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
  1221. * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
  1222. 2005-02-01 Edward Welbourne <eddy@opera.com>
  1223. Nick Clifton <nickc@redhat.com>
  1224. * ld.texinfo (Source Code Reference): New node describing how to
  1225. access linker script defined variables from source code.
  1226. 2005-02-01 Alan Modra <amodra@bigpond.net.au>
  1227. * ld.texinfo: Clarify --as-needed operation.
  1228. 2005-01-31 Andrew Cagney <cagney@gnu.org>
  1229. * configure: Regenerate to track ../gettext.m4.
  1230. 2005-01-31 Nick Clifton <nickc@redhat.com>
  1231. * ldver.c (ldversion): Bump reported copyright date to 2005.
  1232. 2005-01-31 Nick Clifton <nickc@redhat.com>
  1233. * configure.tgt: Remove obsolete targets m68k-lynxos and
  1234. sparc-lynxos.
  1235. 2005-01-28 Julian Brown <julian@codesourcery.com>
  1236. * emultempl/armelf.em (fix_v4bx): New variable.
  1237. (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
  1238. value to bfd.
  1239. (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
  1240. (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
  1241. (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
  1242. (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
  1243. * NEWS: Mention --fix-v4bx.
  1244. * ld.texinfo: Document --fix-v4bx.
  1245. 2005-01-25 Mark Mitchell <mark@codesourcery.com>
  1246. * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
  1247. as to include .ARM.exidx$${Base,Limit}.
  1248. * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
  1249. Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
  1250. Put .init_array, .fini_array, etc. into the read-only data
  1251. segment.
  1252. 2005-01-25 Alan Modra <amodra@bigpond.net.au>
  1253. * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
  1254. (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
  1255. only needed by an as-needed lib that didn't get linked.
  1256. 2005-01-23 Alan Modra <amodra@bigpond.net.au>
  1257. * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
  1258. __DTOR_LIST__ description.
  1259. 2005-01-23 Alan Modra <amodra@bigpond.net.au>
  1260. * ld.texinfo (Location Counter <dot outside sections>): Document
  1261. effects of orphan section placement, and ". = ." workaround.
  1262. * Makefile.in: Regenerate.
  1263. 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
  1264. * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
  1265. * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
  1266. 2005-01-21 Jakub Jelinek <jakub@redhat.com>
  1267. * ldgram.y (AS_NEEDED): New token.
  1268. (input_list): Handle AS_NEEDED ( input_list ).
  1269. * ldlex.l (AS_NEEDED): Add.
  1270. * ld.texinfo: Document AS_NEEDED ().
  1271. * NEWS: Mention AS_NEEDED ().
  1272. 2005-01-21 Ben Elliston <bje@au.ibm.com>
  1273. * ldlang.c (lang_reasonable_defaults): Remove.
  1274. (lang_process): Don't call lang_reasonable_defaults.
  1275. * ldexp.c (exp_assop): Remove #if 0'd code.
  1276. (exp_print_tree): Likewise.
  1277. * ldlang.c (lang_memory_region_lookup): Likewise.
  1278. (open_output): Likewise.
  1279. (lang_do_assignments_1): Likewise.
  1280. (lang_place_orphans): Likewise.
  1281. (lang_enter_output_section_statement): Likewise.
  1282. (lang_reasonable_defaults): Likewise.
  1283. * ldlang.h (struct lang_input_statement_struct): Likewise.
  1284. * mri.c (mri_draw_tree): Likewise.
  1285. (mri_load): Likewise.
  1286. * pe-dll.c (generate_reloc): Likewise.
  1287. (make_import_fixup_entry): Likewise.
  1288. (pe_as16): Likewise.
  1289. * emultempl/beos.em (set_pe_subsystem): Likewise.
  1290. * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
  1291. * emultempl/pe.em: Likewise.
  1292. * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
  1293. 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
  1294. * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
  1295. (earmelfb_linux_eabi.c): New target.
  1296. * Makefile.in: Regenerated.
  1297. * configure.tgt (arm*b-*-linux-gnueabi): New target.
  1298. * emulparams/armelfb_linux_eabi.sh: New file.
  1299. 2005-01-20 Nick Hudson <skrll@netbsd.org>
  1300. PR ld/676
  1301. * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
  1302. Handle bfd_elf32_hppa_nbsd_vec.
  1303. 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
  1304. * ldmain.h (ld_sysroot): Change type to a constant string.
  1305. * ldmain.c (ld_sysroot): Likewise.
  1306. (get_relative_sysroot, get_sysroot): New functions, adding command-line
  1307. support for changing the sysroot.
  1308. (main): Call the new functions.
  1309. * lexsup.c (OPTION_SYSROOT): New.
  1310. (ld_options): Add --sysroot.
  1311. (parse_args): Add a dummy handler for it.
  1312. * ld.texinfo (--sysroot): Document.
  1313. * NEWS: Mention the new --sysroot option.
  1314. 2005-01-18 Alan Modra <amodra@bigpond.net.au>
  1315. * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
  1316. (lang_place_orphans): Don't abort on just_syms_flag, instead call
  1317. bfd_link_just_syms.
  1318. 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
  1319. * defilep.y (def_name, def_library): Combine into...
  1320. (def_image_name): New function. Strip name to basename,
  1321. with warning.
  1322. 2005-01-12 Mark Kettenis <kettenis@gnu.org>
  1323. * configure.in: Be sure to invoke config.sub using the shell.
  1324. * configure: Regenerate.
  1325. 2005-01-11 Alan Modra <amodra@bigpond.net.au>
  1326. * configure.host: Correct sed patterns for last change.
  1327. 2005-01-10 Nick Clifton <nickc@redhat.com>
  1328. PR binutils/609
  1329. * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
  1330. to determine whether config.make_executable should be set to FALSE in
  1331. conjunction with config.fatal_warnings.
  1332. (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
  1333. (einfo): Pass TRUE as the extra argument.
  1334. 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
  1335. * configure.host (linux targets): Use "${CC} -dumpspecs" instead
  1336. of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
  1337. (ia64-*-aix): Delete - this target is obsolete, and would be
  1338. broken by this patch.
  1339. 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
  1340. * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
  1341. (sparc64-sun-solaris2*): New host.
  1342. 2005-01-06 Paul Brook <paul@codesourcery.com>
  1343. * Makefie.am: Add earmelf_vxworks.
  1344. * Makefile.in: Regenerate.
  1345. * configure.tgt: Make arm-*-vxworks a separate case.
  1346. * emulparams/armelf_vxworks.sh: New function.
  1347. 2005-01-06 Alan Modra <amodra@bigpond.net.au>
  1348. * emultempl/ppc64elf.em (no_multi_toc): New var.
  1349. (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
  1350. (OPTION_NO_MULTI_TOC): Define.
  1351. (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
  1352. (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
  1353. 2005-01-05 Nick Clifton <nickc@redhat.com>
  1354. PR binutils/614
  1355. * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
  1356. Standard's specification for parsable error messages.
  1357. 2005-01-04 Paul Brook <paul@codesourcery.com>
  1358. * Makefile.am: Correct dependency for earmsymbian.c.
  1359. * Makefile.in: Regenerate.
  1360. For older changes see ChangeLog-2004
  1361. Copyright (C) 2005 Free Software Foundation, Inc.
  1362. Copying and distribution of this file, with or without modification,
  1363. are permitted in any medium without royalty provided the copyright
  1364. notice and this notice are preserved.
  1365. Local Variables:
  1366. mode: change-log
  1367. left-margin: 8
  1368. fill-column: 74
  1369. version-control: never
  1370. End: