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