* ChangeLog: Fix duplicate entry. Set date on entry correctly.
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/16756
4 * ldmain.c (symbol_warning): New function.
5 (warning_callback): Use it. Scan all input files for a reference
6 to SYMBOL.
7
8 2014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
9
10 * ld.texinfo: Document change in handling of --enable-auto-image-base.
11 * emultempl/pe.em (pe_auto_image_base): Set to default base.
12 (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
13 optional --enable-auto-image-base argument.
14 (gld${EMULATION_NAME}_handle_option): Handle optional
15 --enable-auto-image-base argument.
16 (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
17
18 2014-03-19 Nick Clifton <nickc@redhat.com>
19
20 * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
21 * Makefile.in: Regenerate.
22 * emultempl/default-manifest.rc: Fix typo.
23 * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
24 (.rsrc): Add SUBALIGN(4). Remove SORT.
25 * scripttempl/pep.sc: Likewise.
26
27 2014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
28
29 * Makefile.am: Use host version of windres.
30 * Makefile.in: Regenerate.
31
32 2014-03-14 Romain Geissler <romain.geissler@amadeus.com>
33 Alan Modra <amodra@gmail.com>
34
35 * ldlang.h (full_name_provided): New input flag.
36 * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
37 for -l:namespec. Instead use lang_input_file_is_l_enum with
38 full_name_provided flag.
39 * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
40 full_name_provided flag is set.
41 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
42 Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
43 support. Set DT_NEEDED for -l:namespec as namespec.
44 * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
45 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
46 Don't handle full_name_provided libraries.
47 * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
48 * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
49 * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
50
51 2014-03-12 Alan Modra <amodra@gmail.com>
52
53 * Makefile.in: Regenerate.
54
55 2014-03-05 Alan Modra <amodra@gmail.com>
56
57 Update copyright years.
58
59 2014-03-04 Nick Clifton <nickc@redhat.com>
60
61 * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
62 * Makefile.in: Regenerate.
63
64 2014-02-27 Yuri Gribov <y.gribov@samsung.com>
65
66 * emultempl/armelf.em (OPTION_LONG_PLT): Define.
67 (PARSE_AND_LIST_LONGOPTS): Add long-plt.
68 (PARSE_AND_LIST_OPTIONS): Likewise.
69 (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
70 * ld.texinfo: Document --long-plt.
71
72 2014-02-27 Alan Modra <amodra@gmail.com>
73
74 * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
75 use ppc32elf.em.
76 * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
77 vxworks.
78 (LDEMUL_AFTER_OPEN): Don't set for vxworks.
79 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
80 -secure-plt, -bss-plt and -sdata-got when vxworks.
81
82 2014-02-27 Nick Clifton <nickc@redhat.com>
83
84 * configure.in (all_emul_extra_binaries): New variable. Populated
85 by invoking configure.tgt.
86 (EMUL_EXTRA_BINARIES): New substitution.
87 * configure: Regenerate.
88 * configure.tgt (target_extra_binaries): New variable. Set to
89 default-manifest.o for Cygwin and MinGW targets.
90 * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
91 by the configure script.
92 (ALL_EMUL_EXTRA_BINARIES): New variable.
93 (default-manifest.o): New rule to build the default manifest.
94 (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
95 (install-data-local): Add EMUL_EXTRA_BINARIES.
96 * Makefile.in: Regenerate.
97 * ld.texinfo: Document default manifest support.
98 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
99 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
100 * emultempl/default-manifest.rc: New file.
101 * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
102 * scripttempl/pep.sc (R_RSRC): Likewise.
103
104 2014-02-26 Dan Mick <dan.mick@inktank.com>
105
106 PR ld/16569
107 * ldcref.c (cref_sort_array): Compare unmangled names unless
108 demanglng has been requiested.
109 (output_one_cref): Output unmangled name unless demangling has
110 been requested.
111
112 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
113 H.J. Lu <hongjiu.lu@intel.com>
114
115 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
116
117 2014-02-19 Alan Modra <amodra@gmail.com>
118
119 * emultempl/ppc64elf.em (params): Init new field.
120 (ppc_create_output_section_statements): Set params.save_restore_funcs
121 default.
122 (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
123 --no-save-restore-funcs.
124
125 2014-02-17 Alan Modra <amodra@gmail.com>
126
127 * emultemps/ppc64elf.em (params): New static struct replacing
128 various other static vars. Adjust code throughout file.
129
130 2014-02-17 Alan Modra <amodra@gmail.com>
131
132 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
133 ppc476 workaround for ld -r.
134
135 2014-02-12 Alan Modra <amodra@gmail.com>
136
137 * emultempl/ppc32elf.em (pagesize): New static var.
138 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
139 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
140
141 2014-02-11 Andrew Pinski <apinski@cavium.com>
142
143 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
144 (ELF_INTERPRETER_NAME): Define.
145 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
146
147 2014-02-10 Alan Modra <amodra@gmail.com>
148
149 * po/ld.pot: Regenerate.
150
151 2014-02-03 Alan Modra <amodra@gmail.com>
152
153 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
154 plt_style): Delete. Adjust all refs to instead use..
155 (params): ..this. New variable.
156 (ppc_after_open_output): New function. Tweak params and pass to
157 ppc_elf_link_params.
158 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
159 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
160 relaxation for ppc476 workaround.
161 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
162 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
163
164 2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
165
166 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
167 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
168 variable which reflects the VMA change due to alignment
169 requirements. Use dotdelta do change the LMA if
170 ALIGN_WITH_INPUT is requested.
171
172 2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
173
174 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
175 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
176 change.
177
178 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
179
180 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
181 * Makefile.in: Regenerated.
182 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
183 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
184 * emultempl/nios2elf.em: New file.
185 * gen-doc.texi (NIOSII): Set.
186 * ld.texinfo (NIOSII): Set.
187
188 2014-01-28 Nick Clifton <nickc@redhat.com>
189
190 * Makefile.am: Remove obsolete MSP430 emulations.
191 * configure.tgt: Likewise.
192 * emulparams/msp430all.sh: Likewise.
193 * Makefile.in: Regenerate.
194
195 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
196
197 PR ld/16498
198 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
199 orphaned TLS section handling.
200
201 2014-01-24 Alan Modra <amodra@gmail.com>
202
203 * ldlang.c (lang_output_section_find_by_flags): Be careful to
204 test look->bfd_section->flags if available rather than
205 look->flags. Separate SEC_THREAD_LOCAL handling from
206 SEC_READONLY loop, and rewrite.
207
208 2014-01-22 Alan Modra <amodra@gmail.com>
209
210 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
211 (lang_init): Initialise them.
212 (lang_print_asneeded): New function.
213 (lang_process): Call lang_print_asneeded.
214 * ldlang.h (struct asneeded_minfo): New.
215 (asneeded_list_tail): Declare.
216 * ldmain.c (add_archive_element): Improve archive map heading.
217 * ldmisc.c (minfo): Stash --as-needed info.
218
219 2014-01-22 Alan Modra <amodra@gmail.com>
220
221 * ld.h (struct map_symbol_def): Move to..
222 * ldlang.h: ..here.
223 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
224
225 2014-01-22 Alan Modra <amodra@gmail.com>
226
227 * ld.texinfo (Output Section Discarding): Mention assigning to dot
228 as a way of keeping otherwise empty sections.
229 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
230 is_dot_plus_0, is_align_conditional): New predicates.
231 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
232 output section, except for some special cases.
233 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
234 end of .heap and .stack.
235
236 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
237
238 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
239
240 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
241
242 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
243
244 2014-01-20 Alan Modra <amodra@gmail.com>
245
246 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
247 by_script. Make iteration a single bit field.
248 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
249 (lang_symbol_defined): Declare.
250 * ldlang.c (lang_statement_iteration): Expand comment a little.
251 (lang_init <lang_definedness_table>): Make it bigger.
252 (lang_track_definedness, lang_symbol_definition): Delete.
253 (lang_definedness_newfunc): Update.
254 (lang_symbol_defined): New function.
255 (lang_update_definedness): Create entries here. Do track whether
256 script definition of symbol is valid, even when also defined in
257 an object file.
258 * ldexp.c (fold_name <DEFINED>): Update.
259 (fold_name <NAME>): Allow self-assignment for absolute symbols
260 defined in a linker script.
261
262 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
263 Alan Modra <amodra@gmail.com>
264
265 * ldlang.h (lang_output_section_get): Define.
266 * ldlang.c (lang_output_section_get): Likewise.
267 (init_os): Set the output_section userdata to the output
268 section statement.
269 * emultempl/hppaelf.em: Use lang_output_section_get instead of
270 lang_output_section_find where applicable.
271 * emultempl/aarch64elf.em: Likewise.
272 * emultempl/aix.em: Likewise.
273 * emultempl/armelf.em: Likewise.
274 * emultempl/m68hc1xelf.em: Likewise.
275 * emultempl/metagelf.em: Likewise.
276 * emultempl/mipself.em: Likewise.
277 * emultempl/ppc64elf.em: Likewise.
278 * emultempl/spuelf.em: Likewise.
279
280 2014-01-17 Alan Modra <amodra@gmail.com>
281
282 * genscripts.sh (COMPILE_IN): Don't set if already set.
283 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
284 COMPILE_IN=no.
285 * emulparams/nds32elf16m.sh: Likewise.
286 * emulparams/nds32elf_linux.sh: Likewise.
287 * emultempl/aix.em: Test COMPILE_IN value is "yes".
288 * emultempl/armcoff.em: Likewise.
289 * emultempl/elf32.em: Likewise.
290 * emultempl/generic.em: Likewise.
291 * emultempl/gld960.em: Likewise.
292 * emultempl/gld960c.em: Likewise.
293 * emultempl/linux.em: Likewise.
294 * emultempl/lnk960.em: Likewise.
295 * emultempl/m68kcoff.em: Likewise.
296 * emultempl/sunos.em: Likewise.
297 * emultempl/ticoff.em: Likewise.
298
299 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
300
301 PR ld/16456
302 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
303 suffix.
304 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
305 for elf32_x86_64 emulation.
306 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
307 for elf_i386 emulation.
308
309 2014-01-16 Alan Modra <amodra@gmail.com>
310
311 * ld.h (fat_section_userdata_type, get_userdata): Move to..
312 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
313 * ldlang.c (init_map_userdata): Delete. Fold into..
314 (sort_def_symbol): ..here. Don't attach input section userdata
315 to output sections or global bfd sections.
316 (lang_map): Don't pre-allocate input section userdata.
317 (init_os): Don't allocate userdata for output sections.
318 (print_all_symbols): Update.
319
320 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
321
322 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
323 Silence uninitialized warning on ehdr_start_save with older
324 GCC.
325
326 2014-01-15 Alan Modra <amodra@gmail.com>
327
328 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
329 __ehdr_start before size_dynamic_sections and restore afterwards.
330
331 2014-01-10 Alan Modra <amodra@gmail.com>
332
333 PR ld/14207
334 PR ld/16322
335 PR binutils/16323
336 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
337 adjust. Tidy comments.
338 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
339
340 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
341
342 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
343
344 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
345
346 PR ld/14207
347 PR ld/16322
348 PR binutils/16323
349 * ldlang.c (lang_size_sections): Properly align RELRO base.
350
351 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
352
353 * ldver.c (ldversion): Update copyright year to 2014.
354
355 For older changes see ChangeLog-2013
356 \f
357 Copyright (C) 2014 Free Software Foundation, Inc.
358
359 Copying and distribution of this file, with or without modification,
360 are permitted in any medium without royalty provided the copyright
361 notice and this notice are preserved.
362
363 Local Variables:
364 mode: change-log
365 left-margin: 8
366 fill-column: 74
367 version-control: never
368 End:
This page took 0.038241 seconds and 5 git commands to generate.