gas/testsuite/
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
ebe9c501
KT
12011-09-27 Kai Tietz <ktietz@redhat.com>
2
3 * scripttempl/pe.sc (.text): Add support for
4 .gnu.linkonce.t.* section.
5 (.debug_info): Only use .gnu.linkonce.wi.* for
6 relocating.
7 * scripttempl/pep.sc: Likewise.
8
a7142d94
TG
92011-09-22 Tristan Gingold <gingold@adacore.com>
10
11 * NEWS: Add marker for 2.22.
12
15fc2e13
AM
132011-09-20 Alan Modra <amodra@gmail.com>
14
6cd90916 15 PR ld/13201
15fc2e13
AM
16 * ldlang.h (lang_input_statement_type): Add "reload" bitfield.
17 Clarify comments.
18 * ldlang.c (new_afile): Init new field.
19 (load_symbols): Don't call ldlang_add_file when reloading.
20 (open_input_bfds): Reload as-needed libs during plugin rescan.
21
fd91d419
L
222011-09-15 H.J. Lu <hongjiu.lu@intel.com>
23
24 PR ld/12975
25 * ldlang.c (lang_elf_version_info): Removed.
26 (lang_register_vers_node): Replace lang_elf_version_info with
27 link_info.version_info.
28 (lang_add_vers_depend): Likewise.
29 * pe-dll.c (process_def_file_and_drectve): Likewise.
30 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
31
32 * ldlang.h (lang_elf_version_info): Removed.
33
34 * plugin.c (is_visible_from_outside): Check if symbol is hidden
35 by version script.
36
37 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
38 Remove lang_elf_version_info.
39
2b7e4308
L
402011-09-15 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
41
42 PR ld/13183
43 * ldmain.c (add_archive_element): Support thin archive member
44 for LTO.
45
7cf80422
NC
462011-08-26 Nick Clifton <nickc@redhat.com>
47
48 * po/es.po: Updated Spanish translation.
49
d064f206
NC
502011-08-26 Nick Clifton <nickc@redhat.com>
51
52 * NEWS: Mention that --no-copy-dt-needed-entries is now the
53 default.
54
08efffb8
MM
552011-08-22 Michael Matz <matz@suse.de>
56
57 * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
58 * ld.texinfo (--copy-dt-needed-entries): Mention new default.
59
c77ec726
AM
602011-08-17 Alan Modra <amodra@gmail.com>
61
62 PR ld/12762
63 * ldlang.c (section_already_linked): Revert 2011-07-09 changes.
64 * plugin.c: Likewise.
65 (asymbol_from_plugin_symbol): Create linkonce section for syms
66 with comdat_key.
67
2de70689
MGD
682011-08-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
69
70 * emultempl/armelf.em (fix_arm1176): New variable.
71 (arm_elf_create_output_section_statements): Pass
72 fix_arm1176 option to bfd backend.
73 (OPTION_FIX_ARM1176): New define.
74 (OPTION_NO_FIX_ARM1176): Likewise.
75 (PARSE_AND_LIST_LONGOPTS): Add new command line options.
76 (PARSE_AND_LIST_OPTIONS): Likewise.
77 (PARSE_AND_LIST_ARGS_CASES): Likewise.
78 * ld.texinfo: Document new command line options.
79
7fe550fc
AM
802011-08-09 Alan Modra <amodra@gmail.com>
81
82 PR ld/13066
83 * plugin.c (add_symbols): Revert 2011-08-05.
84
b990ad61
KT
852011-08-06 Kai Tietz <ktietz@redhat.com>
86
87 * scripttempl/pep.sc: Add .debug_macro section.
88 * scripttempl/pe.sc: Likewise.
89
43e1669b
AM
902011-08-05 Alan Modra <amodra@gmail.com>
91
92 PR ld/12762
93 * plugin.c (add_symbols): Exclude comdat_key symbols from symbol
94 table if already seen.
95
4309cbf2
L
962011-08-04 H.J. Lu <hongjiu.lu@intel.com>
97
98 * ldmain.c (main): Replace remove_output with ld_cleanup in
99 comments.
100
58d180e8
AM
1012011-07-26 Alan Modra <amodra@gmail.com>
102
103 * emulparams/elf32ppc.sh: Source plt_unwind.sh.
104 * emulparams/elf64ppc.sh: Likewise.
105 * emultempl/ppc32elf.em (OPTION_NO_TLS_OPT): Adjust.
106 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
107 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
108 existing values.
109 * emultempl/ppc64elf.em (OPTION_STUBGROUP_SIZE): Adjust.
110 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
111 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
112 existing values.
113
7a9068fe
L
1142011-07-22 H.J. Lu <hongjiu.lu@intel.com>
115
116 * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
117 eelf_k1om_fbsd.o
118 (eelf_k1om.c): New.
119 (eelf_k1om_fbsd.c): Likewise.
120 * Makefile.in: Regenerated.
121
122 * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
123 is supported. Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
124 (targ_extra_emuls): Likewise.
125
126 * emulparams/elf_k1om.sh: New.
127 * emulparams/elf_k1om_fbsd.sh: Likewise.
128
30824704
RM
1292011-07-16 Roland McGrath <roland@hack.frob.com>
130
131 * ld.h (args_type): New field print_output_format.
132 * lexsup.c (enum option_values, ld_options, parse_args):
133 Handle --print-output-format.
134 * ldmain.c (main): Implement --print-output-format.
135 * ld.texinfo (Options): Document it.
136
137 * ldlang.c (lang_get_output_target): Don't return current_target
138 when it's NULL.
139
59b84450
AM
1402011-07-15 Alan Modra <amodra@gmail.com>
141
142 * Makefile.am (e*.c): Sort.
143 * Makefile.in: Regenerate.
144
2d07dfae
AM
1452011-07-14 Alan Modra <amodra@gmail.com>
146
147 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
148 gld${EMULATION_NAME}_list_options): Don't condition -z relro
149 and -z norelro on COMMONPAGESIZE being defined.
150
9df0ef5f
AM
1512011-07-14 Alan Modra <amodra@gmail.com>
152
153 * emultempl/ppc64elf.em (plt_static_chain): New var.
154 (gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
155 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
156 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
157 --plt-static-chain and --no-plt-static-chain.
158
fb42df5e
AM
1592011-07-14 Alan Modra <amodra@gmail.com>
160
161 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
162 gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
163 Provide --build-id, -z defs, -z muldefs, -z max-page-size,
164 -z common-page-size, -z execstack, -z noexecstack for all targets.
165 Add help for --exclude-libs.
166 (OPTION_LD_GENERATED_UNWIND_INFO,
167 OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
168 (gld${EMULATION_NAME}_handle_option): ..and code handling
169 --ld-generated-unwind-info and --no-ld-generated-unwind-info..
170 * emulparams/plt_unwind.sh: ..to here. New file. Add help.
171 * emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
172 * emulparams/elf_i386.sh: Likewise.
173 * emulparams/elf_i386_chaos.sh: Likewise.
174 * emulparams/elf_i386_ldso.sh: Likewise.
175 * emulparams/elf_l1om.sh: Likewise.
176 * emulparams/elf_x86_64.sh: Likewise.
177
ae17ab41
CM
1782011-07-11 Catherine Moore <clm@codesourcery.com>
179
180 * ld.h (section_flag_list): Add field to struct wildcard_spec.
181 * ld.texinfo (INPUT_SECTION_FLAGS): Document.
182 * ldgram.y (flag_info_list, flag_info): Add to union.
183 (INPUT_SECTION_FLAGS): New token.
184 (wildcard_spec): Initialize section_flag_list to NULL for
185 each alternative.
186 (sect_flag_list, sect_flags): New rules.
187 (input_section_spec_no_keep): Add alternatives to recognize
188 sect_flags.
189 * ldlang.c (walk_wild_consider_section): Initialize
190 section_flag_info field of the section struct.
191 (lang_add_section): Check input section flags.
fb42df5e 192 (lang_add_wild): Initialize section_flag_list field of
ae17ab41
CM
193 the statement struct.
194 * ldlang.h (lang_input_statement_struct): Add section_flag_list field.
195 (lang_wild_statement_struct): Likewise.
196 * ldlex.l (INPUT_SECTION_FLAGS): New token.
197 * mri.c (mri_draw_tree): Initialize section_flag_list to NULL.
198 * NEWS: Announce INPUT_SECTION_FLAGS enhancement.
199
0c511000
AM
2002011-07-09 H.J. Lu <hongjiu.lu@intel.com>
201
202 PR ld/12942
203 * ldlang.c (section_already_linked): Pass "struct already_linked *"
204 to bfd_section_already_linked.
205 (lang_process): Set link_info.loading_lto_outputs before
206 loading LTO outputs.
207 * plugin.c: Include "libbfd.h".
208 (add_symbols): Call bfd_section_already_linked with comdat_key.
209
ade78dba
L
2102011-06-20 H.J. Lu <hongjiu.lu@intel.com>
211
212 * configure.tgt: Revert x32 change.
213
e41b3a13
JJ
2142011-06-20 Jakub Jelinek <jakub@redhat.com>
215
216 PR ld/12570
217 * emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
218 OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
219 (gld${EMULATION_NAME}_handle_option): Handle
220 --ld-generated-unwind-info and --no-ld-generated-unwind-info.
221 * ld.texinfo (--ld-generated-unwind-info,
222 --no-ld-generated-unwind-info): Document.
223
8b778942
L
2242011-06-19 H.J. Lu <hongjiu.lu@intel.com>
225
226 * configure.tgt: Support x32.
227
90b3661c
NC
2282011-06-15 Nick Clifton <nickc@redhat.com>
229
230 * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
231
aa137e4d
NC
2322011-06-13 Walter Lee <walt@tilera.com>
233
234 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx.c and
235 eelf32tilepro.c.
236 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx.c.
237 (eelf32tilegx.c): New target.
238 (eelf32tilepro.c): Likewise.
239 (eelf64tilegx.c): Likewise.
240 * Makefile.in: Regenerate.
241 * configure.tgt: Handle tilegx-*-* and tilepro-*-*.
242 * emulparams/elf32tilegx.sh: New file.
243 * emulparams/elf64tilegx.sh: New file.
244 * emulparams/elf32tilepro.sh: New file.
245
80cc85a9
AM
2462011-06-13 Alan Modra <amodra@gmail.com>
247
248 * ldlang.c (sort_def_symbol, lang_one_common): Don't handle
249 warning symbols here.
250 * emultempl/pe.em (pr_sym): Remove redundant test.
251 * emultempl/pep.em (pr_sym): Likewise.
252
ba85c43e
NC
2532011-06-09 Nick Clifton <nickc@redhat.com>
254
255 PR ld/12845
256 * emultempl/mipself.em (mips_add_stub_section): Do not add stubs
257 for sections that have been removed by garbage collection.
258
5b4c94ad
AM
2592011-06-08 Alan Modra <amodra@gmail.com>
260
261 * ldlang.c (lang_one_common): Handle warning symbols.
262
ab3719da
NC
2632011-06-07 Nick Clifton <nickc@redhat.com>
264
265 * configure.tgt: Accept any V850 architecture.
266
bc77a04a
NC
2672011-06-03 Nick Clifton <nickc@redhat.com>
268
269 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c
270 Add rule to build eelf32am33lin.c
271 * Makefile.in: Regenerate.
272
cc643b88
NC
2732011-06-02 Nick Clifton <nickc@redhat.com>
274
275 * lexsup.c: Fix spelling mistake in comment.
276 * scripttempl/epocpe.sc: Likewise.
277 * scripttempl/i386beos.sc: Likewise.
278 * scripttempl/mcorepe.sc: Likewise.
279 * scripttempl/pe.sc: Likewise.
280 * scripttempl/pep.sc: Likewise.
281 * po/ld.pot: Regenerate.
282
f20db198
NC
2832011-05-27 Nick Clifton <nickc@redhat.com>
284
285 * scripttempl/v850.sc (_heap_start): Provide.
286
270396f2
AM
2872011-05-23 Alan Modra <amodra@gmail.com>
288
289 * ldmisc.c (vfinfo): Add %H.
290 * ldmain.c (reloc_overflow): Use %H rather than %C.
291 (reloc_dangerous, unattached_reloc): Likewise.
292
6de6a7fe
AM
2932011-05-23 Alan Modra <amodra@gmail.com>
294
295 PR 12763
296 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2
297 like sections to existing .sdata2, and similarly for orphan TLS
298 sections.
299 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss.
300
84bff83f
NC
3012011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
302
303 PR ld/12759
304 * emultempl/rxelf.em (ignore_lma): New variable.
305 (rx_elf_create_output_section_statements): Pass the setiing of
306 ignore_lma to bfd_elf32_rx_set_target_flags.
307 (OPTION_IGNORE_LMA): Define.
308 (OPTION_NO_IGNORE_LMA): Define.
309 (PARSE_AND_LIST_LONGOPTS): Add ignore lma.
310 (PARSE_AND_LIST_OPTIONS): Add ignore lma.
311 (PARSE_AND_LIST_ARGS_CASES): Add ignore lma.
312
16d96b5b
AM
3132011-05-17 Alan Modra <amodra@gmail.com>
314
315 PR ld/12760
316 * ldmain.c (notice): Add "flags" and "string" param.
317 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
318 and constructor syms.
319
f37a7048
NS
3202010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
321
322 * ldlang.c (print_assignment): Use the symbol's section if we
323 use its value.
324 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
325 comment on copying symbol type.
326
cd6eee13
AM
3272011-05-16 H.J. Lu <hongjiu.lu@intel.com>
328
329 PR ld/12760
330 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
331 undefweak.
332
83e7bd17
AM
3332011-05-16 Alan Modra <amodra@gmail.com>
334
335 * ldlang.c (lang_leave_output_section_statement): Don't copy
336 previous lma_region if given address.
337
2a616379
BS
3382011-05-13 Bernd Schmidt <bernds@codesourcery.com>
339
340 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
341 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
342 * Makefile.am (ALL_EMULATIONS): Add these files.
343 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
344 * Makefile.in: Regenerated.
345 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
346 vectors.
347 * emulparams/elf32_tic6x_elf_be.sh: New file.
348 * emulparams/elf32_tic6x_elf_le.sh: New file.
349 * emulparams/elf32_tic6x_linux_be.sh: New file.
350 * emulparams/elf32_tic6x_linux_le.sh: New file.
351 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
352 (tic6x-*-*): Replaced by these.
353
3ac5406b
JB
3542011-05-13 Jan Beulich <jbeulich@novell.com>
355
356 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
357
fbd9ad90
PB
3582011-05-09 Paul Brook <paul@codesourcery.com>
359
360 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
361 (compare_output_sec_vma): New function.
362 (gld${EMULATION_NAME}_after_allocation): New function.
363 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
364 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
365 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
366 (LDEMUL_AFTER_ALLOCATION): Set.
367 * ld.texinfo: Document c6x --no-merge-exidx-entries.
368
730035f7
DK
3692011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
370
371 PR ld/12365
372 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
373 (__rt_psrelocs_end): Likewise.
374 (__rt_psrelocs_size): Likewise difference between the above.
375 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
376 immediately after end of pseudo-reloc data.
377 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
378 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
379 calculate backward from list end.
380 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
381 * scripttempl/pep.sc: Likewise.
382
55221e4b
TG
3832011-05-06 Tristan Gingold <gingold@adacore.com>
384
385 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
386
45cfb56c
TG
3872011-05-04 Tristan Gingold <gingold@adacore.com>
388
389 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
390 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
391 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
392 (gld${EMULATION_NAME}_add_options): New function.
393 (gld${EMULATION_NAME}_list_options): Ditto.
394 (gld${EMULATION_NAME}_handle_option): Ditto.
395 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
396 (LDEMUL_LIST_OPTIONS): Define.
397
2f65ac72
AM
3982011-05-04 Alan Modra <amodra@gmail.com>
399
400 PR ld/12726
401 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
402 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
403 assign to dot when lang_assigning_phase_enum.
404 * ldlang.h (lang_do_assignments): Update prototype.
405 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
406 callers.
407 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
408 lang_do_assignments calls.
409
e0605dbe
AM
4102011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
411
412 PR ld/12614
413 * emultempl/pe.em (_after_open): Correctly check whether symbol is
414 in undef list.
415
72b016b4
NC
4162011-04-26 Kai Tietz <ktietz@redhat.com>
417
418 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
419 * scripttempl/pep.sc: Likewise.
420
35ed3f94
AM
4212011-04-24 Alan Modra <amodra@gmail.com>
422
423 PR ld/12365
424 PR ld/12696
425 * ldmain.c (notice): Delete "name" param, add "h".
426 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
427 redefinitions of IR symbols in real BFDs.
428 (plugin_multiple_definition, plugin_multiple_common): Delete.
429 (non_ironly_hash, init_non_ironly_hash): Delete.
430 (is_visible_from_outside): Traverse entry_symbol chain.
431 (get_symbols): Use non_ir_ref flag rather than hash lookup.
432
9165b2bf
TG
4332011-04-21 Tristan Gingold <gingold@adacore.com>
434
435 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
436
ced323bd
TG
4372011-04-20 Tristan Gingold <gingold@adacore.com>
438
439 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
440
8ad17b3a
AM
4412011-04-20 Alan Modra <amodra@gmail.com>
442
443 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
444
02d00247
AM
4452011-04-20 Alan Modra <amodra@gmail.com>
446
447 PR ld/12365
448 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
449 to plugin IR BFD..
450 * ldmain.c (add_archive_element): ..and similar code here..
451 * plugin.c (plugin_maybe_claim): ..to here. New function.
452 (plugin_call_claim_file): Make static.
453 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
454 (plugin_multiple_common): New function.
455 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
456 * plugin.h (plugin_call_claim_file): Don't declare.
457 (plugin_maybe_claim): Declare.
458
24f58f47
AM
4592011-04-20 Alan Modra <amodra@gmail.com>
460
461 PR ld/12365
462 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
463 pointer arg rather than "name", "obfd", "osec", "oval". Add code
464 removed from linker.c. Hack around xcofflink.c oddity in
465 passing NULL nbfd.
466 (multiple_common): Similarly.
467 * plugin.c (orig_allow_multiple_defs): Delete.
468 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
469 (plugin_multiple_definition): Update.
470
bdca0ea1
KT
4712011-04-18 Kai Tietz <ktietz@redhat.com>
472
dc204beb
KT
473 * deffilep.y (def_aligncomm): Avoid duplets.
474
bdca0ea1
KT
475 * deffilep.y (def_pool_str): New type.
476 (pool_strs): Local static.
477 (def_pool_alloc): Local function.
478 (def_pool_strdup): Likewise.
479 (def_pool_free): Likewise.
480 (opt_name): Replace xmalloc/xstrdup by
481 def_pool_alloc/def_pool_strdup.
482 (dot_name): Likewise.
483 (anylang_id): Likewise.
484 (def_lex): Likewise.
485 (def_file_parse): Call def_pool_free on
486 exit and cleanup directives elements.
487 (def_file_add_directive): Call def_pool_free.
488
6970a028
PB
4892011-04-18 Paul Brook <paul@codesourcery.com>
490
491 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
492 for unwinding tables.
493
901f1d17
AM
4942011-04-18 Alan Modra <amodra@gmail.com>
495
496 PR ld/12365
497 PR ld/12672
498 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
499 when no_more_claiming.
500 * ldmain.c (add_archive_element): Likewise.
501 (multiple_definition): Remove plugin_multiple_definition call.
502 (notice): Remove plugin_notice call.
503 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
504 Delete prototype.
505 (plugin_insert): New static var.
506 (open_input_bfds): Only rescan libs after plugin insert point.
507 (lang_gc_sections): Omit plugin claimed files.
508 (lang_process): Set plugin_insert. Only rescan when plugin adds
509 objects.
510 * plugin.h (no_more_claiming): Declare.
511 (plugin_notice, plugin_multiple_definition): Don't declare.
512 * plugin.c: Formatting.
513 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
514 plugin_callbacks): New static vars.
515 (no_more_claiming): Make global.
516 (plugin_cached_allow_multiple_defs): Delete.
517 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
518 use newer bfd_make_section variant. Make COMMON section too.
519 Error handling. Correct setting of gp size.
520 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
521 (message): Likewise for ACONCAT.
522 (asymbol_from_plugin_symbol): Use our COMMON section.
523 (get_symbols): When report_plugin_symbols, show visibility too.
524 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
525 (plugin_load_plugins): Save state of linker callbacks, set up to
526 call plugin_notice instead. Call init_non_ironly_hash here.
527 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
528 plugin callbacks.
529 (plugin_notice): Rewrite.
530 (plugin_multiple_definition): Make static, call original callback.
531
486329aa
AM
5322011-04-15 Alan Modra <amodra@gmail.com>
533
534 PR ld/12672
535 * ldlang.c (enum open_bfd_mode): New.
536 (open_input_bfds): Replace "force" param with "mode". Reload
537 archives for rescan. Update all callers.
538 (lang_process): Make another open_input_bfds pass for plugins.
539
db17156e
KT
5402011-04-13 Kai Tietz <ktietz@redhat.com>
541
542 PR binutils/12658
543 * deffile.h (def_file_add_export): Add is_dup argument.
544 (def_file_add_import): Likewise.
545 * deffilep.y (are_names_equal): New helper.
546 (cmp_export_elem): New helper.
547 (find_export_in_list): Add search routine for exports.
548 (def_file_add_export): Check for duplicates.
549 (cmp_import_elem): New helper.
550 (find_import_in_list): Add search routine for imports.
551 (def_file_add_import): Check for duplicates.
552 (def_exports): Handle duplicates.
553 (def_imports): Likewise.
554 * pe-dll.c (process_def_file_and_drectve): Likewise.
555 (pe_implied_import_dll): Likewise.
556
ed0d9c71
NC
5572011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
558
559 * scripttempl/elf.sc (.exception_ranges): Add new section.
560
0e9dfb46
NC
5612011-04-08 Hector Oron <hector.oron@gmail.com>
562
563 PR ld/12643
564 * configure.tgt: Add support for arm-*-gnueabihf targets.
565
80518809
EW
5662011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
567
568 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
569
91db4c57
JM
5702011-04-07 Joseph Myers <joseph@codesourcery.com>
571
572 * configure.tgt: Remove stray ;;.
573
8c5fc800
JM
5742011-04-06 Joseph Myers <joseph@codesourcery.com>
575
576 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
577 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
578 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
579 xscale-*-coff, xscale-*-elf): Remove targets.
580
d02c4aae
L
5812011-03-31 H.J. Lu <hongjiu.lu@intel.com>
582
583 * configure.tgt: Add elf_l1om to targ_extra_libpath for
fb42df5e 584 x86_64-*-linux-*.
d02c4aae
L
585
586 * emulparams/elf_l1om.sh: Remove duplicates.
587
ac145307
BS
5882011-03-31 Bernd Schmidt <bernds@codesourcery.com>
589
590 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
591 GENERATE_SHLIB_SCRIPT): New defines.
592 (TEXT_START_ADDR): Define differently depending on target.
593 (.got): Redefine to include "*(.dsbt)".
594 (SDATA_START_SYMBOLS): Remove, replace with
595 (OTHER_GOT_SYMBOLS): New.
596 (OTHER_BSS_SECTIONS): Define only for ELF targets.
597 * emultempl/tic6xdsbt.em: New file.
598 * gen-doc.texi: Set C6X.
599 * ld.texinfo: Likewise.
600 (Options specific to C6X uClinux targets): New section.
601
c3a7b120
AM
6022011-03-29 Alan Modra <amodra@gmail.com>
603
604 PR ld/12613
605 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
606
5b806d27
NC
6072011-03-26 John Marino <binutils@marino.st>
608
609 * configure.host: Update *-*-dragonfly* host entry.
610 * configure.tgt: Update *-*-dragonfly* target entry.
611 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
612
f31d24a0
JM
6132011-03-28 Joseph Myers <joseph@codesourcery.com>
614
615 * configure.in: Check for windows.h, not Windows.h.
616 * configure: Regenerate.
617 * plugin.c: Include windows.h, not Windows.h.
618
d0289b45
EW
6192011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
620
621 * Makefile.in: Regenerate.
622
d436a15e
JM
6232011-03-23 Joseph Myers <joseph@codesourcery.com>
624
625 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
626 are enabled. Mark level as possibly unused.
627
8cc66334
EW
6282011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
629
630 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
631 (eavrxmega?.c): Likewise.
632 * configure.tgt (targ_extra_emuls): Likewise.
633 * emulparams/avrxmega1.sh: New file.
634 * emulparams/avrxmega2.sh: Likewise.
635 * emulparams/avrxmega3.sh: Likewise.
636 * emulparams/avrxmega4.sh: Likewise.
637 * emulparams/avrxmega5.sh: Likewise.
638 * emulparams/avrxmega6.sh: Likewise.
639 * emulparams/avrxmega7.sh: Likewise.
640 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
641 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
642
ef844a53
EW
6432011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
644
645 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
646
35fc36a8
RS
6472011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
648
649 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
650 eh->target_internal.
651
cbc704f3
RS
6522011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
653
654 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
655 instead of dynamic_sections_created.
656
10be1b6a
DK
6572011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
658
659 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
660
422b6f14
DK
6612011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
662
663 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
664
8543fde5
DK
6652011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
666
667 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
668 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
669 * ldmain.c (add_archive_element): Set it if the member is claimed.
670 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
671 (find_replacements_insert_point): New helper function.
672 (lang_process): After adding and opening replacement files passed
673 from plugin, splice them into correct place in statement list and
674 file chains to preserve critical link order.
675 (lang_list_insert_after): New helper function.
676 (lang_list_remove_tail): Likewise.
677
cf4dc96f
DK
6782011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
679
680 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
681 (IRONLY_SUFFIX_LEN): Delete.
682 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
683 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
684 enclosing lang input statement instead.
685
4bf0cafb
DK
6862011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
687
688 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
689 alignment of input sections when creating orphan output sections
690 during relocatable link.
691 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
692
1715a13c
L
6932011-03-04 H.J. Lu <hongjiu.lu@intel.com>
694
695 * ld.texinfo: Document --verbose[=NUMBER].
696
697 * lexsup.c (ld_options): Update --verbose.
698 (parse_args): Set report_plugin_symbols.
699
700 * plugin.c (report_plugin_symbols): New.
701 (get_symbols): Report plugin symbols if report_plugin_symbols
702 is TRUE.
703
704 * plugin.h (report_plugin_symbols): New.
705
f4c37f56
L
7062011-03-01 H.J. Lu <hongjiu.lu@intel.com>
707
708 PR ld/12529
709 * testplug.c: Don't include "filenames.h".
710 (onclaim_file): Don't use filename_cmp.
711
42627821
KT
7122011-02-28 Kai Tietz <kai.tietz@onevision.com>
713
714 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
715 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
716 Likewise.
717 (gld${EMULATION_NAME}_stat_needed): Likewise.
718 (gld${EMULATION_NAME}_check_needed): Likewise.
719 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
720 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
721 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
722 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
723 * ldfile.c (ldfile_open_file): Likewise.
724 * ldlang.c (wild_sort): Likewise.
725 (lookup_name): Likewise.
726 (check_excluded_libs): Likewise.
727 * ldmisc.c (vfinfo): Likewise.
728 * pe-dll.c (libnamencmp): Likewise.
729 (auto_export): Likewise.
730 (pe_dll_generate_implib): Likewise.
731 * testplug.c (onclaim_file): Likewise.
732
174b85fc
L
7332011-02-24 H.J. Lu <hongjiu.lu@intel.com>
734
735 PR ld/12507
736 * plugin.c (get_symbols): Don't check entry symbol here.
737 (init_non_ironly_hash): Add entry_symbol chain into
738 non_ironly_hash.
739
8ff09c12
L
7402011-02-24 H.J. Lu <hongjiu.lu@intel.com>
741
742 PR ld/12507
743 * plugin.c (get_symbols): Don't mark entry symbol IR only.
744
ae97b922
DA
7452011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
746
747 PR ld/12376
748 emulparams/hppalinux.sh (DATA_ADDR): Define.
749 (SHLIB_DATA_ADDR): Likewise.
750
73f2a3d2
L
7512011-02-16 H.J. Lu <hongjiu.lu@intel.com>
752
753 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
754 x32 for x32.
755
fd11958c
KT
7562011-02-15 Kai Tietz <kai.tietz@onevision.com>
757
758 * pe-dll.c (process_def_file_and_drectve): Don't strip
759 leading underscore from symbol by calling bfd_find_version_for_sym.
760
93252b1c
MF
7612011-02-14 Mike Frysinger <vapier@gentoo.org>
762
763 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
764 the bfd_demangle of sym, change users of sym to c_sym when not
765 already demangling, and free when done. Change callers of
766 cplus_demangle to bfd_demangle.
767
486329aa
AM
7682011-02-14 Alan Modra <amodra@gmail.com>
769
770 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
771 .text section, use newer bfd_make_section variant. Error handling.
772 Correct setting of gp size.
773 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
774 (message): Likewise for ACONCAT.
775 (get_symbols): Formatting.
776
498cd2a0
AM
7772011-02-14 Alan Modra <amodra@gmail.com>
778
779 * ldmain.c (remove_output): Rename to..
780 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
781 (main): Adjust.
782 * plugin.c (plugin_call_cleanup): Make global.
783 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
784 * plugin.h (plugin_call_cleanup): Declare.
785
822ce8ee
RW
7862011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
787
788 * configure: Regenerate.
789
09b910c6
AM
7902011-02-10 Alan Modra <amodra@gmail.com>
791
792 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
793 * scripttempl/avr.sc: Likewise.
794 * scripttempl/elf32cr16.sc: Likewise.
795 * scripttempl/elf32crx.sc: Likewise.
796 * scripttempl/elf32msp430.sc: Likewise.
797 * scripttempl/elf32msp430_3.sc: Likewise.
798 * scripttempl/elf32sh-symbian.sc: Likewise.
799 * scripttempl/elf64hppa.sc: Likewise.
800 * scripttempl/elf_chaos.sc: Likewise.
801 * scripttempl/elfd10v.sc: Likewise.
802 * scripttempl/elfd30v.sc: Likewise.
803 * scripttempl/elfi370.sc: Likewise.
804 * scripttempl/elfm68hc11.sc: Likewise.
805 * scripttempl/elfm68hc12.sc: Likewise.
806 * scripttempl/elfxtensa.sc: Likewise.
807 * scripttempl/ip2k.sc: Likewise.
808 * scripttempl/iq2000.sc: Likewise.
809 * scripttempl/mep.sc: Likewise.
810 * scripttempl/mmo.sc: Likewise.
811 * scripttempl/v850.sc: Likewise.
812 * scripttempl/xstormy16.sc: Likewise.
813 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
814
3cb62297
L
8152011-01-22 H.J. Lu <hongjiu.lu@intel.com>
816
817 * Makefile.am (CXX): Removed.
818
819 * configure.in: Add AC_PROG_CXX.
820
821 * Makefile.in: Regenerated.
822 * configure: Likewise.
823
ed88c97e
RS
8242011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
825
826 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
827 private data and GP size.
828
9bc8bb33
AM
8292011-01-21 Alan Modra <amodra@gmail.com>
830
831 * ldexp.c (fold_binary): Set result section for arithmetic and
832 logical operations to NULL when both operands are in same section.
833 * ld.texinfo (Expression Section): Describe this.
834
175b7cd4
AM
8352011-01-14 Alan Modra <amodra@gmail.com>
836
837 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
838 attempt to put non-alloc orphans before debug sections, just place
839 them after .comment.
840
a05e447f
AM
8412011-01-14 J. Park <grassman@gmail.com>
842
843 PR ld/12339
844 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
845
3ed41d59
AM
8462011-01-14 Alan Modra <amodra@gmail.com>
847
848 * Makefile.am: Sort emulation rules.
849 (eelf32am33lin.c): Delete.
850 (ALL_EMULATION_SOURCES): Sort, add missing entries.
851 (ALL_64_EMULATION_SOURCES): Likewise.
852 * Makefile.in: Regenerate.
853
2e57b2af
AM
8542011-01-13 Alan Modra <amodra@gmail.com>
855
01554a74
AM
856 PR ld/12356
857 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
858 (Expression Section): Update.
859 * ld.h (ld_config_type): Add sane_expr.
860 * ldgram.y (ifile_p1): Add LD_FEATURE.
861 * ldlex.l (LD_FEATYRE): New.
862 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
863 * ldexp.h (struct ldexp_control): Delete uses_defined.
864 * ldexp.c: Remove all uses of uses_defined.
865 (fold_name): Test config.sane_expr rather than ld_compatibility.
866 (exp_fold_tree_1): Likewise. Adjust handling of assignments
867 during first phase.
868 * ldlang.h (ld_compatibility): Delete.
869 (lang_ld_feature): Declare.
870 * ldlang.c (ld_compatibility): Delete.
871 (open_input_bfds): Only handle assignments for --defsym.
872 (lang_ld_feature): New function.
873
2e57b2af
AM
874 PR ld/12356
875 * ldexp.h (exp_assop): Delete.
876 (exp_assign, exp_defsym): Declare.
877 * ldexp.c (exp_assop): Make static, handle all assignment variations.
878 (exp_assign, exp_defsym): New functions.
879 (exp_provide): Use exp_assop.
880 * ldgram.y (defsym_expr): Use exp_defsym.
881 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
882 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
883 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
884
ea7c2e6c
AM
8852011-01-12 Alan Modra <amodra@gmail.com>
886
887 PR ld/12380
888 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
889 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
890 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
891 to detect when we've finished sizing sections.
892 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
893 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
894 that we are not inside an output section statement.
895 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
896 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
897 lang_final_phase_enum here.
898 (lang_process): Set lang_final_phase_enum here.
899
f7465604
NC
9002011-01-10 Nick Clifton <nickc@redhat.com>
901
902 * po/da.po: Updated Danish translation.
903
1e915804
L
9042011-01-10 H.J. Lu <hongjiu.lu@intel.com>
905
906 * ldlang.c (startup_file): Removed.
907 (lang_startup): Updated.
908
cc322803
L
9092011-01-05 H.J. Lu <hongjiu.lu@intel.com>
910
911 PR ld/12364
912 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
913 before accessing its flags field.
914
0db46eb4
L
9152011-01-01 H.J. Lu <hongjiu.lu@intel.com>
916
917 * ldver.c (ldversion): Update copyright to 2011.
918
9e9e0820 919For older changes see ChangeLog-2010
252b5132
RH
920\f
921Local Variables:
922mode: change-log
923left-margin: 8
924fill-column: 74
925version-control: never
926End:
This page took 0.614248 seconds and 4 git commands to generate.