aeb0d1933168f373dc12dce60c4860e152378a38
[platform/upstream/binutils.git] / ld / ChangeLog
1 2014-02-19  Alan Modra  <amodra@gmail.com>
2
3         * emultempl/ppc64elf.em (params): Init new field.
4         (ppc_create_output_section_statements): Set params.save_restore_funcs
5         default.
6         (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
7         --no-save-restore-funcs.
8
9 2014-02-17  Alan Modra  <amodra@gmail.com>
10
11         * emultemps/ppc64elf.em (params): New static struct replacing
12         various other static vars.  Adjust code throughout file.
13
14 2014-02-17  Alan Modra  <amodra@gmail.com>
15
16         * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
17         ppc476 workaround for ld -r.
18
19 2014-02-12  Alan Modra  <amodra@gmail.com>
20
21         * emultempl/ppc32elf.em (pagesize): New static var.
22         (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
23         (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
24
25 2014-02-11  Andrew Pinski  <apinski@cavium.com>
26
27         * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
28         (ELF_INTERPRETER_NAME): Define.
29         * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
30
31 2014-02-10  Alan Modra  <amodra@gmail.com>
32
33         * po/ld.pot: Regenerate.
34
35 2014-02-03  Alan Modra  <amodra@gmail.com>
36
37         * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
38         plt_style): Delete.  Adjust all refs to instead use..
39         (params): ..this.  New variable.
40         (ppc_after_open_output): New function.  Tweak params and pass to
41         ppc_elf_link_params.
42         (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
43         (ppc_before_allocation): Adjust ppc_elf_tls_setup call.  Enable
44         relaxation for ppc476 workaround.
45         (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
46         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
47
48 2014-02-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
49
50         * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
51         * ld/ldlang.c (lang_size_sections_1): Add dotdelta
52         variable which reflects the VMA change due to alignment
53         requirements.  Use dotdelta do change the LMA if
54         ALIGN_WITH_INPUT is requested.
55
56 2014-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
57
58         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
59         call to bfd_set_section_vma exposed by recent bfd_set_section_vma
60         change.
61
62 2014-01-30  Sandra Loosemore  <sandra@codesourcery.com>
63
64         * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
65         * Makefile.in: Regenerated.
66         * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
67         * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
68         * emultempl/nios2elf.em: New file.
69         * gen-doc.texi (NIOSII): Set.
70         * ld.texinfo (NIOSII): Set.
71
72 2014-01-28  Nick Clifton  <nickc@redhat.com>
73
74         * Makefile.am: Remove obsolete MSP430 emulations.
75         * configure.tgt: Likewise.
76         * emulparams/msp430all.sh: Likewise.
77         * Makefile.in: Regenerate.
78
79 2014-01-24  H.J. Lu  <hongjiu.lu@intel.com>
80
81         PR ld/16498
82         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
83         orphaned TLS section handling.
84
85 2014-01-24  Alan Modra  <amodra@gmail.com>
86
87         * ldlang.c (lang_output_section_find_by_flags): Be careful to
88         test look->bfd_section->flags if available rather than
89         look->flags.  Separate SEC_THREAD_LOCAL handling from
90         SEC_READONLY loop, and rewrite.
91
92 2014-01-22  Alan Modra  <amodra@gmail.com>
93
94         * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
95         (lang_init): Initialise them.
96         (lang_print_asneeded): New function.
97         (lang_process): Call lang_print_asneeded.
98         * ldlang.h (struct asneeded_minfo): New.
99         (asneeded_list_tail): Declare.
100         * ldmain.c (add_archive_element): Improve archive map heading.
101         * ldmisc.c (minfo): Stash --as-needed info.
102
103 2014-01-22  Alan Modra  <amodra@gmail.com>
104
105         * ld.h (struct map_symbol_def): Move to..
106         * ldlang.h: ..here.
107         * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
108
109 2014-01-22  Alan Modra  <amodra@gmail.com>
110
111         * ld.texinfo (Output Section Discarding): Mention assigning to dot
112         as a way of keeping otherwise empty sections.
113         * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
114         is_dot_plus_0, is_align_conditional): New predicates.
115         (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
116         output section, except for some special cases.
117         * scripttempl/elfmicroblaze.sc: Use canonical form to align at
118         end of .heap and .stack.
119
120 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
121
122         * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
123
124 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
125
126         * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
127
128 2014-01-20  Alan Modra  <amodra@gmail.com>
129
130         * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
131         by_script.  Make iteration a single bit field.
132         (lang_track_definedness, lang_symbol_definition_iteration): Delete.
133         (lang_symbol_defined): Declare.
134         * ldlang.c (lang_statement_iteration): Expand comment a little.
135         (lang_init <lang_definedness_table>): Make it bigger.
136         (lang_track_definedness, lang_symbol_definition): Delete.
137         (lang_definedness_newfunc): Update.
138         (lang_symbol_defined): New function.
139         (lang_update_definedness): Create entries here.  Do track whether
140         script definition of symbol is valid, even when also defined in
141         an object file.
142         * ldexp.c (fold_name <DEFINED>): Update.
143         (fold_name <NAME>): Allow self-assignment for absolute symbols
144         defined in a linker script.
145
146 2014-01-20  Guy Martin <gmsoft@tuxicoman.be>
147             Alan Modra  <amodra@gmail.com>
148
149         * ldlang.h (lang_output_section_get): Define.
150         * ldlang.c (lang_output_section_get): Likewise.
151         (init_os): Set the output_section userdata to the output
152         section statement.
153         * emultempl/hppaelf.em: Use lang_output_section_get instead of
154         lang_output_section_find where applicable.
155         * emultempl/aarch64elf.em: Likewise.
156         * emultempl/aix.em: Likewise.
157         * emultempl/armelf.em: Likewise.
158         * emultempl/m68hc1xelf.em: Likewise.
159         * emultempl/metagelf.em: Likewise.
160         * emultempl/mipself.em: Likewise.
161         * emultempl/ppc64elf.em: Likewise.
162         * emultempl/spuelf.em: Likewise.
163
164 2014-01-17  Alan Modra  <amodra@gmail.com>
165
166         * genscripts.sh (COMPILE_IN): Don't set if already set.
167         * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
168         COMPILE_IN=no.
169         * emulparams/nds32elf16m.sh: Likewise.
170         * emulparams/nds32elf_linux.sh: Likewise.
171         * emultempl/aix.em: Test COMPILE_IN value is "yes".
172         * emultempl/armcoff.em: Likewise.
173         * emultempl/elf32.em: Likewise.
174         * emultempl/generic.em: Likewise.
175         * emultempl/gld960.em: Likewise.
176         * emultempl/gld960c.em: Likewise.
177         * emultempl/linux.em: Likewise.
178         * emultempl/lnk960.em: Likewise.
179         * emultempl/m68kcoff.em: Likewise.
180         * emultempl/sunos.em: Likewise.
181         * emultempl/ticoff.em: Likewise.
182
183 2014-01-16  H.J. Lu  <hongjiu.lu@intel.com>
184
185         PR ld/16456
186         * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
187         suffix.
188         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
189         for elf32_x86_64 emulation.
190         * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
191         for elf_i386 emulation.
192
193 2014-01-16  Alan Modra  <amodra@gmail.com>
194
195         * ld.h (fat_section_userdata_type, get_userdata): Move to..
196         * ldlang.h (input_section_userdata_type, get_userdata): ..here.
197         * ldlang.c (init_map_userdata): Delete.  Fold into..
198         (sort_def_symbol): ..here.  Don't attach input section userdata
199         to output sections or global bfd sections.
200         (lang_map): Don't pre-allocate input section userdata.
201         (init_os): Don't allocate userdata for output sections.
202         (print_all_symbols): Update.
203
204 2014-01-15  H.J. Lu  <hongjiu.lu@intel.com>
205
206         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
207         Silence uninitialized warning on ehdr_start_save with older
208         GCC.
209
210 2014-01-15  Alan Modra  <amodra@gmail.com>
211
212         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
213         __ehdr_start before size_dynamic_sections and restore afterwards.
214
215 2014-01-10  Alan Modra  <amodra@gmail.com>
216
217         PR ld/14207
218         PR ld/16322
219         PR binutils/16323
220         * ldlang.c (lang_size_sections): Remove unneeded RELRO base
221         adjust.  Tidy comments.
222         * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
223
224 2014-01-10  Hans-Peter Nilsson  <hp@axis.com>
225
226         * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
227
228 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
229
230         PR ld/14207
231         PR ld/16322
232         PR binutils/16323
233         * ldlang.c (lang_size_sections): Properly align RELRO base.
234
235 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
236
237         * ldver.c (ldversion): Update copyright year to 2014.
238
239 For older changes see ChangeLog-2013
240 \f
241 Copyright (C) 2014 Free Software Foundation, Inc.
242
243 Copying and distribution of this file, with or without modification,
244 are permitted in any medium without royalty provided the copyright
245 notice and this notice are preserved.
246
247 Local Variables:
248 mode: change-log
249 left-margin: 8
250 fill-column: 74
251 version-control: never
252 End: