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