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