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