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