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