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