* Makefile.am (ALL_64_EMULATION_SOURCES): Add powerpc64-*-freebsd
[external/binutils.git] / ld / ChangeLog
1 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
2
3         * Makefile.am (ALL_64_EMULATION_SOURCES): Add powerpc64-*-freebsd
4         source.
5         (eelf64ppc_fbsd.c): Add rules to build this file.
6         * Makefile.in: Regenerate.
7         * configure.tgt: Add target definition for powerpc64-*-freebsd*.
8         Adjust powerpc-*-freebsd*.
9         * emultempl/ppc64elf.em: Add a mechanism to override the default
10         value of 0 for plt_static_chain.
11         * emulparams/elf32ppc_fbsd.sh (OUTPUT_FORMAT): Override the default.
12         * emulparams/elf64ppc_fbsd.sh (OUTPUT_FORMAT): Likewise.
13         (DEFAULT_PLT_STATIC_CHAIN): Define to 1.
14
15 2011-11-15  Andreas Schwab  <schwab@linux-m68k.org>
16
17         * ldlang.c (insert_pad): Change alignment_needed argument to
18         bfd_size_type.
19         (size_input_section): Change alignment_needed varible to
20         bfd_size_type.
21         * ldlang.h (lang_padding_statement_type): Change size field to
22         bfd_size_type.
23
24 2011-11-03  Tristan Gingold  <gingold@adacore.com>
25
26         * scripttempl/aix.sc: Consider header size for .text and .data
27         alignment.
28
29 2011-11-02  Tristan Gingold  <gingold@adacore.com>
30
31         * emultempl/aix.em (read_file_list): New function.
32         (_handle_option): Handle '-f'.
33         * NEWS: Mention this feature.
34
35 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36
37         * configure.tgt (x86_64-*-solaris2*): Use $targ_extra_emuls for
38         targ_extra_libpath.
39
40 2011-11-01  DJ Delorie  <dj@redhat.com>
41
42         * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32rl78.c.
43         (+eelf32rl78.c): New rule.
44         * Makefile.in: Regenerate.
45         * configure.tgt: Add rl78-*-* case.
46         * emulparams/elf32rl78.sh: New file.
47         * NEWS: Mention addition of Renesas RL78 support.
48
49 2011-10-28  Walter Lee  <walt@tilera.com>
50
51         * NEWS: Fix TILEPro capitalization.
52
53 2011-10-25  Joern Rennecke  <joern.rennecke@embecosm.com>
54
55         * NEWS: Mention addition of Adapteva Epiphany support.
56         * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32epiphany.c .
57         (eelf32epiphany.c): New rule.
58         * configure.tgt: Handle epiphany-*-elf.
59         * emulparams/elf32epiphany.sh: New file.
60         * Makefile.in: Regenerate.
61         * po/ld.pot: Regenerate.
62
63 2011-10-24  Nick Clifton  <nickc@redhat.com>
64
65         * po/ja.po: Updated Japanese translation.
66
67 2011-10-20  Alan Modra  <amodra@gmail.com>
68
69         PR ld/13287
70         * plugin.c (plugin_should_reload): New function.
71         * plugin.h (plugin_should_reload): Declare.
72         * ldlang.c (open_input_bfds): Use above function.
73
74 2011-10-19  Alan Modra  <amodra@gmail.com>
75
76         PR ld/13254
77         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
78         -z text, -z notext, -z textoff options for all targets having
79         shared lib support.
80
81 2011-10-15  Alan Modra  <amodra@gmail.com>
82
83         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Remove toc check.
84
85 2011-10-13  Dave Korn  <dave.korn.cygwin@gmail.com>
86
87         * pe-dll.c (generate_reloc): Don't emit a base reloc for an
88         underlying BFD reloc that will be discarded in eh_frame data.
89
90 2011-10-10  Nick Clifton  <nickc@redhat.com>
91
92         * po/bg.po: Updated Bulgarian translation.
93         * po/es.po: Updated Spanish translation.
94         * po/fi.po: Updated Finnish translation.
95         * po/fr.po: Updated French translation.
96
97 2011-10-10  Alan Modra  <amodra@gmail.com>
98
99         * ldmain.c (main): Move code twiddling various config and link_info
100         bits to..
101         * lexsup.c (parse_args): ..here.  Move plugin_load_plugins call
102         into main.
103         * plugin.c (set_tv_header): Test link_info.executable, not
104         link_info.shared.
105         (is_visible_from_outside): Likewise.  Delete redundant
106         is_ir_dummy_bfd check and "section" parameter.
107
108 2011-10-10  Alan Modra  <amodra@gmail.com>
109
110         * emultempl/ppc64elf.em (ppc_add_stub_section): Align to 32 bytes.
111
112 2011-10-09  Alan Modra  <amodra@gmail.com>
113
114         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Add
115         missing colon to error message.
116         (ppc_before_allocation): Likewise.
117
118 2011-10-06  Alan Modra  <amodra@gmail.com>
119
120         PR ld/13229
121         * plugin.c (tv_header_tags): Add LDPT_GET_SYMBOLS_V2.
122         (set_tv_header): Handle it.  Adjust LDPT_GET_SYMBOLS.  Return void.
123         (get_symbols): Add def_ironly_exp param.  Return that value for
124         syms exported from shared libs.
125         (get_symbols_v1, get_symbols_v2): New wrapper functions.
126         * testplug.c: Update for above changes.
127
128 2011-09-27  Kai Tietz  <ktietz@redhat.com>
129
130         * scripttempl/pe.sc (.text): Add support for
131         .gnu.linkonce.t.* section.
132         (.debug_info): Only use .gnu.linkonce.wi.* for
133         relocating.
134         * scripttempl/pep.sc: Likewise.
135
136 2011-09-22  Tristan Gingold  <gingold@adacore.com>
137
138         * NEWS: Add marker for 2.22.
139
140 2011-09-20  Alan Modra  <amodra@gmail.com>
141
142         PR ld/13201
143         * ldlang.h (lang_input_statement_type): Add "reload" bitfield.
144         Clarify comments.
145         * ldlang.c (new_afile): Init new field.
146         (load_symbols): Don't call ldlang_add_file when reloading.
147         (open_input_bfds): Reload as-needed libs during plugin rescan.
148
149 2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>
150
151         PR ld/12975
152         * ldlang.c (lang_elf_version_info): Removed.
153         (lang_register_vers_node): Replace lang_elf_version_info with
154         link_info.version_info.
155         (lang_add_vers_depend): Likewise.
156         * pe-dll.c (process_def_file_and_drectve): Likewise.
157         * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
158
159         * ldlang.h (lang_elf_version_info): Removed.
160
161         * plugin.c  (is_visible_from_outside): Check if symbol is hidden
162         by version script.
163
164         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
165         Remove lang_elf_version_info.
166
167 2011-09-15  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
168
169         PR ld/13183
170         * ldmain.c (add_archive_element): Support thin archive member
171         for LTO.
172
173 2011-08-26  Nick Clifton  <nickc@redhat.com>
174
175         * po/es.po: Updated Spanish translation.
176
177 2011-08-26  Nick Clifton  <nickc@redhat.com>
178
179         * NEWS: Mention that --no-copy-dt-needed-entries is now the
180         default.
181
182 2011-08-22  Michael Matz  <matz@suse.de>
183
184         * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
185         * ld.texinfo (--copy-dt-needed-entries): Mention new default.
186
187 2011-08-17  Alan Modra  <amodra@gmail.com>
188
189         PR ld/12762
190         * ldlang.c (section_already_linked): Revert 2011-07-09 changes.
191         * plugin.c: Likewise.
192         (asymbol_from_plugin_symbol): Create linkonce section for syms
193         with comdat_key.
194
195 2011-08-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
196
197         * emultempl/armelf.em (fix_arm1176): New variable.
198         (arm_elf_create_output_section_statements): Pass
199         fix_arm1176 option to bfd backend.
200         (OPTION_FIX_ARM1176): New define.
201         (OPTION_NO_FIX_ARM1176): Likewise.
202         (PARSE_AND_LIST_LONGOPTS): Add new command line options.
203         (PARSE_AND_LIST_OPTIONS): Likewise.
204         (PARSE_AND_LIST_ARGS_CASES): Likewise.
205         * ld.texinfo: Document new command line options.
206
207 2011-08-09  Alan Modra  <amodra@gmail.com>
208
209         PR ld/13066
210         * plugin.c (add_symbols): Revert 2011-08-05.
211
212 2011-08-06  Kai Tietz  <ktietz@redhat.com>
213
214         * scripttempl/pep.sc: Add .debug_macro section.
215         * scripttempl/pe.sc: Likewise.
216
217 2011-08-05  Alan Modra  <amodra@gmail.com>
218
219         PR ld/12762
220         * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
221         table if already seen.
222
223 2011-08-04  H.J. Lu  <hongjiu.lu@intel.com>
224
225         * ldmain.c (main): Replace remove_output with ld_cleanup in
226         comments.
227
228 2011-07-26  Alan Modra  <amodra@gmail.com>
229
230         * emulparams/elf32ppc.sh: Source plt_unwind.sh.
231         * emulparams/elf64ppc.sh: Likewise.
232         * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
233         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
234         PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
235         existing values.
236         * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
237         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
238         PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
239         existing values.
240
241 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
242
243         * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
244         eelf_k1om_fbsd.o
245         (eelf_k1om.c): New.
246         (eelf_k1om_fbsd.c): Likewise.
247         * Makefile.in: Regenerated.
248
249         * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
250         is supported.  Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
251         (targ_extra_emuls): Likewise.
252
253         * emulparams/elf_k1om.sh: New.
254         * emulparams/elf_k1om_fbsd.sh: Likewise.
255
256 2011-07-16  Roland McGrath  <roland@hack.frob.com>
257
258         * ld.h (args_type): New field print_output_format.
259         * lexsup.c (enum option_values, ld_options, parse_args):
260         Handle --print-output-format.
261         * ldmain.c (main): Implement --print-output-format.
262         * ld.texinfo (Options): Document it.
263
264         * ldlang.c (lang_get_output_target): Don't return current_target
265         when it's NULL.
266
267 2011-07-15  Alan Modra  <amodra@gmail.com>
268
269         * Makefile.am (e*.c): Sort.
270         * Makefile.in: Regenerate.
271
272 2011-07-14  Alan Modra  <amodra@gmail.com>
273
274         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
275         gld${EMULATION_NAME}_list_options): Don't condition -z relro
276         and -z norelro on COMMONPAGESIZE being defined.
277
278 2011-07-14  Alan Modra  <amodra@gmail.com>
279
280         * emultempl/ppc64elf.em (plt_static_chain): New var.
281         (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
282         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
283         PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
284         --plt-static-chain and --no-plt-static-chain.
285
286 2011-07-14  Alan Modra  <amodra@gmail.com>
287
288         * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
289         gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
290         Provide --build-id, -z defs, -z muldefs, -z max-page-size,
291         -z common-page-size, -z execstack, -z noexecstack for all targets.
292         Add help for --exclude-libs.
293         (OPTION_LD_GENERATED_UNWIND_INFO,
294         OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
295         (gld${EMULATION_NAME}_handle_option): ..and code handling
296         --ld-generated-unwind-info and --no-ld-generated-unwind-info..
297         * emulparams/plt_unwind.sh: ..to here.  New file.  Add help.
298         * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
299         * emulparams/elf_i386.sh: Likewise.
300         * emulparams/elf_i386_chaos.sh: Likewise.
301         * emulparams/elf_i386_ldso.sh: Likewise.
302         * emulparams/elf_l1om.sh: Likewise.
303         * emulparams/elf_x86_64.sh: Likewise.
304
305 2011-07-11  Catherine Moore  <clm@codesourcery.com>
306
307         * ld.h (section_flag_list): Add field to struct wildcard_spec.
308         * ld.texinfo (INPUT_SECTION_FLAGS): Document.
309         * ldgram.y (flag_info_list, flag_info): Add to union.
310         (INPUT_SECTION_FLAGS): New token.
311         (wildcard_spec): Initialize section_flag_list to NULL for
312         each alternative.
313         (sect_flag_list, sect_flags): New rules.
314         (input_section_spec_no_keep): Add alternatives to recognize
315         sect_flags.
316         * ldlang.c (walk_wild_consider_section): Initialize
317         section_flag_info field of the section struct.
318         (lang_add_section): Check input section flags.
319         (lang_add_wild): Initialize section_flag_list field of
320         the statement struct.
321         * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
322         (lang_wild_statement_struct): Likewise.
323         * ldlex.l (INPUT_SECTION_FLAGS): New token.
324         * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
325         * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
326
327 2011-07-09  H.J. Lu  <hongjiu.lu@intel.com>
328
329         PR ld/12942
330         * ldlang.c (section_already_linked): Pass "struct already_linked *"
331         to bfd_section_already_linked.
332         (lang_process): Set link_info.loading_lto_outputs before
333         loading LTO outputs.
334         * plugin.c: Include "libbfd.h".
335         (add_symbols): Call bfd_section_already_linked with comdat_key.
336
337 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
338
339         * configure.tgt: Revert x32 change.
340
341 2011-06-20  Jakub Jelinek  <jakub@redhat.com>
342
343         PR ld/12570
344         * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
345         OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
346         (gld${EMULATION_NAME}_handle_option): Handle
347         --ld-generated-unwind-info and --no-ld-generated-unwind-info.
348         * ld.texinfo (--ld-generated-unwind-info,
349         --no-ld-generated-unwind-info): Document.
350
351 2011-06-19  H.J. Lu  <hongjiu.lu@intel.com>
352
353         * configure.tgt: Support x32.
354
355 2011-06-15  Nick Clifton  <nickc@redhat.com>
356
357         * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
358
359 2011-06-13  Walter Lee  <walt@tilera.com>
360
361         * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
362         eelf32tilepro.c.
363         (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
364         (eelf32tilegx.c): New target.
365         (eelf32tilepro.c): Likewise.
366         (eelf64tilegx.c): Likewise.
367         * Makefile.in: Regenerate.
368         * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
369         * emulparams/elf32tilegx.sh: New file.
370         * emulparams/elf64tilegx.sh: New file.
371         * emulparams/elf32tilepro.sh: New file.
372
373 2011-06-13  Alan Modra  <amodra@gmail.com>
374
375         * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
376         warning symbols here.
377         * emultempl/pe.em (pr_sym): Remove redundant test.
378         * emultempl/pep.em (pr_sym): Likewise.
379
380 2011-06-09  Nick Clifton  <nickc@redhat.com>
381
382         PR ld/12845
383         * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
384         for sections that have been removed by garbage collection.
385
386 2011-06-08  Alan Modra  <amodra@gmail.com>
387
388         * ldlang.c (lang_one_common): Handle warning symbols.
389
390 2011-06-07  Nick Clifton  <nickc@redhat.com>
391
392         * configure.tgt: Accept any V850 architecture.
393
394 2011-06-03  Nick Clifton  <nickc@redhat.com>
395
396         * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
397         Add rule to build eelf32am33lin.c
398         * Makefile.in: Regenerate.
399
400 2011-06-02  Nick Clifton  <nickc@redhat.com>
401
402         * lexsup.c: Fix spelling mistake in comment.
403         * scripttempl/epocpe.sc: Likewise.
404         * scripttempl/i386beos.sc: Likewise.
405         * scripttempl/mcorepe.sc: Likewise.
406         * scripttempl/pe.sc: Likewise.
407         * scripttempl/pep.sc: Likewise.
408         * po/ld.pot: Regenerate.
409
410 2011-05-27  Nick Clifton  <nickc@redhat.com>
411
412         * scripttempl/v850.sc (_heap_start): Provide.
413
414 2011-05-23  Alan Modra  <amodra@gmail.com>
415
416         * ldmisc.c (vfinfo): Add %H.
417         * ldmain.c (reloc_overflow): Use %H rather than %C.
418         (reloc_dangerous, unattached_reloc): Likewise.
419
420 2011-05-23  Alan Modra  <amodra@gmail.com>
421
422         PR 12763
423         * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
424         like sections to existing .sdata2, and similarly for orphan TLS
425         sections.
426         * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
427
428 2011-05-17  Tomohiro Kashiwada  <kikairoya@gmail.com>
429
430         PR ld/12759
431         * emultempl/rxelf.em (ignore_lma): New variable.
432         (rx_elf_create_output_section_statements): Pass the setiing of
433         ignore_lma to bfd_elf32_rx_set_target_flags.
434         (OPTION_IGNORE_LMA): Define.
435         (OPTION_NO_IGNORE_LMA): Define.
436         (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
437         (PARSE_AND_LIST_OPTIONS): Add ignore lma.
438         (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
439
440 2011-05-17  Alan Modra  <amodra@gmail.com>
441
442         PR ld/12760
443         * ldmain.c (notice): Add "flags" and "string" param.
444         * plugin.c (plugin_notice): Likewise.  Handle indirect, warning
445         and constructor syms.
446
447 2010-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
448
449         * ldlang.c (print_assignment): Use the symbol's section if we
450         use its value.
451         * ldexp.c (exp_fold_tree_1): Skip self-assignment.  Expand
452         comment on copying symbol type.
453
454 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
455
456         PR ld/12760
457         * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
458         undefweak.
459
460 2011-05-16  Alan Modra  <amodra@gmail.com>
461
462         * ldlang.c (lang_leave_output_section_statement): Don't copy
463         previous lma_region if given address.
464
465 2011-05-13  Bernd Schmidt  <bernds@codesourcery.com>
466
467         (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
468         eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
469         * Makefile.am (ALL_EMULATIONS): Add these files.
470         (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
471         * Makefile.in: Regenerated.
472         * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
473         vectors.
474         * emulparams/elf32_tic6x_elf_be.sh: New file.
475         * emulparams/elf32_tic6x_elf_le.sh: New file.
476         * emulparams/elf32_tic6x_linux_be.sh: New file.
477         * emulparams/elf32_tic6x_linux_le.sh: New file.
478         * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
479         (tic6x-*-*): Replaced by these.
480
481 2011-05-13  Jan Beulich  <jbeulich@novell.com>
482
483         * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
484
485 2011-05-09  Paul Brook  <paul@codesourcery.com>
486
487         * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
488         (compare_output_sec_vma): New function.
489         (gld${EMULATION_NAME}_after_allocation): New function.
490         (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
491         (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
492         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
493         (LDEMUL_AFTER_ALLOCATION): Set.
494         * ld.texinfo: Document c6x --no-merge-exidx-entries.
495
496 2011-05-07  Dave Korn  <dave.korn.cygwin@gmail.com>
497
498         PR ld/12365
499         * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
500         (__rt_psrelocs_end): Likewise.
501         (__rt_psrelocs_size): Likewise difference between the above.
502         (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
503         immediately after end of pseudo-reloc data.
504         (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
505         (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
506         calculate backward from list end.
507         (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
508         * scripttempl/pep.sc: Likewise.
509
510 2011-05-06  Tristan Gingold  <gingold@adacore.com>
511
512         * scripttempl/alphavms.sc (CODE): Add *$CODE*.
513
514 2011-05-04  Tristan Gingold  <gingold@adacore.com>
515
516         * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
517         LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
518         * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
519         (gld${EMULATION_NAME}_add_options): New function.
520         (gld${EMULATION_NAME}_list_options): Ditto.
521         (gld${EMULATION_NAME}_handle_option): Ditto.
522         (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
523         (LDEMUL_LIST_OPTIONS): Define.
524
525 2011-05-04  Alan Modra  <amodra@gmail.com>
526
527         PR ld/12726
528         * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
529         * ldexp.c (exp_fold_tree_1): Correct assign to dot comment.  Don't
530         assign to dot when lang_assigning_phase_enum.
531         * ldlang.h (lang_do_assignments): Update prototype.
532         * ldlang.c (lang_do_assignments): Add phase parameter.  Update all
533         callers.
534         * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
535         lang_do_assignments calls.
536
537 2011-04-28  Daniel C. Klauer  <daniel.c.klauer@web.de>
538
539         PR ld/12614
540         * emultempl/pe.em (_after_open): Correctly check whether symbol is
541         in undef list.
542
543 2011-04-26  Kai Tietz  <ktietz@redhat.com>
544
545         * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
546         * scripttempl/pep.sc: Likewise.
547
548 2011-04-24  Alan Modra  <amodra@gmail.com>
549
550         PR ld/12365
551         PR ld/12696
552         * ldmain.c (notice): Delete "name" param, add "h".
553         * plugin.c (plugin_notice): Likewise.  Set non_ir_ref.  Handle
554         redefinitions of IR symbols in real BFDs.
555         (plugin_multiple_definition, plugin_multiple_common): Delete.
556         (non_ironly_hash, init_non_ironly_hash): Delete.
557         (is_visible_from_outside): Traverse entry_symbol chain.
558         (get_symbols): Use non_ir_ref flag rather than hash lookup.
559
560 2011-04-21  Tristan Gingold  <gingold@adacore.com>
561
562         * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
563
564 2011-04-20  Tristan Gingold  <gingold@adacore.com>
565
566         * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
567
568 2011-04-20  Alan Modra  <amodra@gmail.com>
569
570         * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
571
572 2011-04-20  Alan Modra  <amodra@gmail.com>
573
574         PR ld/12365
575         * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
576         to plugin IR BFD..
577         * ldmain.c (add_archive_element): ..and similar code here..
578         * plugin.c (plugin_maybe_claim): ..to here.  New function.
579         (plugin_call_claim_file): Make static.
580         (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
581         (plugin_multiple_common): New function.
582         (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
583         * plugin.h (plugin_call_claim_file): Don't declare.
584         (plugin_maybe_claim): Declare.
585
586 2011-04-20  Alan Modra  <amodra@gmail.com>
587
588         PR ld/12365
589         * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
590         pointer arg rather than "name", "obfd", "osec", "oval".  Add code
591         removed from linker.c.  Hack around xcofflink.c oddity in
592         passing NULL nbfd.
593         (multiple_common): Similarly.
594         * plugin.c (orig_allow_multiple_defs): Delete.
595         (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
596         (plugin_multiple_definition): Update.
597
598 2011-04-18  Kai Tietz  <ktietz@redhat.com>
599
600         * deffilep.y (def_aligncomm): Avoid duplets.
601
602         * deffilep.y (def_pool_str): New type.
603         (pool_strs): Local static.
604         (def_pool_alloc): Local function.
605         (def_pool_strdup): Likewise.
606         (def_pool_free): Likewise.
607         (opt_name): Replace xmalloc/xstrdup by
608         def_pool_alloc/def_pool_strdup.
609         (dot_name): Likewise.
610         (anylang_id): Likewise.
611         (def_lex): Likewise.
612         (def_file_parse): Call def_pool_free on
613         exit and cleanup directives elements.
614         (def_file_add_directive): Call def_pool_free.
615
616 2011-04-18  Paul Brook  <paul@codesourcery.com>
617
618         * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
619         for unwinding tables.
620
621 2011-04-18  Alan Modra  <amodra@gmail.com>
622
623         PR ld/12365
624         PR ld/12672
625         * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
626         when no_more_claiming.
627         * ldmain.c (add_archive_element): Likewise.
628         (multiple_definition): Remove plugin_multiple_definition call.
629         (notice): Remove plugin_notice call.
630         * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
631         Delete prototype.
632         (plugin_insert): New static var.
633         (open_input_bfds): Only rescan libs after plugin insert point.
634         (lang_gc_sections): Omit plugin claimed files.
635         (lang_process): Set plugin_insert.  Only rescan when plugin adds
636         objects.
637         * plugin.h (no_more_claiming): Declare.
638         (plugin_notice, plugin_multiple_definition): Don't declare.
639         * plugin.c: Formatting.
640         (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
641         plugin_callbacks): New static vars.
642         (no_more_claiming): Make global.
643         (plugin_cached_allow_multiple_defs): Delete.
644         (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
645         use newer bfd_make_section variant.  Make COMMON section too.
646         Error handling.  Correct setting of gp size.
647         (asymbol_from_plugin_symbol): Properly cast last arg of concat.
648         (message): Likewise for ACONCAT.
649         (asymbol_from_plugin_symbol): Use our COMMON section.
650         (get_symbols): When report_plugin_symbols, show visibility too.
651         (init_non_ironly_hash): Move.  Don't test non_ironly_hash.
652         (plugin_load_plugins): Save state of linker callbacks, set up to
653         call plugin_notice instead.  Call init_non_ironly_hash here.
654         (plugin_call_all_symbols_read): Set plugin_multiple_definition in
655         plugin callbacks.
656         (plugin_notice): Rewrite.
657         (plugin_multiple_definition): Make static, call original callback.
658
659 2011-04-15  Alan Modra  <amodra@gmail.com>
660
661         PR ld/12672
662         * ldlang.c (enum open_bfd_mode): New.
663         (open_input_bfds): Replace "force" param with "mode".  Reload
664         archives for rescan.  Update all callers.
665         (lang_process): Make another open_input_bfds pass for plugins.
666
667 2011-04-13  Kai Tietz  <ktietz@redhat.com>
668
669         PR binutils/12658
670         * deffile.h (def_file_add_export): Add is_dup argument.
671         (def_file_add_import): Likewise.
672         * deffilep.y (are_names_equal): New helper.
673         (cmp_export_elem): New helper.
674         (find_export_in_list): Add search routine for exports.
675         (def_file_add_export): Check for duplicates.
676         (cmp_import_elem): New helper.
677         (find_import_in_list): Add search routine for imports.
678         (def_file_add_import): Check for duplicates.
679         (def_exports): Handle duplicates.
680         (def_imports): Likewise.
681         * pe-dll.c (process_def_file_and_drectve): Likewise.
682         (pe_implied_import_dll): Likewise.
683
684 2011-04-11  Chris Quenelle  <chris.quenelle@oracle.com>
685
686         * scripttempl/elf.sc (.exception_ranges): Add new section.
687
688 2011-04-08  Hector Oron  <hector.oron@gmail.com>
689
690         PR ld/12643
691         * configure.tgt: Add support for arm-*-gnueabihf targets.
692
693 2011-04-07  Eric B. Weddington  <eric.weddington@atmel.com>
694
695         * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
696
697 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
698
699         * configure.tgt: Remove stray ;;.
700
701 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
702
703         * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
704         strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
705         thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
706         xscale-*-coff, xscale-*-elf): Remove targets.
707
708 2011-03-31  H.J. Lu  <hongjiu.lu@intel.com>
709
710         * configure.tgt: Add elf_l1om to targ_extra_libpath for
711         x86_64-*-linux-*.
712
713         * emulparams/elf_l1om.sh: Remove duplicates.
714
715 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
716
717         * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
718         GENERATE_SHLIB_SCRIPT): New defines.
719         (TEXT_START_ADDR): Define differently depending on target.
720         (.got): Redefine to include "*(.dsbt)".
721         (SDATA_START_SYMBOLS): Remove, replace with
722         (OTHER_GOT_SYMBOLS): New.
723         (OTHER_BSS_SECTIONS): Define only for ELF targets.
724         * emultempl/tic6xdsbt.em: New file.
725         * gen-doc.texi: Set C6X.
726         * ld.texinfo: Likewise.
727         (Options specific to C6X uClinux targets): New section.
728
729 2011-03-29  Alan Modra  <amodra@gmail.com>
730
731         PR ld/12613
732         * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
733
734 2011-03-26  John Marino  <binutils@marino.st>
735
736         * configure.host: Update *-*-dragonfly* host entry.
737         * configure.tgt: Update *-*-dragonfly* target entry.
738         * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
739
740 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
741
742         * configure.in: Check for windows.h, not Windows.h.
743         * configure: Regenerate.
744         * plugin.c: Include windows.h, not Windows.h.
745
746 2011-03-25  Eric B. Weddington  <eric.weddington@atmel.com>
747
748         * Makefile.in: Regenerate.
749
750 2011-03-23  Joseph Myers  <joseph@codesourcery.com>
751
752         * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
753         are enabled.  Mark level as possibly unused.
754
755 2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>
756
757         * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
758         (eavrxmega?.c): Likewise.
759         * configure.tgt (targ_extra_emuls): Likewise.
760         * emulparams/avrxmega1.sh: New file.
761         * emulparams/avrxmega2.sh: Likewise.
762         * emulparams/avrxmega3.sh: Likewise.
763         * emulparams/avrxmega4.sh: Likewise.
764         * emulparams/avrxmega5.sh: Likewise.
765         * emulparams/avrxmega6.sh: Likewise.
766         * emulparams/avrxmega7.sh: Likewise.
767         * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
768         Add avrxmega6, avrxmega7 to list of architectures for no stubs.
769
770 2011-03-21  Eric B. Weddington  <eric.weddington@atmel.com>
771
772         * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
773
774 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
775
776         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
777         eh->target_internal.
778
779 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
780
781         * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
782         instead of dynamic_sections_created.
783
784 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
785
786         * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
787
788 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
789
790         * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
791
792 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
793
794         * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
795         wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
796         * ldmain.c (add_archive_element): Set it if the member is claimed.
797         * ldlang.c (new_afile): Initialise claim_archive and claimed members.
798         (find_replacements_insert_point): New helper function.
799         (lang_process): After adding and opening replacement files passed
800         from plugin, splice them into correct place in statement list and
801         file chains to preserve critical link order.
802         (lang_list_insert_after): New helper function.
803         (lang_list_remove_tail): Likewise.
804
805 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
806
807         * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
808         (IRONLY_SUFFIX_LEN): Delete.
809         (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
810         (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
811         enclosing lang input statement instead.
812
813 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
814
815         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
816         alignment of input sections when creating orphan output sections
817         during relocatable link.
818         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
819
820 2011-03-04  H.J. Lu  <hongjiu.lu@intel.com>
821
822         * ld.texinfo: Document --verbose[=NUMBER].
823
824         * lexsup.c (ld_options): Update --verbose.
825         (parse_args): Set report_plugin_symbols.
826
827         * plugin.c (report_plugin_symbols): New.
828         (get_symbols): Report plugin symbols if report_plugin_symbols
829         is TRUE.
830
831         * plugin.h (report_plugin_symbols): New.
832
833 2011-03-01  H.J. Lu  <hongjiu.lu@intel.com>
834
835         PR ld/12529
836         * testplug.c: Don't include "filenames.h".
837         (onclaim_file): Don't use filename_cmp.
838
839 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
840
841         * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
842         * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
843         Likewise.
844         (gld${EMULATION_NAME}_stat_needed): Likewise.
845         (gld${EMULATION_NAME}_check_needed): Likewise.
846         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
847         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
848         * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
849         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
850         * ldfile.c (ldfile_open_file): Likewise.
851         * ldlang.c (wild_sort): Likewise.
852         (lookup_name): Likewise.
853         (check_excluded_libs): Likewise.
854         * ldmisc.c (vfinfo): Likewise.
855         * pe-dll.c (libnamencmp): Likewise.
856         (auto_export): Likewise.
857         (pe_dll_generate_implib): Likewise.
858         * testplug.c (onclaim_file): Likewise.
859
860 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
861
862         PR ld/12507
863         * plugin.c (get_symbols): Don't check entry symbol here.
864         (init_non_ironly_hash): Add entry_symbol chain into
865         non_ironly_hash.
866
867 2011-02-24  H.J. Lu  <hongjiu.lu@intel.com>
868
869         PR ld/12507
870         * plugin.c (get_symbols): Don't mark entry symbol IR only.
871
872 2011-02-18  John David Anglin  <dave.anglin@nrc-cnnrc.gc.ca>
873
874         PR ld/12376
875         emulparams/hppalinux.sh (DATA_ADDR): Define.
876         (SHLIB_DATA_ADDR): Likewise.
877
878 2011-02-16  H.J. Lu  <hongjiu.lu@intel.com>
879
880         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
881         x32 for x32.
882
883 2011-02-15  Kai Tietz  <kai.tietz@onevision.com>
884
885         * pe-dll.c (process_def_file_and_drectve): Don't strip
886         leading underscore from symbol by calling bfd_find_version_for_sym.
887
888 2011-02-14  Mike Frysinger  <vapier@gentoo.org>
889
890         * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
891         the bfd_demangle of sym, change users of sym to c_sym when not
892         already demangling, and free when done.  Change callers of
893         cplus_demangle to bfd_demangle.
894
895 2011-02-14  Alan Modra  <amodra@gmail.com>
896
897         * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
898         .text section, use newer bfd_make_section variant.  Error handling.
899         Correct setting of gp size.
900         (asymbol_from_plugin_symbol): Properly cast last arg of concat.
901         (message): Likewise for ACONCAT.
902         (get_symbols): Formatting.
903
904 2011-02-14  Alan Modra  <amodra@gmail.com>
905
906         * ldmain.c (remove_output): Rename to..
907         (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
908         (main): Adjust.
909         * plugin.c (plugin_call_cleanup): Make global.
910         (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
911         * plugin.h (plugin_call_cleanup): Declare.
912
913 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
914
915         * configure: Regenerate.
916
917 2011-02-10  Alan Modra  <amodra@gmail.com>
918
919         * scripttempl/armbpabi.sc: Revert 2010-11-02  H.J. Lu.
920         * scripttempl/avr.sc: Likewise.
921         * scripttempl/elf32cr16.sc: Likewise.
922         * scripttempl/elf32crx.sc: Likewise.
923         * scripttempl/elf32msp430.sc: Likewise.
924         * scripttempl/elf32msp430_3.sc: Likewise.
925         * scripttempl/elf32sh-symbian.sc: Likewise.
926         * scripttempl/elf64hppa.sc: Likewise.
927         * scripttempl/elf_chaos.sc: Likewise.
928         * scripttempl/elfd10v.sc: Likewise.
929         * scripttempl/elfd30v.sc: Likewise.
930         * scripttempl/elfi370.sc: Likewise.
931         * scripttempl/elfm68hc11.sc: Likewise.
932         * scripttempl/elfm68hc12.sc: Likewise.
933         * scripttempl/elfxtensa.sc: Likewise.
934         * scripttempl/ip2k.sc: Likewise.
935         * scripttempl/iq2000.sc: Likewise.
936         * scripttempl/mep.sc: Likewise.
937         * scripttempl/mmo.sc: Likewise.
938         * scripttempl/v850.sc: Likewise.
939         * scripttempl/xstormy16.sc: Likewise.
940         * scripttempl/elf.sc: Revert 2010-10-29  H.J. Lu.
941
942 2011-01-22  H.J. Lu  <hongjiu.lu@intel.com>
943
944         * Makefile.am (CXX): Removed.
945
946         * configure.in: Add AC_PROG_CXX.
947
948         * Makefile.in: Regenerated.
949         * configure: Likewise.
950
951 2011-01-22  Richard Sandiford  <rdsandiford@googlemail.com>
952
953         * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
954         private data and GP size.
955
956 2011-01-21  Alan Modra  <amodra@gmail.com>
957
958         * ldexp.c (fold_binary): Set result section for arithmetic and
959         logical operations to NULL when both operands are in same section.
960         * ld.texinfo (Expression Section): Describe this.
961
962 2011-01-14  Alan Modra  <amodra@gmail.com>
963
964         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
965         attempt to put non-alloc orphans before debug sections, just place
966         them after .comment.
967
968 2011-01-14  J. Park  <grassman@gmail.com>
969
970         PR ld/12339
971         * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
972
973 2011-01-14  Alan Modra  <amodra@gmail.com>
974
975         * Makefile.am: Sort emulation rules.
976         (eelf32am33lin.c): Delete.
977         (ALL_EMULATION_SOURCES): Sort, add missing entries.
978         (ALL_64_EMULATION_SOURCES): Likewise.
979         * Makefile.in: Regenerate.
980
981 2011-01-13  Alan Modra  <amodra@gmail.com>
982
983         PR ld/12356
984         * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
985         (Expression Section): Update.
986         * ld.h (ld_config_type): Add sane_expr.
987         * ldgram.y (ifile_p1): Add LD_FEATURE.
988         * ldlex.l (LD_FEATYRE): New.
989         * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
990         * ldexp.h (struct ldexp_control): Delete uses_defined.
991         * ldexp.c: Remove all uses of uses_defined.
992         (fold_name): Test config.sane_expr rather than ld_compatibility.
993         (exp_fold_tree_1): Likewise.  Adjust handling of assignments
994         during first phase.
995         * ldlang.h (ld_compatibility): Delete.
996         (lang_ld_feature): Declare.
997         * ldlang.c (ld_compatibility): Delete.
998         (open_input_bfds): Only handle assignments for --defsym.
999         (lang_ld_feature): New function.
1000
1001         PR ld/12356
1002         * ldexp.h (exp_assop): Delete.
1003         (exp_assign, exp_defsym): Declare.
1004         * ldexp.c (exp_assop): Make static, handle all assignment variations.
1005         (exp_assign, exp_defsym): New functions.
1006         (exp_provide): Use exp_assop.
1007         * ldgram.y (defsym_expr): Use exp_defsym.
1008         * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
1009         * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
1010         * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
1011
1012 2011-01-12  Alan Modra  <amodra@gmail.com>
1013
1014         PR ld/12380
1015         * ldexp.h (enum phase_enum): Comment.  Add exp_dataseg_done.
1016         * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code.  Test
1017         for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
1018         to detect when we've finished sizing sections.
1019         (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
1020         (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise.  Also test
1021         that we are not inside an output section statement.
1022         * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
1023         not exp_dataseg_relro_adjust or exp_dataseg_adjust.  Don't set
1024         lang_final_phase_enum here.
1025         (lang_process): Set lang_final_phase_enum here.
1026
1027 2011-01-10  Nick Clifton  <nickc@redhat.com>
1028
1029         * po/da.po: Updated Danish translation.
1030
1031 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1032
1033         * ldlang.c (startup_file): Removed.
1034         (lang_startup): Updated.
1035
1036 2011-01-05  H.J. Lu  <hongjiu.lu@intel.com>
1037
1038         PR ld/12364
1039         * plugin.c (get_symbols): Check if owner_sec->owner is NULL
1040         before accessing its flags field.
1041
1042 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
1043
1044         * ldver.c (ldversion): Update copyright to 2011.
1045
1046 For older changes see ChangeLog-2010
1047 \f
1048 Local Variables:
1049 mode: change-log
1050 left-margin: 8
1051 fill-column: 74
1052 version-control: never
1053 End: