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