OSDN Git Service

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