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