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