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