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