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