* ldmain.c (remove_output): Rename to..
[binutils.git] / ld / ChangeLog
bloba57210e89f406b73aeb73df301ee62b3811a7ab3
1 2011-02-14  Alan Modra  <amodra@gmail.com>
3         * ldmain.c (remove_output): Rename to..
4         (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
5         (main): Adjust.
6         * plugin.c (plugin_call_cleanup): Make global.
7         (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
8         * plugin.h (plugin_call_cleanup): Declare.
10 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12         * configure: Regenerate.
14 2011-02-10  Alan Modra  <amodra@gmail.com>
16         * scripttempl/armbpabi.sc: Revert 2010-11-02  H.J. Lu.
17         * scripttempl/avr.sc: Likewise.
18         * scripttempl/elf32cr16.sc: Likewise.
19         * scripttempl/elf32crx.sc: Likewise.
20         * scripttempl/elf32msp430.sc: Likewise.
21         * scripttempl/elf32msp430_3.sc: Likewise.
22         * scripttempl/elf32sh-symbian.sc: Likewise.
23         * scripttempl/elf64hppa.sc: Likewise.
24         * scripttempl/elf_chaos.sc: Likewise.
25         * scripttempl/elfd10v.sc: Likewise.
26         * scripttempl/elfd30v.sc: Likewise.
27         * scripttempl/elfi370.sc: Likewise.
28         * scripttempl/elfm68hc11.sc: Likewise.
29         * scripttempl/elfm68hc12.sc: Likewise.
30         * scripttempl/elfxtensa.sc: Likewise.
31         * scripttempl/ip2k.sc: Likewise.
32         * scripttempl/iq2000.sc: Likewise.
33         * scripttempl/mep.sc: Likewise.
34         * scripttempl/mmo.sc: Likewise.
35         * scripttempl/v850.sc: Likewise.
36         * scripttempl/xstormy16.sc: Likewise.
37         * scripttempl/elf.sc: Revert 2010-10-29  H.J. Lu.
39 2011-01-22  H.J. Lu  <hongjiu.lu@intel.com>
41         * Makefile.am (CXX): Removed.
43         * configure.in: Add AC_PROG_CXX.
45         * Makefile.in: Regenerated.
46         * configure: Likewise.
48 2011-01-22  Richard Sandiford  <rdsandiford@googlemail.com>
50         * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
51         private data and GP size.
53 2011-01-21  Alan Modra  <amodra@gmail.com>
55         * ldexp.c (fold_binary): Set result section for arithmetic and
56         logical operations to NULL when both operands are in same section.
57         * ld.texinfo (Expression Section): Describe this.
59 2011-01-14  Alan Modra  <amodra@gmail.com>
61         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
62         attempt to put non-alloc orphans before debug sections, just place
63         them after .comment.
65 2011-01-14  J. Park  <grassman@gmail.com>
67         PR ld/12339
68         * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
70 2011-01-14  Alan Modra  <amodra@gmail.com>
72         * Makefile.am: Sort emulation rules.
73         (eelf32am33lin.c): Delete.
74         (ALL_EMULATION_SOURCES): Sort, add missing entries.
75         (ALL_64_EMULATION_SOURCES): Likewise.
76         * Makefile.in: Regenerate.
78 2011-01-13  Alan Modra  <amodra@gmail.com>
80         PR ld/12356
81         * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
82         (Expression Section): Update.
83         * ld.h (ld_config_type): Add sane_expr.
84         * ldgram.y (ifile_p1): Add LD_FEATURE.
85         * ldlex.l (LD_FEATYRE): New.
86         * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
87         * ldexp.h (struct ldexp_control): Delete uses_defined.
88         * ldexp.c: Remove all uses of uses_defined.
89         (fold_name): Test config.sane_expr rather than ld_compatibility.
90         (exp_fold_tree_1): Likewise.  Adjust handling of assignments
91         during first phase.
92         * ldlang.h (ld_compatibility): Delete.
93         (lang_ld_feature): Declare.
94         * ldlang.c (ld_compatibility): Delete.
95         (open_input_bfds): Only handle assignments for --defsym.
96         (lang_ld_feature): New function.
98         PR ld/12356
99         * ldexp.h (exp_assop): Delete.
100         (exp_assign, exp_defsym): Declare.
101         * ldexp.c (exp_assop): Make static, handle all assignment variations.
102         (exp_assign, exp_defsym): New functions.
103         (exp_provide): Use exp_assop.
104         * ldgram.y (defsym_expr): Use exp_defsym.
105         * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
106         * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
107         * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
109 2011-01-12  Alan Modra  <amodra@gmail.com>
111         PR ld/12380
112         * ldexp.h (enum phase_enum): Comment.  Add exp_dataseg_done.
113         * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code.  Test
114         for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
115         to detect when we've finished sizing sections.
116         (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
117         (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise.  Also test
118         that we are not inside an output section statement.
119         * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
120         not exp_dataseg_relro_adjust or exp_dataseg_adjust.  Don't set
121         lang_final_phase_enum here.
122         (lang_process): Set lang_final_phase_enum here.
124 2011-01-10  Nick Clifton  <nickc@redhat.com>
126         * po/da.po: Updated Danish translation.
128 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
130         * ldlang.c (startup_file): Removed.
131         (lang_startup): Updated.
133 2011-01-05  H.J. Lu  <hongjiu.lu@intel.com>
135         PR ld/12364
136         * plugin.c (get_symbols): Check if owner_sec->owner is NULL
137         before accessing its flags field.
139 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
141         * ldver.c (ldversion): Update copyright to 2011.
143 For older changes see ChangeLog-2010
145 Local Variables:
146 mode: change-log
147 left-margin: 8
148 fill-column: 74
149 version-control: never
150 End: