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