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