ChangeLog-2015 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205
  1. 2015-12-22 Yury Usishchev <y.usishchev@samsung.com>
  2. * emultempl/armelf.em (gld${EMULATION_NAME}_after_allocation): Call
  3. elf32_arm_fix_exidx_coverage for relocatable builds.
  4. 2015-12-10 Kwok Cheung Yeung <kcy@codesourcery.com>
  5. PR ld/18199
  6. * plugin.c (plugin_get_ir_dummy_bfd): Use srctemplate as the
  7. template when calling bfd_create if it does not use the BFD
  8. plugin target vector.
  9. 2015-12-02 Alan Modra <amodra@gmail.com>
  10. * configure.ac (--enable-initfini-array): Remove run test. Default
  11. to "yes". Change help string to --disable-initfini-array.
  12. * configure: Regenerate.
  13. 2015-11-20 Maciej W. Rozycki <macro@imgtec.com>
  14. * configure.tgt <mips*el-mti-elf*, mips*el-img-elf*>: Add
  15. targets.
  16. 2015-11-19 Alan Modra <amodra@gmail.com>
  17. PR ld/19264
  18. * ldlang.c (lang_size_sections): Don't ignore .tbss when
  19. adjusting start of relro region.
  20. 2015-11-16 Nick Clifton <nickc@redhat.com>
  21. PR ld/19106
  22. * emultempl/armelf.em (_set_symbols): New function. Enables
  23. relaxation for non-relocatable links.
  24. (LDEMUL_SET_SYMBOLS): Define.
  25. 2015-11-13 Tristan Gingold <gingold@adacore.com>
  26. * configure: Regenerate.
  27. 2015-11-13 Tristan Gingold <gingold@adacore.com>
  28. * NEWS: Add marker for 2.26.
  29. 2015-11-05 Alan Modra <amodra@gmail.com>
  30. * Makefile.in: Regenerate.
  31. 2015-11-05 Alan Modra <amodra@gmail.com>
  32. PR ld/19203
  33. * ld.texinfo (DATA_SEGMENT_ALIGN): Correct second expression.
  34. 2015-10-30 Nick Clifton <nickc@redhat.com>
  35. * po/zh_CN.po: Updated (simplified) Chinese translation.
  36. 2015-10-29 Ed Schouten <ed@nuxi.nl>
  37. * Makefile.am (ALL_64_EMULATION_SOURCES): Add support for
  38. CloudABI on aarch64. For this target we have to make sure we use
  39. ELFOSABI_CLOUDABI instead of ELFOSABI_NONE.
  40. * configure.tgt (targ_emul): Likewise.
  41. * emulparams/aarch64cloudabi.sh: New file.
  42. * emulparams/aarch64cloudabib.sh: New file.
  43. * Makefile.in: Regenerate.
  44. 2015-10-29 Nick Clifton <nickc@redhat.com>
  45. PR ld/19146
  46. * lexsup.c (parse_args): Correct error message for an option that
  47. is missing its argument if that option is the last one on the
  48. command line.
  49. 2015-10-29 Alan Modra <amodra@gmail.com>
  50. PR ld/19162
  51. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Pass
  52. updated flags to lang_output_section_find_by_flags.
  53. * emultempl/mmo.em (mmo_place_orphan): Merge flags for any
  54. other input sections that might match a new output section to
  55. decide placement.
  56. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
  57. * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
  58. * ldlang.c (lang_output_section_find_by_flags): Add sec_flags param.
  59. * ldlang.h (lang_output_section_find_by_flags): Update prototype.
  60. 2015-10-29 Matthias Klose <doko@ubuntu.com>
  61. * ld.texinfo (Options <-rpath>): Fix typo.
  62. 2015-10-28 Alan Modra <amodra@gmail.com>
  63. PR ld/19162
  64. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Check flags
  65. before calling _bfd_elf_match_sections_by_type. Merge flags for
  66. any other input sections that might match a new output section to
  67. decide placement.
  68. 2015-10-27 Laurent Alfonsi <laurent.alfonsi@st.com>
  69. Christophe Monat <christophe.monat@st.com>
  70. * ld.texinfo: Add description of the STM32L4xx erratum
  71. workaround.
  72. * NEWS: Mention the new feature.
  73. * emultempl/armelf.em (stm32l4xx_fix): New.
  74. (arm_elf_before_allocation): Choose the type of fix, scan for
  75. erratum.
  76. (gld${EMULATION_NAME}_finish): Fix veneer locations.
  77. (arm_elf_create_output_section_statements): Propagate
  78. stm32l4xx_fix value.
  79. (PARSE_AND_LIST_PROLOGUE): Define OPTION_STM32L4XX_FIX.
  80. (PARSE_AND_LIST_LONGOPTS): Add entry for handling
  81. --fix-stm32l4xx-629360.
  82. (PARSE_AND_LIST_OPTION): Add entry for helping on
  83. --fix-stm32l4xx-629360.
  84. (PARSE_AND_LIST_ARGS_CASES): Treat OPTION_STM32L4XX_FIX.
  85. 2015-10-27 Alan Modra <amodra@gmail.com>
  86. PR ld/19175
  87. * ldlang.c (lang_insert_orphan): Evaluate __start_* and __stop_*
  88. symbol PROVIDE expressions.
  89. * ldexp.c (exp_fold_tree_1 <etree_provide>): Define undefweak
  90. references.
  91. 2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
  92. * configure.ac: Properly check
  93. --enable-compressed-debug-sections={yes,all}.
  94. * configure: Regenerated.
  95. 2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
  96. PR gas/19109
  97. * configure.ac: Handle --enable-compressed-debug-sections=*,ld,*.
  98. * configure: Regenerated.
  99. 2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
  100. * ld.texinfo: Document "-z call-nop=PADDING" option.
  101. * emulparams/call_nop.sh: New file.
  102. * emulparams/elf_i386_be.sh: Source
  103. ${srcdir}/emulparams/call_nop.sh.
  104. * emulparams/elf_i386_chaos.sh: Likewise.
  105. * emulparams/elf_i386_ldso.sh: Likewise.
  106. * emulparams/elf_i386_vxworks.sh: Likewise.
  107. * emulparams/elf_iamcu.sh: Likewise.
  108. * emulparams/elf_k1om.sh: Likewise.
  109. * emulparams/elf_l1om.sh: Likewise.
  110. * emulparams/elf_x86_64.sh: Likewise.
  111. * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
  112. link_info.call_nop_byte if $CALL_NOP_BYTE isn't empty.
  113. 2015-10-21 Nick Clifton <nickc@redhat.com>
  114. PR gas/19109
  115. * configure.ac: Add --enable-compressed-debug-sections with
  116. options of all, none or ld.
  117. * configure: Regenerate.
  118. * config.in: Regenerate.
  119. * ld.texinfo: Document how to determine the default action for
  120. debug sections.
  121. * ldmain.c (main): If DEFAULT_FLAG_COMPRESS_DEBUG is defined then
  122. set the compress_debug field of the link_info structure to
  123. zlib-gabi.
  124. * lexsup.c (elf_static_list_options): Output the default setting
  125. for the --compress-debug-sections option.
  126. * NEWS: Mention the new configure option.
  127. 2015-10-15 H.J. Lu <hongjiu.lu@intel.com>
  128. * ld.texinfo: Fix a typo for "-z noextern-protected-data".
  129. 2015-10-15 Simon Dardis <Simon.Dardis@imgtec.com>
  130. * ldexp.c: (try_copy_symbol_flags): New. Factored out from...
  131. (exp_fold_tree_1): Here. Cope with ternary operator in
  132. assignments. Use new helper.
  133. 2015-10-14 Nick Clifton <nickc@redhat.com>
  134. * po/zh_TW.po: Updated Chinese translation.
  135. 2015-10-13 Nick Clifton <nickc@redhat.com>
  136. * po/zh_TW.po: Updated Chinese translation.
  137. 2015-10-07 Claudiu Zissulescu <claziss@synopsys.com>
  138. Cupertino Miranda <cmiranda@synopsys.com>
  139. * configure.tgt: Added target arc-*-elf* and arc*-*-linux-uclibc*.
  140. * emulparams/arcebelf_prof.sh: New file
  141. * emulparams/arcebelf.sh: Likewise.
  142. * emulparams/arceblinux_prof.sh: Likewise.
  143. * emulparams/arceblinux.sh: Likewise.
  144. * emulparams/arcelf_prof.sh: Likewise.
  145. * emulparams/arcelf.sh: Likewise.
  146. * emulparams/arclinux_prof.sh: Likewise.
  147. * emulparams/arclinux.sh: Likewise.
  148. * emulparams/arcv2elfx.sh: Likewise.
  149. * emulparams/arcv2elf.sh: Likewise.
  150. * emultempl/arclinux.em: Likewise.
  151. * scripttempl/arclinux.sc: Likewise.
  152. * scripttempl/elfarc.sc: Likewise.
  153. * scripttempl/elfarcv2.sc: Likewise
  154. * Makefile.am: Add new ARC emulations.
  155. * Makefile.in: Regenerate.
  156. * NEWS: Mention the new feature.
  157. 2015-10-04 H.J. Lu <hongjiu.lu@intel.com>
  158. * configure.tgt (targ_extra_emuls): Add elf_iamcu for Solaris2/x86.
  159. 2015-10-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  160. * configure.tgt (targ_extra_emuls): Remove shlelf and
  161. shelf from sh*-*-linux cases.
  162. 2015-09-30 Rich Felker <dalias@libc.org>
  163. * configure.tgt (targ_extra_emuls): Add fdpic and misc
  164. emulations to sh*-*-linux* targets.
  165. 2015-09-29 Nick Clifton <nickc@redhat.com>
  166. PR ld/19014
  167. * ld.texinfo (Options): Fix spelling mistake.
  168. 2015-09-24 Alan Modra <amodra@gmail.com>
  169. PR ld/18992
  170. * ldmain.c (main): Always enable --sysroot.
  171. * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
  172. prepend sysroot to relative rpath/runpath.
  173. 2015-09-23 Nick Clifton <nickc@redhat.com>
  174. * emultempl/elf32.em (ehdr_start_empty): New static variable.
  175. (before_allocation): Use it to initialise ehdr_start_save.
  176. * emultempl/pe.em (write_build_id): Remove useless double
  177. parenthesis.
  178. * emultempl/pep.em (write_build_id): Likewise.
  179. 2015-09-22 H.J. Lu <hongjiu.lu@intel.com>
  180. * emultempl/alphaelf.em (alpha_after_parse): Call
  181. gld${EMULATION_NAME}_after_parse instead of
  182. after_parse_default.
  183. * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
  184. * emultempl/crxelf.em (crxelf_after_parse); Likewise.
  185. * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
  186. * emultempl/mipself.em (mips_after_parse): Likewise.
  187. * emultempl/nds32elf.em (nds32_elf_after_parse): Likewise.
  188. * emultempl/elf32.em: Don't include ldlex.h.
  189. (gld${EMULATION_NAME}_after_parse): New function.
  190. (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT]
  191. <OPTION_PIE>: Removed.
  192. (ld_${EMULATION_NAME}_emulation): Replace after_parse_default
  193. with gld${EMULATION_NAME}_after_parse.
  194. * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse):
  195. Renamed to ...
  196. (ia64elf_after_parse): This. Call
  197. gld${EMULATION_NAME}_after_parse instead of after_parse_default.
  198. (LDEMUL_AFTER_PARSE): Replace gld${EMULATION_NAME}_after_parse
  199. with ia64elf_after_parse.
  200. 2015-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  201. * emulparams/solaris2.sh (GENERATE_PIE_SCRIPT): Set to yes.
  202. * emultempl/elf32.em: Include ldlex.h.
  203. (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT]
  204. <OPTION_PIE>: Set DF_1_PIE.
  205. 2015-09-22 Alan Modra <amodra@gmail.com>
  206. * ld.texinfo: Put --dotsyms/--no-dotsyms on separate lines.
  207. Ditto for --save-restore-funcs and --tls-get-addr-optimize.
  208. 2015-09-20 Rich Felker <dalias@libc.org>
  209. * ld.texinfo (--no-dynamic-linker): Document.
  210. * ldlex.h (enum option_values): Add OPTION_NO_DYNAMIC_LINKER.
  211. * lexsup.c (ld_options, parse_args): Handle --no-dynamic-linker.
  212. 2015-09-18 Alan Modra <amodra@gmail.com>
  213. * ld.texinfo: Document PowerPC64 --{no-,}save-restore-funcs.
  214. 2015-09-18 Alan Modra <amodra@gmail.com>
  215. * emultempl/ppc64elf.em (params): Init tls_get_addr_opt field to -1.
  216. (OPTION_TLS_GET_ADDR_OPT): Define.
  217. (PARSE_AND_LIST_LONGOPTS): Handle --tls-get-addr-opt.
  218. (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
  219. * ld.texinfo: Document --tls-get-addr-optimize and
  220. --no-tls-get-addr-optimize.
  221. 2015-09-18 Alan Modra <amodra@gmail.com>
  222. PR ld/18963
  223. * ldexp.h (struct ldexp_control): Add rel_from_abs.
  224. (ldexp_finalize_syms): Declare.
  225. * ldexp.c (new_rel_from_abs): Keep absolute for expressions
  226. outside of output section statements. Set rel_from_abs.
  227. (make_abs, exp_fold_tree, exp_fold_tree_no_dot): Clear rel_from_abs.
  228. (struct definedness_hash_entry): Add final_sec, and comment.
  229. (update_definedness): Set final_sec.
  230. (set_sym_sections, ldexp_finalize_syms): New functions.
  231. * ldlang.c (lang_process): Call ldexp_finalize_syms.
  232. 2015-09-10 Nick Clifton <nickc@redhat.com>
  233. * po/zh_CN.po: Updated simplified Chinese translation.
  234. 2015-09-09 James Bowman <james.bowman@ftdichip.com>
  235. * scripttempl/ft32.sc: default linker script RAM and
  236. FLASH size symbols
  237. 2015-09-09 Nick Clifton <nickc@redhat.com>
  238. * po/zh_CN.po: Updated simplified Chinese translation.
  239. 2015-09-08 Nick Clifton <nickc@redhat.com>
  240. * ld.texinfo (Source Code Reference): Extend description to
  241. include an example using arrays.
  242. 2015-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
  243. * ld.h (enum orphan_handling_enum): New.
  244. (ld_config_type): Remove warn_orphan, add orphan_handling.
  245. * ldemul.c (ldemul_place_orphan): Remove warning about orphan
  246. sections.
  247. * ldlang.c (ldlang_place_orphan): New function.
  248. (lang_place_orphans): Call ldlang_place_orphan.
  249. * ldlex.h (enum option_values): Remove OPTION_WARN_ORPHAN and
  250. OPTION_NO_WARN_ORPHAN, add OPTION_ORPHAN_HANDLING.
  251. * lexsup.c (ld_options): Remove 'warn-orphan' and
  252. 'no-warn-orphan', add 'orphan-handling'.
  253. (parse_args): Remove handling for OPTION_WARN_ORPHAN and
  254. OPTION_NO_WARN_ORPHAN, add handling for OPTION_ORPHAN_HANDLING.
  255. * NEWS: Replace text about --warn-orphan with --orphan-handling.
  256. * ld.texinfo (Options): Remove --warn-orphan entry and add
  257. entry on --orphan-handling.
  258. (Orphan Sections): Add reference to relevant command line options.
  259. 2015-09-03 Nick Clifton <nickc@redhat.com>
  260. * ld.texinfo (--build-id): Fix typo. The COFF/PE build-id section
  261. is called .buildid not .build-id.
  262. 2015-09-03 Nick Clifton <nickc@redhat.com>
  263. (Source Code Reference): Fix off-by-one typo in example of how to
  264. use linker script symbols in C source code.
  265. 2015-08-19 Alan Modra <amodra@gmail.com>
  266. * emultempl/aix.em: Don't set link_info.pic.
  267. * emultempl/pe.em: Likewise.
  268. * emultempl/pep.em: Likewise.
  269. * emultempl/sunos.em: Likewise.
  270. * lexsup.c (parse_args): Likewise. Set type_pie for -pie.
  271. * plugin.c (set_tv_header <LDPT_LINKER_OUTPUT>): Simplify.
  272. 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
  273. * ldctor.c: Replace shared, executable, relocatable and pie
  274. fields with bfd_link_executable, bfd_link_dll,
  275. bfd_link_relocatable, bfd_link_pic and bfd_link_pie.
  276. * ldemul.c: Likewise.
  277. * ldfile.c: Likewise.
  278. * ldlang.c: Likewise.
  279. * ldmain.c: Likewise.
  280. * ldwrite.c: Likewise.
  281. * lexsup.c: Likewise.
  282. * pe-dll.c: Likewise.
  283. * plugin.c: Likewise.
  284. * emultempl/aarch64elf.em: Likewise.
  285. * emultempl/aix.em: Likewise.
  286. * emultempl/alphaelf.em: Likewise.
  287. * emultempl/armcoff.em: Likewise.
  288. * emultempl/armelf.em: Likewise.
  289. * emultempl/avrelf.em: Likewise.
  290. * emultempl/beos.em: Likewise.
  291. * emultempl/cr16elf.em: Likewise.
  292. * emultempl/elf-generic.em: Likewise.
  293. * emultempl/elf32.em: Likewise.
  294. * emultempl/genelf.em: Likewise.
  295. * emultempl/generic.em: Likewise.
  296. * emultempl/gld960.em: Likewise.
  297. * emultempl/gld960c.em: Likewise.
  298. * emultempl/hppaelf.em: Likewise.
  299. * emultempl/irix.em: Likewise.
  300. * emultempl/linux.em: Likewise.
  301. * emultempl/lnk960.em: Likewise.
  302. * emultempl/m68hc1xelf.em: Likewise.
  303. * emultempl/m68kcoff.em: Likewise.
  304. * emultempl/m68kelf.em: Likewise.
  305. * emultempl/metagelf.em: Likewise.
  306. * emultempl/mipself.em: Likewise.
  307. * emultempl/mmo.em: Likewise.
  308. * emultempl/msp430.em: Likewise.
  309. * emultempl/nds32elf.em: Likewise.
  310. * emultempl/needrelax.em: Likewise.
  311. * emultempl/nios2elf.em: Likewise.
  312. * emultempl/pe.em: Likewise.
  313. * emultempl/pep.em: Likewise.
  314. * emultempl/ppc32elf.em: Likewise.
  315. * emultempl/ppc64elf.em: Likewise.
  316. * emultempl/sh64elf.em: Likewise.
  317. * emultempl/solaris2.em: Likewise.
  318. * emultempl/spuelf.em: Likewise.
  319. * emultempl/sunos.em: Likewise.
  320. * emultempl/tic6xdsbt.em: Likewise.
  321. * emultempl/ticoff.em: Likewise.
  322. * emultempl/v850elf.em: Likewise.
  323. * emultempl/vms.em: Likewise.
  324. * emultempl/vxworks.em: Likewise.
  325. 2015-08-18 Alan Modra <amodra@gmail.com>
  326. * ldexp.c (exp_fold_tree_1): Clear linker_def on symbol assignment.
  327. 2015-08-06 Alan Modra <amodra@gmail.com>
  328. * ldexp.c (align_dot_val): Delete.
  329. (fold_unary <ALIGN_K, NEXT>): Revert 2015-07-10 change.
  330. (is_align_conditional): Revert 2015-07-20 change.
  331. (exp_fold_tree_1): Likewise, but keep expanded comment.
  332. * scripttempl/elf.sc (.ldata, .bss): Revert 2015-07-20 change.
  333. * ld.texinfo (<ALIGN>): Correct description.
  334. 2015-08-04 Andrew Burgess <andrew.burgess@embecosm.com>
  335. * ld.texinfo (Options): Document --require-defined option.
  336. * ldlang.c (struct require_defined_symbol): New structure.
  337. (require_defined_symbol_list): New variable.
  338. (ldlang_add_require_defined): New function.
  339. (ldlang_check_require_defined_symbols): New function.
  340. (lang_process): Check required symbols are defined.
  341. * ldlang.h (ldlang_add_require_defined): Declare.
  342. * ldlex.h (enum option_values): Add OPTION_REQUIRE_DEFINED_SYMBOL.
  343. * lexsup.c (ld_options): Add '--require-defined' entry.
  344. (parse_args): Handle '--requre-defined' entry.
  345. * NEWS: Mention new '--require-defined' option.
  346. 2015-08-03 Andrew Burgess <andrew.burgess@embecosm.com>
  347. * ld.texinfo (MEMORY): Explain that multiple MEMORY commands are
  348. acceptable.
  349. 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
  350. * lexsup.c (parse_args): Don't set link_info.executable to
  351. TRUE for link_info.relocatable.
  352. 2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
  353. * configure: Regenerated.
  354. 2015-07-24 Nick Clifton <nickc@redhat.com>
  355. * emulparams/elf32rl78.sh (OTHER_SECTIONS): Provide a value for
  356. the _-rl78_abs__ symbol.
  357. 2015-07-20 Alan Modra <amodra@gmail.com>
  358. * emulparams/criself.sh (INIT_ADDR, FINI_ADDR): Define.
  359. (INIT_START, FINI_START): Don't ALIGN.
  360. * scriptempl/elf.sc (.init, .fini): Apply INIT_ADDR/FINI_ADDR.
  361. 2015-07-20 Alan Modra <amodra@gmail.com>
  362. * scripttempl/elf.sc (.ldata, .bss): Align absolute value of dot.
  363. * ldexp.c (is_align_conditional): Handle binary ALIGN.
  364. (exp_fold_tree_1): Move code setting SEC_KEEP for assignments to
  365. dot inside output sections. Handle absolute expressions.
  366. 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
  367. * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Make
  368. --compress-debug-sections=zlib the same as
  369. --compress-debug-sections=zlib-gabi.
  370. * ld.texinfo: Change --compress-debug-sections=zlib to zlib-gabi.
  371. 2015-07-14 Nick Clifton <nickc@redhat.com>
  372. * ld.texinfo (Options): Add missing period after @xref.
  373. 2015-07-10 Alan Modra <amodra@gmail.com>
  374. * ldexp.c (align_dot_val): New function.
  375. (fold_unary <ALIGN_K, NEXT>): Use it.
  376. 2015-07-03 Kai Tietz <ktietz@redhat.com>
  377. PR ld/11539
  378. * scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
  379. .rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
  380. .eh_frame, .pdata. .xdata, and .gcc_except_table sections
  381. as KEEP.
  382. * scripttempl/pe.sc: Likewise.
  383. * ld.texinfo: Document that --gc-sections has experimental support
  384. for COFF and PE targets.
  385. * NEWS: Mention experimental support.
  386. 2015-07-03 Alan Modra <amodra@gmail.com>
  387. * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
  388. * Makefile.in: Regenerate.
  389. 2015-06-28 H.J. Lu <hongjiu.lu@intel.com>
  390. * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
  391. Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
  392. 2015-06-26 H.J. Lu <hongjiu.lu@intel.com>
  393. * emulparams/elf_iamcu.sh (COMPILE_IN): New.
  394. 2015-06-15 Nick Clifton <nickc@redhat.com>
  395. PR ld/18466
  396. * emultempl/pe.em (pe_find_data_imports): Generate an error if a
  397. symbol name is too long to handle.
  398. * emultempl/pep.em (pep_find_data_imports): Likewise.
  399. 2015-06-12 Tristan Gingold <gingold@adacore.com>
  400. * NEWS: Mention new option.
  401. * lexsup.c (parse_args): Handle --print-memory-usage.
  402. (ld_options): Add --print-memory-usage.
  403. * ldmain.c (main): Call lang_print_memory_usage.
  404. * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
  405. * ldlang.h: Add prototype of lang_print_memory_usage.
  406. * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
  407. functions.
  408. * ld.texinfo (Options): Document --print-memory-usage.
  409. * ld.h (args_type): Add print_memory_usage field.
  410. 2015-06-08 Nick Clifton <nickc@redhat.com>
  411. * po/fr.po: Updated French Translation.
  412. 2015-05-28 Catherine Moore <clm@codesourcery.com>
  413. Paul Brook <paul@codesourcery.com>
  414. * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
  415. Add Compact EH support.
  416. * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
  417. sections.
  418. 2015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
  419. * configure.ac (AC_PROG_GREP): Check for grep program.
  420. (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
  421. Enable ELF option printing for emulations containing
  422. 'TEMPLATE_NAME=elf32'.
  423. * configure: Regenerate.
  424. 2015-05-14 Nick Clifton <nickc@redhat.com>
  425. * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
  426. symbols.
  427. 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
  428. * configure.tgt: Support i[3-7]86-*-elfiamcu target.
  429. 2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
  430. * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
  431. (eelf_iamcu.c): New.
  432. * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
  433. enabled in BFD.
  434. * Makefile.in: Regenerated.
  435. * emulparams/elf_iamcu.sh: New file.
  436. 2015-05-05 Nick Clifton <nickc@redhat.com>
  437. * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
  438. * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
  439. (.data): Add .lower.data and .either.data.
  440. (.bss): Add .lower.bss and .either.bss.
  441. (.rodata): Add .lower.rodata and .either.rodata.
  442. * emultempl/msp430.em: New file. Implements a new orphan
  443. placement algorithm that divides sections between lower and upper
  444. memory regions.
  445. * Makefile.am (emsp430elf.c): Depend upon msp430.em.
  446. *emsp430X.c): Likewise.
  447. * Makefine.in: Regenerate.
  448. 2015-04-28 Andreas Schwab <schwab@linux-m68k.org>
  449. PR ld/18344
  450. * ldlex.l (INPUTLIST): Increment lineno on newline.
  451. 2015-04-24 Alan Modra <amodra@gmail.com>
  452. * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
  453. Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
  454. 2015-04-24 DJ Delorie <dj@redhat.com>
  455. * Makefile.am (msp430): Rename primary emulation to msp430elf.
  456. (emsp430.c): Rename to emsp430elf.c, update dependencies
  457. (emsp430X.c): Update dependencies.
  458. * Makefile.in: Likewise.
  459. * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
  460. * emulparams/msp430.sh: Rename to msp430elf.sh.
  461. * emulparams/msp430X.sh: Update.
  462. 2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
  463. PR binutils/18209
  464. * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
  465. 2015-04-23 Alan Modra <amodra@gmail.com>
  466. * emulparams/elf64ppc.sh (GOT): Align.
  467. 2015-04-22 Alan Modra <amodra@gmail.com>
  468. * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
  469. data_seg.relro_offset.
  470. * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
  471. (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
  472. * ldlang.c (lang_size_sections): Rewrite code adjusting relro
  473. segment base to line up last section on page boundary.
  474. 2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
  475. * NEWS: Mention
  476. --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
  477. 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
  478. * ld.texinfo: Document --compress-debug-sections=.
  479. * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
  480. COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
  481. for COMPRESS_DEBUG_GABI_ZLIB.
  482. * lexsup.c (elf_static_list_options): Add
  483. --compress-debug-sections=.
  484. * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
  485. (xtra_long): Add "compress-debug-sections".
  486. (gld${EMULATION_NAME}_handle_option): Handle
  487. OPTION_COMPRESS_DEBUG.
  488. 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
  489. PR ld/pr17709
  490. * ld.texinfo: Document "-z noextern-protected-data".
  491. * ldmain.c (main): Initialize link_info.extern_protected_data
  492. to -1.
  493. * lexsup.c (elf_shlib_list_options): Add
  494. "-z [no]extern-protected-data".
  495. * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
  496. * emulparams/elf_i386.sh: Likewise.
  497. * emulparams/elf_i386_be.sh: Likewise.
  498. * emulparams/elf_i386_chaos.sh: Likewise.
  499. * emulparams/elf_i386_ldso.sh: Likewise.
  500. * emulparams/elf_i386_vxworks.sh: Likewise.
  501. * emulparams/elf_k1om.sh: Likewise.
  502. * emulparams/elf_l1om.sh: Likewise.
  503. * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
  504. (PARSE_AND_LIST_OPTIONS): Renamed to ...
  505. (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
  506. (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
  507. (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
  508. (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
  509. (PARSE_AND_LIST_ARGS_CASE_Z): Append
  510. $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
  511. * emulparams/extern_protected_data.sh: New file.
  512. 2015-04-11 H.J. Lu <hongjiu.lu@intel.com>
  513. * plugin.c (plugin_load_plugins): Removed an extra ';'.
  514. 2015-04-10 Nick Clifton <nickc@redhat.com>
  515. PR binutils/18198
  516. * ld.texinfo (--be8): Add a note about the interaction of this
  517. option with the assembler's -EB option.
  518. 2015-04-10 Alan Modra <amodra@gmail.com>
  519. * configure.ac: Set elf_list_options etc. in proper case.
  520. * configure: Regenerate.
  521. 2015-04-10 Alan Modra <amodra@gmail.com>
  522. PR ld/18223
  523. * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
  524. 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
  525. * emulparams/elf_x86_64.sh (BNDPLT): Removed.
  526. (PARSE_AND_LIST_OPTIONS): New.
  527. (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
  528. * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
  529. BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
  530. (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
  531. 2015-04-09 Nick Clifton <nickc@redhat.com>
  532. * po/fr.po: Updated French translation.
  533. 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
  534. * configure.ac (elf_list_options): Set to TRUE for
  535. --enable-targets=all.
  536. (elf_shlib_list_options): Likewise.
  537. (elf_plt_unwind_list_options): Likewise.
  538. * configure: Regenerated.
  539. 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
  540. * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
  541. 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
  542. * Makefile.am (ELF_CLFAGS): New.
  543. (AM_CFLAGS): Add $(ELF_CLFAGS).
  544. * configure.ac (elf_list_options): New. AC_SUBST.
  545. (elf_shlib_list_options): Likewise.
  546. (elf_plt_unwind_list_options): Likewise.
  547. * lexsup.c (elf_shlib_list_options): New.
  548. (elf_static_list_options): Likewise.
  549. (elf_plt_unwind_list_options): Likewise.
  550. (ld_list_options): Likewise.
  551. (help): Call ld_list_options.
  552. * Makefile.in: Regenerated.
  553. * configure: Likewise.
  554. * emulparams/plt_unwind.sh (PLT_UNWIND): New.
  555. (PARSE_AND_LIST_OPTIONS): Removed.
  556. * emultempl/elf32.em (gld_list_options): New.
  557. (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
  558. PARSE_AND_LIST_OPTIONS is defined.
  559. (ld_${EMULATION_NAME}_emulation): Replace
  560. gld${EMULATION_NAME}_list_options with ${gld_list_options.
  561. 2015-04-07 Alan Modra <amodra@gmail.com>
  562. PR ld/18176
  563. * ldlang.c (lang_size_sections): Cast shift expression.
  564. 2015-04-07 Alan Modra <amodra@gmail.com>
  565. * emultempl/ppc32elf.em: Handle --no-pic-fixup.
  566. (params): Init new field.
  567. (ppc_before_allocation): Enable relaxation for pic_fixup.
  568. 2015-04-07 Nick Clifton <nickc@redhat.com>
  569. * ld.h (struct ld_config_type): Add new field: warn_orphan.
  570. * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
  571. OPTION_NO_WARN_ORPHAN.
  572. * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
  573. (parse_args): Handle the new options.
  574. * ldemul.c (ldemul_place_orphan): If requested, generate a warning
  575. message when an orphan section is placed in the output file.
  576. * ld.texinfo: Document the new option.
  577. * NEWS: Mention the new feature.
  578. 2015-04-02 Andrew Turner <andrew@freebsd.org>
  579. * Makefile.am: Add FreeBSD aarch64 files.
  580. * Makefile.in: Regenerate.
  581. * configure.tgt: Add aarch64-*-freebsd* target triple.
  582. * emulparams/aarch64fbsd.sh: New file.
  583. * emulparams/aarch64fbsdb.sh: New file.
  584. 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
  585. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
  586. around a GCC uninitialized warning bug fixed in GCC 4.6.
  587. 2015-04-01 Tejas Belagod <tejas.belagod@arm.com>
  588. * emultempl/aarch64elf.em
  589. (aarch64_elf_create_output_section_statements): Add parameter in
  590. bfd_elf${ELFSIZE}_aarch64_set_options call.
  591. (OPTION_FIX_ERRATUM_843419): Define.
  592. (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
  593. (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
  594. 2015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
  595. * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
  596. relocating operation.
  597. 2015-04-01 Alan Modra <amodra@gmail.com>
  598. PR ld/18176
  599. * ldlang.c (lang_size_sections): When alignment of sections
  600. results in relro base adjustment being too large, don't go lower
  601. than the initial value.
  602. * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
  603. * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
  604. alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
  605. 2015-04-01 Alan Modra <amodra@gmail.com>
  606. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
  607. init ehdr_start_save.
  608. 2015-04-01 Alan Modra <amodra@gmail.com>
  609. * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
  610. ldemul-list.h.
  611. (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
  612. eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
  613. eelf32ppcsim.c): Rearrange deps for consistency.
  614. * Makefile.in: Regenerate.
  615. 2015-04-01 Ed Schouten <ed@nuxi.nl>
  616. * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
  617. the ehdr_start_save variable.
  618. 2015-03-31 Ed Schouten <ed@nuxi.nl>
  619. * Makefile.am (ALL_64_EMULATION_SOURCES): Add
  620. eelf_x86_64_cloudabi.c.
  621. (eelf_x86_64_cloudabi.c): New.
  622. * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
  623. x86_64-*-cloudabi*.
  624. * Makefile.in: Regenerated.
  625. * emulparams/elf_x86_64_cloudabi.sh: New file.
  626. 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
  627. * configure.ac (AM_ZLIB): Removed.
  628. * Makefile.in: Regenerated.
  629. * config.in: Likewise.
  630. * configure: Likewise.
  631. 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
  632. * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
  633. alignment to 2.
  634. 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
  635. * emultempl/aarch64elf.em
  636. (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
  637. 2015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
  638. * ldmain.c (main): Use %F instead of %X for einfo.
  639. 2015-03-02 Alan Modra <amodra@gmail.com>
  640. * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
  641. 2015-02-27 Nick Clifton <nickc@redhat.com>
  642. PR ld/17900
  643. * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
  644. sense of the following memory region attribute characters.
  645. 2015-02-27 Alan Modra <amodra@gmail.com>
  646. * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
  647. (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
  648. eh8300sxelf_linux.c): Do not invoke genscripts here.
  649. * Makefile.in: Regenerate.
  650. 2015-02-24 Nick Clifton <nickc@redhat.com>
  651. * Makefile.am (ev850.c): Add dependency upon
  652. $(srcdir)/emultempl/v850elf.em.
  653. (ev850_rh850.c): Likewise.
  654. * Makefile.in: Regenerate.
  655. * emultempl/v850elf.em: New file.
  656. * emulparams/v850.sh (EXTRA_EM_FILE): Define.
  657. * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
  658. * scripttempl/v850.sc: Add .note.renesas section.
  659. * scripttempl/v850_rh850.sc: Likewise.
  660. 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
  661. * scripttempl/avr.sc: Add new user_signatures region. Define and
  662. use symbols for all region lengths.
  663. * scripttempl/avrtiny.sc: Define and use symbols for all region
  664. lengths.
  665. 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
  666. * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
  667. * Makefile.in: Regenerate.
  668. * configure.tgt: Add h8300-*-linux
  669. * emulparams/h8300elf_linux.sh: Add new emulation.
  670. * emulparams/h8300helf_linux.sh: Likewise.
  671. * emulparams/h8300self_linux.sh: Likewise.
  672. * emulparams/h8300sxelf_linux.sh: Likewise.
  673. 2015-02-23 Nick Clifton <nickc@redhat.com>
  674. * lexsup.c (parse_args): Produce a more reasonable error message
  675. when -ixxx or -rxxx is the last option on the linker command line.
  676. 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
  677. PR ld/17973
  678. * testplug2.c (allsymbolsread_silent): New.
  679. (set_register_hook): Handle allsymbolsreadsilent.
  680. (onall_symbols_read): Skip a message if allsymbolsread_silent is
  681. TRUE.
  682. 2015-02-14 Alan Modra <amodra@gmail.com>
  683. PR ld/17973
  684. * ldlang.h (struct lang_input_statement_flags): Add lto_output.
  685. * ldlang.c (lang_process): Don't set loading_lto_outputs.
  686. * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
  687. to bfd.
  688. * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
  689. 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
  690. * NEWS: Mention support for LLVM plugin.
  691. 2015-02-13 Alan Modra <amodra@gmail.com>
  692. * ld.texinfo (Options <--defsym>): Correct cross reference.
  693. 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
  694. * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
  695. option compatibility.
  696. 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
  697. * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
  698. "error:" for LDPL_FATAL and LDPL_ERROR.
  699. * testplug2.c (parse_option): Handle fatal, error and warning.
  700. 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
  701. * testplug2.c (dump_tv_tag): Removed.
  702. (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
  703. closed.
  704. * testplug3.c (dump_tv_tag): Removed.
  705. (onclaim_file): Fix typo.
  706. 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
  707. PR ld/17878
  708. * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
  709. libldtestplug3.la.
  710. (libldtestplug2_la_SOURCES): New.
  711. (libldtestplug2_la_CFLAGS): Likewise.
  712. (libldtestplug2_la_LDFLAGS): Likewise.
  713. (libldtestplug3_la_SOURCES): New.
  714. (libldtestplug3_la_CFLAGS): Likewise.
  715. (libldtestplug3_la_LDFLAGS): Likewise.
  716. * Makefile.in: Regenerated.
  717. * testplug2.c: New file.
  718. * testplug3.c: Likewise.
  719. 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
  720. PR ld/17878
  721. * plugin.c: Include ../bfd/plugin.h.
  722. (plugin_get_ir_dummy_bfd): Call bfd_create with
  723. link_info.output_bfd instead of srctemplate. Copy BFD info
  724. from srctemplate only if it doesn't use BFD plugin target
  725. vector.
  726. (plugin_load_plugins): Call register_ld_plugin_object_p with
  727. (plugin_object_p)
  728. (plugin_maybe_claim): Renamed to ...
  729. (plugin_object_p): This. Return dummy BFD target vector if
  730. input is calimed by plugin library, otherwise return NULL.
  731. Update plugin_format and plugin_dummy_bfd.
  732. (plugin_maybe_claim): New. Use plugin_object_p.
  733. 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
  734. * plugin.c (plugin_maybe_claim): Initialize use_mmap.
  735. 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
  736. * plugin.c (plugin_input_file_t): Add use_mmap.
  737. (plugin_pagesize): New.
  738. (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
  739. (plugin_load_plugins): Initialize plugin_pagesize.
  740. (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
  741. file.
  742. 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
  743. * plugin.c (get_view): Align offset passed to mmap.
  744. 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
  745. * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
  746. if plugin isn't active or there is no thing more to claim.
  747. 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
  748. * plugin.c (plugin_maybe_claim): Check format against bfd_object
  749. directly.
  750. 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
  751. * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
  752. ibfd.
  753. 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
  754. * plugin.c: Include "libbfd.h".
  755. (plugin_strdup): New.
  756. (plugin_maybe_claim): Remove the argument of pointer to struct
  757. ld_plugin_input_file. Open and handle input entry.
  758. * plugin.h (plugin_maybe_claim): Updated.
  759. * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
  760. without passing a pointer to struct ld_plugin_input_file.
  761. * ldmain.c: Don't include "libbfd.h".
  762. (add_archive_element): Call plugin_maybe_claim directly without
  763. passing a pointer to struct ld_plugin_input_file.
  764. 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
  765. * ld.texinfo: Document -z text, -z notext and -z textoff.
  766. * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
  767. -z text, -z notext and -z textoff.
  768. 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
  769. * configure.ac: Add AC_FUNC_MMAP.
  770. * config.in: Regenerated.
  771. * configure: Likewise.
  772. * plugin.c: Include <sys/mman.h>.
  773. (MAP_FAILED): New. Defined if not defined.
  774. (PROT_READ): Likewise.
  775. (MAP_PRIVATE): Likewise.
  776. (view_buffer_t): New.
  777. (plugin_input_file_t): Add view_buffer.
  778. (get_view): Try mmap and cache the view buffer.
  779. (plugin_maybe_claim): Initialize view_buffer.
  780. 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
  781. * plugin.c (release_input_file): Set fd to -1 after closing it.
  782. (plugin_maybe_claim): Close fd only if fd != -1.
  783. 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
  784. PR ld/17878
  785. * plugin.c: Include <errno.h>.
  786. (errno): New. Declare if needed.
  787. (plugin_input_file_t): New.
  788. (get_input_file): Implemented.
  789. (get_view): Likewise.
  790. (release_input_file): Likewise.
  791. (add_symbols): Updated.
  792. (get_symbols): Likewise.
  793. (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
  794. only for a bfd_object input.
  795. 2015-02-02 Alan Modra <amodra@gmail.com>
  796. * emultempl/ppc64elf.em (toc_section_name): New var.
  797. (ppc_after_open): Set it.
  798. (ppc_before_allocation): Use it.
  799. (gld${EMULATION_NAME}_after_allocation): Here too.
  800. 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
  801. * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
  802. with link_info.lto_plugin_active.
  803. * ldlang.c (lang_process): Likewise.
  804. * ldmain.c (add_archive_element): Likewise.
  805. * plugin.c (plugin_active_plugins_p): Removed.
  806. * plugin.h (plugin_active_plugins_p): Likewise.
  807. 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
  808. * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
  809. ...
  810. * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
  811. 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
  812. PR ld/17878
  813. * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
  814. (get_view): New function.
  815. (set_tv_header): Handle LDPT_GET_VIEW.
  816. * testplug.c (tag_names): Add LDPT_GET_VIEW.
  817. (tv_get_view): New.
  818. (dump_tv_tag): Handle LDPT_GET_VIEW.
  819. (parse_tv_tag): Likewise.
  820. 2015-01-28 Alan Modra <amodra@gmail.com>
  821. * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
  822. * emultempl/ppc64elf.em (params): Init new field.
  823. (ppc_after_open): New function.
  824. (LDEMUL_AFTER_OPEN): Define.
  825. * ldlang.c (lang_final): Whitespace fix.
  826. 2015-01-28 James Bowman <james.bowman@ftdichip.com>
  827. * Makefile.am: Add FT32 files.
  828. * configure.tgt: Handle FT32 target.
  829. * emulparams/elf32ft32.sh: New file.
  830. * scripttempl/ft32.sc: New file.
  831. * Makefile.in: Regenerate.
  832. 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
  833. PR 4643
  834. * ldexp.c (fold_name): Fold LENGTH only after
  835. lang_first_phase_enum.
  836. * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
  837. rightaway.
  838. * ldlang.h (struct memory_region_struct): Add origin_exp and
  839. length_exp fields.
  840. * ldlang.c (lang_do_memory_regions): New.
  841. (lang_memory_region_lookup): Initialize origin_exp and
  842. length_exp fields.
  843. (lang_process): Call lang_do_memory_regions.
  844. 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
  845. * ldlang.c (print_assignment): Only evaluate the expression for a
  846. PROVIDE'd assignment when the destination is being defined.
  847. Display a special message for PROVIDE'd symbols that are not being
  848. provided.
  849. 2015-01-20 Alan Modra <amodra@gmail.com>
  850. * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
  851. (OTHER_BSS_SYMBOLS): ..this.
  852. (OTHER_PLT_RELOC_SECTIONS): Don't define.
  853. (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
  854. (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
  855. (OTHER_RELRO_SECTIONS_2): ..here.
  856. * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
  857. 2015-01-20 Alan Modra <amodra@gmail.com>
  858. * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
  859. (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
  860. (OTHER_RELRO_SECTIONS_2): ..here.
  861. (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
  862. PLT_BEFORE_GOT): Define.
  863. * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
  864. PLT_BEFORE_GOT combination.
  865. (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
  866. 2015-01-20 Alan Modra <amodra@gmail.com>
  867. * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
  868. (OTHER_RELRO_SECTIONS_2): ..here, new define.
  869. * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
  870. 2015-01-19 Alan Modra <amodra@gmail.com>
  871. PR ld/17615
  872. * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
  873. 2015-01-14 Jiong Wang <jiong.wang@arm.com>
  874. * ld-arm/elf32-reject.s: New testcase.
  875. * ld-arm/elf32-reject.d: Likewise.
  876. * ld-arm/elf32-reject-pie.s: Likewise.
  877. * ld-arm/elf32-reject-pie.d: Likewise.
  878. * ld-arm/arm-elf.exp: Run new testcases.
  879. * ld-arm/ifunc-7.s: Delete f2/f4 test items.
  880. * ld-arm/ifunc-7.rd: Likewise.
  881. * ld-arm/ifunc-7.gd: Likewise.
  882. * ld-arm/ifunc-7.dd: Likewise.
  883. * ld-arm/ifunc-8.s: Likewise.
  884. * ld-arm/ifunc-8.rd: Likewise.
  885. * ld-arm/ifunc-8.gd: Likewise.
  886. * ld-arm/ifunc-8.dd: Likewise.
  887. 2015-01-01 Alan Modra <amodra@gmail.com>
  888. * ldver.c (ldversion): Just print current year.
  889. 2015-01-01 Alan Modra <amodra@gmail.com>
  890. Update year range in copyright notice of all files.
  891. For older changes see ChangeLog-2014
  892. Copyright (C) 2015 Free Software Foundation, Inc.
  893. Copying and distribution of this file, with or without modification,
  894. are permitted in any medium without royalty provided the copyright
  895. notice and this notice are preserved.
  896. Local Variables:
  897. mode: change-log
  898. left-margin: 8
  899. fill-column: 74
  900. version-control: never
  901. End: