]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
Make register name tables in visium.h static in order to prevent multiple definitions.
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
081bb924
NC
12015-09-09 Nick Clifton <nickc@redhat.com>
2
3 * po/zh_CN.po: Updated simplified Chinese translation.
4
5707d2ad
NC
52015-09-08 Nick Clifton <nickc@redhat.com>
6
7 * ld.texinfo (Source Code Reference): Extend description to
8 include an example using arrays.
9
c005eb9e
AB
102015-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * ld.h (enum orphan_handling_enum): New.
13 (ld_config_type): Remove warn_orphan, add orphan_handling.
14 * ldemul.c (ldemul_place_orphan): Remove warning about orphan
15 sections.
16 * ldlang.c (ldlang_place_orphan): New function.
17 (lang_place_orphans): Call ldlang_place_orphan.
18 * ldlex.h (enum option_values): Remove OPTION_WARN_ORPHAN and
19 OPTION_NO_WARN_ORPHAN, add OPTION_ORPHAN_HANDLING.
20 * lexsup.c (ld_options): Remove 'warn-orphan' and
21 'no-warn-orphan', add 'orphan-handling'.
22 (parse_args): Remove handling for OPTION_WARN_ORPHAN and
23 OPTION_NO_WARN_ORPHAN, add handling for OPTION_ORPHAN_HANDLING.
24 * NEWS: Replace text about --warn-orphan with --orphan-handling.
25 * ld.texinfo (Options): Remove --warn-orphan entry and add
26 entry on --orphan-handling.
27 (Orphan Sections): Add reference to relevant command line options.
28
6033bf41
NC
292015-09-03 Nick Clifton <nickc@redhat.com>
30
31 * ld.texinfo (--build-id): Fix typo. The COFF/PE build-id section
32 is called .buildid not .build-id.
33
a5e406b5
NC
342015-09-03 Nick Clifton <nickc@redhat.com>
35
36 (Source Code Reference): Fix off-by-one typo in example of how to
37 use linker script symbols in C source code.
38
64d94ba0
AM
392015-08-19 Alan Modra <amodra@gmail.com>
40
41 * emultempl/aix.em: Don't set link_info.pic.
42 * emultempl/pe.em: Likewise.
43 * emultempl/pep.em: Likewise.
44 * emultempl/sunos.em: Likewise.
45 * lexsup.c (parse_args): Likewise. Set type_pie for -pie.
46 * plugin.c (set_tv_header <LDPT_LINKER_OUTPUT>): Simplify.
47
0e1862bb
L
482015-08-18 H.J. Lu <hongjiu.lu@intel.com>
49
50 * ld/ldctor.c: Replace shared, executable, relocatable and pie
51 fields with bfd_link_executable, bfd_link_dll,
52 bfd_link_relocatable, bfd_link_pic and bfd_link_pie.
53 * ld/ldemul.c: Likewise.
54 * ld/ldfile.c: Likewise.
55 * ld/ldlang.c: Likewise.
56 * ld/ldmain.c: Likewise.
57 * ld/ldwrite.c: Likewise.
58 * ld/lexsup.c: Likewise.
59 * ld/pe-dll.c: Likewise.
60 * ld/plugin.c: Likewise.
61 * ld/emultempl/aarch64elf.em: Likewise.
62 * ld/emultempl/aix.em: Likewise.
63 * ld/emultempl/alphaelf.em: Likewise.
64 * ld/emultempl/armcoff.em: Likewise.
65 * ld/emultempl/armelf.em: Likewise.
66 * ld/emultempl/avrelf.em: Likewise.
67 * ld/emultempl/beos.em: Likewise.
68 * ld/emultempl/cr16elf.em: Likewise.
69 * ld/emultempl/elf-generic.em: Likewise.
70 * ld/emultempl/elf32.em: Likewise.
71 * ld/emultempl/genelf.em: Likewise.
72 * ld/emultempl/generic.em: Likewise.
73 * ld/emultempl/gld960.em: Likewise.
74 * ld/emultempl/gld960c.em: Likewise.
75 * ld/emultempl/hppaelf.em: Likewise.
76 * ld/emultempl/irix.em: Likewise.
77 * ld/emultempl/linux.em: Likewise.
78 * ld/emultempl/lnk960.em: Likewise.
79 * ld/emultempl/m68hc1xelf.em: Likewise.
80 * ld/emultempl/m68kcoff.em: Likewise.
81 * ld/emultempl/m68kelf.em: Likewise.
82 * ld/emultempl/metagelf.em: Likewise.
83 * ld/emultempl/mipself.em: Likewise.
84 * ld/emultempl/mmo.em: Likewise.
85 * ld/emultempl/msp430.em: Likewise.
86 * ld/emultempl/nds32elf.em: Likewise.
87 * ld/emultempl/needrelax.em: Likewise.
88 * ld/emultempl/nios2elf.em: Likewise.
89 * ld/emultempl/pe.em: Likewise.
90 * ld/emultempl/pep.em: Likewise.
91 * ld/emultempl/ppc32elf.em: Likewise.
92 * ld/emultempl/ppc64elf.em: Likewise.
93 * ld/emultempl/sh64elf.em: Likewise.
94 * ld/emultempl/solaris2.em: Likewise.
95 * ld/emultempl/spuelf.em: Likewise.
96 * ld/emultempl/sunos.em: Likewise.
97 * ld/emultempl/tic6xdsbt.em: Likewise.
98 * ld/emultempl/ticoff.em: Likewise.
99 * ld/emultempl/v850elf.em: Likewise.
100 * ld/emultempl/vms.em: Likewise.
101 * ld/emultempl/vxworks.em: Likewise.
102
43417696
AM
1032015-08-18 Alan Modra <amodra@gmail.com>
104
105 * ldexp.c (exp_fold_tree_1): Clear linker_def on symbol assignment.
106
e0a3af22
AM
1072015-08-06 Alan Modra <amodra@gmail.com>
108
109 * ldexp.c (align_dot_val): Delete.
110 (fold_unary <ALIGN_K, NEXT>): Revert 2015-07-10 change.
111 (is_align_conditional): Revert 2015-07-20 change.
112 (exp_fold_tree_1): Likewise, but keep expanded comment.
113 * scripttempl/elf.sc (.ldata, .bss): Revert 2015-07-20 change.
114 * ld.texinfo (<ALIGN>): Correct description.
115
0a618243
AB
1162015-08-04 Andrew Burgess <andrew.burgess@embecosm.com>
117
118 * ld.texinfo (Options): Document --require-defined option.
119 * ldlang.c (struct require_defined_symbol): New structure.
120 (require_defined_symbol_list): New variable.
121 (ldlang_add_require_defined): New function.
122 (ldlang_check_require_defined_symbols): New function.
123 (lang_process): Check required symbols are defined.
124 * ldlang.h (ldlang_add_require_defined): Declare.
125 * ldlex.h (enum option_values): Add OPTION_REQUIRE_DEFINED_SYMBOL.
126 * lexsup.c (ld_options): Add '--require-defined' entry.
127 (parse_args): Handle '--requre-defined' entry.
128 * NEWS: Mention new '--require-defined' option.
129
127fcdff
AB
1302015-08-03 Andrew Burgess <andrew.burgess@embecosm.com>
131
132 * ld.texinfo (MEMORY): Explain that multiple MEMORY commands are
133 acceptable.
134
e77e648e
L
1352015-07-29 H.J. Lu <hongjiu.lu@intel.com>
136
137 * lexsup.c (parse_args): Don't set link_info.executable to
138 TRUE for link_info.relocatable.
139
37a42ee9
L
1402015-07-27 H.J. Lu <hongjiu.lu@intel.com>
141
142 * configure: Regenerated.
143
aff1a65e
NC
1442015-07-24 Nick Clifton <nickc@redhat.com>
145
146 * emulparams/elf32rl78.sh (OTHER_SECTIONS): Provide a value for
147 the _-rl78_abs__ symbol.
148
d9d11c36
AM
1492015-07-20 Alan Modra <amodra@gmail.com>
150
151 * emulparams/criself.sh (INIT_ADDR, FINI_ADDR): Define.
152 (INIT_START, FINI_START): Don't ALIGN.
153 * scriptempl/elf.sc (.init, .fini): Apply INIT_ADDR/FINI_ADDR.
154
e474ab13
AM
1552015-07-20 Alan Modra <amodra@gmail.com>
156
157 * scripttempl/elf.sc (.ldata, .bss): Align absolute value of dot.
158 * ldexp.c (is_align_conditional): Handle binary ALIGN.
159 (exp_fold_tree_1): Move code setting SEC_KEEP for assignments to
160 dot inside output sections. Handle absolute expressions.
161
19a7fe52
L
1622015-07-14 H.J. Lu <hongjiu.lu@intel.com>
163
164 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Make
165 --compress-debug-sections=zlib the same as
166 --compress-debug-sections=zlib-gabi.
167 * ld.texinfo: Change --compress-debug-sections=zlib to zlib-gabi.
168
1f0d470a
NC
1692015-07-14 Nick Clifton <nickc@redhat.com>
170
171 * ld.texinfo (Options): Add missing period after @xref.
172
a2c59f28
AM
1732015-07-10 Alan Modra <amodra@gmail.com>
174
175 * ldexp.c (align_dot_val): New function.
176 (fold_unary <ALIGN_K, NEXT>): Use it.
177
0f088b2a
KT
1782015-07-03 Kai Tietz <ktietz@redhat.com>
179
180 PR ld/11539
181 * scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
182 .rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
183 .eh_frame, .pdata. .xdata, and .gcc_except_table sections
184 as KEEP.
185 * scripttempl/pe.sc: Likewise.
186 * ld.texinfo: Document that --gc-sections has experimental support
187 for COFF and PE targets.
188 * NEWS: Mention experimental support.
189
b6b3dd8f
AM
1902015-07-03 Alan Modra <amodra@gmail.com>
191
192 * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
193 * Makefile.in: Regenerate.
194
ee0c0c50
L
1952015-06-28 H.J. Lu <hongjiu.lu@intel.com>
196
197 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
198 Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
199
c742574f
L
2002015-06-26 H.J. Lu <hongjiu.lu@intel.com>
201
202 * emulparams/elf_iamcu.sh (COMPILE_IN): New.
203
a2a4d60d
NC
2042015-06-15 Nick Clifton <nickc@redhat.com>
205
206 PR ld/18466
207 * emultempl/pe.em (pe_find_data_imports): Generate an error if a
208 symbol name is too long to handle.
209 * emultempl/pep.em (pep_find_data_imports): Likewise.
210
3604cb1f
TG
2112015-06-12 Tristan Gingold <gingold@adacore.com>
212
213 * NEWS: Mention new option.
214 * lexsup.c (parse_args): Handle --print-memory-usage.
215 (ld_options): Add --print-memory-usage.
216 * ldmain.c (main): Call lang_print_memory_usage.
217 * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
218 * ldlang.h: Add prototype of lang_print_memory_usage.
219 * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
220 functions.
221 * ld.texinfo (Options): Document --print-memory-usage.
222 * ld.h (args_type): Add print_memory_usage field.
223
1e1b2efc
NC
2242015-06-08 Nick Clifton <nickc@redhat.com>
225
226 * po/fr.po: Updated French Translation.
227
2f0c68f2
CM
2282015-05-28 Catherine Moore <clm@codesourcery.com>
229 Paul Brook <paul@codesourcery.com>
230
2f0c68f2
CM
231 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
232 Add Compact EH support.
233 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
234 sections.
235
68880f31
CLT
2362015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
237
238 * configure.ac (AC_PROG_GREP): Check for grep program.
239 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
240 Enable ELF option printing for emulations containing
241 'TEMPLATE_NAME=elf32'.
242 * configure: Regenerate.
243
fd1c4238
NC
2442015-05-14 Nick Clifton <nickc@redhat.com>
245
246 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
247 symbols.
248
5197d474
L
2492015-05-11 H.J. Lu <hongjiu.lu@intel.com>
250
251 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
252
7e0a8112
L
2532015-05-11 H.J. Lu <hongjiu.lu@intel.com>
254
255 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
256 (eelf_iamcu.c): New.
257 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
258 enabled in BFD.
259 * Makefile.in: Regenerated.
260 * emulparams/elf_iamcu.sh: New file.
261
837a17b3
NC
2622015-05-05 Nick Clifton <nickc@redhat.com>
263
264 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
265 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
266 (.data): Add .lower.data and .either.data.
267 (.bss): Add .lower.bss and .either.bss.
268 (.rodata): Add .lower.rodata and .either.rodata.
269 * emultempl/msp430.em: New file. Implements a new orphan
270 placement algorithm that divides sections between lower and upper
271 memory regions.
272 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
273 *emsp430X.c): Likewise.
274 * Makefine.in: Regenerate.
275
a13eab06
AS
2762015-04-28 Andreas Schwab <schwab@linux-m68k.org>
277
278 PR ld/18344
279 * ldlex.l (INPUTLIST): Increment lineno on newline.
280
44bd1acd
AM
2812015-04-24 Alan Modra <amodra@gmail.com>
282
283 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
284 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
285
08e2f2bb
DD
2862015-04-24 DJ Delorie <dj@redhat.com>
287
288 * Makefile.am (msp430): Rename primary emulation to msp430elf.
289 (emsp430.c): Rename to emsp430elf.c, update dependencies
290 (emsp430X.c): Update dependencies.
291 * Makefile.in: Likewise.
292 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
d9e88e90 293 * emulparams/msp430.sh: Rename to msp430elf.sh.
08e2f2bb
DD
294 * emulparams/msp430X.sh: Update.
295
f6fe1ccd
L
2962015-04-23 H.J. Lu <hongjiu.lu@intel.com>
297
298 PR binutils/18209
299 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
300
a27e685f
AM
3012015-04-23 Alan Modra <amodra@gmail.com>
302
303 * emulparams/elf64ppc.sh (GOT): Align.
304
0e5fabeb
AM
3052015-04-22 Alan Modra <amodra@gmail.com>
306
307 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
308 data_seg.relro_offset.
309 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
310 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
311 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
312 segment base to line up last section on page boundary.
313
ea556d25
L
3142015-04-15 H.J. Lu <hongjiu.lu@intel.com>
315
316 * NEWS: Mention
317 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
318
0ce398f1
L
3192015-04-14 H.J. Lu <hongjiu.lu@intel.com>
320
321 * ld.texinfo: Document --compress-debug-sections=.
322 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
323 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
324 for COMPRESS_DEBUG_GABI_ZLIB.
325 * lexsup.c (elf_static_list_options): Add
326 --compress-debug-sections=.
327 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
328 (xtra_long): Add "compress-debug-sections".
329 (gld${EMULATION_NAME}_handle_option): Handle
330 OPTION_COMPRESS_DEBUG.
331
889c2a67
L
3322015-04-14 H.J. Lu <hongjiu.lu@intel.com>
333
334 PR ld/pr17709
335 * ld.texinfo: Document "-z noextern-protected-data".
336 * ldmain.c (main): Initialize link_info.extern_protected_data
337 to -1.
338 * lexsup.c (elf_shlib_list_options): Add
339 "-z [no]extern-protected-data".
340 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
341 * emulparams/elf_i386.sh: Likewise.
342 * emulparams/elf_i386_be.sh: Likewise.
343 * emulparams/elf_i386_chaos.sh: Likewise.
344 * emulparams/elf_i386_ldso.sh: Likewise.
345 * emulparams/elf_i386_vxworks.sh: Likewise.
346 * emulparams/elf_k1om.sh: Likewise.
347 * emulparams/elf_l1om.sh: Likewise.
348 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
349 (PARSE_AND_LIST_OPTIONS): Renamed to ...
350 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
351 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
352 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
353 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
354 (PARSE_AND_LIST_ARGS_CASE_Z): Append
355 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
356 * emulparams/extern_protected_data.sh: New file.
357
fd5a1509
L
3582015-04-11 H.J. Lu <hongjiu.lu@intel.com>
359
360 * plugin.c (plugin_load_plugins): Removed an extra ';'.
361
080bb7bb
NC
3622015-04-10 Nick Clifton <nickc@redhat.com>
363
364 PR binutils/18198
365 * ld.texinfo (--be8): Add a note about the interaction of this
366 option with the assembler's -EB option.
367
8c3fff59
AM
3682015-04-10 Alan Modra <amodra@gmail.com>
369
370 * configure.ac: Set elf_list_options etc. in proper case.
371 * configure: Regenerate.
372
6166ed93
AM
3732015-04-10 Alan Modra <amodra@gmail.com>
374
375 PR ld/18223
376 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
377
eba27bd7
L
3782015-04-09 H.J. Lu <hongjiu.lu@intel.com>
379
380 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
381 (PARSE_AND_LIST_OPTIONS): New.
382 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
383 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
384 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
385 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
386
233723a4
NC
3872015-04-09 Nick Clifton <nickc@redhat.com>
388
389 * po/fr.po: Updated French translation.
390
82d8e420
L
3912015-04-08 H.J. Lu <hongjiu.lu@intel.com>
392
393 * configure.ac (elf_list_options): Set to TRUE for
394 --enable-targets=all.
395 (elf_shlib_list_options): Likewise.
396 (elf_plt_unwind_list_options): Likewise.
397 * configure: Regenerated.
398
31b94bbb
L
3992015-04-08 H.J. Lu <hongjiu.lu@intel.com>
400
401 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
402
c58212ea
L
4032015-04-08 H.J. Lu <hongjiu.lu@intel.com>
404
405 * Makefile.am (ELF_CLFAGS): New.
406 (AM_CFLAGS): Add $(ELF_CLFAGS).
407 * configure.ac (elf_list_options): New. AC_SUBST.
408 (elf_shlib_list_options): Likewise.
409 (elf_plt_unwind_list_options): Likewise.
410 * lexsup.c (elf_shlib_list_options): New.
411 (elf_static_list_options): Likewise.
412 (elf_plt_unwind_list_options): Likewise.
413 (ld_list_options): Likewise.
414 (help): Call ld_list_options.
415 * Makefile.in: Regenerated.
416 * configure: Likewise.
417 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
418 (PARSE_AND_LIST_OPTIONS): Removed.
419 * emultempl/elf32.em (gld_list_options): New.
420 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
421 PARSE_AND_LIST_OPTIONS is defined.
422 (ld_${EMULATION_NAME}_emulation): Replace
423 gld${EMULATION_NAME}_list_options with ${gld_list_options.
424
0fad6e4b
AM
4252015-04-07 Alan Modra <amodra@gmail.com>
426
427 PR ld/18176
428 * ldlang.c (lang_size_sections): Cast shift expression.
429
d3e454b9
AM
4302015-04-07 Alan Modra <amodra@gmail.com>
431
432 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
433 (params): Init new field.
434 (ppc_before_allocation): Enable relaxation for pic_fixup.
435
3ea60775
NC
4362015-04-07 Nick Clifton <nickc@redhat.com>
437
438 * ld.h (struct ld_config_type): Add new field: warn_orphan.
439 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
440 OPTION_NO_WARN_ORPHAN.
441 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
442 (parse_args): Handle the new options.
443 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
444 message when an orphan section is placed in the output file.
445 * ld.texinfo: Document the new option.
446 * NEWS: Mention the new feature.
447
15c7659f
AT
4482015-04-02 Andrew Turner <andrew@freebsd.org>
449
450 * Makefile.am: Add FreeBSD aarch64 files.
451 * Makefile.in: Regenerate.
452 * configure.tgt: Add aarch64-*-freebsd* target triple.
453 * emulparams/aarch64fbsd.sh: New file.
454 * emulparams/aarch64fbsdb.sh: New file.
455
a0bde398
L
4562015-04-01 H.J. Lu <hongjiu.lu@intel.com>
457
458 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
459 around a GCC uninitialized warning bug fixed in GCC 4.6.
460
4106101c
MS
4612015-04-01 Tejas Belagod <tejas.belagod@arm.com>
462
463 * emultempl/aarch64elf.em
464 (aarch64_elf_create_output_section_statements): Add parameter in
465 bfd_elf${ELFSIZE}_aarch64_set_options call.
466 (OPTION_FIX_ERRATUM_843419): Define.
467 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
468 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
469
16c1c9d6
CG
4702015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
471
472 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
473 relocating operation.
474
6c1aca3e
AM
4752015-04-01 Alan Modra <amodra@gmail.com>
476
875b5b9d 477 PR ld/18176
6c1aca3e
AM
478 * ldlang.c (lang_size_sections): When alignment of sections
479 results in relro base adjustment being too large, don't go lower
480 than the initial value.
481 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
482 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
483 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
484
4a0bc59e
AM
4852015-04-01 Alan Modra <amodra@gmail.com>
486
487 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
488 init ehdr_start_save.
489
42271ec5
AM
4902015-04-01 Alan Modra <amodra@gmail.com>
491
492 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
493 ldemul-list.h.
494 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
495 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
496 eelf32ppcsim.c): Rearrange deps for consistency.
497 * Makefile.in: Regenerate.
498
4e791d0f
ES
4992015-04-01 Ed Schouten <ed@nuxi.nl>
500
501 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
502 the ehdr_start_save variable.
503
6036f486
ES
5042015-03-31 Ed Schouten <ed@nuxi.nl>
505
506 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
507 eelf_x86_64_cloudabi.c.
508 (eelf_x86_64_cloudabi.c): New.
509 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
510 x86_64-*-cloudabi*.
511 * Makefile.in: Regenerated.
512 * emulparams/elf_x86_64_cloudabi.sh: New file.
513
f24173eb
L
5142015-03-31 H.J. Lu <hongjiu.lu@intel.com>
515
516 * configure.ac (AM_ZLIB): Removed.
517 * Makefile.in: Regenerated.
518 * config.in: Likewise.
519 * configure: Likewise.
520
d9ced15d
MS
5212015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
522
523 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
524 alignment to 2.
525
499c37b5
MS
5262015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
527
528 * emultempl/aarch64elf.em
529 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
530
b3862264
CG
5312015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
532
533 * ldmain.c (main): Use %F instead of %X for einfo.
534
daf220f0
AM
5352015-03-02 Alan Modra <amodra@gmail.com>
536
537 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
538
f0673d20
NC
5392015-02-27 Nick Clifton <nickc@redhat.com>
540
541 PR ld/17900
542 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
543 sense of the following memory region attribute characters.
544
330b17b3
AM
5452015-02-27 Alan Modra <amodra@gmail.com>
546
547 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
548 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
549 eh8300sxelf_linux.c): Do not invoke genscripts here.
550 * Makefile.in: Regenerate.
551
685080f2
NC
5522015-02-24 Nick Clifton <nickc@redhat.com>
553
554 * Makefile.am (ev850.c): Add dependency upon
555 $(srcdir)/emultempl/v850elf.em.
556 (ev850_rh850.c): Likewise.
557 * Makefile.in: Regenerate.
558 * emultempl/v850elf.em: New file.
559 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
560 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
561 * scripttempl/v850.sc: Add .note.renesas section.
562 * scripttempl/v850_rh850.sc: Likewise.
563
cb072816
SKS
5642015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
565
566 * scripttempl/avr.sc: Add new user_signatures region. Define and
567 use symbols for all region lengths.
568 * scripttempl/avrtiny.sc: Define and use symbols for all region
569 lengths.
570
5518c738
YS
5712015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
572
573 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
574 * Makefile.in: Regenerate.
575 * configure.tgt: Add h8300-*-linux
576 * emulparams/h8300elf_linux.sh: Add new emulation.
577 * emulparams/h8300helf_linux.sh: Likewise.
578 * emulparams/h8300self_linux.sh: Likewise.
579 * emulparams/h8300sxelf_linux.sh: Likewise.
580
f971c12f
NC
5812015-02-23 Nick Clifton <nickc@redhat.com>
582
583 * lexsup.c (parse_args): Produce a more reasonable error message
584 when -ixxx or -rxxx is the last option on the linker command line.
585
f58926a6
L
5862015-02-14 H.J. Lu <hongjiu.lu@intel.com>
587
588 PR ld/17973
589 * testplug2.c (allsymbolsread_silent): New.
590 (set_register_hook): Handle allsymbolsreadsilent.
591 (onall_symbols_read): Skip a message if allsymbolsread_silent is
592 TRUE.
593
ce875075
AM
5942015-02-14 Alan Modra <amodra@gmail.com>
595
596 PR ld/17973
597 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
598 * ldlang.c (lang_process): Don't set loading_lto_outputs.
599 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
600 to bfd.
601 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
602
b0619670
L
6032015-02-13 H.J. Lu <hongjiu.lu@intel.com>
604
605 * NEWS: Mention support for LLVM plugin.
606
66bc8739
AM
6072015-02-13 Alan Modra <amodra@gmail.com>
608
609 * ld.texinfo (Options <--defsym>): Correct cross reference.
610
88b9e2eb
L
6112015-02-11 H.J. Lu <hongjiu.lu@intel.com>
612
613 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
614 option compatibility.
615
45e81354
L
6162015-02-11 H.J. Lu <hongjiu.lu@intel.com>
617
618 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
619 "error:" for LDPL_FATAL and LDPL_ERROR.
620 * testplug2.c (parse_option): Handle fatal, error and warning.
621
e3001fd9
L
6222015-02-11 H.J. Lu <hongjiu.lu@intel.com>
623
624 * testplug2.c (dump_tv_tag): Removed.
625 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
626 closed.
627 * testplug3.c (dump_tv_tag): Removed.
628 (onclaim_file): Fix typo.
629
7275e869
L
6302015-02-11 H.J. Lu <hongjiu.lu@intel.com>
631
632 PR ld/17878
633 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
634 libldtestplug3.la.
635 (libldtestplug2_la_SOURCES): New.
636 (libldtestplug2_la_CFLAGS): Likewise.
637 (libldtestplug2_la_LDFLAGS): Likewise.
638 (libldtestplug3_la_SOURCES): New.
639 (libldtestplug3_la_CFLAGS): Likewise.
640 (libldtestplug3_la_LDFLAGS): Likewise.
641 * Makefile.in: Regenerated.
642 * testplug2.c: New file.
643 * testplug3.c: Likewise.
644
b9dc5a87
L
6452015-02-11 H.J. Lu <hongjiu.lu@intel.com>
646
647 PR ld/17878
648 * plugin.c: Include ../bfd/plugin.h.
649 (plugin_get_ir_dummy_bfd): Call bfd_create with
650 link_info.output_bfd instead of srctemplate. Copy BFD info
651 from srctemplate only if it doesn't use BFD plugin target
652 vector.
653 (plugin_load_plugins): Call register_ld_plugin_object_p with
654 (plugin_object_p)
655 (plugin_maybe_claim): Renamed to ...
656 (plugin_object_p): This. Return dummy BFD target vector if
657 input is calimed by plugin library, otherwise return NULL.
658 Update plugin_format and plugin_dummy_bfd.
659 (plugin_maybe_claim): New. Use plugin_object_p.
660
d319a098
L
6612015-02-10 H.J. Lu <hongjiu.lu@intel.com>
662
663 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
664
38604796
L
6652015-02-10 H.J. Lu <hongjiu.lu@intel.com>
666
667 * plugin.c (plugin_input_file_t): Add use_mmap.
668 (plugin_pagesize): New.
669 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
670 (plugin_load_plugins): Initialize plugin_pagesize.
671 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
672 file.
673
fe905789
L
6742015-02-10 H.J. Lu <hongjiu.lu@intel.com>
675
676 * plugin.c (get_view): Align offset passed to mmap.
677
1d5b29cf
L
6782015-02-08 H.J. Lu <hongjiu.lu@intel.com>
679
680 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
681 if plugin isn't active or there is no thing more to claim.
682
e13419c4
L
6832015-02-08 H.J. Lu <hongjiu.lu@intel.com>
684
685 * plugin.c (plugin_maybe_claim): Check format against bfd_object
686 directly.
687
93843894
L
6882015-02-07 H.J. Lu <hongjiu.lu@intel.com>
689
690 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
691 ibfd.
692
35a1e5f3
L
6932015-02-07 H.J. Lu <hongjiu.lu@intel.com>
694
695 * plugin.c: Include "libbfd.h".
696 (plugin_strdup): New.
697 (plugin_maybe_claim): Remove the argument of pointer to struct
698 ld_plugin_input_file. Open and handle input entry.
699 * plugin.h (plugin_maybe_claim): Updated.
700 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
701 without passing a pointer to struct ld_plugin_input_file.
702 * ldmain.c: Don't include "libbfd.h".
703 (add_archive_element): Call plugin_maybe_claim directly without
704 passing a pointer to struct ld_plugin_input_file.
705
8dfef1bd
L
7062015-02-06 H.J. Lu <hongjiu.lu@intel.com>
707
708 * ld.texinfo: Document -z text, -z notext and -z textoff.
709 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
710 -z text, -z notext and -z textoff.
711
2aec968d
L
7122015-02-06 H.J. Lu <hongjiu.lu@intel.com>
713
714 * configure.ac: Add AC_FUNC_MMAP.
715 * config.in: Regenerated.
716 * configure: Likewise.
717 * plugin.c: Include <sys/mman.h>.
718 (MAP_FAILED): New. Defined if not defined.
719 (PROT_READ): Likewise.
720 (MAP_PRIVATE): Likewise.
721 (view_buffer_t): New.
722 (plugin_input_file_t): Add view_buffer.
723 (get_view): Try mmap and cache the view buffer.
724 (plugin_maybe_claim): Initialize view_buffer.
725
119d62ff
L
7262015-02-05 H.J. Lu <hongjiu.lu@intel.com>
727
728 * plugin.c (release_input_file): Set fd to -1 after closing it.
729 (plugin_maybe_claim): Close fd only if fd != -1.
730
f4b78d18
L
7312015-02-05 H.J. Lu <hongjiu.lu@intel.com>
732
733 PR ld/17878
734 * plugin.c: Include <errno.h>.
735 (errno): New. Declare if needed.
736 (plugin_input_file_t): New.
737 (get_input_file): Implemented.
738 (get_view): Likewise.
739 (release_input_file): Likewise.
740 (add_symbols): Updated.
741 (get_symbols): Likewise.
742 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
743 only for a bfd_object input.
744
6c2573b7
AM
7452015-02-02 Alan Modra <amodra@gmail.com>
746
747 * emultempl/ppc64elf.em (toc_section_name): New var.
748 (ppc_after_open): Set it.
749 (ppc_before_allocation): Use it.
750 (gld${EMULATION_NAME}_after_allocation): Here too.
751
716db898
L
7522015-01-29 H.J. Lu <hongjiu.lu@intel.com>
753
754 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
755 with link_info.lto_plugin_active.
756 * ldlang.c (lang_process): Likewise.
757 * ldmain.c (add_archive_element): Likewise.
758 * plugin.c (plugin_active_plugins_p): Removed.
759 * plugin.h (plugin_active_plugins_p): Likewise.
760
37a3056a
L
7612015-01-28 H.J. Lu <hongjiu.lu@intel.com>
762
763 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
764 ...
765 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
766
15f7a26b
L
7672015-01-28 H.J. Lu <hongjiu.lu@intel.com>
768
769 PR ld/17878
770 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
771 (get_view): New function.
772 (set_tv_header): Handle LDPT_GET_VIEW.
773 * testplug.c (tag_names): Add LDPT_GET_VIEW.
774 (tv_get_view): New.
775 (dump_tv_tag): Handle LDPT_GET_VIEW.
776 (parse_tv_tag): Likewise.
777
dbd1e97e
AM
7782015-01-28 Alan Modra <amodra@gmail.com>
779
780 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
781 * emultempl/ppc64elf.em (params): Init new field.
782 (ppc_after_open): New function.
783 (LDEMUL_AFTER_OPEN): Define.
784 * ldlang.c (lang_final): Whitespace fix.
785
3f8107ab
AM
7862015-01-28 James Bowman <james.bowman@ftdichip.com>
787
788 * Makefile.am: Add FT32 files.
789 * configure.tgt: Handle FT32 target.
790 * emulparams/elf32ft32.sh: New file.
791 * scripttempl/ft32.sc: New file.
792 * Makefile.in: Regenerate.
793
cc9ad334
SKS
7942015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
795
796 PR 4643
797 * ldexp.c (fold_name): Fold LENGTH only after
798 lang_first_phase_enum.
799 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
800 rightaway.
801 * ldlang.h (struct memory_region_struct): Add origin_exp and
802 length_exp fields.
803 * ldlang.c (lang_do_memory_regions): New.
804 (lang_memory_region_lookup): Initialize origin_exp and
805 length_exp fields.
806 (lang_process): Call lang_do_memory_regions.
807
c05b575a
AB
8082015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
809
810 * ldlang.c (print_assignment): Only evaluate the expression for a
811 PROVIDE'd assignment when the destination is being defined.
812 Display a special message for PROVIDE'd symbols that are not being
813 provided.
814
5ad18f16
AM
8152015-01-20 Alan Modra <amodra@gmail.com>
816
817 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
818 (OTHER_BSS_SYMBOLS): ..this.
819 (OTHER_PLT_RELOC_SECTIONS): Don't define.
820 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
821 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
822 (OTHER_RELRO_SECTIONS_2): ..here.
823 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
824
23283c1b
AM
8252015-01-20 Alan Modra <amodra@gmail.com>
826
827 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
828 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
829 (OTHER_RELRO_SECTIONS_2): ..here.
830 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
831 PLT_BEFORE_GOT): Define.
832 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
833 PLT_BEFORE_GOT combination.
834 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
835
3e2b0f31
AM
8362015-01-20 Alan Modra <amodra@gmail.com>
837
838 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
839 (OTHER_RELRO_SECTIONS_2): ..here, new define.
840 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
841
c4621b33
AM
8422015-01-19 Alan Modra <amodra@gmail.com>
843
3e2aa5bb 844 PR ld/17615
c4621b33
AM
845 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
846
52db4ec2
JW
8472015-01-14 Jiong Wang <jiong.wang@arm.com>
848
849 * ld-arm/elf32-reject.s: New testcase.
850 * ld-arm/elf32-reject.d: Likewise.
851 * ld-arm/elf32-reject-pie.s: Likewise.
852 * ld-arm/elf32-reject-pie.d: Likewise.
853 * ld-arm/arm-elf.exp: Run new testcases.
854 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
855 * ld-arm/ifunc-7.rd: Likewise.
856 * ld-arm/ifunc-7.gd: Likewise.
857 * ld-arm/ifunc-7.dd: Likewise.
858 * ld-arm/ifunc-8.s: Likewise.
859 * ld-arm/ifunc-8.rd: Likewise.
860 * ld-arm/ifunc-8.gd: Likewise.
861 * ld-arm/ifunc-8.dd: Likewise.
862
efd321f9
AM
8632015-01-01 Alan Modra <amodra@gmail.com>
864
865 * ldver.c (ldversion): Just print current year.
866
b90efa5b 8672015-01-01 Alan Modra <amodra@gmail.com>
ca0694ad 868
b90efa5b 869 Update year range in copyright notice of all files.
ca0694ad 870
b90efa5b 871For older changes see ChangeLog-2014
252b5132 872\f
b90efa5b 873Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
874
875Copying and distribution of this file, with or without modification,
876are permitted in any medium without royalty provided the copyright
877notice and this notice are preserved.
878
252b5132
RH
879Local Variables:
880mode: change-log
881left-margin: 8
882fill-column: 74
883version-control: never
884End: