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