fe66fb886dfb32f516388f376010972c6acee8fd
[external/binutils.git] / ld / ChangeLog
1 2011-01-21  Alan Modra  <amodra@gmail.com>
2
3         * ldexp.c (fold_binary): Set result section for arithmetic and
4         logical operations to NULL when both operands are in same section.
5         * ld.texinfo (Expression Section): Describe this.
6
7 2011-01-14  Alan Modra  <amodra@gmail.com>
8
9         * ldmain.c (main): Flush stdout before and stderr after printing
10         message.
11         * ldmisc.c (einfo): Similarly.
12         * plugin.c (message): Likewise.
13         * emultempl/ppc64elf.em: Likewise.
14         * emultempl/xtensaelf.em: Likewise.
15         * emulparams/elf32mcore.sh: Use einfo rather than printf.
16         * emultempl/beos.em: Likewise.
17         * emultempl/pe.em: Likewise.
18         * emultempl/pep.em: Likewise.
19
20 2011-01-14  Alan Modra  <amodra@gmail.com>
21
22         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
23         attempt to put non-alloc orphans before debug sections, just place
24         them after .comment.
25
26 2011-01-14  J. Park  <grassman@gmail.com>
27
28         PR ld/12339
29         * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
30
31 2011-01-14  Alan Modra  <amodra@gmail.com>
32
33         * Makefile.am: Sort emulation rules.
34         (eelf32am33lin.c): Delete.
35         (ALL_EMULATION_SOURCES): Sort, add missing entries.
36         (ALL_64_EMULATION_SOURCES): Likewise.
37         * Makefile.in: Regenerate.
38
39 2011-01-13  Alan Modra  <amodra@gmail.com>
40
41         PR ld/12356
42         * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
43         (Expression Section): Update.
44         * ld.h (ld_config_type): Add sane_expr.
45         * ldgram.y (ifile_p1): Add LD_FEATURE.
46         * ldlex.l (LD_FEATYRE): New.
47         * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
48         * ldexp.h (struct ldexp_control): Delete uses_defined.
49         * ldexp.c: Remove all uses of uses_defined.
50         (fold_name): Test config.sane_expr rather than ld_compatibility.
51         (exp_fold_tree_1): Likewise.  Adjust handling of assignments
52         during first phase.
53         * ldlang.h (ld_compatibility): Delete.
54         (lang_ld_feature): Declare.
55         * ldlang.c (ld_compatibility): Delete.
56         (open_input_bfds): Only handle assignments for --defsym.
57         (lang_ld_feature): New function.
58
59         PR ld/12356
60         * ldexp.h (exp_assop): Delete.
61         (exp_assign, exp_defsym): Declare.
62         * ldexp.c (exp_assop): Make static, handle all assignment variations.
63         (exp_assign, exp_defsym): New functions.
64         (exp_provide): Use exp_assop.
65         * ldgram.y (defsym_expr): Use exp_defsym.
66         * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
67         * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
68         * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
69
70 2011-01-12  Alan Modra  <amodra@gmail.com>
71
72         PR ld/12380
73         * ldexp.h (enum phase_enum): Comment.  Add exp_dataseg_done.
74         * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code.  Test
75         for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
76         to detect when we've finished sizing sections.
77         (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
78         (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise.  Also test
79         that we are not inside an output section statement.
80         * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
81         not exp_dataseg_relro_adjust or exp_dataseg_adjust.  Don't set
82         lang_final_phase_enum here.
83         (lang_process): Set lang_final_phase_enum here.
84
85 2011-01-10  Nick Clifton  <nickc@redhat.com>
86
87         * po/da.po: Updated Danish translation.
88
89 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
90
91         * ldlang.c (startup_file): Removed.
92         (lang_startup): Updated.
93
94 2011-01-05  H.J. Lu  <hongjiu.lu@intel.com>
95
96         PR ld/12364
97         * plugin.c (get_symbols): Check if owner_sec->owner is NULL
98         before accessing its flags field.
99
100 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
101
102         * ldver.c (ldversion): Update copyright to 2011.
103
104 For older changes see ChangeLog-2010
105 \f
106 Local Variables:
107 mode: change-log
108 left-margin: 8
109 fill-column: 74
110 version-control: never
111 End: