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