]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
Re: Orphan output section with multiple input sections
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
93638471
AM
12015-10-29 Alan Modra <amodra@gmail.com>
2
3 PR ld/19162
4 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Pass
5 updated flags to lang_output_section_find_by_flags.
6 * emultempl/mmo.em (mmo_place_orphan): Merge flags for any
7 other input sections that might match a new output section to
8 decide placement.
9 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
10 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
11 * ldlang.c (lang_output_section_find_by_flags): Add sec_flags param.
12 * ldlang.h (lang_output_section_find_by_flags): Update prototype.
13
d8506323
MK
142015-10-29 Matthias Klose <doko@ubuntu.com>
15
16 * ld.texinfo (Options <-rpath>): Fix typo.
17
199af150
AM
182015-10-28 Alan Modra <amodra@gmail.com>
19
20 PR ld/19162
21 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Check flags
22 before calling _bfd_elf_match_sections_by_type. Merge flags for
23 any other input sections that might match a new output section to
24 decide placement.
25
a504d23a
LA
262015-10-27 Laurent Alfonsi <laurent.alfonsi@st.com>
27 Christophe Monat <christophe.monat@st.com>
28
29 * ld.texinfo: Add description of the STM32L4xx erratum
30 workaround.
31 * NEWS: Mention the new feature.
32 * emultempl/armelf.em (stm32l4xx_fix): New.
33 (arm_elf_before_allocation): Choose the type of fix, scan for
34 erratum.
35 (gld${EMULATION_NAME}_finish): Fix veneer locations.
36 (arm_elf_create_output_section_statements): Propagate
37 stm32l4xx_fix value.
38 (PARSE_AND_LIST_PROLOGUE): Define OPTION_STM32L4XX_FIX.
39 (PARSE_AND_LIST_LONGOPTS): Add entry for handling
40 --fix-stm32l4xx-629360.
41 (PARSE_AND_LIST_OPTION): Add entry for helping on
42 --fix-stm32l4xx-629360.
43 (PARSE_AND_LIST_ARGS_CASES): Treat OPTION_STM32L4XX_FIX.
44
321df065
AM
452015-10-27 Alan Modra <amodra@gmail.com>
46
47 PR ld/19175
48 * ldlang.c (lang_insert_orphan): Evaluate __start_* and __stop_*
49 symbol PROVIDE expressions.
50 * ldexp.c (exp_fold_tree_1 <etree_provide>): Define undefweak
51 references.
52
9b4c123c
L
532015-10-22 H.J. Lu <hongjiu.lu@intel.com>
54
55 * configure.ac: Properly check
56 --enable-compressed-debug-sections={yes,all}.
57 * configure: Regenerated.
58
4894d80b
L
592015-10-22 H.J. Lu <hongjiu.lu@intel.com>
60
61 PR gas/19109
62 * configure.ac: Handle --enable-compressed-debug-sections=*,ld,*.
63 * configure: Regenerated.
64
caa65211
L
652015-10-22 H.J. Lu <hongjiu.lu@intel.com>
66
67 * ld/ld.texinfo: Document "-z call-nop=PADDING" option.
68 * emulparams/call_nop.sh: New file.
69 * emulparams/elf_i386_be.sh: Source
70 ${srcdir}/emulparams/call_nop.sh.
71 * emulparams/elf_i386_chaos.sh: Likewise.
72 * emulparams/elf_i386_ldso.sh: Likewise.
73 * emulparams/elf_i386_vxworks.sh: Likewise.
74 * emulparams/elf_iamcu.sh: Likewise.
75 * emulparams/elf_k1om.sh: Likewise.
76 * emulparams/elf_l1om.sh: Likewise.
77 * emulparams/elf_x86_64.sh: Likewise.
78 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
79 link_info.call_nop_byte if $CALL_NOP_BYTE isn't empty.
80
6c3bc0f8
NC
812015-10-21 Nick Clifton <nickc@redhat.com>
82
83 PR gas/19109
1283d92f
NC
84 * configure.ac: Add --enable-compressed-debug-sections with
85 options of all, none or ld.
6c3bc0f8
NC
86 * configure: Regenerate.
87 * config.in: Regenerate.
88 * ld.texinfo: Document how to determine the default action for
89 debug sections.
90 * ldmain.c (main): If DEFAULT_FLAG_COMPRESS_DEBUG is defined then
91 set the compress_debug field of the link_info structure to
92 zlib-gabi.
93 * lexsup.c (elf_static_list_options): Output the default setting
94 for the --compress-debug-sections option.
95 * NEWS: Mention the new configure option.
96
4dba69b9
L
972015-10-15 H.J. Lu <hongjiu.lu@intel.com>
98
99 * ld.texinfo: Fix a typo for "-z noextern-protected-data".
100
1fb80d6d
SD
1012015-10-15 Simon Dardis <Simon.Dardis@imgtec.com>
102
103 * ld/ldexp.c: (try_copy_symbol_flags): New. Factored out from...
104 (exp_fold_tree_1): Here. Cope with ternary operator in
105 assignments. Use new helper.
106
efb068d3
NC
1072015-10-14 Nick Clifton <nickc@redhat.com>
108
109 * po/zh_TW.po: Updated Chinese translation.
110
8f33e7da
NC
1112015-10-13 Nick Clifton <nickc@redhat.com>
112
113 * po/zh_TW.po: Updated Chinese translation.
114
886a2506
NC
1152015-10-07 Claudiu Zissulescu <claziss@synopsys.com>
116 Cupertino Miranda <cmiranda@synopsys.com>
117
118 * configure.tgt: Added target arc-*-elf* and arc*-*-linux-uclibc*.
119 * emulparams/arcebelf_prof.sh: New file
120 * emulparams/arcebelf.sh: Likewise.
121 * emulparams/arceblinux_prof.sh: Likewise.
122 * emulparams/arceblinux.sh: Likewise.
123 * emulparams/arcelf_prof.sh: Likewise.
124 * emulparams/arcelf.sh: Likewise.
125 * emulparams/arclinux_prof.sh: Likewise.
126 * emulparams/arclinux.sh: Likewise.
127 * emulparams/arcv2elfx.sh: Likewise.
128 * emulparams/arcv2elf.sh: Likewise.
129 * emultempl/arclinux.em: Likewise.
130 * scripttempl/arclinux.sc: Likewise.
131 * scripttempl/elfarc.sc: Likewise.
132 * scripttempl/elfarcv2.sc: Likewise
133 * Makefile.am: Add new ARC emulations.
134 * Makefile.in: Regenerate.
135 * NEWS: Mention the new feature.
136
d00c2bc9
L
1372015-10-04 H.J. Lu <hongjiu.lu@intel.com>
138
139 * configure.tgt (targ_extra_emuls): Add elf_iamcu for Solaris2/x86.
140
0e1e4a75
KK
1412015-10-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
142
143 * configure.tgt (targ_extra_emuls): Remove shlelf and
144 shelf from sh*-*-linux cases.
145
a39d2e82
RF
1462015-09-30 Rich Felker <dalias@libc.org>
147
148 * configure.tgt (targ_extra_emuls): Add fdpic and misc
149 emulations to sh*-*-linux* targets.
150
56e6cf80
NC
1512015-09-29 Nick Clifton <nickc@redhat.com>
152
153 PR ld/19014
154 * ld.texinfo (Options): Fix spelling mistake.
155
3074964f
AM
1562015-09-24 Alan Modra <amodra@gmail.com>
157
158 PR ld/18992
159 * ldmain.c (main): Always enable --sysroot.
160 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
161 prepend sysroot to relative rpath/runpath.
162
b6518b38
NC
1632015-09-23 Nick Clifton <nickc@redhat.com>
164
165 * emultempl/elf32.em (ehdr_start_empty): New static variable.
166 (before_allocation): Use it to initialise ehdr_start_save.
167 * emultempl/pe.em (write_build_id): Remove useless double
168 parenthesis.
169 * emultempl/pep.em (write_build_id): Likewise.
170
5fe2850d
L
1712015-09-22 H.J. Lu <hongjiu.lu@intel.com>
172
173 * emultempl/alphaelf.em (alpha_after_parse): Call
174 gld${EMULATION_NAME}_after_parse instead of
175 after_parse_default.
176 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
177 * emultempl/crxelf.em (crxelf_after_parse); Likewise.
178 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
179 * emultempl/mipself.em (mips_after_parse): Likewise.
180 * emultempl/nds32elf.em (nds32_elf_after_parse): Likewise.
181 * emultempl/elf32.em: Don't include ldlex.h.
182 (gld${EMULATION_NAME}_after_parse): New function.
183 (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT]
184 <OPTION_PIE>: Removed.
185 (ld_${EMULATION_NAME}_emulation): Replace after_parse_default
186 with gld${EMULATION_NAME}_after_parse.
187 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse):
188 Renamed to ...
189 (ia64elf_after_parse): This. Call
190 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
191 (LDEMUL_AFTER_PARSE): Replace gld${EMULATION_NAME}_after_parse
192 with ia64elf_after_parse.
193
5c383f02
RO
1942015-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
195
196 * emulparams/solaris2.sh (GENERATE_PIE_SCRIPT): Set to yes.
197
198 * emultempl/elf32.em: Include ldlex.h.
199 (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT]
200 <OPTION_PIE>: Set DF_1_PIE.
201
95421fb9
AM
2022015-09-22 Alan Modra <amodra@gmail.com>
203
204 * ld.texinfo: Put --dotsyms/--no-dotsyms on separate lines.
205 Ditto for --save-restore-funcs and --tls-get-addr-optimize.
206
9b8b325a
RF
2072015-09-20 Rich Felker <dalias@libc.org>
208
209 * ld.texinfo (--no-dynamic-linker): Document.
210 * ldlex.h (enum option_values): Add OPTION_NO_DYNAMIC_LINKER.
211 * lexsup.c (ld_options, parse_args): Handle --no-dynamic-linker.
212
7ae4ea7d
AM
2132015-09-18 Alan Modra <amodra@gmail.com>
214
215 * ld.texinfo: Document PowerPC64 --{no-,}save-restore-funcs.
216
7c9cf415
AM
2172015-09-18 Alan Modra <amodra@gmail.com>
218
219 * emultempl/ppc64elf.em (params): Init tls_get_addr_opt field to -1.
220 (OPTION_TLS_GET_ADDR_OPT): Define.
221 (PARSE_AND_LIST_LONGOPTS): Handle --tls-get-addr-opt.
222 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
223 * ld.texinfo: Document --tls-get-addr-optimize and
224 --no-tls-get-addr-optimize.
225
975f8a9e
AM
2262015-09-18 Alan Modra <amodra@gmail.com>
227
228 PR ld/18963
229 * ldexp.h (struct ldexp_control): Add rel_from_abs.
230 (ldexp_finalize_syms): Declare.
231 * ldexp.c (new_rel_from_abs): Keep absolute for expressions
232 outside of output section statements. Set rel_from_abs.
233 (make_abs, exp_fold_tree, exp_fold_tree_no_dot): Clear rel_from_abs.
234 (struct definedness_hash_entry): Add final_sec, and comment.
235 (update_definedness): Set final_sec.
236 (set_sym_sections, ldexp_finalize_syms): New functions.
237 * ldlang.c (lang_process): Call ldexp_finalize_syms.
238
64597d82
NC
2392015-09-10 Nick Clifton <nickc@redhat.com>
240
241 * po/zh_CN.po: Updated simplified Chinese translation.
242
ea4a7f99 2432015-09-09 James Bowman <james.bowman@ftdichip.com>
244
245 * scripttempl/ft32.sc: default linker script RAM and
246 FLASH size symbols
247
081bb924
NC
2482015-09-09 Nick Clifton <nickc@redhat.com>
249
250 * po/zh_CN.po: Updated simplified Chinese translation.
251
5707d2ad
NC
2522015-09-08 Nick Clifton <nickc@redhat.com>
253
254 * ld.texinfo (Source Code Reference): Extend description to
255 include an example using arrays.
256
c005eb9e
AB
2572015-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
258
259 * ld.h (enum orphan_handling_enum): New.
260 (ld_config_type): Remove warn_orphan, add orphan_handling.
261 * ldemul.c (ldemul_place_orphan): Remove warning about orphan
262 sections.
263 * ldlang.c (ldlang_place_orphan): New function.
264 (lang_place_orphans): Call ldlang_place_orphan.
265 * ldlex.h (enum option_values): Remove OPTION_WARN_ORPHAN and
266 OPTION_NO_WARN_ORPHAN, add OPTION_ORPHAN_HANDLING.
267 * lexsup.c (ld_options): Remove 'warn-orphan' and
268 'no-warn-orphan', add 'orphan-handling'.
269 (parse_args): Remove handling for OPTION_WARN_ORPHAN and
270 OPTION_NO_WARN_ORPHAN, add handling for OPTION_ORPHAN_HANDLING.
271 * NEWS: Replace text about --warn-orphan with --orphan-handling.
272 * ld.texinfo (Options): Remove --warn-orphan entry and add
273 entry on --orphan-handling.
274 (Orphan Sections): Add reference to relevant command line options.
275
6033bf41
NC
2762015-09-03 Nick Clifton <nickc@redhat.com>
277
278 * ld.texinfo (--build-id): Fix typo. The COFF/PE build-id section
279 is called .buildid not .build-id.
280
a5e406b5
NC
2812015-09-03 Nick Clifton <nickc@redhat.com>
282
283 (Source Code Reference): Fix off-by-one typo in example of how to
284 use linker script symbols in C source code.
285
64d94ba0
AM
2862015-08-19 Alan Modra <amodra@gmail.com>
287
288 * emultempl/aix.em: Don't set link_info.pic.
289 * emultempl/pe.em: Likewise.
290 * emultempl/pep.em: Likewise.
291 * emultempl/sunos.em: Likewise.
292 * lexsup.c (parse_args): Likewise. Set type_pie for -pie.
293 * plugin.c (set_tv_header <LDPT_LINKER_OUTPUT>): Simplify.
294
0e1862bb
L
2952015-08-18 H.J. Lu <hongjiu.lu@intel.com>
296
297 * ld/ldctor.c: Replace shared, executable, relocatable and pie
298 fields with bfd_link_executable, bfd_link_dll,
299 bfd_link_relocatable, bfd_link_pic and bfd_link_pie.
300 * ld/ldemul.c: Likewise.
301 * ld/ldfile.c: Likewise.
302 * ld/ldlang.c: Likewise.
303 * ld/ldmain.c: Likewise.
304 * ld/ldwrite.c: Likewise.
305 * ld/lexsup.c: Likewise.
306 * ld/pe-dll.c: Likewise.
307 * ld/plugin.c: Likewise.
308 * ld/emultempl/aarch64elf.em: Likewise.
309 * ld/emultempl/aix.em: Likewise.
310 * ld/emultempl/alphaelf.em: Likewise.
311 * ld/emultempl/armcoff.em: Likewise.
312 * ld/emultempl/armelf.em: Likewise.
313 * ld/emultempl/avrelf.em: Likewise.
314 * ld/emultempl/beos.em: Likewise.
315 * ld/emultempl/cr16elf.em: Likewise.
316 * ld/emultempl/elf-generic.em: Likewise.
317 * ld/emultempl/elf32.em: Likewise.
318 * ld/emultempl/genelf.em: Likewise.
319 * ld/emultempl/generic.em: Likewise.
320 * ld/emultempl/gld960.em: Likewise.
321 * ld/emultempl/gld960c.em: Likewise.
322 * ld/emultempl/hppaelf.em: Likewise.
323 * ld/emultempl/irix.em: Likewise.
324 * ld/emultempl/linux.em: Likewise.
325 * ld/emultempl/lnk960.em: Likewise.
326 * ld/emultempl/m68hc1xelf.em: Likewise.
327 * ld/emultempl/m68kcoff.em: Likewise.
328 * ld/emultempl/m68kelf.em: Likewise.
329 * ld/emultempl/metagelf.em: Likewise.
330 * ld/emultempl/mipself.em: Likewise.
331 * ld/emultempl/mmo.em: Likewise.
332 * ld/emultempl/msp430.em: Likewise.
333 * ld/emultempl/nds32elf.em: Likewise.
334 * ld/emultempl/needrelax.em: Likewise.
335 * ld/emultempl/nios2elf.em: Likewise.
336 * ld/emultempl/pe.em: Likewise.
337 * ld/emultempl/pep.em: Likewise.
338 * ld/emultempl/ppc32elf.em: Likewise.
339 * ld/emultempl/ppc64elf.em: Likewise.
340 * ld/emultempl/sh64elf.em: Likewise.
341 * ld/emultempl/solaris2.em: Likewise.
342 * ld/emultempl/spuelf.em: Likewise.
343 * ld/emultempl/sunos.em: Likewise.
344 * ld/emultempl/tic6xdsbt.em: Likewise.
345 * ld/emultempl/ticoff.em: Likewise.
346 * ld/emultempl/v850elf.em: Likewise.
347 * ld/emultempl/vms.em: Likewise.
348 * ld/emultempl/vxworks.em: Likewise.
349
43417696
AM
3502015-08-18 Alan Modra <amodra@gmail.com>
351
352 * ldexp.c (exp_fold_tree_1): Clear linker_def on symbol assignment.
353
e0a3af22
AM
3542015-08-06 Alan Modra <amodra@gmail.com>
355
356 * ldexp.c (align_dot_val): Delete.
357 (fold_unary <ALIGN_K, NEXT>): Revert 2015-07-10 change.
358 (is_align_conditional): Revert 2015-07-20 change.
359 (exp_fold_tree_1): Likewise, but keep expanded comment.
360 * scripttempl/elf.sc (.ldata, .bss): Revert 2015-07-20 change.
361 * ld.texinfo (<ALIGN>): Correct description.
362
0a618243
AB
3632015-08-04 Andrew Burgess <andrew.burgess@embecosm.com>
364
365 * ld.texinfo (Options): Document --require-defined option.
366 * ldlang.c (struct require_defined_symbol): New structure.
367 (require_defined_symbol_list): New variable.
368 (ldlang_add_require_defined): New function.
369 (ldlang_check_require_defined_symbols): New function.
370 (lang_process): Check required symbols are defined.
371 * ldlang.h (ldlang_add_require_defined): Declare.
372 * ldlex.h (enum option_values): Add OPTION_REQUIRE_DEFINED_SYMBOL.
373 * lexsup.c (ld_options): Add '--require-defined' entry.
374 (parse_args): Handle '--requre-defined' entry.
375 * NEWS: Mention new '--require-defined' option.
376
127fcdff
AB
3772015-08-03 Andrew Burgess <andrew.burgess@embecosm.com>
378
379 * ld.texinfo (MEMORY): Explain that multiple MEMORY commands are
380 acceptable.
381
e77e648e
L
3822015-07-29 H.J. Lu <hongjiu.lu@intel.com>
383
384 * lexsup.c (parse_args): Don't set link_info.executable to
385 TRUE for link_info.relocatable.
386
37a42ee9
L
3872015-07-27 H.J. Lu <hongjiu.lu@intel.com>
388
389 * configure: Regenerated.
390
aff1a65e
NC
3912015-07-24 Nick Clifton <nickc@redhat.com>
392
393 * emulparams/elf32rl78.sh (OTHER_SECTIONS): Provide a value for
394 the _-rl78_abs__ symbol.
395
d9d11c36
AM
3962015-07-20 Alan Modra <amodra@gmail.com>
397
398 * emulparams/criself.sh (INIT_ADDR, FINI_ADDR): Define.
399 (INIT_START, FINI_START): Don't ALIGN.
400 * scriptempl/elf.sc (.init, .fini): Apply INIT_ADDR/FINI_ADDR.
401
e474ab13
AM
4022015-07-20 Alan Modra <amodra@gmail.com>
403
404 * scripttempl/elf.sc (.ldata, .bss): Align absolute value of dot.
405 * ldexp.c (is_align_conditional): Handle binary ALIGN.
406 (exp_fold_tree_1): Move code setting SEC_KEEP for assignments to
407 dot inside output sections. Handle absolute expressions.
408
19a7fe52
L
4092015-07-14 H.J. Lu <hongjiu.lu@intel.com>
410
411 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Make
412 --compress-debug-sections=zlib the same as
413 --compress-debug-sections=zlib-gabi.
414 * ld.texinfo: Change --compress-debug-sections=zlib to zlib-gabi.
415
1f0d470a
NC
4162015-07-14 Nick Clifton <nickc@redhat.com>
417
418 * ld.texinfo (Options): Add missing period after @xref.
419
a2c59f28
AM
4202015-07-10 Alan Modra <amodra@gmail.com>
421
422 * ldexp.c (align_dot_val): New function.
423 (fold_unary <ALIGN_K, NEXT>): Use it.
424
0f088b2a
KT
4252015-07-03 Kai Tietz <ktietz@redhat.com>
426
427 PR ld/11539
428 * scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
429 .rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
430 .eh_frame, .pdata. .xdata, and .gcc_except_table sections
431 as KEEP.
432 * scripttempl/pe.sc: Likewise.
433 * ld.texinfo: Document that --gc-sections has experimental support
434 for COFF and PE targets.
435 * NEWS: Mention experimental support.
436
b6b3dd8f
AM
4372015-07-03 Alan Modra <amodra@gmail.com>
438
439 * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
440 * Makefile.in: Regenerate.
441
ee0c0c50
L
4422015-06-28 H.J. Lu <hongjiu.lu@intel.com>
443
444 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
445 Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
446
c742574f
L
4472015-06-26 H.J. Lu <hongjiu.lu@intel.com>
448
449 * emulparams/elf_iamcu.sh (COMPILE_IN): New.
450
a2a4d60d
NC
4512015-06-15 Nick Clifton <nickc@redhat.com>
452
453 PR ld/18466
454 * emultempl/pe.em (pe_find_data_imports): Generate an error if a
455 symbol name is too long to handle.
456 * emultempl/pep.em (pep_find_data_imports): Likewise.
457
3604cb1f
TG
4582015-06-12 Tristan Gingold <gingold@adacore.com>
459
460 * NEWS: Mention new option.
461 * lexsup.c (parse_args): Handle --print-memory-usage.
462 (ld_options): Add --print-memory-usage.
463 * ldmain.c (main): Call lang_print_memory_usage.
464 * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
465 * ldlang.h: Add prototype of lang_print_memory_usage.
466 * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
467 functions.
468 * ld.texinfo (Options): Document --print-memory-usage.
469 * ld.h (args_type): Add print_memory_usage field.
470
1e1b2efc
NC
4712015-06-08 Nick Clifton <nickc@redhat.com>
472
473 * po/fr.po: Updated French Translation.
474
2f0c68f2
CM
4752015-05-28 Catherine Moore <clm@codesourcery.com>
476 Paul Brook <paul@codesourcery.com>
477
2f0c68f2
CM
478 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
479 Add Compact EH support.
480 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
481 sections.
482
68880f31
CLT
4832015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
484
485 * configure.ac (AC_PROG_GREP): Check for grep program.
486 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
487 Enable ELF option printing for emulations containing
488 'TEMPLATE_NAME=elf32'.
489 * configure: Regenerate.
490
fd1c4238
NC
4912015-05-14 Nick Clifton <nickc@redhat.com>
492
493 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
494 symbols.
495
5197d474
L
4962015-05-11 H.J. Lu <hongjiu.lu@intel.com>
497
498 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
499
7e0a8112
L
5002015-05-11 H.J. Lu <hongjiu.lu@intel.com>
501
502 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
503 (eelf_iamcu.c): New.
504 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
505 enabled in BFD.
506 * Makefile.in: Regenerated.
507 * emulparams/elf_iamcu.sh: New file.
508
837a17b3
NC
5092015-05-05 Nick Clifton <nickc@redhat.com>
510
511 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
512 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
513 (.data): Add .lower.data and .either.data.
514 (.bss): Add .lower.bss and .either.bss.
515 (.rodata): Add .lower.rodata and .either.rodata.
516 * emultempl/msp430.em: New file. Implements a new orphan
517 placement algorithm that divides sections between lower and upper
518 memory regions.
519 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
520 *emsp430X.c): Likewise.
521 * Makefine.in: Regenerate.
522
a13eab06
AS
5232015-04-28 Andreas Schwab <schwab@linux-m68k.org>
524
525 PR ld/18344
526 * ldlex.l (INPUTLIST): Increment lineno on newline.
527
44bd1acd
AM
5282015-04-24 Alan Modra <amodra@gmail.com>
529
530 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
531 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
532
08e2f2bb
DD
5332015-04-24 DJ Delorie <dj@redhat.com>
534
535 * Makefile.am (msp430): Rename primary emulation to msp430elf.
536 (emsp430.c): Rename to emsp430elf.c, update dependencies
537 (emsp430X.c): Update dependencies.
538 * Makefile.in: Likewise.
539 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
d9e88e90 540 * emulparams/msp430.sh: Rename to msp430elf.sh.
08e2f2bb
DD
541 * emulparams/msp430X.sh: Update.
542
f6fe1ccd
L
5432015-04-23 H.J. Lu <hongjiu.lu@intel.com>
544
545 PR binutils/18209
546 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
547
a27e685f
AM
5482015-04-23 Alan Modra <amodra@gmail.com>
549
550 * emulparams/elf64ppc.sh (GOT): Align.
551
0e5fabeb
AM
5522015-04-22 Alan Modra <amodra@gmail.com>
553
554 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
555 data_seg.relro_offset.
556 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
557 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
558 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
559 segment base to line up last section on page boundary.
560
ea556d25
L
5612015-04-15 H.J. Lu <hongjiu.lu@intel.com>
562
563 * NEWS: Mention
564 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
565
0ce398f1
L
5662015-04-14 H.J. Lu <hongjiu.lu@intel.com>
567
568 * ld.texinfo: Document --compress-debug-sections=.
569 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
570 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
571 for COMPRESS_DEBUG_GABI_ZLIB.
572 * lexsup.c (elf_static_list_options): Add
573 --compress-debug-sections=.
574 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
575 (xtra_long): Add "compress-debug-sections".
576 (gld${EMULATION_NAME}_handle_option): Handle
577 OPTION_COMPRESS_DEBUG.
578
889c2a67
L
5792015-04-14 H.J. Lu <hongjiu.lu@intel.com>
580
581 PR ld/pr17709
582 * ld.texinfo: Document "-z noextern-protected-data".
583 * ldmain.c (main): Initialize link_info.extern_protected_data
584 to -1.
585 * lexsup.c (elf_shlib_list_options): Add
586 "-z [no]extern-protected-data".
587 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
588 * emulparams/elf_i386.sh: Likewise.
589 * emulparams/elf_i386_be.sh: Likewise.
590 * emulparams/elf_i386_chaos.sh: Likewise.
591 * emulparams/elf_i386_ldso.sh: Likewise.
592 * emulparams/elf_i386_vxworks.sh: Likewise.
593 * emulparams/elf_k1om.sh: Likewise.
594 * emulparams/elf_l1om.sh: Likewise.
595 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
596 (PARSE_AND_LIST_OPTIONS): Renamed to ...
597 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
598 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
599 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
600 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
601 (PARSE_AND_LIST_ARGS_CASE_Z): Append
602 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
603 * emulparams/extern_protected_data.sh: New file.
604
fd5a1509
L
6052015-04-11 H.J. Lu <hongjiu.lu@intel.com>
606
607 * plugin.c (plugin_load_plugins): Removed an extra ';'.
608
080bb7bb
NC
6092015-04-10 Nick Clifton <nickc@redhat.com>
610
611 PR binutils/18198
612 * ld.texinfo (--be8): Add a note about the interaction of this
613 option with the assembler's -EB option.
614
8c3fff59
AM
6152015-04-10 Alan Modra <amodra@gmail.com>
616
617 * configure.ac: Set elf_list_options etc. in proper case.
618 * configure: Regenerate.
619
6166ed93
AM
6202015-04-10 Alan Modra <amodra@gmail.com>
621
622 PR ld/18223
623 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
624
eba27bd7
L
6252015-04-09 H.J. Lu <hongjiu.lu@intel.com>
626
627 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
628 (PARSE_AND_LIST_OPTIONS): New.
629 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
630 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
631 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
632 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
633
233723a4
NC
6342015-04-09 Nick Clifton <nickc@redhat.com>
635
636 * po/fr.po: Updated French translation.
637
82d8e420
L
6382015-04-08 H.J. Lu <hongjiu.lu@intel.com>
639
640 * configure.ac (elf_list_options): Set to TRUE for
641 --enable-targets=all.
642 (elf_shlib_list_options): Likewise.
643 (elf_plt_unwind_list_options): Likewise.
644 * configure: Regenerated.
645
31b94bbb
L
6462015-04-08 H.J. Lu <hongjiu.lu@intel.com>
647
648 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
649
c58212ea
L
6502015-04-08 H.J. Lu <hongjiu.lu@intel.com>
651
652 * Makefile.am (ELF_CLFAGS): New.
653 (AM_CFLAGS): Add $(ELF_CLFAGS).
654 * configure.ac (elf_list_options): New. AC_SUBST.
655 (elf_shlib_list_options): Likewise.
656 (elf_plt_unwind_list_options): Likewise.
657 * lexsup.c (elf_shlib_list_options): New.
658 (elf_static_list_options): Likewise.
659 (elf_plt_unwind_list_options): Likewise.
660 (ld_list_options): Likewise.
661 (help): Call ld_list_options.
662 * Makefile.in: Regenerated.
663 * configure: Likewise.
664 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
665 (PARSE_AND_LIST_OPTIONS): Removed.
666 * emultempl/elf32.em (gld_list_options): New.
667 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
668 PARSE_AND_LIST_OPTIONS is defined.
669 (ld_${EMULATION_NAME}_emulation): Replace
670 gld${EMULATION_NAME}_list_options with ${gld_list_options.
671
0fad6e4b
AM
6722015-04-07 Alan Modra <amodra@gmail.com>
673
674 PR ld/18176
675 * ldlang.c (lang_size_sections): Cast shift expression.
676
d3e454b9
AM
6772015-04-07 Alan Modra <amodra@gmail.com>
678
679 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
680 (params): Init new field.
681 (ppc_before_allocation): Enable relaxation for pic_fixup.
682
3ea60775
NC
6832015-04-07 Nick Clifton <nickc@redhat.com>
684
685 * ld.h (struct ld_config_type): Add new field: warn_orphan.
686 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
687 OPTION_NO_WARN_ORPHAN.
688 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
689 (parse_args): Handle the new options.
690 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
691 message when an orphan section is placed in the output file.
692 * ld.texinfo: Document the new option.
693 * NEWS: Mention the new feature.
694
15c7659f
AT
6952015-04-02 Andrew Turner <andrew@freebsd.org>
696
697 * Makefile.am: Add FreeBSD aarch64 files.
698 * Makefile.in: Regenerate.
699 * configure.tgt: Add aarch64-*-freebsd* target triple.
700 * emulparams/aarch64fbsd.sh: New file.
701 * emulparams/aarch64fbsdb.sh: New file.
702
a0bde398
L
7032015-04-01 H.J. Lu <hongjiu.lu@intel.com>
704
705 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
706 around a GCC uninitialized warning bug fixed in GCC 4.6.
707
4106101c
MS
7082015-04-01 Tejas Belagod <tejas.belagod@arm.com>
709
710 * emultempl/aarch64elf.em
711 (aarch64_elf_create_output_section_statements): Add parameter in
712 bfd_elf${ELFSIZE}_aarch64_set_options call.
713 (OPTION_FIX_ERRATUM_843419): Define.
714 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
715 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
716
16c1c9d6
CG
7172015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
718
719 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
720 relocating operation.
721
6c1aca3e
AM
7222015-04-01 Alan Modra <amodra@gmail.com>
723
875b5b9d 724 PR ld/18176
6c1aca3e
AM
725 * ldlang.c (lang_size_sections): When alignment of sections
726 results in relro base adjustment being too large, don't go lower
727 than the initial value.
728 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
729 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
730 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
731
4a0bc59e
AM
7322015-04-01 Alan Modra <amodra@gmail.com>
733
734 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
735 init ehdr_start_save.
736
42271ec5
AM
7372015-04-01 Alan Modra <amodra@gmail.com>
738
739 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
740 ldemul-list.h.
741 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
742 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
743 eelf32ppcsim.c): Rearrange deps for consistency.
744 * Makefile.in: Regenerate.
745
4e791d0f
ES
7462015-04-01 Ed Schouten <ed@nuxi.nl>
747
748 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
749 the ehdr_start_save variable.
750
6036f486
ES
7512015-03-31 Ed Schouten <ed@nuxi.nl>
752
753 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
754 eelf_x86_64_cloudabi.c.
755 (eelf_x86_64_cloudabi.c): New.
756 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
757 x86_64-*-cloudabi*.
758 * Makefile.in: Regenerated.
759 * emulparams/elf_x86_64_cloudabi.sh: New file.
760
f24173eb
L
7612015-03-31 H.J. Lu <hongjiu.lu@intel.com>
762
763 * configure.ac (AM_ZLIB): Removed.
764 * Makefile.in: Regenerated.
765 * config.in: Likewise.
766 * configure: Likewise.
767
d9ced15d
MS
7682015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
769
770 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
771 alignment to 2.
772
499c37b5
MS
7732015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
774
775 * emultempl/aarch64elf.em
776 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
777
b3862264
CG
7782015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
779
780 * ldmain.c (main): Use %F instead of %X for einfo.
781
daf220f0
AM
7822015-03-02 Alan Modra <amodra@gmail.com>
783
784 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
785
f0673d20
NC
7862015-02-27 Nick Clifton <nickc@redhat.com>
787
788 PR ld/17900
789 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
790 sense of the following memory region attribute characters.
791
330b17b3
AM
7922015-02-27 Alan Modra <amodra@gmail.com>
793
794 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
795 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
796 eh8300sxelf_linux.c): Do not invoke genscripts here.
797 * Makefile.in: Regenerate.
798
685080f2
NC
7992015-02-24 Nick Clifton <nickc@redhat.com>
800
801 * Makefile.am (ev850.c): Add dependency upon
802 $(srcdir)/emultempl/v850elf.em.
803 (ev850_rh850.c): Likewise.
804 * Makefile.in: Regenerate.
805 * emultempl/v850elf.em: New file.
806 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
807 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
808 * scripttempl/v850.sc: Add .note.renesas section.
809 * scripttempl/v850_rh850.sc: Likewise.
810
cb072816
SKS
8112015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
812
813 * scripttempl/avr.sc: Add new user_signatures region. Define and
814 use symbols for all region lengths.
815 * scripttempl/avrtiny.sc: Define and use symbols for all region
816 lengths.
817
5518c738
YS
8182015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
819
820 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
821 * Makefile.in: Regenerate.
822 * configure.tgt: Add h8300-*-linux
823 * emulparams/h8300elf_linux.sh: Add new emulation.
824 * emulparams/h8300helf_linux.sh: Likewise.
825 * emulparams/h8300self_linux.sh: Likewise.
826 * emulparams/h8300sxelf_linux.sh: Likewise.
827
f971c12f
NC
8282015-02-23 Nick Clifton <nickc@redhat.com>
829
830 * lexsup.c (parse_args): Produce a more reasonable error message
831 when -ixxx or -rxxx is the last option on the linker command line.
832
f58926a6
L
8332015-02-14 H.J. Lu <hongjiu.lu@intel.com>
834
835 PR ld/17973
836 * testplug2.c (allsymbolsread_silent): New.
837 (set_register_hook): Handle allsymbolsreadsilent.
838 (onall_symbols_read): Skip a message if allsymbolsread_silent is
839 TRUE.
840
ce875075
AM
8412015-02-14 Alan Modra <amodra@gmail.com>
842
843 PR ld/17973
844 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
845 * ldlang.c (lang_process): Don't set loading_lto_outputs.
846 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
847 to bfd.
848 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
849
b0619670
L
8502015-02-13 H.J. Lu <hongjiu.lu@intel.com>
851
852 * NEWS: Mention support for LLVM plugin.
853
66bc8739
AM
8542015-02-13 Alan Modra <amodra@gmail.com>
855
856 * ld.texinfo (Options <--defsym>): Correct cross reference.
857
88b9e2eb
L
8582015-02-11 H.J. Lu <hongjiu.lu@intel.com>
859
860 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
861 option compatibility.
862
45e81354
L
8632015-02-11 H.J. Lu <hongjiu.lu@intel.com>
864
865 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
866 "error:" for LDPL_FATAL and LDPL_ERROR.
867 * testplug2.c (parse_option): Handle fatal, error and warning.
868
e3001fd9
L
8692015-02-11 H.J. Lu <hongjiu.lu@intel.com>
870
871 * testplug2.c (dump_tv_tag): Removed.
872 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
873 closed.
874 * testplug3.c (dump_tv_tag): Removed.
875 (onclaim_file): Fix typo.
876
7275e869
L
8772015-02-11 H.J. Lu <hongjiu.lu@intel.com>
878
879 PR ld/17878
880 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
881 libldtestplug3.la.
882 (libldtestplug2_la_SOURCES): New.
883 (libldtestplug2_la_CFLAGS): Likewise.
884 (libldtestplug2_la_LDFLAGS): Likewise.
885 (libldtestplug3_la_SOURCES): New.
886 (libldtestplug3_la_CFLAGS): Likewise.
887 (libldtestplug3_la_LDFLAGS): Likewise.
888 * Makefile.in: Regenerated.
889 * testplug2.c: New file.
890 * testplug3.c: Likewise.
891
b9dc5a87
L
8922015-02-11 H.J. Lu <hongjiu.lu@intel.com>
893
894 PR ld/17878
895 * plugin.c: Include ../bfd/plugin.h.
896 (plugin_get_ir_dummy_bfd): Call bfd_create with
897 link_info.output_bfd instead of srctemplate. Copy BFD info
898 from srctemplate only if it doesn't use BFD plugin target
899 vector.
900 (plugin_load_plugins): Call register_ld_plugin_object_p with
901 (plugin_object_p)
902 (plugin_maybe_claim): Renamed to ...
903 (plugin_object_p): This. Return dummy BFD target vector if
904 input is calimed by plugin library, otherwise return NULL.
905 Update plugin_format and plugin_dummy_bfd.
906 (plugin_maybe_claim): New. Use plugin_object_p.
907
d319a098
L
9082015-02-10 H.J. Lu <hongjiu.lu@intel.com>
909
910 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
911
38604796
L
9122015-02-10 H.J. Lu <hongjiu.lu@intel.com>
913
914 * plugin.c (plugin_input_file_t): Add use_mmap.
915 (plugin_pagesize): New.
916 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
917 (plugin_load_plugins): Initialize plugin_pagesize.
918 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
919 file.
920
fe905789
L
9212015-02-10 H.J. Lu <hongjiu.lu@intel.com>
922
923 * plugin.c (get_view): Align offset passed to mmap.
924
1d5b29cf
L
9252015-02-08 H.J. Lu <hongjiu.lu@intel.com>
926
927 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
928 if plugin isn't active or there is no thing more to claim.
929
e13419c4
L
9302015-02-08 H.J. Lu <hongjiu.lu@intel.com>
931
932 * plugin.c (plugin_maybe_claim): Check format against bfd_object
933 directly.
934
93843894
L
9352015-02-07 H.J. Lu <hongjiu.lu@intel.com>
936
937 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
938 ibfd.
939
35a1e5f3
L
9402015-02-07 H.J. Lu <hongjiu.lu@intel.com>
941
942 * plugin.c: Include "libbfd.h".
943 (plugin_strdup): New.
944 (plugin_maybe_claim): Remove the argument of pointer to struct
945 ld_plugin_input_file. Open and handle input entry.
946 * plugin.h (plugin_maybe_claim): Updated.
947 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
948 without passing a pointer to struct ld_plugin_input_file.
949 * ldmain.c: Don't include "libbfd.h".
950 (add_archive_element): Call plugin_maybe_claim directly without
951 passing a pointer to struct ld_plugin_input_file.
952
8dfef1bd
L
9532015-02-06 H.J. Lu <hongjiu.lu@intel.com>
954
955 * ld.texinfo: Document -z text, -z notext and -z textoff.
956 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
957 -z text, -z notext and -z textoff.
958
2aec968d
L
9592015-02-06 H.J. Lu <hongjiu.lu@intel.com>
960
961 * configure.ac: Add AC_FUNC_MMAP.
962 * config.in: Regenerated.
963 * configure: Likewise.
964 * plugin.c: Include <sys/mman.h>.
965 (MAP_FAILED): New. Defined if not defined.
966 (PROT_READ): Likewise.
967 (MAP_PRIVATE): Likewise.
968 (view_buffer_t): New.
969 (plugin_input_file_t): Add view_buffer.
970 (get_view): Try mmap and cache the view buffer.
971 (plugin_maybe_claim): Initialize view_buffer.
972
119d62ff
L
9732015-02-05 H.J. Lu <hongjiu.lu@intel.com>
974
975 * plugin.c (release_input_file): Set fd to -1 after closing it.
976 (plugin_maybe_claim): Close fd only if fd != -1.
977
f4b78d18
L
9782015-02-05 H.J. Lu <hongjiu.lu@intel.com>
979
980 PR ld/17878
981 * plugin.c: Include <errno.h>.
982 (errno): New. Declare if needed.
983 (plugin_input_file_t): New.
984 (get_input_file): Implemented.
985 (get_view): Likewise.
986 (release_input_file): Likewise.
987 (add_symbols): Updated.
988 (get_symbols): Likewise.
989 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
990 only for a bfd_object input.
991
6c2573b7
AM
9922015-02-02 Alan Modra <amodra@gmail.com>
993
994 * emultempl/ppc64elf.em (toc_section_name): New var.
995 (ppc_after_open): Set it.
996 (ppc_before_allocation): Use it.
997 (gld${EMULATION_NAME}_after_allocation): Here too.
998
716db898
L
9992015-01-29 H.J. Lu <hongjiu.lu@intel.com>
1000
1001 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
1002 with link_info.lto_plugin_active.
1003 * ldlang.c (lang_process): Likewise.
1004 * ldmain.c (add_archive_element): Likewise.
1005 * plugin.c (plugin_active_plugins_p): Removed.
1006 * plugin.h (plugin_active_plugins_p): Likewise.
1007
37a3056a
L
10082015-01-28 H.J. Lu <hongjiu.lu@intel.com>
1009
1010 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
1011 ...
1012 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
1013
15f7a26b
L
10142015-01-28 H.J. Lu <hongjiu.lu@intel.com>
1015
1016 PR ld/17878
1017 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
1018 (get_view): New function.
1019 (set_tv_header): Handle LDPT_GET_VIEW.
1020 * testplug.c (tag_names): Add LDPT_GET_VIEW.
1021 (tv_get_view): New.
1022 (dump_tv_tag): Handle LDPT_GET_VIEW.
1023 (parse_tv_tag): Likewise.
1024
dbd1e97e
AM
10252015-01-28 Alan Modra <amodra@gmail.com>
1026
1027 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
1028 * emultempl/ppc64elf.em (params): Init new field.
1029 (ppc_after_open): New function.
1030 (LDEMUL_AFTER_OPEN): Define.
1031 * ldlang.c (lang_final): Whitespace fix.
1032
3f8107ab
AM
10332015-01-28 James Bowman <james.bowman@ftdichip.com>
1034
1035 * Makefile.am: Add FT32 files.
1036 * configure.tgt: Handle FT32 target.
1037 * emulparams/elf32ft32.sh: New file.
1038 * scripttempl/ft32.sc: New file.
1039 * Makefile.in: Regenerate.
1040
cc9ad334
SKS
10412015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1042
1043 PR 4643
1044 * ldexp.c (fold_name): Fold LENGTH only after
1045 lang_first_phase_enum.
1046 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
1047 rightaway.
1048 * ldlang.h (struct memory_region_struct): Add origin_exp and
1049 length_exp fields.
1050 * ldlang.c (lang_do_memory_regions): New.
1051 (lang_memory_region_lookup): Initialize origin_exp and
1052 length_exp fields.
1053 (lang_process): Call lang_do_memory_regions.
1054
c05b575a
AB
10552015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
1056
1057 * ldlang.c (print_assignment): Only evaluate the expression for a
1058 PROVIDE'd assignment when the destination is being defined.
1059 Display a special message for PROVIDE'd symbols that are not being
1060 provided.
1061
5ad18f16
AM
10622015-01-20 Alan Modra <amodra@gmail.com>
1063
1064 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
1065 (OTHER_BSS_SYMBOLS): ..this.
1066 (OTHER_PLT_RELOC_SECTIONS): Don't define.
1067 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
1068 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
1069 (OTHER_RELRO_SECTIONS_2): ..here.
1070 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
1071
23283c1b
AM
10722015-01-20 Alan Modra <amodra@gmail.com>
1073
1074 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
1075 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
1076 (OTHER_RELRO_SECTIONS_2): ..here.
1077 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
1078 PLT_BEFORE_GOT): Define.
1079 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
1080 PLT_BEFORE_GOT combination.
1081 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
1082
3e2b0f31
AM
10832015-01-20 Alan Modra <amodra@gmail.com>
1084
1085 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
1086 (OTHER_RELRO_SECTIONS_2): ..here, new define.
1087 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
1088
c4621b33
AM
10892015-01-19 Alan Modra <amodra@gmail.com>
1090
3e2aa5bb 1091 PR ld/17615
c4621b33
AM
1092 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
1093
52db4ec2
JW
10942015-01-14 Jiong Wang <jiong.wang@arm.com>
1095
1096 * ld-arm/elf32-reject.s: New testcase.
1097 * ld-arm/elf32-reject.d: Likewise.
1098 * ld-arm/elf32-reject-pie.s: Likewise.
1099 * ld-arm/elf32-reject-pie.d: Likewise.
1100 * ld-arm/arm-elf.exp: Run new testcases.
1101 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
1102 * ld-arm/ifunc-7.rd: Likewise.
1103 * ld-arm/ifunc-7.gd: Likewise.
1104 * ld-arm/ifunc-7.dd: Likewise.
1105 * ld-arm/ifunc-8.s: Likewise.
1106 * ld-arm/ifunc-8.rd: Likewise.
1107 * ld-arm/ifunc-8.gd: Likewise.
1108 * ld-arm/ifunc-8.dd: Likewise.
1109
efd321f9
AM
11102015-01-01 Alan Modra <amodra@gmail.com>
1111
1112 * ldver.c (ldversion): Just print current year.
1113
b90efa5b 11142015-01-01 Alan Modra <amodra@gmail.com>
ca0694ad 1115
b90efa5b 1116 Update year range in copyright notice of all files.
ca0694ad 1117
b90efa5b 1118For older changes see ChangeLog-2014
252b5132 1119\f
b90efa5b 1120Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
1121
1122Copying and distribution of this file, with or without modification,
1123are permitted in any medium without royalty provided the copyright
1124notice and this notice are preserved.
1125
252b5132
RH
1126Local Variables:
1127mode: change-log
1128left-margin: 8
1129fill-column: 74
1130version-control: never
1131End: