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