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