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