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