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