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