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