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