* configure.in: Apply 2012-09-10 change to config.in here.
[binutils-gdb.git] / ld / ChangeLog
1 2012-11-05 Alan Modra <amodra@gmail.com>
2
3 * configure.in: Apply 2012-09-10 change to config.in here.
4
5 2012-11-01 Nathan Sidwell <nathan@codesourcery.com>
6
7 * emultempl/elf32.em: Print stacksize help.
8
9 2012-11-01 Alan Modra <amodra@gmail.com>
10
11 * ldlang.c (insert_pad): Correct output section size calculation.
12 (lang_size_sections_1): Likewise for lang_data_statement and
13 lang_reloc_statement.
14
15 2012-10-29 Alan Modra <amodra@gmail.com>
16
17 * configure.tgt (powerpcle-pe,winnt,cygwin): Add deffilep.o
18 and pe-dll.o.
19
20 2012-10-24 H.J. Lu <hongjiu.lu@intel.com>
21
22 * ld.h (command_line): Remove
23 disable_target_specific_optimizations.
24 (RELAXATION_DISABLED_BY_DEFAULT): Removed.
25 (RELAXATION_DISABLED_BY_USER): Likewise.
26 (RELAXATION_ENABLED): Likewise.
27 (DISABLE_RELAXATION): Likewise.
28 (ENABLE_RELAXATION): Likewise.
29
30 * ldmain.c (main): Updated.
31
32 * ldmain.h (RELAXATION_DISABLED_BY_DEFAULT): New macro.
33 (RELAXATION_DISABLED_BY_USER): Likewise.
34 (RELAXATION_ENABLED): Likewise.
35 (DISABLE_RELAXATION): Likewise.
36 (ENABLE_RELAXATION): Likewise.
37
38 2012-10-23 Nathan Sidwell <nathan@codesourcery.com>
39
40 * ld.texinfo (stack-size): New option.
41 * emultempl/elf32.em: Add stack-size option.
42
43 2012-10-22 Jan Beich <jbeich@tormail.org>
44 Alan Modra <amodra@gmail.com>
45
46 PR ld/14426
47 * ldlex.h (option_values): Add OPTION_IGNORE_UNRESOLVED_SYMBOL.
48 * lexsup.c (parse_args): Likewise.
49 (ld_options): Describe --ignore-unresolved-symbol.
50 * ldmain.h (add_ignoresym): Declare.
51 * ldmain.c (add_ignoresym): New function, extracted from..
52 (undefined_symbol): ..here. Return if the symbol is in ignore_hash.
53 (constructor_callback): Don't use global link_info here.
54 (reloc_overflow): Likewise.
55
56 2012-10-22 Alan Modra <amodra@gmail.com>
57
58 * plugin.c (plugin_load_plugins): Warning fix.
59
60 2012-10-18 Kai Tietz <ktietz@redhat.com>
61
62 PR binutils/14067
63 * NEWS: Menition new feature.
64 * scripttempl/pep.sc: Add zdebug sections.
65 * scripttempl/pe.sc: L
66
67 2012-09-19 Steve Ellcey <sellcey@mips.com>
68
69 * configure.tgt: Add mips*-mti-elf* target.
70
71 2012-09-17 Alan Modra <amodra@gmail.com>
72
73 * ld.texinfo (Expression Section): Correct description of
74 conversions for a binary operation involving an absolute symbol
75 and a number.
76
77 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
78
79 * configure: Regenerate.
80
81 2012-09-13 Anthony Green <green@moxielogic.com>
82
83 * emulparams/elf32moxie.sh (BIG_OUTPUT_FORMAT,
84 LITTLE_OUTPUT_FORMAT): Define.
85 (OUTPUT_FORMAT): Change to elf32-bigmoxie.
86 (EMBEDDED): Define.
87
88 2012-09-12 DJ Delorie <dj@redhat.com>
89
90 * emulparams/elf32rx.sh (OTHER_READONLY_SECTIONS): Add W_* sections.
91
92 2012-09-10 Matthias Klose <doko@ubuntu.com>
93
94 * config.in: Disable sanity check for kfreebsd.
95
96 2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
97
98 * configure: Regenerated.
99
100 2012-09-10 Iain Sandoe <iain@codesourcery.com>
101 Alan Modra <amodra@gmail.com>
102
103 * configure.tgt (powerpc-*-elf, et al): Define targ_extra_libpath.
104 Correct whitespace.
105 (powerpcle-*-elf, et al): Likewise. Correct targ_extra_emuls.
106
107 2012-09-10 Iain Sandoe <iain@codesourcery.com>
108
109 * configure.tgt (powerpc-*-elf, et al): Define targ64_extra_emuls
110 and targ64_extra_libpath.
111 (powerpcle-*-elf, et al): Likewise.
112
113 2012-09-09 Hans-Peter Nilsson <hp@bitrange.com>
114
115 * emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach
116 orphan sections to .data and .bss output sections, not just .text.
117 When giving up on finding a suitable output section, attach to any
118 output section other than .MMIX.reg_contents, if it exists.
119 * scripttempl/mmo.sc: Move output debug sections to just before
120 .MMIX.reg_contents. Add .gnu.attributes. Add new . = . NOP
121 assignments and move end-of-section provide-symbols after them
122 to force the end-of-section symbols to the address after orphan
123 placement. Add SORT_NONE to .init and .fini sections.
124
125 2012-08-30 H.J. Lu <hongjiu.lu@intel.com>
126
127 PR ld/14525
128 * scripttempl/elf.sc: Also provide __executable_start for PIE.
129
130 2012-08-17 Kai Tietz <ktietz@redhat.com>
131
132 PR ld/14326
133 * scripttempl/pe.sc: Add _etext symbol.
134
135 2012-08-14 Nick Clifton <nickc@redhat.com>
136
137 * configure.in (ALL_LINGUGAS): Add uk.
138 * configure: Regenerate.
139 * po/uk.po: New Ukranian translation.
140
141 2012-08-13 Ian Bolton <ian.bolton@arm.com>
142 Laurent Desnogues <laurent.desnogues@arm.com>
143 Jim MacArthur <jim.macarthur@arm.com>
144 Marcus Shawcroft <marcus.shawcroft@arm.com>
145 Nigel Stephens <nigel.stephens@arm.com>
146 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
147 Richard Earnshaw <rearnsha@arm.com>
148 Sofiane Naci <sofiane.naci@arm.com>
149 Tejas Belagod <tejas.belagod@arm.com>
150 Yufeng Zhang <yufeng.zhang@arm.com>
151
152 * Makefile.am: Add AArch64.
153 * Makefile.in: Regenerate.
154 * configure.tgt: Add AArch64.
155 * emulparams/aarch64elf.sh: New file.
156 * emulparams/aarch64elfb.sh: New file.
157 * emulparams/aarch64linux.sh: New file.
158 * emulparams/aarch64linuxb.sh: New file.
159 * emultempl/aarch64elf.em: New file.
160 * NEWS: Mention the new feature.
161
162 2012-08-09 Nick Clifton <nickc@redhat.com>
163
164 * po/vi.po: Updated Vietnamese translation.
165
166 2012-08-07 Daniel Green <venix1@gmail.com>
167
168 * scripttempl/pe.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
169 * scripttempl/pep.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
170
171 2012-08-07 Nick Clifton <nickc@redhat.com>
172
173 * po/ja.po: Updated Japanese translation.
174
175 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
176
177 * emulparams/elf32bmip.sh: Make _gp hidden.
178 * emulparams/elf32bmipn32-defs.sh: Likewise.
179 * emulparams/elf32mipswindiss.sh: Likewise.
180 * scripttempl/mips.sc: Likewise.
181
182 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
183
184 * ldexp.h (etree_union): Add defsym member to the assign member
185 structure.
186 (exp_assign): Add hidden argument to prototype.
187 * ldexp.c (exp_fold_tree_1): Use the defsym member to handle
188 --defsym symbols.
189 (exp_assop): Add defsym argument, initialize the defsym member
190 of the assign structure.
191 (exp_assign): Handle hidden symbols.
192 (exp_defsym): Update to use the defsym argument to exp_assop.
193 (exp_provide): Update to handle the defsym argument to exp_assop.
194 * ldlex.l (HIDDEN): New token.
195 * ldgram.y (HIDDEN): Likewise.
196 (assignment, section): Update calls to exp_assign.
197 * ldctor.c (ldctor_build_sets): Likewise.
198 * mri.c (mri_format): Likewise.
199 * ldlang.c (lang_insert_orphan, lang_leave_overlay): Likewise.
200 (open_input_bfds): Remove --defsym symbols special case.
201 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Update
202 call to exp_assign.
203 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
204 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
205 * emultempl/spuelf.em (spu_place_special_section): Likewise.
206 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets):
207 Likewise.
208 * ld.texinfo (Assigning Values to Symbols): Add HIDDEN.
209 (HIDDEN): New subsection.
210
211 2012-07-31 H.J. Lu <hongjiu.lu@intel.com>
212
213 PR ld/14156
214 * ldlang.c (wild_sort): Properly handle by_none.
215
216 * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
217 * scripttempl/elf32msp430.sc: Likewise.
218 * scripttempl/elf32msp430_3.sc: Likewise.
219 * scripttempl/elfd10v.sc: Likewise.
220 * scripttempl/elfd30v.sc: Likewise.
221 * scripttempl/elfxtensa.sc: Likewise.
222
223 2012-07-30 Nick Clifton <nickc@redhat.com>
224
225 * po/ld.pot: Updated template.
226 * po/bg.po: Updated Bulgarian translation.
227 * po/es.po: Updated Spanish translation.
228 * po/fi.po: Updated Finnish translation.
229
230 2012-07-27 Mike Frysinger <vapier@gentoo.org>
231
232 * configure.in (BFD_VERSION): Run bfd/configure --version and
233 parse the output of that.
234 * configure: Regenerate.
235
236 2012-07-27 Tristan Gingold <gingold@adacore.com>
237
238 * NEWS: Add marker for 2.23.
239
240 2012-07-24 Jan Waclawek <konfera@efton.sk>
241
242 PR ld/14058
243 * emultempl/avrelf.em (avr_elf_after_allocation): Call
244 elf32_avr_size_stubs with is_prealloc_run as TRUE.
245
246 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
247
248 * emulparams/elf_s390.sh (IREL_IN_PLT): Define.
249 * emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
250
251 2012-07-13 Nick Clifton <nickc@redhat.com>
252
253 PR ld/14357
254 * ldmain.c (trace_file_tries): Rename to 'verbose'.
255 * ldfile.c: Likewise.
256 * ldlang.c: Likewise.
257 * ldmain.h: Likewise.
258 * lexsup.c: Likewise.
259 * emultempl/elf32.em: Likewise.
260 * emultemp/spuelf.em: Likewise.
261 * pe-dll.c (pe_dll_generate_implib): Only print creation message
262 in verbose mode.
263
264 2012-07-10 H.J. Lu <hongjiu.lu@intel.com>
265
266 PR ld/14156
267 * NEWS: Mention SORT_NONE.
268
269 * ld.h (sort_type): Add by_none.
270
271 * ld.texinfo: Document SORT_NONE.
272
273 * ldgram.y: Handle SORT_NONE.
274
275 * ldlang.c (update_wild_statements): Handle by_none. Don't
276 sort .init/.fini sections.
277
278 * ldlex.l: Add SORT_NONE.
279
280 2012-07-02 H.J. Lu <hongjiu.lu@intel.com>
281
282 * ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.
283
284 2012-06-29 Nick Clifton <nickc@redhat.com>
285
286 * scripttempl/alphavms.sc: Add .debug_macro section.
287 * scripttempl/elf.sc: Likewise.
288 * scripttempl/elf64hppa.sc: Likewise.
289 * scripttempl/elf_chaos.sc: Likewise.
290 * scripttempl/elfxtensa.sc: Likewise.
291 * scripttempl/ia64vms.sc: Likewise.
292
293 * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and
294 .debug_macro sections.
295 * scripttempl/avr.sc: Likewise.
296 * scripttempl/elf32cr16.sc: Likewise.
297 * scripttempl/elf32crx.sc: Likewise.
298 * scripttempl/elf32msp430.sc: Likewise.
299 * scripttempl/elf32msp430_3.sc: Likewise.
300 * scripttempl/elf32sh-symbian.sc: Likewise.
301 * scripttempl/elfd30v.sc: Likewise.
302 * scripttempl/elfi370.sc: Likewise.
303 * scripttempl/elfm68hc11.sc: Likewise.
304 * scripttempl/elfm68hc12.sc: Likewise.
305 * scripttempl/elfxgate.sc: Likewise.
306 * scripttempl/i386beos.sc: Likewise.
307 * scripttempl/i386go32.sc: Likewise.
308 * scripttempl/ip2k.sc: Likewise.
309 * scripttempl/iq2000.sc: Likewise.
310 * scripttempl/mep.sc: Likewise.
311 * scripttempl/mmo.sc: Likewise.
312 * scripttempl/v850.sc: Likewise.
313 * scripttempl/xstormy16.sc: Likewise.
314
315 2012-06-28 H.J. Lu <hongjiu.lu@intel.com>
316
317 * ldlang.c (update_wild_statements): Remove redundant statement.
318
319 2012-06-25 Alan Modra <amodra@gmail.com>
320
321 * ldlang.c (load_symbols): Close file and set flags.loaded
322 after parsing script file.
323 (open_input_bfds): Don't segv on closed script.
324
325 2012-06-24 H.J. Lu <hongjiu.lu@intel.com>
326
327 * configure.tgt: Enable elf_k1om for x86_64-*-linux-gnux32.
328 Remove x32 in tdir_i386linux and tdir_elf_i386.
329
330 2012-06-22 Roland McGrath <mcgrathr@google.com>
331
332 * NEWS: Mention __ehdr_start.
333
334 2012-06-21 Alan Modra <amodra@gmail.com>
335
336 * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
337 absolute, and remove unnecessary alignment.
338
339 2012-06-16 Alan Modra <amodra@gmail.com>
340
341 * ldlang.h (lang_output_section_statement_type): Add after_end field.
342 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
343 (section_for_dot): Declare.
344 * ldlang.c (lang_size_sections_1): Correct comment.
345 (current_section): Move earlier.
346 (current_assign, prefer_next_section): New static vars.
347 (lang_do_assignments_1): Add found_end param. Detect _end
348 assignment to set found_end. Set os->after_end. Set above statics.
349 (lang_do_assignments): Adjust lang_do_assignments_1 call. Init
350 vars.
351 (section_for_dot): New function.
352 (lang_set_startof): Don't make an absolute symbol.
353 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
354 * ldexp.c (new_rel_from_abs): Use section_for_dot.
355 * emultempl/lnk960.em (symbol_at_beginning_of): New function.
356 (symbol_at_end_of): Likewise.
357 (lnk960_after_allocation): Use them.
358 * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
359 likewise before __bss_start.
360
361 2012-06-14 H.J. Lu <hongjiu.lu@intel.com>
362
363 * plugin.c (set_tv_header): Handle link_info.pie.
364
365 2012-06-11 Alan Modra <amodra@gmail.com>
366
367 PR ld/14215
368 * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
369 references.
370 * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
371 .got.plt.
372 * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
373 * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
374 * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
375 * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
376 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
377 * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
378 * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
379 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
380
381 2012-06-07 Georg-Johann Lay <avr@gjlay.de>
382
383 PR 13697
384 * scripttempl/avr.sc (.data): Keep it.
385
386 2012-06-02 Andreas Schwab <schwab@linux-m68k.org>
387
388 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
389 * Makefile.in: Regenerate.
390
391 2012-05-30 Alan Modra <amodra@gmail.com>
392
393 * ldlang.h (lang_output_section_statement_type): Rename
394 "section_relative_symbol" field to "update_dot".
395 * ldlang.c: Update all uses.
396 (strip_excluded_output_sections): Don't test update_dot_tree here..
397 (lang_leave_overlay): ..set update_dot here.
398
399 2012-05-26 Alan Modra <amodra@gmail.com>
400
401 * ldlex.h (enum option_values): Move from..
402 * lexsup.c: ..here.
403 * emultempl/ppc32elf.em: Include ldlex.h.
404 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
405 --traditional-format.
406 * emultempl/ppc64elf.em: Likewise.
407
408 2012-05-25 Alan Modra <amodra@gmail.com>
409
410 PR ld/13909
411 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
412 multiple .eh_frame sections attached to bfd.
413
414 2012-05-23 Cary Coutant <ccoutant@google.com>
415
416 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
417 carefully. Fix typo where .rela.data.rel.ro matches
418 .rel.data.rel.ro.
419 * scripttempl/mep.sc: Likewise.
420 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
421 * scripttempl/elf64hppa.sc: Likewise.
422 * scripttempl/elfxtensa.sc: Likewise.
423
424 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
425 Nick Clifton <nickc@redhat.com>
426
427 PR 14072
428 * configure.in: Add check that sysdep.h has been included before
429 any system header files.
430 * configure: Regenerate.
431 * config.in: Regenerate.
432 * sysdep.h: Generate an error if included before config.h.
433
434 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
435
436 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
437 as the first argument for `bfd_get_section_name'.
438
439 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
440
441 PR ld/14069
442 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
443 support.
444
445 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
446
447 * NEWS: Mention the support for S12X processors.
448
449 2012-05-14 James Lemke <jwlemke@codesourcery.com>
450
451 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
452 Pass it to callback.
453 (walk_wild_section_general): Pass section_flag_list to callback.
454 (lang_add_section): Add sflag_list parm.
455 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
456 (output_section_callback_fast): Add sflag_list parm.
457 Add new parm to lang_add_section calls.
458 (output_section_callback): Likewise.
459 (check_section_callback): Add sflag_list parm.
460 (lang_place_orphans): Add new parm to lang_add_section calls.
461 (gc_section_callback): Add sflag_list parm.
462 (find_relro_section_callback): Likewise.
463 * ldlang.h (callback_t): Add flag_info parm.
464 (lang_add_section): Add sflag_list parm.
465 * emultempl/armelf.em (elf32_arm_add_stub_section):
466 Add lang_add_section parm.
467 * emultempl/beos.em (gld*_place_orphan): Likewise.
468 * emultempl/elf32.em (gld*_place_orphan): Likewise.
469 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
470 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
471 * emultempl/mipself.em (mips_add_stub_section): Likewise.
472 * emultempl/mmo.em (mmo_place_orphan): Likewise.
473 * emultempl/pe.em (gld_*_place_orphan): Likewise.
474 * emultempl/pep.em (gld_*_place_orphan): Likewise.
475 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
476 * emultempl/spuelf.em (spu_place_special_section): Likewise.
477 * emultempl/vms.em (vms_place_orphan): Likewise.
478
479 2012-05-14 Catherine Moore <clm@codesourcery.com>
480
481 * NEWS: Mention PowerPC VLE port.
482
483 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
484
485 PR binutils/14028
486 * configure.in: Invoke ACX_HEADER_STRING.
487 * configure: Regenerate.
488 * config.in: Regenerate.
489 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
490 string.h and strings.h.
491
492 2012-05-08 Alan Modra <amodra@gmail.com>
493
494 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
495 LC and LANG environment vars.
496 * Makefile.in: Regenerate.
497
498 2012-05-07 Tristan Gingold <gingold@adacore.com>
499
500 * pe-dll.c (udef_table): Make it static.
501
502 2012-05-05 Alan Modra <amodra@gmail.com>
503
504 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
505 (generate_reloc): Use bfd_abs_section_ptr.
506
507 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
508
509 * configure.tgt: Support x86_64-*-linux-gnux32.
510
511 2012-05-03 Sean Keys <skeys@ipdatasys.com>
512
513 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
514 and XGATE (elf).
515 * Makefile.in: Rebuild.
516 * configure.tgt: Recognize XGATE.
517 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
518 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
519 * NEWS: Mention new support.
520
521 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
522
523 Make bfd asserts cause linker errors.
524 * ldmain.c (default_bfd_assert_handler): New variable.
525 (ld_bfd_assert_handler): New function.
526 (main): Call bfd_set_assert_handler.
527
528 2012-04-24 Alan Modra <amodra@gmail.com>
529
530 * ldlang.c (size_input_section): Use sec_info_type rather than
531 usrdata->flags.just_syms.
532 * ldwrite.c (build_link_order): Likewise.
533 * emultempl/hppaelf.em (build_section_lists): Likewise.
534 * emultempl/ppc64elf.em (build_toc_list): Likewise.
535 * emultempl/armelf.em (build_section_lists): Likewise.
536 (after_allocation): Update for renamed sec_info_type value.
537 * emultempl/tic6xdsbt.em: Likewise.
538
539 2012-04-12 Roland McGrath <mcgrathr@google.com>
540
541 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
542 * emulparams/armelf_nacl.sh: New file.
543 * emulparams/armelfb_nacl.sh: New file.
544 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
545 and earmelfb_nacl.c here.
546 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
547 * Makefile.in: Regenerated.
548
549 2012-04-11 Tristan Gingold <gingold@adacore.com>
550
551 * scripttempl/ia64vms.sc: New file.
552 * emultempl/vms.em (_before_parse): Support for ia64.
553 (elf64-ia64-vms): New fragment for ia64.
554 * emulparams/elf64_ia64_vms.sh: New file.
555 * configure.tgt (ia64-*-*vms*): Add.
556 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
557 (eelf64_ia64_vms.c): New rule.
558 * Makefile.in: Regenerate.
559
560 2012-04-06 Roland McGrath <mcgrathr@google.com>
561
562 * configure.in (AC_CHECK_HEADERS): Add locale.h.
563 * config.in: Regenerate.
564 * configure: Regenerate.
565
566 2012-04-05 Nick Clifton <nickc@redhat.com>
567
568 * configure.in (AC_CHECK_FUNCS): Add setlocale.
569 (AM_LC_MESSAGES): Add.
570 * aclocal.m4: Regenerate.
571 * config.in: Regenerate.
572 * configure: Regenerate.
573
574 2012-04-03 Roland McGrath <mcgrathr@google.com>
575
576 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
577 * emulparams/elf_nacl.sh: New file.
578 * emulparams/elf_i386_nacl.sh: New file.
579 * emulparams/elf32_x86_64_nacl.sh: New file.
580 * emulparams/elf_x86_64_nacl.sh: New file.
581 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
582 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
583 eelf_x86_64_nacl.c here.
584 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
585 New targets.
586 * Makefile.in: Regenerated.
587
588 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
589
590 2012-04-02 Mike Frysinger <vapier@gentoo.org>
591
592 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
593 putc call. If str and fmt are different, call fwrite on
594 the difference.
595
596 2012-03-30 Nick Clifton <nickc@redhat.com>
597
598 * po/vi.po: Updated Vietnamese translation.
599
600 2012-03-27 Roland McGrath <mcgrathr@google.com>
601
602 * configure.in: Set want64 on a 64-bit host regardless of
603 --enable-targets=all.
604 * configure: Regenerated.
605
606 2012-03-26 Tristan Gingold <gingold@adacore.com>
607
608 * lexsup.c (parse_args): Add a missing '\n'.
609
610 2012-03-25 Alan Modra <amodra@gmail.com>
611
612 * ldemul.c (before_allocation_default): Revert last change.
613 * ldlang.c (lang_add_section): Likewise.
614 (strip_excluded_output_sections): Don't strip output sections with
615 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
616
617 2012-03-23 Alan Modra <amodra@gmail.com>
618
619 * ldemul.c (before_allocation_default): When emitrelocations,
620 don't strip sections..
621 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
622
623 2012-03-14 Kai Tietz <ktietz@redhat.com>
624 Pascal Obry <pascal@obry.net>
625
626 * pe-dll.c (found_sym): New static variable.
627 (undef_count): Likewise.
628 (key_value): New structure.
629 (undef_sort_cmp): Compare routine for qsort/bsearch.
630 (pe_find_cdecl_alias_match): Add new argument.
631 (pe_undef_alias_cdecl_match): Removed.
632 (pe_undef_count): New helper routine.
633 (pe_create_undef_table): Likewise.
634 (pe_process_import_defs): Use pe_create_undef_table and
635 new pe_undef_alias_cdecl_match function.
636
637 2012-03-14 Alan Modra <amodra@gmail.com>
638
639 PR ld/13839
640 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
641 dot in mark phase.
642 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
643 discarding result, for side effects. Fix typo in error message.
644
645 2012-03-08 Tristan Gingold <gingold@adacore.com>
646
647 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
648 (exp_print_token): Constify.
649
650 2012-03-08 Alan Modra <amodra@gmail.com>
651
652 PR ld/10340
653 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
654 (ldfile_add_library_path): Don't set sysrooted flag.
655 (ldfile_open_file_search): Likewise, and don't copy them.
656 (try_open): Delete exten and code handling such. Add sysrooted
657 param and return whether path is in sysroot.
658 (ldfile_find_command_file): Delete extend param. Add sysrooted
659 param. Rename local var. Update try_open calls.
660 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
661 * ldfile.h (search_dirs_type): Remove sysrooted field.
662 * ldlang.c (new_afile): Always set sysrooted from input_flags.
663 (load_symbols): Don't set input_flags.sysrooted.
664 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
665 comment.
666 * ldlex.h (lex_push_file): Update prototype.
667 * ldlex.l (sysrooted_stack): New array.
668 (EOF): Pop input_flags.sysrooted.
669 (lex_push_file): Add sysrooted param. Save and set
670 input_flags.sysrooted.
671
672 2012-03-06 Alan Modra <amodra@gmail.com>
673
674 * ldlang.h (struct lang_input_statement_flags): New, extract from..
675 (lang_input_statement_type): ..here. New field "flags".
676 (input_flags): Declare.
677 (missing_file): Delete.
678 * ldmain.h (whole_archive): Delete.
679 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
680 * ld.h (ld_config_type <dynamic_link>): Delete.
681 * ldmain.c (whole_archive): Delete.
682 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
683 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
684 (input_flags): New variable. Replace all uses of config.dynamic_link,
685 missing_file, ldlang_sysrooted_script, whole_archive,
686 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
687 from here.
688 * ldfile.c: Likewise.
689 * ldgram.y: Likewise.
690 * ldmain.c: Likewise.
691 * ldwrite.c: Likewise.
692 * lexsup.c: Likewise.
693 * plugin.c: Likewise.
694 * emultempl/aix.em: Likewise.
695 * emultempl/armelf.em: Likewise.
696 * emultempl/elf32.em: Likewise.
697 * emultempl/hppaelf.em: Likewise.
698 * emultempl/linux.em: Likewise.
699 * emultempl/pe.em: Likewise.
700 * emultempl/pep.em: Likewise.
701 * emultempl/ppc64elf.em: Likewise.
702 * emultempl/scoreelf.em: Likewise.
703 * emultempl/spuelf.em: Likewise.
704 * emultempl/sunos.em: Likewise.
705 * emultempl/vms.em: Likewise.
706 * ldlang.c (new_afile): Use memset to init zero fields.
707 (load_symbols): Simplify save and restore of flags around command
708 file processing.
709 * ldfile.c (is_sysrooted_pathname): Tidy.
710
711 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
712
713 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
714 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
715 replacing trailing "-*" with "*".
716
717 2012-02-25 Walter Lee <walt@tilera.com>
718
719 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
720 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
721 (eelf32tilegx_be.c): Add rule to build this file.
722 (eelf64tilegx_be.c): Ditto.
723 * Makefile.in: Regenerate.
724 * configure.tgt (tilegx-*-*): Support big endian.
725 (tilegxbe-*-*): New.
726 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
727 (BIG_OUTPUT_FORMAT): Define.
728 (LITTLE_OUTPUT_FORMAT): Define.
729 * emulparams/elf32tilegx_be.sh: New.
730 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
731 (BIG_OUTPUT_FORMAT): Define.
732 (LITTLE_OUTPUT_FORMAT): Define.
733 * emulparams/elf64tilegx_be.sh: New.
734
735 2012-02-24 Kai Tietz <ktietz@redhat.com>
736
737 PR binutils/13710
738 * deffilep.y (keyword_as_name): Disable LIBRARY
739 keyword.
740
741 2012-02-22 Alan Modra <amodra@gmail.com>
742
743 PR ld/13683
744 * ldlang.c (lang_process): Rerun lang_do_assignments before
745 starting garbage collection.
746 * ldexp.c (fold_name): Generate a reloc for defined symbols
747 found without an associated output section during the mark phase.
748 (exp_fold_tree_1): Continue processing an expression, even if we
749 are unable to fold it, if we are in the first two evaluation
750 phases.
751 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
752
753 2012-02-19 Kai Tietz <ktietz@redhat.com>
754
755 * deffilep.y (cmp_import_elem): Sort first by module name.
756 * pe-dll.c (process_def_file_and_drectve): Free strings
757 from removed export-element.
758 (add_bfd_to_link): Optimize loop on import-elements and lower
759 allocated memory.
760 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
761 argument.
762
763 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
764
765 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
766 temporary variable node used for NULL argument.
767
768 2012-02-18 Alan Modra <amodra@gmail.com>
769
770 PR ld/13343
771 * ld.h (parsing_defsym): Delete.
772 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
773 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
774 exp_get_abs_int): Add tree arg for %S in error messages. Don't
775 fudge lineno.
776 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
777 type.filename from sub-tree.
778 (exp_trinop): Likewise, and use "cond" rather than "lhs".
779 * ldexp.h (node_type): Add filename field to struct.
780 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
781 * ldfile.h (ldfile_input_filename): Delete.
782 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
783 %S in error messages.
784 * ldemul.c (syslib_default, hll_default): Likewise.
785 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
786 lang_get_regions, lang_new_phdr): Likewise.
787 (lang_size_sections_1): Pass addr_tree for %S.
788 * ldlex.h (lex_redirect): Update prototype.
789 (ldlex_filename): Declare.
790 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
791 (lex_redirect): Add fake_filename and count params. Push
792 fake_filename to file_name_stack and init lineno from count.
793 (ldlex_filename): New function.
794 (lex_warn_invalid): Use above.
795 * ldmain.c (main): Update lex_redirect call.
796 * ldmisc.c (vfinfo <%S>): Take file name and line number from
797 etree_type arg, or use current if arg is NULL.
798 * lexsup.c (parsing_defsym): Delete.
799 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
800
801 2012-02-13 Kai Tietz <ktietz@redhat.com>
802
803 * deffilep.y (find_export_in_list): Set is_indent for
804 first or last element, if identical.
805 (find_import_in_list): Likewise.
806
807 2012-02-11 Kai Tietz <ktietz@redhat.com>
808
809 * deffilep.y (%union): New type id_const.
810 (opt_name2): New rule.
811 (keyword_as_name): New rule.
812 (dot_name): Replaced by opt_name2 rule.
813 (opt_name): Adjust rule.
814 (opt_equal_name): Likewise.
815
816 2012-02-11 Pascal Obry <pascal@obry.net>
817
818 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
819 table.
820 (process_def_file_and_drectve): Maintain sorting of exports table
821 after stripping leading @ signs.
822
823 2012-02-09 Alan Modra <amodra@gmail.com>
824
825 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
826
827 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
828
829 PR ld/13616
830 * emulparams/elf32_x86_64.sh: Remove NOP.
831 * emulparams/elf_i386.sh: Likewise.
832 * emulparams/elf_i386_be.sh: Likewise.
833 * emulparams/elf_i386_ldso.sh: Likewise.
834 * emulparams/elf_i386_vxworks.sh: Likewise.
835 * emulparams/elf_k1om.sh: Likewise.
836 * emulparams/elf_l1om.sh: Likewise.
837 * emulparams/elf_x86_64.sh: Likewise.
838
839 * ldlang.c (zero_fill): Initialized to 0.
840
841 * ldwrite.c (build_link_order): Set data size to linker odrder
842 size when they are the same.
843
844 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
845
846 2012-01-17 Alan Modra <amodra@gmail.com>
847
848 * ldver.c (ldversion): Update copyright message year.
849
850 2012-01-15 Alan Modra <amodra@gmail.com>
851
852 PR ld/12758
853 * ldlang.c (lang_process): Don't reopen all files, just those
854 newly added by plugin.
855
856 2012-01-11 Alan Modra <amodra@gmail.com>
857
858 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
859 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
860 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
861 --{no-,}plt-align.
862 (plt_thread_safe, plt_stub_align): New vars.
863 (gld${EMULATION_NAME}_after_allocation): Pass them to
864 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
865 * ld.texinfo: Document new command line options, and an old
866 undocumented option.
867
868 2012-01-09 Roland McGrath <mcgrathr@google.com>
869
870 * configure.in: Use AM_ZLIB.
871 * configure: Regenerated.
872
873 For older changes see ChangeLog-2011
874 \f
875 Local Variables:
876 mode: change-log
877 left-margin: 8
878 fill-column: 74
879 version-control: never
880 End: