PR ld/12760
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2011-05-17 Alan Modra <amodra@gmail.com>
2
3 PR ld/12760
4 * ldmain.c (notice): Add "flags" and "string" param.
5 * plugin.c (plugin_notice): Likewise. Handle indirect, warning
6 and constructor syms.
7
8 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com>
9
10 * ldlang.c (print_assignment): Use the symbol's section if we
11 use its value.
12 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand
13 comment on copying symbol type.
14
15 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
16
17 PR ld/12760
18 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made
19 undefweak.
20
21 2011-05-16 Alan Modra <amodra@gmail.com>
22
23 * ldlang.c (lang_leave_output_section_statement): Don't copy
24 previous lma_region if given address.
25
26 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
27
28 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
29 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
30 * Makefile.am (ALL_EMULATIONS): Add these files.
31 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
32 * Makefile.in: Regenerated.
33 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
34 vectors.
35 * emulparams/elf32_tic6x_elf_be.sh: New file.
36 * emulparams/elf32_tic6x_elf_le.sh: New file.
37 * emulparams/elf32_tic6x_linux_be.sh: New file.
38 * emulparams/elf32_tic6x_linux_le.sh: New file.
39 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
40 (tic6x-*-*): Replaced by these.
41
42 2011-05-13 Jan Beulich <jbeulich@novell.com>
43
44 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
45
46 2011-05-09 Paul Brook <paul@codesourcery.com>
47
48 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
49 (compare_output_sec_vma): New function.
50 (gld${EMULATION_NAME}_after_allocation): New function.
51 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
52 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
53 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
54 (LDEMUL_AFTER_ALLOCATION): Set.
55 * ld.texinfo: Document c6x --no-merge-exidx-entries.
56
57 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
58
59 PR ld/12365
60 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
61 (__rt_psrelocs_end): Likewise.
62 (__rt_psrelocs_size): Likewise difference between the above.
63 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
64 immediately after end of pseudo-reloc data.
65 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
66 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
67 calculate backward from list end.
68 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
69 * scripttempl/pep.sc: Likewise.
70
71 2011-05-06 Tristan Gingold <gingold@adacore.com>
72
73 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
74
75 2011-05-04 Tristan Gingold <gingold@adacore.com>
76
77 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
78 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
79 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
80 (gld${EMULATION_NAME}_add_options): New function.
81 (gld${EMULATION_NAME}_list_options): Ditto.
82 (gld${EMULATION_NAME}_handle_option): Ditto.
83 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
84 (LDEMUL_LIST_OPTIONS): Define.
85
86 2011-05-04 Alan Modra <amodra@gmail.com>
87
88 PR ld/12726
89 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
90 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
91 assign to dot when lang_assigning_phase_enum.
92 * ldlang.h (lang_do_assignments): Update prototype.
93 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
94 callers.
95 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
96 lang_do_assignments calls.
97
98 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
99
100 PR ld/12614
101 * emultempl/pe.em (_after_open): Correctly check whether symbol is
102 in undef list.
103
104 2011-04-26 Kai Tietz <ktietz@redhat.com>
105
106 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
107 * scripttempl/pep.sc: Likewise.
108
109 2011-04-24 Alan Modra <amodra@gmail.com>
110
111 PR ld/12365
112 PR ld/12696
113 * ldmain.c (notice): Delete "name" param, add "h".
114 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
115 redefinitions of IR symbols in real BFDs.
116 (plugin_multiple_definition, plugin_multiple_common): Delete.
117 (non_ironly_hash, init_non_ironly_hash): Delete.
118 (is_visible_from_outside): Traverse entry_symbol chain.
119 (get_symbols): Use non_ir_ref flag rather than hash lookup.
120
121 2011-04-21 Tristan Gingold <gingold@adacore.com>
122
123 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
124
125 2011-04-20 Tristan Gingold <gingold@adacore.com>
126
127 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
128
129 2011-04-20 Alan Modra <amodra@gmail.com>
130
131 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
132
133 2011-04-20 Alan Modra <amodra@gmail.com>
134
135 PR ld/12365
136 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
137 to plugin IR BFD..
138 * ldmain.c (add_archive_element): ..and similar code here..
139 * plugin.c (plugin_maybe_claim): ..to here. New function.
140 (plugin_call_claim_file): Make static.
141 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
142 (plugin_multiple_common): New function.
143 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
144 * plugin.h (plugin_call_claim_file): Don't declare.
145 (plugin_maybe_claim): Declare.
146
147 2011-04-20 Alan Modra <amodra@gmail.com>
148
149 PR ld/12365
150 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
151 pointer arg rather than "name", "obfd", "osec", "oval". Add code
152 removed from linker.c. Hack around xcofflink.c oddity in
153 passing NULL nbfd.
154 (multiple_common): Similarly.
155 * plugin.c (orig_allow_multiple_defs): Delete.
156 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
157 (plugin_multiple_definition): Update.
158
159 2011-04-18 Kai Tietz <ktietz@redhat.com>
160
161 * deffilep.y (def_aligncomm): Avoid duplets.
162
163 * deffilep.y (def_pool_str): New type.
164 (pool_strs): Local static.
165 (def_pool_alloc): Local function.
166 (def_pool_strdup): Likewise.
167 (def_pool_free): Likewise.
168 (opt_name): Replace xmalloc/xstrdup by
169 def_pool_alloc/def_pool_strdup.
170 (dot_name): Likewise.
171 (anylang_id): Likewise.
172 (def_lex): Likewise.
173 (def_file_parse): Call def_pool_free on
174 exit and cleanup directives elements.
175 (def_file_add_directive): Call def_pool_free.
176
177 2011-04-18 Paul Brook <paul@codesourcery.com>
178
179 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
180 for unwinding tables.
181
182 2011-04-18 Alan Modra <amodra@gmail.com>
183
184 PR ld/12365
185 PR ld/12672
186 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
187 when no_more_claiming.
188 * ldmain.c (add_archive_element): Likewise.
189 (multiple_definition): Remove plugin_multiple_definition call.
190 (notice): Remove plugin_notice call.
191 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
192 Delete prototype.
193 (plugin_insert): New static var.
194 (open_input_bfds): Only rescan libs after plugin insert point.
195 (lang_gc_sections): Omit plugin claimed files.
196 (lang_process): Set plugin_insert. Only rescan when plugin adds
197 objects.
198 * plugin.h (no_more_claiming): Declare.
199 (plugin_notice, plugin_multiple_definition): Don't declare.
200 * plugin.c: Formatting.
201 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
202 plugin_callbacks): New static vars.
203 (no_more_claiming): Make global.
204 (plugin_cached_allow_multiple_defs): Delete.
205 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
206 use newer bfd_make_section variant. Make COMMON section too.
207 Error handling. Correct setting of gp size.
208 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
209 (message): Likewise for ACONCAT.
210 (asymbol_from_plugin_symbol): Use our COMMON section.
211 (get_symbols): When report_plugin_symbols, show visibility too.
212 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
213 (plugin_load_plugins): Save state of linker callbacks, set up to
214 call plugin_notice instead. Call init_non_ironly_hash here.
215 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
216 plugin callbacks.
217 (plugin_notice): Rewrite.
218 (plugin_multiple_definition): Make static, call original callback.
219
220 2011-04-15 Alan Modra <amodra@gmail.com>
221
222 PR ld/12672
223 * ldlang.c (enum open_bfd_mode): New.
224 (open_input_bfds): Replace "force" param with "mode". Reload
225 archives for rescan. Update all callers.
226 (lang_process): Make another open_input_bfds pass for plugins.
227
228 2011-04-13 Kai Tietz <ktietz@redhat.com>
229
230 PR binutils/12658
231 * deffile.h (def_file_add_export): Add is_dup argument.
232 (def_file_add_import): Likewise.
233 * deffilep.y (are_names_equal): New helper.
234 (cmp_export_elem): New helper.
235 (find_export_in_list): Add search routine for exports.
236 (def_file_add_export): Check for duplicates.
237 (cmp_import_elem): New helper.
238 (find_import_in_list): Add search routine for imports.
239 (def_file_add_import): Check for duplicates.
240 (def_exports): Handle duplicates.
241 (def_imports): Likewise.
242 * pe-dll.c (process_def_file_and_drectve): Likewise.
243 (pe_implied_import_dll): Likewise.
244
245 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
246
247 * scripttempl/elf.sc (.exception_ranges): Add new section.
248
249 2011-04-08 Hector Oron <hector.oron@gmail.com>
250
251 PR ld/12643
252 * configure.tgt: Add support for arm-*-gnueabihf targets.
253
254 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
255
256 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
257
258 2011-04-07 Joseph Myers <joseph@codesourcery.com>
259
260 * configure.tgt: Remove stray ;;.
261
262 2011-04-06 Joseph Myers <joseph@codesourcery.com>
263
264 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
265 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
266 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
267 xscale-*-coff, xscale-*-elf): Remove targets.
268
269 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
270
271 * configure.tgt: Add elf_l1om to targ_extra_libpath for
272 x86_64-*-linux-*.
273
274 * emulparams/elf_l1om.sh: Remove duplicates.
275
276 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
277
278 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
279 GENERATE_SHLIB_SCRIPT): New defines.
280 (TEXT_START_ADDR): Define differently depending on target.
281 (.got): Redefine to include "*(.dsbt)".
282 (SDATA_START_SYMBOLS): Remove, replace with
283 (OTHER_GOT_SYMBOLS): New.
284 (OTHER_BSS_SECTIONS): Define only for ELF targets.
285 * emultempl/tic6xdsbt.em: New file.
286 * gen-doc.texi: Set C6X.
287 * ld.texinfo: Likewise.
288 (Options specific to C6X uClinux targets): New section.
289
290 2011-03-29 Alan Modra <amodra@gmail.com>
291
292 PR ld/12613
293 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
294
295 2011-03-26 John Marino <binutils@marino.st>
296
297 * configure.host: Update *-*-dragonfly* host entry.
298 * configure.tgt: Update *-*-dragonfly* target entry.
299 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
300
301 2011-03-28 Joseph Myers <joseph@codesourcery.com>
302
303 * configure.in: Check for windows.h, not Windows.h.
304 * configure: Regenerate.
305 * plugin.c: Include windows.h, not Windows.h.
306
307 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
308
309 * Makefile.in: Regenerate.
310
311 2011-03-23 Joseph Myers <joseph@codesourcery.com>
312
313 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
314 are enabled. Mark level as possibly unused.
315
316 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
317
318 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
319 (eavrxmega?.c): Likewise.
320 * configure.tgt (targ_extra_emuls): Likewise.
321 * emulparams/avrxmega1.sh: New file.
322 * emulparams/avrxmega2.sh: Likewise.
323 * emulparams/avrxmega3.sh: Likewise.
324 * emulparams/avrxmega4.sh: Likewise.
325 * emulparams/avrxmega5.sh: Likewise.
326 * emulparams/avrxmega6.sh: Likewise.
327 * emulparams/avrxmega7.sh: Likewise.
328 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
329 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
330
331 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
332
333 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
334
335 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
336
337 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
338 eh->target_internal.
339
340 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
341
342 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
343 instead of dynamic_sections_created.
344
345 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
346
347 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
348
349 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
350
351 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
352
353 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
354
355 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
356 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
357 * ldmain.c (add_archive_element): Set it if the member is claimed.
358 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
359 (find_replacements_insert_point): New helper function.
360 (lang_process): After adding and opening replacement files passed
361 from plugin, splice them into correct place in statement list and
362 file chains to preserve critical link order.
363 (lang_list_insert_after): New helper function.
364 (lang_list_remove_tail): Likewise.
365
366 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
367
368 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
369 (IRONLY_SUFFIX_LEN): Delete.
370 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
371 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
372 enclosing lang input statement instead.
373
374 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
375
376 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
377 alignment of input sections when creating orphan output sections
378 during relocatable link.
379 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
380
381 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
382
383 * ld.texinfo: Document --verbose[=NUMBER].
384
385 * lexsup.c (ld_options): Update --verbose.
386 (parse_args): Set report_plugin_symbols.
387
388 * plugin.c (report_plugin_symbols): New.
389 (get_symbols): Report plugin symbols if report_plugin_symbols
390 is TRUE.
391
392 * plugin.h (report_plugin_symbols): New.
393
394 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
395
396 PR ld/12529
397 * testplug.c: Don't include "filenames.h".
398 (onclaim_file): Don't use filename_cmp.
399
400 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
401
402 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
403 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
404 Likewise.
405 (gld${EMULATION_NAME}_stat_needed): Likewise.
406 (gld${EMULATION_NAME}_check_needed): Likewise.
407 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
408 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
409 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
410 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
411 * ldfile.c (ldfile_open_file): Likewise.
412 * ldlang.c (wild_sort): Likewise.
413 (lookup_name): Likewise.
414 (check_excluded_libs): Likewise.
415 * ldmisc.c (vfinfo): Likewise.
416 * pe-dll.c (libnamencmp): Likewise.
417 (auto_export): Likewise.
418 (pe_dll_generate_implib): Likewise.
419 * testplug.c (onclaim_file): Likewise.
420
421 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
422
423 PR ld/12507
424 * plugin.c (get_symbols): Don't check entry symbol here.
425 (init_non_ironly_hash): Add entry_symbol chain into
426 non_ironly_hash.
427
428 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
429
430 PR ld/12507
431 * plugin.c (get_symbols): Don't mark entry symbol IR only.
432
433 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
434
435 PR ld/12376
436 emulparams/hppalinux.sh (DATA_ADDR): Define.
437 (SHLIB_DATA_ADDR): Likewise.
438
439 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
440
441 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
442 x32 for x32.
443
444 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
445
446 * pe-dll.c (process_def_file_and_drectve): Don't strip
447 leading underscore from symbol by calling bfd_find_version_for_sym.
448
449 2011-02-14 Mike Frysinger <vapier@gentoo.org>
450
451 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
452 the bfd_demangle of sym, change users of sym to c_sym when not
453 already demangling, and free when done. Change callers of
454 cplus_demangle to bfd_demangle.
455
456 2011-02-14 Alan Modra <amodra@gmail.com>
457
458 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
459 .text section, use newer bfd_make_section variant. Error handling.
460 Correct setting of gp size.
461 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
462 (message): Likewise for ACONCAT.
463 (get_symbols): Formatting.
464
465 2011-02-14 Alan Modra <amodra@gmail.com>
466
467 * ldmain.c (remove_output): Rename to..
468 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
469 (main): Adjust.
470 * plugin.c (plugin_call_cleanup): Make global.
471 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
472 * plugin.h (plugin_call_cleanup): Declare.
473
474 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
475
476 * configure: Regenerate.
477
478 2011-02-10 Alan Modra <amodra@gmail.com>
479
480 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
481 * scripttempl/avr.sc: Likewise.
482 * scripttempl/elf32cr16.sc: Likewise.
483 * scripttempl/elf32crx.sc: Likewise.
484 * scripttempl/elf32msp430.sc: Likewise.
485 * scripttempl/elf32msp430_3.sc: Likewise.
486 * scripttempl/elf32sh-symbian.sc: Likewise.
487 * scripttempl/elf64hppa.sc: Likewise.
488 * scripttempl/elf_chaos.sc: Likewise.
489 * scripttempl/elfd10v.sc: Likewise.
490 * scripttempl/elfd30v.sc: Likewise.
491 * scripttempl/elfi370.sc: Likewise.
492 * scripttempl/elfm68hc11.sc: Likewise.
493 * scripttempl/elfm68hc12.sc: Likewise.
494 * scripttempl/elfxtensa.sc: Likewise.
495 * scripttempl/ip2k.sc: Likewise.
496 * scripttempl/iq2000.sc: Likewise.
497 * scripttempl/mep.sc: Likewise.
498 * scripttempl/mmo.sc: Likewise.
499 * scripttempl/v850.sc: Likewise.
500 * scripttempl/xstormy16.sc: Likewise.
501 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
502
503 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
504
505 * Makefile.am (CXX): Removed.
506
507 * configure.in: Add AC_PROG_CXX.
508
509 * Makefile.in: Regenerated.
510 * configure: Likewise.
511
512 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
513
514 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
515 private data and GP size.
516
517 2011-01-21 Alan Modra <amodra@gmail.com>
518
519 * ldexp.c (fold_binary): Set result section for arithmetic and
520 logical operations to NULL when both operands are in same section.
521 * ld.texinfo (Expression Section): Describe this.
522
523 2011-01-14 Alan Modra <amodra@gmail.com>
524
525 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
526 attempt to put non-alloc orphans before debug sections, just place
527 them after .comment.
528
529 2011-01-14 J. Park <grassman@gmail.com>
530
531 PR ld/12339
532 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
533
534 2011-01-14 Alan Modra <amodra@gmail.com>
535
536 * Makefile.am: Sort emulation rules.
537 (eelf32am33lin.c): Delete.
538 (ALL_EMULATION_SOURCES): Sort, add missing entries.
539 (ALL_64_EMULATION_SOURCES): Likewise.
540 * Makefile.in: Regenerate.
541
542 2011-01-13 Alan Modra <amodra@gmail.com>
543
544 PR ld/12356
545 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
546 (Expression Section): Update.
547 * ld.h (ld_config_type): Add sane_expr.
548 * ldgram.y (ifile_p1): Add LD_FEATURE.
549 * ldlex.l (LD_FEATYRE): New.
550 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
551 * ldexp.h (struct ldexp_control): Delete uses_defined.
552 * ldexp.c: Remove all uses of uses_defined.
553 (fold_name): Test config.sane_expr rather than ld_compatibility.
554 (exp_fold_tree_1): Likewise. Adjust handling of assignments
555 during first phase.
556 * ldlang.h (ld_compatibility): Delete.
557 (lang_ld_feature): Declare.
558 * ldlang.c (ld_compatibility): Delete.
559 (open_input_bfds): Only handle assignments for --defsym.
560 (lang_ld_feature): New function.
561
562 PR ld/12356
563 * ldexp.h (exp_assop): Delete.
564 (exp_assign, exp_defsym): Declare.
565 * ldexp.c (exp_assop): Make static, handle all assignment variations.
566 (exp_assign, exp_defsym): New functions.
567 (exp_provide): Use exp_assop.
568 * ldgram.y (defsym_expr): Use exp_defsym.
569 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
570 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
571 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
572
573 2011-01-12 Alan Modra <amodra@gmail.com>
574
575 PR ld/12380
576 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
577 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
578 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
579 to detect when we've finished sizing sections.
580 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
581 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
582 that we are not inside an output section statement.
583 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
584 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
585 lang_final_phase_enum here.
586 (lang_process): Set lang_final_phase_enum here.
587
588 2011-01-10 Nick Clifton <nickc@redhat.com>
589
590 * po/da.po: Updated Danish translation.
591
592 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
593
594 * ldlang.c (startup_file): Removed.
595 (lang_startup): Updated.
596
597 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
598
599 PR ld/12364
600 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
601 before accessing its flags field.
602
603 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
604
605 * ldver.c (ldversion): Update copyright to 2011.
606
607 For older changes see ChangeLog-2010
608 \f
609 Local Variables:
610 mode: change-log
611 left-margin: 8
612 fill-column: 74
613 version-control: never
614 End:
This page took 0.041413 seconds and 5 git commands to generate.