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