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