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