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