]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
Fix RX GAS handling of integer bignums.
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
2f0c68f2
CM
12015-05-28 Catherine Moore <clm@codesourcery.com>
2 Paul Brook <paul@codesourcery.com>
3
4 ld/
5 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
6 Add Compact EH support.
7 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
8 sections.
9
68880f31
CLT
102015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
11
12 * configure.ac (AC_PROG_GREP): Check for grep program.
13 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
14 Enable ELF option printing for emulations containing
15 'TEMPLATE_NAME=elf32'.
16 * configure: Regenerate.
17
fd1c4238
NC
182015-05-14 Nick Clifton <nickc@redhat.com>
19
20 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
21 symbols.
22
5197d474
L
232015-05-11 H.J. Lu <hongjiu.lu@intel.com>
24
25 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
26
7e0a8112
L
272015-05-11 H.J. Lu <hongjiu.lu@intel.com>
28
29 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
30 (eelf_iamcu.c): New.
31 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
32 enabled in BFD.
33 * Makefile.in: Regenerated.
34 * emulparams/elf_iamcu.sh: New file.
35
837a17b3
NC
362015-05-05 Nick Clifton <nickc@redhat.com>
37
38 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
39 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
40 (.data): Add .lower.data and .either.data.
41 (.bss): Add .lower.bss and .either.bss.
42 (.rodata): Add .lower.rodata and .either.rodata.
43 * emultempl/msp430.em: New file. Implements a new orphan
44 placement algorithm that divides sections between lower and upper
45 memory regions.
46 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
47 *emsp430X.c): Likewise.
48 * Makefine.in: Regenerate.
49
a13eab06
AS
502015-04-28 Andreas Schwab <schwab@linux-m68k.org>
51
52 PR ld/18344
53 * ldlex.l (INPUTLIST): Increment lineno on newline.
54
44bd1acd
AM
552015-04-24 Alan Modra <amodra@gmail.com>
56
57 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
58 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
59
08e2f2bb
DD
602015-04-24 DJ Delorie <dj@redhat.com>
61
62 * Makefile.am (msp430): Rename primary emulation to msp430elf.
63 (emsp430.c): Rename to emsp430elf.c, update dependencies
64 (emsp430X.c): Update dependencies.
65 * Makefile.in: Likewise.
66 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
d9e88e90 67 * emulparams/msp430.sh: Rename to msp430elf.sh.
08e2f2bb
DD
68 * emulparams/msp430X.sh: Update.
69
f6fe1ccd
L
702015-04-23 H.J. Lu <hongjiu.lu@intel.com>
71
72 PR binutils/18209
73 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
74
a27e685f
AM
752015-04-23 Alan Modra <amodra@gmail.com>
76
77 * emulparams/elf64ppc.sh (GOT): Align.
78
0e5fabeb
AM
792015-04-22 Alan Modra <amodra@gmail.com>
80
81 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
82 data_seg.relro_offset.
83 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
84 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
85 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
86 segment base to line up last section on page boundary.
87
ea556d25
L
882015-04-15 H.J. Lu <hongjiu.lu@intel.com>
89
90 * NEWS: Mention
91 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
92
0ce398f1
L
932015-04-14 H.J. Lu <hongjiu.lu@intel.com>
94
95 * ld.texinfo: Document --compress-debug-sections=.
96 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
97 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
98 for COMPRESS_DEBUG_GABI_ZLIB.
99 * lexsup.c (elf_static_list_options): Add
100 --compress-debug-sections=.
101 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
102 (xtra_long): Add "compress-debug-sections".
103 (gld${EMULATION_NAME}_handle_option): Handle
104 OPTION_COMPRESS_DEBUG.
105
889c2a67
L
1062015-04-14 H.J. Lu <hongjiu.lu@intel.com>
107
108 PR ld/pr17709
109 * ld.texinfo: Document "-z noextern-protected-data".
110 * ldmain.c (main): Initialize link_info.extern_protected_data
111 to -1.
112 * lexsup.c (elf_shlib_list_options): Add
113 "-z [no]extern-protected-data".
114 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
115 * emulparams/elf_i386.sh: Likewise.
116 * emulparams/elf_i386_be.sh: Likewise.
117 * emulparams/elf_i386_chaos.sh: Likewise.
118 * emulparams/elf_i386_ldso.sh: Likewise.
119 * emulparams/elf_i386_vxworks.sh: Likewise.
120 * emulparams/elf_k1om.sh: Likewise.
121 * emulparams/elf_l1om.sh: Likewise.
122 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
123 (PARSE_AND_LIST_OPTIONS): Renamed to ...
124 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
125 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
126 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
127 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
128 (PARSE_AND_LIST_ARGS_CASE_Z): Append
129 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
130 * emulparams/extern_protected_data.sh: New file.
131
fd5a1509
L
1322015-04-11 H.J. Lu <hongjiu.lu@intel.com>
133
134 * plugin.c (plugin_load_plugins): Removed an extra ';'.
135
080bb7bb
NC
1362015-04-10 Nick Clifton <nickc@redhat.com>
137
138 PR binutils/18198
139 * ld.texinfo (--be8): Add a note about the interaction of this
140 option with the assembler's -EB option.
141
8c3fff59
AM
1422015-04-10 Alan Modra <amodra@gmail.com>
143
144 * configure.ac: Set elf_list_options etc. in proper case.
145 * configure: Regenerate.
146
6166ed93
AM
1472015-04-10 Alan Modra <amodra@gmail.com>
148
149 PR ld/18223
150 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
151
eba27bd7
L
1522015-04-09 H.J. Lu <hongjiu.lu@intel.com>
153
154 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
155 (PARSE_AND_LIST_OPTIONS): New.
156 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
157 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
158 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
159 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
160
233723a4
NC
1612015-04-09 Nick Clifton <nickc@redhat.com>
162
163 * po/fr.po: Updated French translation.
164
82d8e420
L
1652015-04-08 H.J. Lu <hongjiu.lu@intel.com>
166
167 * configure.ac (elf_list_options): Set to TRUE for
168 --enable-targets=all.
169 (elf_shlib_list_options): Likewise.
170 (elf_plt_unwind_list_options): Likewise.
171 * configure: Regenerated.
172
31b94bbb
L
1732015-04-08 H.J. Lu <hongjiu.lu@intel.com>
174
175 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
176
c58212ea
L
1772015-04-08 H.J. Lu <hongjiu.lu@intel.com>
178
179 * Makefile.am (ELF_CLFAGS): New.
180 (AM_CFLAGS): Add $(ELF_CLFAGS).
181 * configure.ac (elf_list_options): New. AC_SUBST.
182 (elf_shlib_list_options): Likewise.
183 (elf_plt_unwind_list_options): Likewise.
184 * lexsup.c (elf_shlib_list_options): New.
185 (elf_static_list_options): Likewise.
186 (elf_plt_unwind_list_options): Likewise.
187 (ld_list_options): Likewise.
188 (help): Call ld_list_options.
189 * Makefile.in: Regenerated.
190 * configure: Likewise.
191 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
192 (PARSE_AND_LIST_OPTIONS): Removed.
193 * emultempl/elf32.em (gld_list_options): New.
194 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
195 PARSE_AND_LIST_OPTIONS is defined.
196 (ld_${EMULATION_NAME}_emulation): Replace
197 gld${EMULATION_NAME}_list_options with ${gld_list_options.
198
0fad6e4b
AM
1992015-04-07 Alan Modra <amodra@gmail.com>
200
201 PR ld/18176
202 * ldlang.c (lang_size_sections): Cast shift expression.
203
d3e454b9
AM
2042015-04-07 Alan Modra <amodra@gmail.com>
205
206 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
207 (params): Init new field.
208 (ppc_before_allocation): Enable relaxation for pic_fixup.
209
3ea60775
NC
2102015-04-07 Nick Clifton <nickc@redhat.com>
211
212 * ld.h (struct ld_config_type): Add new field: warn_orphan.
213 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
214 OPTION_NO_WARN_ORPHAN.
215 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
216 (parse_args): Handle the new options.
217 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
218 message when an orphan section is placed in the output file.
219 * ld.texinfo: Document the new option.
220 * NEWS: Mention the new feature.
221
15c7659f
AT
2222015-04-02 Andrew Turner <andrew@freebsd.org>
223
224 * Makefile.am: Add FreeBSD aarch64 files.
225 * Makefile.in: Regenerate.
226 * configure.tgt: Add aarch64-*-freebsd* target triple.
227 * emulparams/aarch64fbsd.sh: New file.
228 * emulparams/aarch64fbsdb.sh: New file.
229
a0bde398
L
2302015-04-01 H.J. Lu <hongjiu.lu@intel.com>
231
232 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
233 around a GCC uninitialized warning bug fixed in GCC 4.6.
234
4106101c
MS
2352015-04-01 Tejas Belagod <tejas.belagod@arm.com>
236
237 * emultempl/aarch64elf.em
238 (aarch64_elf_create_output_section_statements): Add parameter in
239 bfd_elf${ELFSIZE}_aarch64_set_options call.
240 (OPTION_FIX_ERRATUM_843419): Define.
241 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
242 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
243
16c1c9d6
CG
2442015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
245
246 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
247 relocating operation.
248
6c1aca3e
AM
2492015-04-01 Alan Modra <amodra@gmail.com>
250
875b5b9d 251 PR ld/18176
6c1aca3e
AM
252 * ldlang.c (lang_size_sections): When alignment of sections
253 results in relro base adjustment being too large, don't go lower
254 than the initial value.
255 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
256 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
257 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
258
4a0bc59e
AM
2592015-04-01 Alan Modra <amodra@gmail.com>
260
261 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
262 init ehdr_start_save.
263
42271ec5
AM
2642015-04-01 Alan Modra <amodra@gmail.com>
265
266 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
267 ldemul-list.h.
268 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
269 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
270 eelf32ppcsim.c): Rearrange deps for consistency.
271 * Makefile.in: Regenerate.
272
4e791d0f
ES
2732015-04-01 Ed Schouten <ed@nuxi.nl>
274
275 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
276 the ehdr_start_save variable.
277
6036f486
ES
2782015-03-31 Ed Schouten <ed@nuxi.nl>
279
280 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
281 eelf_x86_64_cloudabi.c.
282 (eelf_x86_64_cloudabi.c): New.
283 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
284 x86_64-*-cloudabi*.
285 * Makefile.in: Regenerated.
286 * emulparams/elf_x86_64_cloudabi.sh: New file.
287
f24173eb
L
2882015-03-31 H.J. Lu <hongjiu.lu@intel.com>
289
290 * configure.ac (AM_ZLIB): Removed.
291 * Makefile.in: Regenerated.
292 * config.in: Likewise.
293 * configure: Likewise.
294
d9ced15d
MS
2952015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
296
297 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
298 alignment to 2.
299
499c37b5
MS
3002015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
301
302 * emultempl/aarch64elf.em
303 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
304
b3862264
CG
3052015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
306
307 * ldmain.c (main): Use %F instead of %X for einfo.
308
daf220f0
AM
3092015-03-02 Alan Modra <amodra@gmail.com>
310
311 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
312
f0673d20
NC
3132015-02-27 Nick Clifton <nickc@redhat.com>
314
315 PR ld/17900
316 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
317 sense of the following memory region attribute characters.
318
330b17b3
AM
3192015-02-27 Alan Modra <amodra@gmail.com>
320
321 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
322 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
323 eh8300sxelf_linux.c): Do not invoke genscripts here.
324 * Makefile.in: Regenerate.
325
685080f2
NC
3262015-02-24 Nick Clifton <nickc@redhat.com>
327
328 * Makefile.am (ev850.c): Add dependency upon
329 $(srcdir)/emultempl/v850elf.em.
330 (ev850_rh850.c): Likewise.
331 * Makefile.in: Regenerate.
332 * emultempl/v850elf.em: New file.
333 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
334 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
335 * scripttempl/v850.sc: Add .note.renesas section.
336 * scripttempl/v850_rh850.sc: Likewise.
337
cb072816
SKS
3382015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
339
340 * scripttempl/avr.sc: Add new user_signatures region. Define and
341 use symbols for all region lengths.
342 * scripttempl/avrtiny.sc: Define and use symbols for all region
343 lengths.
344
5518c738
YS
3452015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
346
347 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
348 * Makefile.in: Regenerate.
349 * configure.tgt: Add h8300-*-linux
350 * emulparams/h8300elf_linux.sh: Add new emulation.
351 * emulparams/h8300helf_linux.sh: Likewise.
352 * emulparams/h8300self_linux.sh: Likewise.
353 * emulparams/h8300sxelf_linux.sh: Likewise.
354
f971c12f
NC
3552015-02-23 Nick Clifton <nickc@redhat.com>
356
357 * lexsup.c (parse_args): Produce a more reasonable error message
358 when -ixxx or -rxxx is the last option on the linker command line.
359
f58926a6
L
3602015-02-14 H.J. Lu <hongjiu.lu@intel.com>
361
362 PR ld/17973
363 * testplug2.c (allsymbolsread_silent): New.
364 (set_register_hook): Handle allsymbolsreadsilent.
365 (onall_symbols_read): Skip a message if allsymbolsread_silent is
366 TRUE.
367
ce875075
AM
3682015-02-14 Alan Modra <amodra@gmail.com>
369
370 PR ld/17973
371 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
372 * ldlang.c (lang_process): Don't set loading_lto_outputs.
373 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
374 to bfd.
375 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
376
b0619670
L
3772015-02-13 H.J. Lu <hongjiu.lu@intel.com>
378
379 * NEWS: Mention support for LLVM plugin.
380
66bc8739
AM
3812015-02-13 Alan Modra <amodra@gmail.com>
382
383 * ld.texinfo (Options <--defsym>): Correct cross reference.
384
88b9e2eb
L
3852015-02-11 H.J. Lu <hongjiu.lu@intel.com>
386
387 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
388 option compatibility.
389
45e81354
L
3902015-02-11 H.J. Lu <hongjiu.lu@intel.com>
391
392 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
393 "error:" for LDPL_FATAL and LDPL_ERROR.
394 * testplug2.c (parse_option): Handle fatal, error and warning.
395
e3001fd9
L
3962015-02-11 H.J. Lu <hongjiu.lu@intel.com>
397
398 * testplug2.c (dump_tv_tag): Removed.
399 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
400 closed.
401 * testplug3.c (dump_tv_tag): Removed.
402 (onclaim_file): Fix typo.
403
7275e869
L
4042015-02-11 H.J. Lu <hongjiu.lu@intel.com>
405
406 PR ld/17878
407 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
408 libldtestplug3.la.
409 (libldtestplug2_la_SOURCES): New.
410 (libldtestplug2_la_CFLAGS): Likewise.
411 (libldtestplug2_la_LDFLAGS): Likewise.
412 (libldtestplug3_la_SOURCES): New.
413 (libldtestplug3_la_CFLAGS): Likewise.
414 (libldtestplug3_la_LDFLAGS): Likewise.
415 * Makefile.in: Regenerated.
416 * testplug2.c: New file.
417 * testplug3.c: Likewise.
418
b9dc5a87
L
4192015-02-11 H.J. Lu <hongjiu.lu@intel.com>
420
421 PR ld/17878
422 * plugin.c: Include ../bfd/plugin.h.
423 (plugin_get_ir_dummy_bfd): Call bfd_create with
424 link_info.output_bfd instead of srctemplate. Copy BFD info
425 from srctemplate only if it doesn't use BFD plugin target
426 vector.
427 (plugin_load_plugins): Call register_ld_plugin_object_p with
428 (plugin_object_p)
429 (plugin_maybe_claim): Renamed to ...
430 (plugin_object_p): This. Return dummy BFD target vector if
431 input is calimed by plugin library, otherwise return NULL.
432 Update plugin_format and plugin_dummy_bfd.
433 (plugin_maybe_claim): New. Use plugin_object_p.
434
d319a098
L
4352015-02-10 H.J. Lu <hongjiu.lu@intel.com>
436
437 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
438
38604796
L
4392015-02-10 H.J. Lu <hongjiu.lu@intel.com>
440
441 * plugin.c (plugin_input_file_t): Add use_mmap.
442 (plugin_pagesize): New.
443 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
444 (plugin_load_plugins): Initialize plugin_pagesize.
445 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
446 file.
447
fe905789
L
4482015-02-10 H.J. Lu <hongjiu.lu@intel.com>
449
450 * plugin.c (get_view): Align offset passed to mmap.
451
1d5b29cf
L
4522015-02-08 H.J. Lu <hongjiu.lu@intel.com>
453
454 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
455 if plugin isn't active or there is no thing more to claim.
456
e13419c4
L
4572015-02-08 H.J. Lu <hongjiu.lu@intel.com>
458
459 * plugin.c (plugin_maybe_claim): Check format against bfd_object
460 directly.
461
93843894
L
4622015-02-07 H.J. Lu <hongjiu.lu@intel.com>
463
464 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
465 ibfd.
466
35a1e5f3
L
4672015-02-07 H.J. Lu <hongjiu.lu@intel.com>
468
469 * plugin.c: Include "libbfd.h".
470 (plugin_strdup): New.
471 (plugin_maybe_claim): Remove the argument of pointer to struct
472 ld_plugin_input_file. Open and handle input entry.
473 * plugin.h (plugin_maybe_claim): Updated.
474 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
475 without passing a pointer to struct ld_plugin_input_file.
476 * ldmain.c: Don't include "libbfd.h".
477 (add_archive_element): Call plugin_maybe_claim directly without
478 passing a pointer to struct ld_plugin_input_file.
479
8dfef1bd
L
4802015-02-06 H.J. Lu <hongjiu.lu@intel.com>
481
482 * ld.texinfo: Document -z text, -z notext and -z textoff.
483 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
484 -z text, -z notext and -z textoff.
485
2aec968d
L
4862015-02-06 H.J. Lu <hongjiu.lu@intel.com>
487
488 * configure.ac: Add AC_FUNC_MMAP.
489 * config.in: Regenerated.
490 * configure: Likewise.
491 * plugin.c: Include <sys/mman.h>.
492 (MAP_FAILED): New. Defined if not defined.
493 (PROT_READ): Likewise.
494 (MAP_PRIVATE): Likewise.
495 (view_buffer_t): New.
496 (plugin_input_file_t): Add view_buffer.
497 (get_view): Try mmap and cache the view buffer.
498 (plugin_maybe_claim): Initialize view_buffer.
499
119d62ff
L
5002015-02-05 H.J. Lu <hongjiu.lu@intel.com>
501
502 * plugin.c (release_input_file): Set fd to -1 after closing it.
503 (plugin_maybe_claim): Close fd only if fd != -1.
504
f4b78d18
L
5052015-02-05 H.J. Lu <hongjiu.lu@intel.com>
506
507 PR ld/17878
508 * plugin.c: Include <errno.h>.
509 (errno): New. Declare if needed.
510 (plugin_input_file_t): New.
511 (get_input_file): Implemented.
512 (get_view): Likewise.
513 (release_input_file): Likewise.
514 (add_symbols): Updated.
515 (get_symbols): Likewise.
516 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
517 only for a bfd_object input.
518
6c2573b7
AM
5192015-02-02 Alan Modra <amodra@gmail.com>
520
521 * emultempl/ppc64elf.em (toc_section_name): New var.
522 (ppc_after_open): Set it.
523 (ppc_before_allocation): Use it.
524 (gld${EMULATION_NAME}_after_allocation): Here too.
525
716db898
L
5262015-01-29 H.J. Lu <hongjiu.lu@intel.com>
527
528 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
529 with link_info.lto_plugin_active.
530 * ldlang.c (lang_process): Likewise.
531 * ldmain.c (add_archive_element): Likewise.
532 * plugin.c (plugin_active_plugins_p): Removed.
533 * plugin.h (plugin_active_plugins_p): Likewise.
534
37a3056a
L
5352015-01-28 H.J. Lu <hongjiu.lu@intel.com>
536
537 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
538 ...
539 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
540
15f7a26b
L
5412015-01-28 H.J. Lu <hongjiu.lu@intel.com>
542
543 PR ld/17878
544 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
545 (get_view): New function.
546 (set_tv_header): Handle LDPT_GET_VIEW.
547 * testplug.c (tag_names): Add LDPT_GET_VIEW.
548 (tv_get_view): New.
549 (dump_tv_tag): Handle LDPT_GET_VIEW.
550 (parse_tv_tag): Likewise.
551
dbd1e97e
AM
5522015-01-28 Alan Modra <amodra@gmail.com>
553
554 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
555 * emultempl/ppc64elf.em (params): Init new field.
556 (ppc_after_open): New function.
557 (LDEMUL_AFTER_OPEN): Define.
558 * ldlang.c (lang_final): Whitespace fix.
559
3f8107ab
AM
5602015-01-28 James Bowman <james.bowman@ftdichip.com>
561
562 * Makefile.am: Add FT32 files.
563 * configure.tgt: Handle FT32 target.
564 * emulparams/elf32ft32.sh: New file.
565 * scripttempl/ft32.sc: New file.
566 * Makefile.in: Regenerate.
567
cc9ad334
SKS
5682015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
569
570 PR 4643
571 * ldexp.c (fold_name): Fold LENGTH only after
572 lang_first_phase_enum.
573 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
574 rightaway.
575 * ldlang.h (struct memory_region_struct): Add origin_exp and
576 length_exp fields.
577 * ldlang.c (lang_do_memory_regions): New.
578 (lang_memory_region_lookup): Initialize origin_exp and
579 length_exp fields.
580 (lang_process): Call lang_do_memory_regions.
581
c05b575a
AB
5822015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
583
584 * ldlang.c (print_assignment): Only evaluate the expression for a
585 PROVIDE'd assignment when the destination is being defined.
586 Display a special message for PROVIDE'd symbols that are not being
587 provided.
588
5ad18f16
AM
5892015-01-20 Alan Modra <amodra@gmail.com>
590
591 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
592 (OTHER_BSS_SYMBOLS): ..this.
593 (OTHER_PLT_RELOC_SECTIONS): Don't define.
594 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
595 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
596 (OTHER_RELRO_SECTIONS_2): ..here.
597 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
598
23283c1b
AM
5992015-01-20 Alan Modra <amodra@gmail.com>
600
601 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
602 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
603 (OTHER_RELRO_SECTIONS_2): ..here.
604 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
605 PLT_BEFORE_GOT): Define.
606 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
607 PLT_BEFORE_GOT combination.
608 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
609
3e2b0f31
AM
6102015-01-20 Alan Modra <amodra@gmail.com>
611
612 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
613 (OTHER_RELRO_SECTIONS_2): ..here, new define.
614 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
615
c4621b33
AM
6162015-01-19 Alan Modra <amodra@gmail.com>
617
3e2aa5bb 618 PR ld/17615
c4621b33
AM
619 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
620
52db4ec2
JW
6212015-01-14 Jiong Wang <jiong.wang@arm.com>
622
623 * ld-arm/elf32-reject.s: New testcase.
624 * ld-arm/elf32-reject.d: Likewise.
625 * ld-arm/elf32-reject-pie.s: Likewise.
626 * ld-arm/elf32-reject-pie.d: Likewise.
627 * ld-arm/arm-elf.exp: Run new testcases.
628 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
629 * ld-arm/ifunc-7.rd: Likewise.
630 * ld-arm/ifunc-7.gd: Likewise.
631 * ld-arm/ifunc-7.dd: Likewise.
632 * ld-arm/ifunc-8.s: Likewise.
633 * ld-arm/ifunc-8.rd: Likewise.
634 * ld-arm/ifunc-8.gd: Likewise.
635 * ld-arm/ifunc-8.dd: Likewise.
636
efd321f9
AM
6372015-01-01 Alan Modra <amodra@gmail.com>
638
639 * ldver.c (ldversion): Just print current year.
640
b90efa5b 6412015-01-01 Alan Modra <amodra@gmail.com>
ca0694ad 642
b90efa5b 643 Update year range in copyright notice of all files.
ca0694ad 644
b90efa5b 645For older changes see ChangeLog-2014
252b5132 646\f
b90efa5b 647Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
648
649Copying and distribution of this file, with or without modification,
650are permitted in any medium without royalty provided the copyright
651notice and this notice are preserved.
652
252b5132
RH
653Local Variables:
654mode: change-log
655left-margin: 8
656fill-column: 74
657version-control: never
658End: