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