Add support for the AVR Tiny series of microcontrollers.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
f36e8886
BS
12014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
2 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4 Soundararajan <Sounderarajan.D@atmel.com>
5
6 * Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
7 (eavrtiny.c): Add rules for avrtiny emulation source.
8 * Makefile.in: Regenerate.
9 * configure.tgt: Add avrtiny to avr target emulations.
10 * scripttempl/avrtiny.sc: New file. Linker script template for
11 avrtiny arch.
12 * emulparams/avrtiny.sh: New file. Emulation parameters for
13 avrtiny arch.
14
b0054819
UD
152014-06-30 Ulrich Drepper <drepper@gmail.com>
16
17 * lexsup.c (parse_args): Check whether provided SONAME is empty
18 string. If yes, warn and ignore it. Don't overwrite valid SONAME
19 with empty string.
20
eeb14e5a
LZ
212014-06-26 Linda Zhang <lindasc@qq.com>
22
23 * emultempl/pe.em: Initialise insert_timestamp to true.
24 Add a --no-insert-timestamp command line option.
25 * emultempl/pep.em: Likewise.
26 * ld.texinfo: Document that --insert-timestamp is enabled by
27 default and that it now has an inverse command line option.
28 * NEWS: Mention the new behaviour.
29
9d069ac3
NC
302014-06-25 Nick Clifton <nickc@redhat.com>
31
32 * Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
33 here...
34 (ALL_64_EMULATION_SOURCES): ... to here.
35 (ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
36 (ALL_64_EMUL_EXTRA_OFILES): New. ... to here.
37 * configure.in (EMUL_EXTRA_OFILES): Include
38 ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
39 * Makefile.in: Regenerate.
40 * configure: Regenerate.
41
1804dbce
AT
422014-06-18 Andreas Tobler <andreast@fgznet.ch>
43
44 * configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
45 (arm*b-*-freebsd*): Add target.
46 * emulparams/armelfb_fbsd.sh: Added.
47 * emulparams/armelf_fbsd.sh: Updated.
48 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
49 * Makefile.in: Regenerate.
50
e1279d1d
AM
512014-06-16 Alan Modra <amodra@gmail.com>
52
53 * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
54 .rel sections, and __rel_iplt from .rela sections.
55 * scripttempl/nds32elf.sc: Likewise.
56 * Makefile.am (ends32*.c) Depend on nds32elf.sc.
57 * Makefile.in: Regenerate.
58
caa4096e
AM
592014-06-13 Alan Modra <amodra@gmail.com>
60
61 PR 17047
62 * ldlang.c (output_bfd_hash_table_free_fn): Delete.
63 (open_output): Don't set it..
64 * ldmain.c (ld_cleanup): ..or call it.
65
c72f2fb2
AM
662014-06-13 Alan Modra <amodra@gmail.com>
67
68 * emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
69 * emultempl/m68kcoff.em, * emultempl/m68kelf.em,
70 * emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
71 * ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
72
07cccc39
AM
732014-06-13 Alan Modra <amodra@gmail.com>
74
75 * Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
76 * Makefile.in: Regenerate.
77
b893397a
AM
782014-06-07 Alan Modra <amodra@gmail.com>
79
80 * ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
81 linker script symbol value override a built-in linker symbol.
82
270c9937
JB
832014-06-05 Joel Brobecker <brobecker@adacore.com>
84
85 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
86 bfd's development.sh.
87 * Makefile.in, configure: Regenerate.
88
ce46249c
AM
892014-06-02 Alan Modra <amodra@gmail.com>
90
91 * emulparams/elf32bfin.sh: Rename from bfin.sh.
92 * emulparams/elf32bfinfd.sh: Update to suit.
ce46249c
AM
93 * emulparams/msp430.sh: Rename from msp430all.sh. Remove
94 MSP430_NAME and msp430X vars.
95 * emulparams/msp430X.sh: New.
ce46249c
AM
96 * emulparams/score3_elf.sh: Rename from scoreelf.sh. Remove
97 SCORE_NAME and score7_elf ARCH setting.
98 * emulparams/score7_elf.sh: New.
99 * Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
100 (emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
101 * Makefile.in: Regenerate.
102 * genscripts.sh: Delete customizer_script param.
103
77ac17b8
HPN
1042014-05-28 Hans-Peter Nilsson <hp@axis.com>
105
106 * Makefile.am: Change all rules with ${GENSCRIPTS}
107 invocations to be just dependencies.
108 ($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
109 (run-genscripts): New rules.
110 * Makefile.in: Regenerate.
111
7a2f2d82
DD
1122014-05-27 DJ Delorie <dj@redhat.com>
113
114 * ld/ldemul.h (extra_map_file_text): New field.
115 (ldemul_extra_map_file_text): Declare.
116 * ld/ldemul.c (ldemul_extra_map_file_text): Define.
117 * ld/ldlang.c (lang_map): Call it.
118
119 * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
120 * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
121 * ld/emultempl/armcoff.em: Likewise.
122 * ld/emultempl/beos.em: Likewise.
123 * ld/emultempl/elf32.em: Likewise.
124 * ld/emultempl/generic.em: Likewise.
125 * ld/emultempl/gld960.em: Likewise.
126 * ld/emultempl/gld960c.em: Likewise.
127 * ld/emultempl/linux.em: Likewise.
128 * ld/emultempl/lnk960.em: Likewise.
129 * ld/emultempl/m68kcoff.em: Likewise.
130 * ld/emultempl/pe.em: Likewise.
131 * ld/emultempl/pep.em: Likewise.
132 * ld/emultempl/sunos.em: Likewise.
133 * ld/emultempl/ticoff.em: Likewise.
134 * ld/emultempl/vanilla.em: Likewise.
135
0ef76c43
AM
1362014-05-24 Alan Modra <amodra@gmail.com>
137
138 * ldlang.c (base): Move variable to..
139 * mri.c: ..here, and make static.
140 * ldlang.h (base): Delete declaration.
141
865d0aef
HPN
1422014-05-20 Hans-Peter Nilsson <hp@axis.com>
143
144 * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
145 * Makefile.in: Regenerate.
146
93d1b056
AM
1472014-05-20 Alan Modra <amodra@gmail.com>
148
149 PR 16952
150 * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
151 * emultempl/ppc32elf.em (ppc_before_allocation): Call
152 ppc_elf_maybe_strip_sdata_syms.
153 * ldlang.c (size_input_section): Correct output_offset value
154 for excluded input sections.
155
5febff9b
JM
1562014-05-16 John Marino <binutils@marino.st>
157
158 * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
159
fae66359
CLT
1602014-05-11 Chung-Lin Tang <cltang@codesourcery.com>
161
162 * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
163 and gp in PROVIDE_HIDDEN.
164
eae25ec5
HPN
1652014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
166
167 * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
168 (output_bfd_hash_table_free_fn): New variable.
169 (open_output): Save the _bfd_link_hash_table_free function for the
170 output_bfd into output_bfd_hash_table_free_fn.
171 * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
172 on link_info.hash.
173 * ldlang.h (output_bfd_hash_table_free_fn): Declare.
174
6d00b590
AM
1752014-05-02 Alan Modra <amodra@gmail.com>
176
177 * emultempl/metagelf.em: Update bfd target vector naming.
178 * emultempl/nios2elf.em: Likewise.
179 * emultempl/spuelf.em: Likewise.
180 * emultempl/tic6xdsbt.em: Likewise.
181
73589c9d
CS
1822014-04-22 Christian Svensson <blue@cmd.nu>
183
184 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
185 * configure.tgt: Likewise.
186 * emulparams/elf32or1k.sh: New file.
187 * emulparams/elf32or1k_linux.sh: New file.
188 * emulparams/elf32openrisc.sh: Delete.
189 * emulparams/or32.sh: Delete.
190 * emulparams/or32elf.sh: Delete.
191 * scripttempl/or32.sc: Delete.
192 * Makefile.in: Regenerate.
193
d1c109de
RH
1942014-04-21 Richard Henderson <rth@redhat.com>
195
196 * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
197
8056826a
SE
1982014-04-16 Steve Ellcey <sellcey@mips.com>
199
200 * emultempl/elf32.em: Include safe-ctype.h.
201
751e54c9
SE
2022014-04-16 Steve Ellcey <sellcey@mips.com>
203
204 * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
205
edf84efc
NC
2062014-04-09 Nick Clifton <nickc@redhat.com>
207
208 * Makefile.am (default-manifest.o): Remove rule.
209 (EMUL_EXTRA_BINARIES): Delete.
210 (ALL_EMUL_EXTRA_BINARIES): Delete.
211 (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
212 (install-data-local): Remove EMUL_EXTRA_BINARIES.
213 * Makefile.in: Regenerate.
214 * configure.in (all_emul_extra_binaries): Delete.
215 (EMUL_EXTRA_BINARIES): Remove.
216 * configure: Regenerate.
217 * configure.tgt (target_extra_binaries): Delete.
218 * emultempl/default-manifest.rc: Delete.
219 * ld.texinfo: Remove discussion of default manifest.
220 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
221 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
222
e30d16e9
AM
2232014-04-09 Alan Modra <amodra@gmail.com>
224
225 * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
226 * emultempl/nds32elf.em: Include bfd_stdint.h.
227 * po/POTFILES.in: Regenerate.
228
b4ab4364
AM
2292014-04-09 Alan Modra <amodra@gmail.com>
230
231 * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
232 (LDEMUL_FINISH): Define.
233
6c1799ad
NC
2342014-04-08 Nick Clifton <nickc@redhat.com>
235
236 * scripttempl/pe.sc (R_RSRC): Remove default manifest.
237 * scripttempl/pep.sc (R_RSRC): Remove default manifest.
238
61e2488c
JT
2392014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
240
241 * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
242 Move code for parsing build-id option and calculating the build-id to...
243 * ldbuildid.c: New file.
244 * ldbuildid.h: New file.
245 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
246 files.
247 * Makefile.in: Regenerate.
248 * ld.texinfo: Update --build-id description to mention COFF
249 support.
250 * NEWS: Mention support for COFF build ids.
251 * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
252 (pecoff_checksum_contents, write_build_id, setup_build_id)
253 (gld_${EMULATION_NAME}_after_open): Handle and implement
254 build-id option.
255 * emultempl/pep.em: Likewise.
256
abc9061b
CC
2572014-04-04 Cary Coutant <ccoutant@google.com>
258
259 PR gold/16804
260 * ld.texinfo: Document optional comma following output section
261 command and overlay command.
262
ffe54b37
AM
2632014-04-04 Alan Modra <amodra@gmail.com>
264
265 * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
266 current "fill", not "output_section_statement->fill".
267
76f0cad6
NC
2682014-03-31 Nick Clifton <nickc@redhat.com>
269
270 PR ld/16744
271 * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
272 section when performing a relocatable link with -z [no]execstack
273 specified.
274
4c6d802e
L
2752014-03-27 H.J. Lu <hongjiu.lu@intel.com>
276
277 PR ld/16756
278 * ldmain.c (symbol_warning): New function.
279 (warning_callback): Use it. Scan all input files for a reference
280 to SYMBOL.
281
8547a0f9 2822014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
d0e6d77b
CF
283
284 * ld.texinfo: Document change in handling of --enable-auto-image-base.
285 * emultempl/pe.em (pe_auto_image_base): Set to default base.
286 (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
287 optional --enable-auto-image-base argument.
288 (gld${EMULATION_NAME}_handle_option): Handle optional
289 --enable-auto-image-base argument.
290 (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
291
1d63324c
NC
2922014-03-19 Nick Clifton <nickc@redhat.com>
293
294 * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
295 * Makefile.in: Regenerate.
296 * emultempl/default-manifest.rc: Fix typo.
297 * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
6caf7111 298 (.rsrc): Add SUBALIGN(4). Remove SORT.
1d63324c
NC
299 * scripttempl/pep.sc: Likewise.
300
c712f1e3
CF
3012014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
302
303 * Makefile.am: Use host version of windres.
304 * Makefile.in: Regenerate.
305
d4ae5fb0
AM
3062014-03-14 Romain Geissler <romain.geissler@amadeus.com>
307 Alan Modra <amodra@gmail.com>
308
309 * ldlang.h (full_name_provided): New input flag.
310 * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
311 for -l:namespec. Instead use lang_input_file_is_l_enum with
312 full_name_provided flag.
313 * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
314 full_name_provided flag is set.
315 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
316 Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
317 support. Set DT_NEEDED for -l:namespec as namespec.
318 * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
319 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
320 Don't handle full_name_provided libraries.
321 * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
322 * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
323 * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
324
fa47fa92
AM
3252014-03-12 Alan Modra <amodra@gmail.com>
326
327 * Makefile.in: Regenerate.
328
4b95cf5c
AM
3292014-03-05 Alan Modra <amodra@gmail.com>
330
331 Update copyright years.
332
0b55a33e
NC
3332014-03-04 Nick Clifton <nickc@redhat.com>
334
335 * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
336 * Makefile.in: Regenerate.
337
1db37fe6
YG
3382014-02-27 Yuri Gribov <y.gribov@samsung.com>
339
340 * emultempl/armelf.em (OPTION_LONG_PLT): Define.
341 (PARSE_AND_LIST_LONGOPTS): Add long-plt.
342 (PARSE_AND_LIST_OPTIONS): Likewise.
343 (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
344 * ld.texinfo: Document --long-plt.
345
db434ba0
AM
3462014-02-27 Alan Modra <amodra@gmail.com>
347
348 * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
349 use ppc32elf.em.
350 * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
351 vxworks.
352 (LDEMUL_AFTER_OPEN): Don't set for vxworks.
353 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
354 -secure-plt, -bss-plt and -sdata-got when vxworks.
355
5063daf7
NC
3562014-02-27 Nick Clifton <nickc@redhat.com>
357
358 * configure.in (all_emul_extra_binaries): New variable. Populated
359 by invoking configure.tgt.
360 (EMUL_EXTRA_BINARIES): New substitution.
361 * configure: Regenerate.
362 * configure.tgt (target_extra_binaries): New variable. Set to
363 default-manifest.o for Cygwin and MinGW targets.
364 * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
365 by the configure script.
366 (ALL_EMUL_EXTRA_BINARIES): New variable.
367 (default-manifest.o): New rule to build the default manifest.
368 (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
369 (install-data-local): Add EMUL_EXTRA_BINARIES.
370 * Makefile.in: Regenerate.
371 * ld.texinfo: Document default manifest support.
372 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
373 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
374 * emultempl/default-manifest.rc: New file.
375 * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
376 * scripttempl/pep.sc (R_RSRC): Likewise.
377
e3e37035
DM
3782014-02-26 Dan Mick <dan.mick@inktank.com>
379
380 PR ld/16569
381 * ldcref.c (cref_sort_array): Compare unmangled names unless
382 demanglng has been requiested.
383 (output_one_cref): Output unmangled name unless demangling has
384 been requested.
385
0ff2b86e
L
3862014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
387 H.J. Lu <hongjiu.lu@intel.com>
388
389 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
390
7d4c687d
AM
3912014-02-19 Alan Modra <amodra@gmail.com>
392
393 * emultempl/ppc64elf.em (params): Init new field.
394 (ppc_create_output_section_statements): Set params.save_restore_funcs
395 default.
396 (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
397 --no-save-restore-funcs.
398
e7d1c40c
AM
3992014-02-17 Alan Modra <amodra@gmail.com>
400
401 * emultemps/ppc64elf.em (params): New static struct replacing
402 various other static vars. Adjust code throughout file.
403
668e22e5
AM
4042014-02-17 Alan Modra <amodra@gmail.com>
405
406 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
407 ppc476 workaround for ld -r.
408
795bc6b3
AM
4092014-02-12 Alan Modra <amodra@gmail.com>
410
411 * emultempl/ppc32elf.em (pagesize): New static var.
412 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
413 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
414
7d0edd4b
AP
4152014-02-11 Andrew Pinski <apinski@cavium.com>
416
417 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
418 (ELF_INTERPRETER_NAME): Define.
419 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
420
c1c69e83
AM
4212014-02-10 Alan Modra <amodra@gmail.com>
422
423 * po/ld.pot: Regenerate.
424
5446cbdf
AM
4252014-02-03 Alan Modra <amodra@gmail.com>
426
427 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
428 plt_style): Delete. Adjust all refs to instead use..
429 (params): ..this. New variable.
430 (ppc_after_open_output): New function. Tweak params and pass to
431 ppc_elf_link_params.
432 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
433 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
434 relaxation for ppc476 workaround.
435 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
436 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
437
13075d04
SH
4382014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
439
440 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
441 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
442 variable which reflects the VMA change due to alignment
443 requirements. Use dotdelta do change the LMA if
444 ALIGN_WITH_INPUT is requested.
445
0a09fb4a
HPN
4462014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
447
448 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
449 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
450 change.
451
78058a5e
SL
4522014-01-30 Sandra Loosemore <sandra@codesourcery.com>
453
454 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
455 * Makefile.in: Regenerated.
456 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
457 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
458 * emultempl/nios2elf.em: New file.
459 * gen-doc.texi (NIOSII): Set.
460 * ld.texinfo (NIOSII): Set.
461
1ade0651
NC
4622014-01-28 Nick Clifton <nickc@redhat.com>
463
464 * Makefile.am: Remove obsolete MSP430 emulations.
465 * configure.tgt: Likewise.
466 * emulparams/msp430all.sh: Likewise.
467 * Makefile.in: Regenerate.
468
d85e71fe
L
4692014-01-24 H.J. Lu <hongjiu.lu@intel.com>
470
471 PR ld/16498
472 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
473 orphaned TLS section handling.
474
d9d94ac8
AM
4752014-01-24 Alan Modra <amodra@gmail.com>
476
477 * ldlang.c (lang_output_section_find_by_flags): Be careful to
478 test look->bfd_section->flags if available rather than
479 look->flags. Separate SEC_THREAD_LOCAL handling from
480 SEC_READONLY loop, and rewrite.
481
16e4ecc0
AM
4822014-01-22 Alan Modra <amodra@gmail.com>
483
484 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
485 (lang_init): Initialise them.
486 (lang_print_asneeded): New function.
487 (lang_process): Call lang_print_asneeded.
488 * ldlang.h (struct asneeded_minfo): New.
489 (asneeded_list_tail): Declare.
490 * ldmain.c (add_archive_element): Improve archive map heading.
491 * ldmisc.c (minfo): Stash --as-needed info.
492
7dd9c6eb
AM
4932014-01-22 Alan Modra <amodra@gmail.com>
494
495 * ld.h (struct map_symbol_def): Move to..
496 * ldlang.h: ..here.
497 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
498
2edab91c
AM
4992014-01-22 Alan Modra <amodra@gmail.com>
500
501 * ld.texinfo (Output Section Discarding): Mention assigning to dot
502 as a way of keeping otherwise empty sections.
503 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
504 is_dot_plus_0, is_align_conditional): New predicates.
505 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
506 output section, except for some special cases.
507 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
508 end of .heap and .stack.
509
5a4f2336
MS
5102014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
511
512 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
513
30feb358
MS
5142014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
515
516 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
517
fa72205c
AM
5182014-01-20 Alan Modra <amodra@gmail.com>
519
520 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
521 by_script. Make iteration a single bit field.
522 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
523 (lang_symbol_defined): Declare.
524 * ldlang.c (lang_statement_iteration): Expand comment a little.
525 (lang_init <lang_definedness_table>): Make it bigger.
526 (lang_track_definedness, lang_symbol_definition): Delete.
527 (lang_definedness_newfunc): Update.
528 (lang_symbol_defined): New function.
529 (lang_update_definedness): Create entries here. Do track whether
530 script definition of symbol is valid, even when also defined in
531 an object file.
532 * ldexp.c (fold_name <DEFINED>): Update.
533 (fold_name <NAME>): Allow self-assignment for absolute symbols
534 defined in a linker script.
535
24ef1aa7
GM
5362014-01-20 Guy Martin <gmsoft@tuxicoman.be>
537 Alan Modra <amodra@gmail.com>
538
539 * ldlang.h (lang_output_section_get): Define.
540 * ldlang.c (lang_output_section_get): Likewise.
541 (init_os): Set the output_section userdata to the output
542 section statement.
543 * emultempl/hppaelf.em: Use lang_output_section_get instead of
544 lang_output_section_find where applicable.
545 * emultempl/aarch64elf.em: Likewise.
546 * emultempl/aix.em: Likewise.
547 * emultempl/armelf.em: Likewise.
548 * emultempl/m68hc1xelf.em: Likewise.
549 * emultempl/metagelf.em: Likewise.
550 * emultempl/mipself.em: Likewise.
551 * emultempl/ppc64elf.em: Likewise.
552 * emultempl/spuelf.em: Likewise.
553
7225345d
AM
5542014-01-17 Alan Modra <amodra@gmail.com>
555
556 * genscripts.sh (COMPILE_IN): Don't set if already set.
557 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
558 COMPILE_IN=no.
559 * emulparams/nds32elf16m.sh: Likewise.
560 * emulparams/nds32elf_linux.sh: Likewise.
561 * emultempl/aix.em: Test COMPILE_IN value is "yes".
562 * emultempl/armcoff.em: Likewise.
563 * emultempl/elf32.em: Likewise.
564 * emultempl/generic.em: Likewise.
565 * emultempl/gld960.em: Likewise.
566 * emultempl/gld960c.em: Likewise.
567 * emultempl/linux.em: Likewise.
568 * emultempl/lnk960.em: Likewise.
569 * emultempl/m68kcoff.em: Likewise.
570 * emultempl/sunos.em: Likewise.
571 * emultempl/ticoff.em: Likewise.
572
f6f6c679
L
5732014-01-16 H.J. Lu <hongjiu.lu@intel.com>
574
575 PR ld/16456
576 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
577 suffix.
578 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
579 for elf32_x86_64 emulation.
580 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
581 for elf_i386 emulation.
582
6fcc66ab
AM
5832014-01-16 Alan Modra <amodra@gmail.com>
584
585 * ld.h (fat_section_userdata_type, get_userdata): Move to..
586 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
587 * ldlang.c (init_map_userdata): Delete. Fold into..
588 (sort_def_symbol): ..here. Don't attach input section userdata
589 to output sections or global bfd sections.
590 (lang_map): Don't pre-allocate input section userdata.
591 (init_os): Don't allocate userdata for output sections.
592 (print_all_symbols): Update.
593
f9c316c4
L
5942014-01-15 H.J. Lu <hongjiu.lu@intel.com>
595
596 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
597 Silence uninitialized warning on ehdr_start_save with older
598 GCC.
599
4199e3b8
AM
6002014-01-15 Alan Modra <amodra@gmail.com>
601
602 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
603 __ehdr_start before size_dynamic_sections and restore afterwards.
604
eec2f3ed
AM
6052014-01-10 Alan Modra <amodra@gmail.com>
606
607 PR ld/14207
608 PR ld/16322
609 PR binutils/16323
610 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
611 adjust. Tidy comments.
612 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
613
d1e1519e
HPN
6142014-01-10 Hans-Peter Nilsson <hp@axis.com>
615
616 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
617
43a8475c
L
6182014-01-08 H.J. Lu <hongjiu.lu@intel.com>
619
620 PR ld/14207
621 PR ld/16322
622 PR binutils/16323
623 * ldlang.c (lang_size_sections): Properly align RELRO base.
624
221fd5d5
L
6252014-01-08 H.J. Lu <hongjiu.lu@intel.com>
626
627 * ldver.c (ldversion): Update copyright year to 2014.
628
5fb776a6 629For older changes see ChangeLog-2013
252b5132 630\f
5fb776a6 631Copyright (C) 2014 Free Software Foundation, Inc.
752937aa
NC
632
633Copying and distribution of this file, with or without modification,
634are permitted in any medium without royalty provided the copyright
635notice and this notice are preserved.
636
252b5132
RH
637Local Variables:
638mode: change-log
639left-margin: 8
640fill-column: 74
641version-control: never
642End:
This page took 0.68838 seconds and 4 git commands to generate.