target.c: Add a cast and change a type
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
9b4c123c
L
12015-10-22 H.J. Lu <hongjiu.lu@intel.com>
2
3 * configure.ac: Properly check
4 --enable-compressed-debug-sections={yes,all}.
5 * configure: Regenerated.
6
4894d80b
L
72015-10-22 H.J. Lu <hongjiu.lu@intel.com>
8
9 PR gas/19109
10 * configure.ac: Handle --enable-compressed-debug-sections=*,ld,*.
11 * configure: Regenerated.
12
caa65211
L
132015-10-22 H.J. Lu <hongjiu.lu@intel.com>
14
15 * ld/ld.texinfo: Document "-z call-nop=PADDING" option.
16 * emulparams/call_nop.sh: New file.
17 * emulparams/elf_i386_be.sh: Source
18 ${srcdir}/emulparams/call_nop.sh.
19 * emulparams/elf_i386_chaos.sh: Likewise.
20 * emulparams/elf_i386_ldso.sh: Likewise.
21 * emulparams/elf_i386_vxworks.sh: Likewise.
22 * emulparams/elf_iamcu.sh: Likewise.
23 * emulparams/elf_k1om.sh: Likewise.
24 * emulparams/elf_l1om.sh: Likewise.
25 * emulparams/elf_x86_64.sh: Likewise.
26 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
27 link_info.call_nop_byte if $CALL_NOP_BYTE isn't empty.
28
6c3bc0f8
NC
292015-10-21 Nick Clifton <nickc@redhat.com>
30
31 PR gas/19109
1283d92f
NC
32 * configure.ac: Add --enable-compressed-debug-sections with
33 options of all, none or ld.
6c3bc0f8
NC
34 * configure: Regenerate.
35 * config.in: Regenerate.
36 * ld.texinfo: Document how to determine the default action for
37 debug sections.
38 * ldmain.c (main): If DEFAULT_FLAG_COMPRESS_DEBUG is defined then
39 set the compress_debug field of the link_info structure to
40 zlib-gabi.
41 * lexsup.c (elf_static_list_options): Output the default setting
42 for the --compress-debug-sections option.
43 * NEWS: Mention the new configure option.
44
4dba69b9
L
452015-10-15 H.J. Lu <hongjiu.lu@intel.com>
46
47 * ld.texinfo: Fix a typo for "-z noextern-protected-data".
48
1fb80d6d
SD
492015-10-15 Simon Dardis <Simon.Dardis@imgtec.com>
50
51 * ld/ldexp.c: (try_copy_symbol_flags): New. Factored out from...
52 (exp_fold_tree_1): Here. Cope with ternary operator in
53 assignments. Use new helper.
54
efb068d3
NC
552015-10-14 Nick Clifton <nickc@redhat.com>
56
57 * po/zh_TW.po: Updated Chinese translation.
58
8f33e7da
NC
592015-10-13 Nick Clifton <nickc@redhat.com>
60
61 * po/zh_TW.po: Updated Chinese translation.
62
886a2506
NC
632015-10-07 Claudiu Zissulescu <claziss@synopsys.com>
64 Cupertino Miranda <cmiranda@synopsys.com>
65
66 * configure.tgt: Added target arc-*-elf* and arc*-*-linux-uclibc*.
67 * emulparams/arcebelf_prof.sh: New file
68 * emulparams/arcebelf.sh: Likewise.
69 * emulparams/arceblinux_prof.sh: Likewise.
70 * emulparams/arceblinux.sh: Likewise.
71 * emulparams/arcelf_prof.sh: Likewise.
72 * emulparams/arcelf.sh: Likewise.
73 * emulparams/arclinux_prof.sh: Likewise.
74 * emulparams/arclinux.sh: Likewise.
75 * emulparams/arcv2elfx.sh: Likewise.
76 * emulparams/arcv2elf.sh: Likewise.
77 * emultempl/arclinux.em: Likewise.
78 * scripttempl/arclinux.sc: Likewise.
79 * scripttempl/elfarc.sc: Likewise.
80 * scripttempl/elfarcv2.sc: Likewise
81 * Makefile.am: Add new ARC emulations.
82 * Makefile.in: Regenerate.
83 * NEWS: Mention the new feature.
84
d00c2bc9
L
852015-10-04 H.J. Lu <hongjiu.lu@intel.com>
86
87 * configure.tgt (targ_extra_emuls): Add elf_iamcu for Solaris2/x86.
88
0e1e4a75
KK
892015-10-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
90
91 * configure.tgt (targ_extra_emuls): Remove shlelf and
92 shelf from sh*-*-linux cases.
93
a39d2e82
RF
942015-09-30 Rich Felker <dalias@libc.org>
95
96 * configure.tgt (targ_extra_emuls): Add fdpic and misc
97 emulations to sh*-*-linux* targets.
98
56e6cf80
NC
992015-09-29 Nick Clifton <nickc@redhat.com>
100
101 PR ld/19014
102 * ld.texinfo (Options): Fix spelling mistake.
103
3074964f
AM
1042015-09-24 Alan Modra <amodra@gmail.com>
105
106 PR ld/18992
107 * ldmain.c (main): Always enable --sysroot.
108 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
109 prepend sysroot to relative rpath/runpath.
110
b6518b38
NC
1112015-09-23 Nick Clifton <nickc@redhat.com>
112
113 * emultempl/elf32.em (ehdr_start_empty): New static variable.
114 (before_allocation): Use it to initialise ehdr_start_save.
115 * emultempl/pe.em (write_build_id): Remove useless double
116 parenthesis.
117 * emultempl/pep.em (write_build_id): Likewise.
118
5fe2850d
L
1192015-09-22 H.J. Lu <hongjiu.lu@intel.com>
120
121 * emultempl/alphaelf.em (alpha_after_parse): Call
122 gld${EMULATION_NAME}_after_parse instead of
123 after_parse_default.
124 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
125 * emultempl/crxelf.em (crxelf_after_parse); Likewise.
126 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
127 * emultempl/mipself.em (mips_after_parse): Likewise.
128 * emultempl/nds32elf.em (nds32_elf_after_parse): Likewise.
129 * emultempl/elf32.em: Don't include ldlex.h.
130 (gld${EMULATION_NAME}_after_parse): New function.
131 (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT]
132 <OPTION_PIE>: Removed.
133 (ld_${EMULATION_NAME}_emulation): Replace after_parse_default
134 with gld${EMULATION_NAME}_after_parse.
135 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse):
136 Renamed to ...
137 (ia64elf_after_parse): This. Call
138 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
139 (LDEMUL_AFTER_PARSE): Replace gld${EMULATION_NAME}_after_parse
140 with ia64elf_after_parse.
141
5c383f02
RO
1422015-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
143
144 * emulparams/solaris2.sh (GENERATE_PIE_SCRIPT): Set to yes.
145
146 * emultempl/elf32.em: Include ldlex.h.
147 (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT]
148 <OPTION_PIE>: Set DF_1_PIE.
149
95421fb9
AM
1502015-09-22 Alan Modra <amodra@gmail.com>
151
152 * ld.texinfo: Put --dotsyms/--no-dotsyms on separate lines.
153 Ditto for --save-restore-funcs and --tls-get-addr-optimize.
154
9b8b325a
RF
1552015-09-20 Rich Felker <dalias@libc.org>
156
157 * ld.texinfo (--no-dynamic-linker): Document.
158 * ldlex.h (enum option_values): Add OPTION_NO_DYNAMIC_LINKER.
159 * lexsup.c (ld_options, parse_args): Handle --no-dynamic-linker.
160
7ae4ea7d
AM
1612015-09-18 Alan Modra <amodra@gmail.com>
162
163 * ld.texinfo: Document PowerPC64 --{no-,}save-restore-funcs.
164
7c9cf415
AM
1652015-09-18 Alan Modra <amodra@gmail.com>
166
167 * emultempl/ppc64elf.em (params): Init tls_get_addr_opt field to -1.
168 (OPTION_TLS_GET_ADDR_OPT): Define.
169 (PARSE_AND_LIST_LONGOPTS): Handle --tls-get-addr-opt.
170 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
171 * ld.texinfo: Document --tls-get-addr-optimize and
172 --no-tls-get-addr-optimize.
173
975f8a9e
AM
1742015-09-18 Alan Modra <amodra@gmail.com>
175
176 PR ld/18963
177 * ldexp.h (struct ldexp_control): Add rel_from_abs.
178 (ldexp_finalize_syms): Declare.
179 * ldexp.c (new_rel_from_abs): Keep absolute for expressions
180 outside of output section statements. Set rel_from_abs.
181 (make_abs, exp_fold_tree, exp_fold_tree_no_dot): Clear rel_from_abs.
182 (struct definedness_hash_entry): Add final_sec, and comment.
183 (update_definedness): Set final_sec.
184 (set_sym_sections, ldexp_finalize_syms): New functions.
185 * ldlang.c (lang_process): Call ldexp_finalize_syms.
186
64597d82
NC
1872015-09-10 Nick Clifton <nickc@redhat.com>
188
189 * po/zh_CN.po: Updated simplified Chinese translation.
190
ea4a7f99 1912015-09-09 James Bowman <james.bowman@ftdichip.com>
192
193 * scripttempl/ft32.sc: default linker script RAM and
194 FLASH size symbols
195
081bb924
NC
1962015-09-09 Nick Clifton <nickc@redhat.com>
197
198 * po/zh_CN.po: Updated simplified Chinese translation.
199
5707d2ad
NC
2002015-09-08 Nick Clifton <nickc@redhat.com>
201
202 * ld.texinfo (Source Code Reference): Extend description to
203 include an example using arrays.
204
c005eb9e
AB
2052015-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
206
207 * ld.h (enum orphan_handling_enum): New.
208 (ld_config_type): Remove warn_orphan, add orphan_handling.
209 * ldemul.c (ldemul_place_orphan): Remove warning about orphan
210 sections.
211 * ldlang.c (ldlang_place_orphan): New function.
212 (lang_place_orphans): Call ldlang_place_orphan.
213 * ldlex.h (enum option_values): Remove OPTION_WARN_ORPHAN and
214 OPTION_NO_WARN_ORPHAN, add OPTION_ORPHAN_HANDLING.
215 * lexsup.c (ld_options): Remove 'warn-orphan' and
216 'no-warn-orphan', add 'orphan-handling'.
217 (parse_args): Remove handling for OPTION_WARN_ORPHAN and
218 OPTION_NO_WARN_ORPHAN, add handling for OPTION_ORPHAN_HANDLING.
219 * NEWS: Replace text about --warn-orphan with --orphan-handling.
220 * ld.texinfo (Options): Remove --warn-orphan entry and add
221 entry on --orphan-handling.
222 (Orphan Sections): Add reference to relevant command line options.
223
6033bf41
NC
2242015-09-03 Nick Clifton <nickc@redhat.com>
225
226 * ld.texinfo (--build-id): Fix typo. The COFF/PE build-id section
227 is called .buildid not .build-id.
228
a5e406b5
NC
2292015-09-03 Nick Clifton <nickc@redhat.com>
230
231 (Source Code Reference): Fix off-by-one typo in example of how to
232 use linker script symbols in C source code.
233
64d94ba0
AM
2342015-08-19 Alan Modra <amodra@gmail.com>
235
236 * emultempl/aix.em: Don't set link_info.pic.
237 * emultempl/pe.em: Likewise.
238 * emultempl/pep.em: Likewise.
239 * emultempl/sunos.em: Likewise.
240 * lexsup.c (parse_args): Likewise. Set type_pie for -pie.
241 * plugin.c (set_tv_header <LDPT_LINKER_OUTPUT>): Simplify.
242
0e1862bb
L
2432015-08-18 H.J. Lu <hongjiu.lu@intel.com>
244
245 * ld/ldctor.c: Replace shared, executable, relocatable and pie
246 fields with bfd_link_executable, bfd_link_dll,
247 bfd_link_relocatable, bfd_link_pic and bfd_link_pie.
248 * ld/ldemul.c: Likewise.
249 * ld/ldfile.c: Likewise.
250 * ld/ldlang.c: Likewise.
251 * ld/ldmain.c: Likewise.
252 * ld/ldwrite.c: Likewise.
253 * ld/lexsup.c: Likewise.
254 * ld/pe-dll.c: Likewise.
255 * ld/plugin.c: Likewise.
256 * ld/emultempl/aarch64elf.em: Likewise.
257 * ld/emultempl/aix.em: Likewise.
258 * ld/emultempl/alphaelf.em: Likewise.
259 * ld/emultempl/armcoff.em: Likewise.
260 * ld/emultempl/armelf.em: Likewise.
261 * ld/emultempl/avrelf.em: Likewise.
262 * ld/emultempl/beos.em: Likewise.
263 * ld/emultempl/cr16elf.em: Likewise.
264 * ld/emultempl/elf-generic.em: Likewise.
265 * ld/emultempl/elf32.em: Likewise.
266 * ld/emultempl/genelf.em: Likewise.
267 * ld/emultempl/generic.em: Likewise.
268 * ld/emultempl/gld960.em: Likewise.
269 * ld/emultempl/gld960c.em: Likewise.
270 * ld/emultempl/hppaelf.em: Likewise.
271 * ld/emultempl/irix.em: Likewise.
272 * ld/emultempl/linux.em: Likewise.
273 * ld/emultempl/lnk960.em: Likewise.
274 * ld/emultempl/m68hc1xelf.em: Likewise.
275 * ld/emultempl/m68kcoff.em: Likewise.
276 * ld/emultempl/m68kelf.em: Likewise.
277 * ld/emultempl/metagelf.em: Likewise.
278 * ld/emultempl/mipself.em: Likewise.
279 * ld/emultempl/mmo.em: Likewise.
280 * ld/emultempl/msp430.em: Likewise.
281 * ld/emultempl/nds32elf.em: Likewise.
282 * ld/emultempl/needrelax.em: Likewise.
283 * ld/emultempl/nios2elf.em: Likewise.
284 * ld/emultempl/pe.em: Likewise.
285 * ld/emultempl/pep.em: Likewise.
286 * ld/emultempl/ppc32elf.em: Likewise.
287 * ld/emultempl/ppc64elf.em: Likewise.
288 * ld/emultempl/sh64elf.em: Likewise.
289 * ld/emultempl/solaris2.em: Likewise.
290 * ld/emultempl/spuelf.em: Likewise.
291 * ld/emultempl/sunos.em: Likewise.
292 * ld/emultempl/tic6xdsbt.em: Likewise.
293 * ld/emultempl/ticoff.em: Likewise.
294 * ld/emultempl/v850elf.em: Likewise.
295 * ld/emultempl/vms.em: Likewise.
296 * ld/emultempl/vxworks.em: Likewise.
297
43417696
AM
2982015-08-18 Alan Modra <amodra@gmail.com>
299
300 * ldexp.c (exp_fold_tree_1): Clear linker_def on symbol assignment.
301
e0a3af22
AM
3022015-08-06 Alan Modra <amodra@gmail.com>
303
304 * ldexp.c (align_dot_val): Delete.
305 (fold_unary <ALIGN_K, NEXT>): Revert 2015-07-10 change.
306 (is_align_conditional): Revert 2015-07-20 change.
307 (exp_fold_tree_1): Likewise, but keep expanded comment.
308 * scripttempl/elf.sc (.ldata, .bss): Revert 2015-07-20 change.
309 * ld.texinfo (<ALIGN>): Correct description.
310
0a618243
AB
3112015-08-04 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * ld.texinfo (Options): Document --require-defined option.
314 * ldlang.c (struct require_defined_symbol): New structure.
315 (require_defined_symbol_list): New variable.
316 (ldlang_add_require_defined): New function.
317 (ldlang_check_require_defined_symbols): New function.
318 (lang_process): Check required symbols are defined.
319 * ldlang.h (ldlang_add_require_defined): Declare.
320 * ldlex.h (enum option_values): Add OPTION_REQUIRE_DEFINED_SYMBOL.
321 * lexsup.c (ld_options): Add '--require-defined' entry.
322 (parse_args): Handle '--requre-defined' entry.
323 * NEWS: Mention new '--require-defined' option.
324
127fcdff
AB
3252015-08-03 Andrew Burgess <andrew.burgess@embecosm.com>
326
327 * ld.texinfo (MEMORY): Explain that multiple MEMORY commands are
328 acceptable.
329
e77e648e
L
3302015-07-29 H.J. Lu <hongjiu.lu@intel.com>
331
332 * lexsup.c (parse_args): Don't set link_info.executable to
333 TRUE for link_info.relocatable.
334
37a42ee9
L
3352015-07-27 H.J. Lu <hongjiu.lu@intel.com>
336
337 * configure: Regenerated.
338
aff1a65e
NC
3392015-07-24 Nick Clifton <nickc@redhat.com>
340
341 * emulparams/elf32rl78.sh (OTHER_SECTIONS): Provide a value for
342 the _-rl78_abs__ symbol.
343
d9d11c36
AM
3442015-07-20 Alan Modra <amodra@gmail.com>
345
346 * emulparams/criself.sh (INIT_ADDR, FINI_ADDR): Define.
347 (INIT_START, FINI_START): Don't ALIGN.
348 * scriptempl/elf.sc (.init, .fini): Apply INIT_ADDR/FINI_ADDR.
349
e474ab13
AM
3502015-07-20 Alan Modra <amodra@gmail.com>
351
352 * scripttempl/elf.sc (.ldata, .bss): Align absolute value of dot.
353 * ldexp.c (is_align_conditional): Handle binary ALIGN.
354 (exp_fold_tree_1): Move code setting SEC_KEEP for assignments to
355 dot inside output sections. Handle absolute expressions.
356
19a7fe52
L
3572015-07-14 H.J. Lu <hongjiu.lu@intel.com>
358
359 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Make
360 --compress-debug-sections=zlib the same as
361 --compress-debug-sections=zlib-gabi.
362 * ld.texinfo: Change --compress-debug-sections=zlib to zlib-gabi.
363
1f0d470a
NC
3642015-07-14 Nick Clifton <nickc@redhat.com>
365
366 * ld.texinfo (Options): Add missing period after @xref.
367
a2c59f28
AM
3682015-07-10 Alan Modra <amodra@gmail.com>
369
370 * ldexp.c (align_dot_val): New function.
371 (fold_unary <ALIGN_K, NEXT>): Use it.
372
0f088b2a
KT
3732015-07-03 Kai Tietz <ktietz@redhat.com>
374
375 PR ld/11539
376 * scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
377 .rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
378 .eh_frame, .pdata. .xdata, and .gcc_except_table sections
379 as KEEP.
380 * scripttempl/pe.sc: Likewise.
381 * ld.texinfo: Document that --gc-sections has experimental support
382 for COFF and PE targets.
383 * NEWS: Mention experimental support.
384
b6b3dd8f
AM
3852015-07-03 Alan Modra <amodra@gmail.com>
386
387 * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
388 * Makefile.in: Regenerate.
389
ee0c0c50
L
3902015-06-28 H.J. Lu <hongjiu.lu@intel.com>
391
392 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
393 Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
394
c742574f
L
3952015-06-26 H.J. Lu <hongjiu.lu@intel.com>
396
397 * emulparams/elf_iamcu.sh (COMPILE_IN): New.
398
a2a4d60d
NC
3992015-06-15 Nick Clifton <nickc@redhat.com>
400
401 PR ld/18466
402 * emultempl/pe.em (pe_find_data_imports): Generate an error if a
403 symbol name is too long to handle.
404 * emultempl/pep.em (pep_find_data_imports): Likewise.
405
3604cb1f
TG
4062015-06-12 Tristan Gingold <gingold@adacore.com>
407
408 * NEWS: Mention new option.
409 * lexsup.c (parse_args): Handle --print-memory-usage.
410 (ld_options): Add --print-memory-usage.
411 * ldmain.c (main): Call lang_print_memory_usage.
412 * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
413 * ldlang.h: Add prototype of lang_print_memory_usage.
414 * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
415 functions.
416 * ld.texinfo (Options): Document --print-memory-usage.
417 * ld.h (args_type): Add print_memory_usage field.
418
1e1b2efc
NC
4192015-06-08 Nick Clifton <nickc@redhat.com>
420
421 * po/fr.po: Updated French Translation.
422
2f0c68f2
CM
4232015-05-28 Catherine Moore <clm@codesourcery.com>
424 Paul Brook <paul@codesourcery.com>
425
2f0c68f2
CM
426 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
427 Add Compact EH support.
428 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
429 sections.
430
68880f31
CLT
4312015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
432
433 * configure.ac (AC_PROG_GREP): Check for grep program.
434 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
435 Enable ELF option printing for emulations containing
436 'TEMPLATE_NAME=elf32'.
437 * configure: Regenerate.
438
fd1c4238
NC
4392015-05-14 Nick Clifton <nickc@redhat.com>
440
441 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
442 symbols.
443
5197d474
L
4442015-05-11 H.J. Lu <hongjiu.lu@intel.com>
445
446 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
447
7e0a8112
L
4482015-05-11 H.J. Lu <hongjiu.lu@intel.com>
449
450 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
451 (eelf_iamcu.c): New.
452 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
453 enabled in BFD.
454 * Makefile.in: Regenerated.
455 * emulparams/elf_iamcu.sh: New file.
456
837a17b3
NC
4572015-05-05 Nick Clifton <nickc@redhat.com>
458
459 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
460 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
461 (.data): Add .lower.data and .either.data.
462 (.bss): Add .lower.bss and .either.bss.
463 (.rodata): Add .lower.rodata and .either.rodata.
464 * emultempl/msp430.em: New file. Implements a new orphan
465 placement algorithm that divides sections between lower and upper
466 memory regions.
467 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
468 *emsp430X.c): Likewise.
469 * Makefine.in: Regenerate.
470
a13eab06
AS
4712015-04-28 Andreas Schwab <schwab@linux-m68k.org>
472
473 PR ld/18344
474 * ldlex.l (INPUTLIST): Increment lineno on newline.
475
44bd1acd
AM
4762015-04-24 Alan Modra <amodra@gmail.com>
477
478 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
479 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
480
08e2f2bb
DD
4812015-04-24 DJ Delorie <dj@redhat.com>
482
483 * Makefile.am (msp430): Rename primary emulation to msp430elf.
484 (emsp430.c): Rename to emsp430elf.c, update dependencies
485 (emsp430X.c): Update dependencies.
486 * Makefile.in: Likewise.
487 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
d9e88e90 488 * emulparams/msp430.sh: Rename to msp430elf.sh.
08e2f2bb
DD
489 * emulparams/msp430X.sh: Update.
490
f6fe1ccd
L
4912015-04-23 H.J. Lu <hongjiu.lu@intel.com>
492
493 PR binutils/18209
494 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
495
a27e685f
AM
4962015-04-23 Alan Modra <amodra@gmail.com>
497
498 * emulparams/elf64ppc.sh (GOT): Align.
499
0e5fabeb
AM
5002015-04-22 Alan Modra <amodra@gmail.com>
501
502 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
503 data_seg.relro_offset.
504 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
505 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
506 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
507 segment base to line up last section on page boundary.
508
ea556d25
L
5092015-04-15 H.J. Lu <hongjiu.lu@intel.com>
510
511 * NEWS: Mention
512 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
513
0ce398f1
L
5142015-04-14 H.J. Lu <hongjiu.lu@intel.com>
515
516 * ld.texinfo: Document --compress-debug-sections=.
517 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
518 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
519 for COMPRESS_DEBUG_GABI_ZLIB.
520 * lexsup.c (elf_static_list_options): Add
521 --compress-debug-sections=.
522 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
523 (xtra_long): Add "compress-debug-sections".
524 (gld${EMULATION_NAME}_handle_option): Handle
525 OPTION_COMPRESS_DEBUG.
526
889c2a67
L
5272015-04-14 H.J. Lu <hongjiu.lu@intel.com>
528
529 PR ld/pr17709
530 * ld.texinfo: Document "-z noextern-protected-data".
531 * ldmain.c (main): Initialize link_info.extern_protected_data
532 to -1.
533 * lexsup.c (elf_shlib_list_options): Add
534 "-z [no]extern-protected-data".
535 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
536 * emulparams/elf_i386.sh: Likewise.
537 * emulparams/elf_i386_be.sh: Likewise.
538 * emulparams/elf_i386_chaos.sh: Likewise.
539 * emulparams/elf_i386_ldso.sh: Likewise.
540 * emulparams/elf_i386_vxworks.sh: Likewise.
541 * emulparams/elf_k1om.sh: Likewise.
542 * emulparams/elf_l1om.sh: Likewise.
543 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
544 (PARSE_AND_LIST_OPTIONS): Renamed to ...
545 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
546 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
547 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
548 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
549 (PARSE_AND_LIST_ARGS_CASE_Z): Append
550 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
551 * emulparams/extern_protected_data.sh: New file.
552
fd5a1509
L
5532015-04-11 H.J. Lu <hongjiu.lu@intel.com>
554
555 * plugin.c (plugin_load_plugins): Removed an extra ';'.
556
080bb7bb
NC
5572015-04-10 Nick Clifton <nickc@redhat.com>
558
559 PR binutils/18198
560 * ld.texinfo (--be8): Add a note about the interaction of this
561 option with the assembler's -EB option.
562
8c3fff59
AM
5632015-04-10 Alan Modra <amodra@gmail.com>
564
565 * configure.ac: Set elf_list_options etc. in proper case.
566 * configure: Regenerate.
567
6166ed93
AM
5682015-04-10 Alan Modra <amodra@gmail.com>
569
570 PR ld/18223
571 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
572
eba27bd7
L
5732015-04-09 H.J. Lu <hongjiu.lu@intel.com>
574
575 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
576 (PARSE_AND_LIST_OPTIONS): New.
577 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
578 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
579 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
580 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
581
233723a4
NC
5822015-04-09 Nick Clifton <nickc@redhat.com>
583
584 * po/fr.po: Updated French translation.
585
82d8e420
L
5862015-04-08 H.J. Lu <hongjiu.lu@intel.com>
587
588 * configure.ac (elf_list_options): Set to TRUE for
589 --enable-targets=all.
590 (elf_shlib_list_options): Likewise.
591 (elf_plt_unwind_list_options): Likewise.
592 * configure: Regenerated.
593
31b94bbb
L
5942015-04-08 H.J. Lu <hongjiu.lu@intel.com>
595
596 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
597
c58212ea
L
5982015-04-08 H.J. Lu <hongjiu.lu@intel.com>
599
600 * Makefile.am (ELF_CLFAGS): New.
601 (AM_CFLAGS): Add $(ELF_CLFAGS).
602 * configure.ac (elf_list_options): New. AC_SUBST.
603 (elf_shlib_list_options): Likewise.
604 (elf_plt_unwind_list_options): Likewise.
605 * lexsup.c (elf_shlib_list_options): New.
606 (elf_static_list_options): Likewise.
607 (elf_plt_unwind_list_options): Likewise.
608 (ld_list_options): Likewise.
609 (help): Call ld_list_options.
610 * Makefile.in: Regenerated.
611 * configure: Likewise.
612 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
613 (PARSE_AND_LIST_OPTIONS): Removed.
614 * emultempl/elf32.em (gld_list_options): New.
615 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
616 PARSE_AND_LIST_OPTIONS is defined.
617 (ld_${EMULATION_NAME}_emulation): Replace
618 gld${EMULATION_NAME}_list_options with ${gld_list_options.
619
0fad6e4b
AM
6202015-04-07 Alan Modra <amodra@gmail.com>
621
622 PR ld/18176
623 * ldlang.c (lang_size_sections): Cast shift expression.
624
d3e454b9
AM
6252015-04-07 Alan Modra <amodra@gmail.com>
626
627 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
628 (params): Init new field.
629 (ppc_before_allocation): Enable relaxation for pic_fixup.
630
3ea60775
NC
6312015-04-07 Nick Clifton <nickc@redhat.com>
632
633 * ld.h (struct ld_config_type): Add new field: warn_orphan.
634 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
635 OPTION_NO_WARN_ORPHAN.
636 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
637 (parse_args): Handle the new options.
638 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
639 message when an orphan section is placed in the output file.
640 * ld.texinfo: Document the new option.
641 * NEWS: Mention the new feature.
642
15c7659f
AT
6432015-04-02 Andrew Turner <andrew@freebsd.org>
644
645 * Makefile.am: Add FreeBSD aarch64 files.
646 * Makefile.in: Regenerate.
647 * configure.tgt: Add aarch64-*-freebsd* target triple.
648 * emulparams/aarch64fbsd.sh: New file.
649 * emulparams/aarch64fbsdb.sh: New file.
650
a0bde398
L
6512015-04-01 H.J. Lu <hongjiu.lu@intel.com>
652
653 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
654 around a GCC uninitialized warning bug fixed in GCC 4.6.
655
4106101c
MS
6562015-04-01 Tejas Belagod <tejas.belagod@arm.com>
657
658 * emultempl/aarch64elf.em
659 (aarch64_elf_create_output_section_statements): Add parameter in
660 bfd_elf${ELFSIZE}_aarch64_set_options call.
661 (OPTION_FIX_ERRATUM_843419): Define.
662 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
663 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
664
16c1c9d6
CG
6652015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
666
667 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
668 relocating operation.
669
6c1aca3e
AM
6702015-04-01 Alan Modra <amodra@gmail.com>
671
875b5b9d 672 PR ld/18176
6c1aca3e
AM
673 * ldlang.c (lang_size_sections): When alignment of sections
674 results in relro base adjustment being too large, don't go lower
675 than the initial value.
676 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
677 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
678 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
679
4a0bc59e
AM
6802015-04-01 Alan Modra <amodra@gmail.com>
681
682 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
683 init ehdr_start_save.
684
42271ec5
AM
6852015-04-01 Alan Modra <amodra@gmail.com>
686
687 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
688 ldemul-list.h.
689 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
690 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
691 eelf32ppcsim.c): Rearrange deps for consistency.
692 * Makefile.in: Regenerate.
693
4e791d0f
ES
6942015-04-01 Ed Schouten <ed@nuxi.nl>
695
696 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
697 the ehdr_start_save variable.
698
6036f486
ES
6992015-03-31 Ed Schouten <ed@nuxi.nl>
700
701 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
702 eelf_x86_64_cloudabi.c.
703 (eelf_x86_64_cloudabi.c): New.
704 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
705 x86_64-*-cloudabi*.
706 * Makefile.in: Regenerated.
707 * emulparams/elf_x86_64_cloudabi.sh: New file.
708
f24173eb
L
7092015-03-31 H.J. Lu <hongjiu.lu@intel.com>
710
711 * configure.ac (AM_ZLIB): Removed.
712 * Makefile.in: Regenerated.
713 * config.in: Likewise.
714 * configure: Likewise.
715
d9ced15d
MS
7162015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
717
718 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
719 alignment to 2.
720
499c37b5
MS
7212015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
722
723 * emultempl/aarch64elf.em
724 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
725
b3862264
CG
7262015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
727
728 * ldmain.c (main): Use %F instead of %X for einfo.
729
daf220f0
AM
7302015-03-02 Alan Modra <amodra@gmail.com>
731
732 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
733
f0673d20
NC
7342015-02-27 Nick Clifton <nickc@redhat.com>
735
736 PR ld/17900
737 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
738 sense of the following memory region attribute characters.
739
330b17b3
AM
7402015-02-27 Alan Modra <amodra@gmail.com>
741
742 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
743 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
744 eh8300sxelf_linux.c): Do not invoke genscripts here.
745 * Makefile.in: Regenerate.
746
685080f2
NC
7472015-02-24 Nick Clifton <nickc@redhat.com>
748
749 * Makefile.am (ev850.c): Add dependency upon
750 $(srcdir)/emultempl/v850elf.em.
751 (ev850_rh850.c): Likewise.
752 * Makefile.in: Regenerate.
753 * emultempl/v850elf.em: New file.
754 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
755 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
756 * scripttempl/v850.sc: Add .note.renesas section.
757 * scripttempl/v850_rh850.sc: Likewise.
758
cb072816
SKS
7592015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
760
761 * scripttempl/avr.sc: Add new user_signatures region. Define and
762 use symbols for all region lengths.
763 * scripttempl/avrtiny.sc: Define and use symbols for all region
764 lengths.
765
5518c738
YS
7662015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
767
768 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
769 * Makefile.in: Regenerate.
770 * configure.tgt: Add h8300-*-linux
771 * emulparams/h8300elf_linux.sh: Add new emulation.
772 * emulparams/h8300helf_linux.sh: Likewise.
773 * emulparams/h8300self_linux.sh: Likewise.
774 * emulparams/h8300sxelf_linux.sh: Likewise.
775
f971c12f
NC
7762015-02-23 Nick Clifton <nickc@redhat.com>
777
778 * lexsup.c (parse_args): Produce a more reasonable error message
779 when -ixxx or -rxxx is the last option on the linker command line.
780
f58926a6
L
7812015-02-14 H.J. Lu <hongjiu.lu@intel.com>
782
783 PR ld/17973
784 * testplug2.c (allsymbolsread_silent): New.
785 (set_register_hook): Handle allsymbolsreadsilent.
786 (onall_symbols_read): Skip a message if allsymbolsread_silent is
787 TRUE.
788
ce875075
AM
7892015-02-14 Alan Modra <amodra@gmail.com>
790
791 PR ld/17973
792 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
793 * ldlang.c (lang_process): Don't set loading_lto_outputs.
794 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
795 to bfd.
796 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
797
b0619670
L
7982015-02-13 H.J. Lu <hongjiu.lu@intel.com>
799
800 * NEWS: Mention support for LLVM plugin.
801
66bc8739
AM
8022015-02-13 Alan Modra <amodra@gmail.com>
803
804 * ld.texinfo (Options <--defsym>): Correct cross reference.
805
88b9e2eb
L
8062015-02-11 H.J. Lu <hongjiu.lu@intel.com>
807
808 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
809 option compatibility.
810
45e81354
L
8112015-02-11 H.J. Lu <hongjiu.lu@intel.com>
812
813 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
814 "error:" for LDPL_FATAL and LDPL_ERROR.
815 * testplug2.c (parse_option): Handle fatal, error and warning.
816
e3001fd9
L
8172015-02-11 H.J. Lu <hongjiu.lu@intel.com>
818
819 * testplug2.c (dump_tv_tag): Removed.
820 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
821 closed.
822 * testplug3.c (dump_tv_tag): Removed.
823 (onclaim_file): Fix typo.
824
7275e869
L
8252015-02-11 H.J. Lu <hongjiu.lu@intel.com>
826
827 PR ld/17878
828 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
829 libldtestplug3.la.
830 (libldtestplug2_la_SOURCES): New.
831 (libldtestplug2_la_CFLAGS): Likewise.
832 (libldtestplug2_la_LDFLAGS): Likewise.
833 (libldtestplug3_la_SOURCES): New.
834 (libldtestplug3_la_CFLAGS): Likewise.
835 (libldtestplug3_la_LDFLAGS): Likewise.
836 * Makefile.in: Regenerated.
837 * testplug2.c: New file.
838 * testplug3.c: Likewise.
839
b9dc5a87
L
8402015-02-11 H.J. Lu <hongjiu.lu@intel.com>
841
842 PR ld/17878
843 * plugin.c: Include ../bfd/plugin.h.
844 (plugin_get_ir_dummy_bfd): Call bfd_create with
845 link_info.output_bfd instead of srctemplate. Copy BFD info
846 from srctemplate only if it doesn't use BFD plugin target
847 vector.
848 (plugin_load_plugins): Call register_ld_plugin_object_p with
849 (plugin_object_p)
850 (plugin_maybe_claim): Renamed to ...
851 (plugin_object_p): This. Return dummy BFD target vector if
852 input is calimed by plugin library, otherwise return NULL.
853 Update plugin_format and plugin_dummy_bfd.
854 (plugin_maybe_claim): New. Use plugin_object_p.
855
d319a098
L
8562015-02-10 H.J. Lu <hongjiu.lu@intel.com>
857
858 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
859
38604796
L
8602015-02-10 H.J. Lu <hongjiu.lu@intel.com>
861
862 * plugin.c (plugin_input_file_t): Add use_mmap.
863 (plugin_pagesize): New.
864 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
865 (plugin_load_plugins): Initialize plugin_pagesize.
866 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
867 file.
868
fe905789
L
8692015-02-10 H.J. Lu <hongjiu.lu@intel.com>
870
871 * plugin.c (get_view): Align offset passed to mmap.
872
1d5b29cf
L
8732015-02-08 H.J. Lu <hongjiu.lu@intel.com>
874
875 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
876 if plugin isn't active or there is no thing more to claim.
877
e13419c4
L
8782015-02-08 H.J. Lu <hongjiu.lu@intel.com>
879
880 * plugin.c (plugin_maybe_claim): Check format against bfd_object
881 directly.
882
93843894
L
8832015-02-07 H.J. Lu <hongjiu.lu@intel.com>
884
885 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
886 ibfd.
887
35a1e5f3
L
8882015-02-07 H.J. Lu <hongjiu.lu@intel.com>
889
890 * plugin.c: Include "libbfd.h".
891 (plugin_strdup): New.
892 (plugin_maybe_claim): Remove the argument of pointer to struct
893 ld_plugin_input_file. Open and handle input entry.
894 * plugin.h (plugin_maybe_claim): Updated.
895 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
896 without passing a pointer to struct ld_plugin_input_file.
897 * ldmain.c: Don't include "libbfd.h".
898 (add_archive_element): Call plugin_maybe_claim directly without
899 passing a pointer to struct ld_plugin_input_file.
900
8dfef1bd
L
9012015-02-06 H.J. Lu <hongjiu.lu@intel.com>
902
903 * ld.texinfo: Document -z text, -z notext and -z textoff.
904 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
905 -z text, -z notext and -z textoff.
906
2aec968d
L
9072015-02-06 H.J. Lu <hongjiu.lu@intel.com>
908
909 * configure.ac: Add AC_FUNC_MMAP.
910 * config.in: Regenerated.
911 * configure: Likewise.
912 * plugin.c: Include <sys/mman.h>.
913 (MAP_FAILED): New. Defined if not defined.
914 (PROT_READ): Likewise.
915 (MAP_PRIVATE): Likewise.
916 (view_buffer_t): New.
917 (plugin_input_file_t): Add view_buffer.
918 (get_view): Try mmap and cache the view buffer.
919 (plugin_maybe_claim): Initialize view_buffer.
920
119d62ff
L
9212015-02-05 H.J. Lu <hongjiu.lu@intel.com>
922
923 * plugin.c (release_input_file): Set fd to -1 after closing it.
924 (plugin_maybe_claim): Close fd only if fd != -1.
925
f4b78d18
L
9262015-02-05 H.J. Lu <hongjiu.lu@intel.com>
927
928 PR ld/17878
929 * plugin.c: Include <errno.h>.
930 (errno): New. Declare if needed.
931 (plugin_input_file_t): New.
932 (get_input_file): Implemented.
933 (get_view): Likewise.
934 (release_input_file): Likewise.
935 (add_symbols): Updated.
936 (get_symbols): Likewise.
937 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
938 only for a bfd_object input.
939
6c2573b7
AM
9402015-02-02 Alan Modra <amodra@gmail.com>
941
942 * emultempl/ppc64elf.em (toc_section_name): New var.
943 (ppc_after_open): Set it.
944 (ppc_before_allocation): Use it.
945 (gld${EMULATION_NAME}_after_allocation): Here too.
946
716db898
L
9472015-01-29 H.J. Lu <hongjiu.lu@intel.com>
948
949 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
950 with link_info.lto_plugin_active.
951 * ldlang.c (lang_process): Likewise.
952 * ldmain.c (add_archive_element): Likewise.
953 * plugin.c (plugin_active_plugins_p): Removed.
954 * plugin.h (plugin_active_plugins_p): Likewise.
955
37a3056a
L
9562015-01-28 H.J. Lu <hongjiu.lu@intel.com>
957
958 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
959 ...
960 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
961
15f7a26b
L
9622015-01-28 H.J. Lu <hongjiu.lu@intel.com>
963
964 PR ld/17878
965 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
966 (get_view): New function.
967 (set_tv_header): Handle LDPT_GET_VIEW.
968 * testplug.c (tag_names): Add LDPT_GET_VIEW.
969 (tv_get_view): New.
970 (dump_tv_tag): Handle LDPT_GET_VIEW.
971 (parse_tv_tag): Likewise.
972
dbd1e97e
AM
9732015-01-28 Alan Modra <amodra@gmail.com>
974
975 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
976 * emultempl/ppc64elf.em (params): Init new field.
977 (ppc_after_open): New function.
978 (LDEMUL_AFTER_OPEN): Define.
979 * ldlang.c (lang_final): Whitespace fix.
980
3f8107ab
AM
9812015-01-28 James Bowman <james.bowman@ftdichip.com>
982
983 * Makefile.am: Add FT32 files.
984 * configure.tgt: Handle FT32 target.
985 * emulparams/elf32ft32.sh: New file.
986 * scripttempl/ft32.sc: New file.
987 * Makefile.in: Regenerate.
988
cc9ad334
SKS
9892015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
990
991 PR 4643
992 * ldexp.c (fold_name): Fold LENGTH only after
993 lang_first_phase_enum.
994 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
995 rightaway.
996 * ldlang.h (struct memory_region_struct): Add origin_exp and
997 length_exp fields.
998 * ldlang.c (lang_do_memory_regions): New.
999 (lang_memory_region_lookup): Initialize origin_exp and
1000 length_exp fields.
1001 (lang_process): Call lang_do_memory_regions.
1002
c05b575a
AB
10032015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
1004
1005 * ldlang.c (print_assignment): Only evaluate the expression for a
1006 PROVIDE'd assignment when the destination is being defined.
1007 Display a special message for PROVIDE'd symbols that are not being
1008 provided.
1009
5ad18f16
AM
10102015-01-20 Alan Modra <amodra@gmail.com>
1011
1012 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
1013 (OTHER_BSS_SYMBOLS): ..this.
1014 (OTHER_PLT_RELOC_SECTIONS): Don't define.
1015 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
1016 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
1017 (OTHER_RELRO_SECTIONS_2): ..here.
1018 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
1019
23283c1b
AM
10202015-01-20 Alan Modra <amodra@gmail.com>
1021
1022 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
1023 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
1024 (OTHER_RELRO_SECTIONS_2): ..here.
1025 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
1026 PLT_BEFORE_GOT): Define.
1027 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
1028 PLT_BEFORE_GOT combination.
1029 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
1030
3e2b0f31
AM
10312015-01-20 Alan Modra <amodra@gmail.com>
1032
1033 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
1034 (OTHER_RELRO_SECTIONS_2): ..here, new define.
1035 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
1036
c4621b33
AM
10372015-01-19 Alan Modra <amodra@gmail.com>
1038
3e2aa5bb 1039 PR ld/17615
c4621b33
AM
1040 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
1041
52db4ec2
JW
10422015-01-14 Jiong Wang <jiong.wang@arm.com>
1043
1044 * ld-arm/elf32-reject.s: New testcase.
1045 * ld-arm/elf32-reject.d: Likewise.
1046 * ld-arm/elf32-reject-pie.s: Likewise.
1047 * ld-arm/elf32-reject-pie.d: Likewise.
1048 * ld-arm/arm-elf.exp: Run new testcases.
1049 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
1050 * ld-arm/ifunc-7.rd: Likewise.
1051 * ld-arm/ifunc-7.gd: Likewise.
1052 * ld-arm/ifunc-7.dd: Likewise.
1053 * ld-arm/ifunc-8.s: Likewise.
1054 * ld-arm/ifunc-8.rd: Likewise.
1055 * ld-arm/ifunc-8.gd: Likewise.
1056 * ld-arm/ifunc-8.dd: Likewise.
1057
efd321f9
AM
10582015-01-01 Alan Modra <amodra@gmail.com>
1059
1060 * ldver.c (ldversion): Just print current year.
1061
b90efa5b 10622015-01-01 Alan Modra <amodra@gmail.com>
ca0694ad 1063
b90efa5b 1064 Update year range in copyright notice of all files.
ca0694ad 1065
b90efa5b 1066For older changes see ChangeLog-2014
252b5132 1067\f
b90efa5b 1068Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
1069
1070Copying and distribution of this file, with or without modification,
1071are permitted in any medium without royalty provided the copyright
1072notice and this notice are preserved.
1073
252b5132
RH
1074Local Variables:
1075mode: change-log
1076left-margin: 8
1077fill-column: 74
1078version-control: never
1079End:
This page took 0.868067 seconds and 4 git commands to generate.