Correct ld Makefile dependendcy for or1k
[external/binutils.git] / ld / ChangeLog
1 2015-07-03  Alan Modra  <amodra@gmail.com>
2
3         * Makefile.am (eelf32or1k.c, eelf32or1k_linux.c): Depend on ELF_DEPS.
4         * Makefile.in: Regenerate.
5
6 2015-06-28  H.J. Lu  <hongjiu.lu@intel.com>
7
8         * emultempl/elf32.em  (gld${EMULATION_NAME}_handle_option):
9         Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
10
11 2015-06-26  H.J. Lu  <hongjiu.lu@intel.com>
12
13         * emulparams/elf_iamcu.sh (COMPILE_IN): New.
14
15 2015-06-15  Nick Clifton  <nickc@redhat.com>
16
17         PR ld/18466
18         * emultempl/pe.em (pe_find_data_imports): Generate an error if a
19         symbol name is too long to handle.
20         * emultempl/pep.em (pep_find_data_imports): Likewise.
21
22 2015-06-12  Tristan Gingold  <gingold@adacore.com>
23
24         * NEWS: Mention new option.
25         * lexsup.c (parse_args): Handle --print-memory-usage.
26         (ld_options): Add --print-memory-usage.
27         * ldmain.c (main): Call lang_print_memory_usage.
28         * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
29         * ldlang.h: Add prototype of lang_print_memory_usage.
30         * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
31         functions.
32         * ld.texinfo (Options): Document --print-memory-usage.
33         * ld.h (args_type): Add print_memory_usage field.
34
35 2015-06-08  Nick Clifton  <nickc@redhat.com>
36
37         * po/fr.po: Updated French Translation.
38
39 2015-05-28  Catherine Moore  <clm@codesourcery.com>
40             Paul Brook <paul@codesourcery.com>
41
42         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
43         Add Compact EH support.
44         * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
45         sections.
46
47 2015-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
48
49         * configure.ac (AC_PROG_GREP): Check for grep program.
50         (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
51         Enable ELF option printing for emulations containing
52         'TEMPLATE_NAME=elf32'.
53         * configure: Regenerate.
54
55 2015-05-14  Nick Clifton  <nickc@redhat.com>
56
57         * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
58         symbols.
59
60 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
61
62         * configure.tgt: Support i[3-7]86-*-elfiamcu target.
63
64 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
65
66         * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
67         (eelf_iamcu.c): New.
68         * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
69         enabled in BFD.
70         * Makefile.in: Regenerated.
71         * emulparams/elf_iamcu.sh: New file.
72
73 2015-05-05  Nick Clifton  <nickc@redhat.com>
74
75         * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
76         * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
77         (.data): Add .lower.data and .either.data.
78         (.bss): Add .lower.bss and .either.bss.
79         (.rodata): Add .lower.rodata and .either.rodata.
80         * emultempl/msp430.em: New file.  Implements a new orphan
81         placement algorithm that divides sections between lower and upper
82         memory regions.
83         * Makefile.am (emsp430elf.c): Depend upon msp430.em.
84         *emsp430X.c): Likewise.
85         * Makefine.in: Regenerate.
86
87 2015-04-28  Andreas Schwab  <schwab@linux-m68k.org>
88
89         PR ld/18344
90         * ldlex.l (INPUTLIST): Increment lineno on newline.
91
92 2015-04-24  Alan Modra  <amodra@gmail.com>
93
94         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
95         Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
96
97 2015-04-24  DJ Delorie  <dj@redhat.com>
98
99         * Makefile.am (msp430): Rename primary emulation to msp430elf.
100         (emsp430.c): Rename to emsp430elf.c, update dependencies
101         (emsp430X.c): Update dependencies.
102         * Makefile.in: Likewise.
103         * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
104         * emulparams/msp430.sh: Rename to msp430elf.sh.
105         * emulparams/msp430X.sh: Update.
106
107 2015-04-23  H.J. Lu  <hongjiu.lu@intel.com>
108
109         PR binutils/18209
110         * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
111
112 2015-04-23  Alan Modra  <amodra@gmail.com>
113
114         * emulparams/elf64ppc.sh (GOT): Align.
115
116 2015-04-22  Alan Modra  <amodra@gmail.com>
117
118         * ldexp.h (struct ldexp_control): Delete dataseg.min_base.  Add
119         data_seg.relro_offset.
120         * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
121         (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
122         * ldlang.c (lang_size_sections): Rewrite code adjusting relro
123         segment base to line up last section on page boundary.
124
125 2015-04-15  H.J. Lu  <hongjiu.lu@intel.com>
126
127         * NEWS: Mention
128         --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
129
130 2015-04-14  H.J. Lu  <hongjiu.lu@intel.com>
131
132         * ld.texinfo: Document --compress-debug-sections=.
133         * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
134         COMPRESS_DEBUG is set.  Set BFD_COMPRESS_GABI on output_bfd
135         for COMPRESS_DEBUG_GABI_ZLIB.
136         * lexsup.c (elf_static_list_options): Add
137         --compress-debug-sections=.
138         * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
139         (xtra_long): Add "compress-debug-sections".
140         (gld${EMULATION_NAME}_handle_option): Handle
141         OPTION_COMPRESS_DEBUG.
142
143 2015-04-14  H.J. Lu  <hongjiu.lu@intel.com>
144
145         PR ld/pr17709
146         * ld.texinfo: Document "-z noextern-protected-data".
147         * ldmain.c (main): Initialize link_info.extern_protected_data
148         to -1.
149         * lexsup.c (elf_shlib_list_options): Add
150         "-z [no]extern-protected-data".
151         * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
152         * emulparams/elf_i386.sh: Likewise.
153         * emulparams/elf_i386_be.sh: Likewise.
154         * emulparams/elf_i386_chaos.sh: Likewise.
155         * emulparams/elf_i386_ldso.sh: Likewise.
156         * emulparams/elf_i386_vxworks.sh: Likewise.
157         * emulparams/elf_k1om.sh: Likewise.
158         * emulparams/elf_l1om.sh: Likewise.
159         * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
160         (PARSE_AND_LIST_OPTIONS): Renamed to ...
161         (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
162         (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
163         (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
164         (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
165         (PARSE_AND_LIST_ARGS_CASE_Z): Append
166         $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
167         * emulparams/extern_protected_data.sh: New file.
168
169 2015-04-11  H.J. Lu  <hongjiu.lu@intel.com>
170
171         * plugin.c (plugin_load_plugins): Removed an extra ';'.
172
173 2015-04-10  Nick Clifton  <nickc@redhat.com>
174
175         PR binutils/18198
176         * ld.texinfo (--be8): Add a note about the interaction of this
177         option with the assembler's -EB option.
178
179 2015-04-10  Alan Modra  <amodra@gmail.com>
180
181         * configure.ac: Set elf_list_options etc. in proper case.
182         * configure: Regenerate.
183
184 2015-04-10  Alan Modra  <amodra@gmail.com>
185
186         PR ld/18223
187         * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
188
189 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
190
191         * emulparams/elf_x86_64.sh (BNDPLT): Removed.
192         (PARSE_AND_LIST_OPTIONS): New.
193         (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
194         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
195         BNDPLT check.  Handle PARSE_AND_LIST_ARGS_CASE_Z.
196         (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
197
198 2015-04-09  Nick Clifton  <nickc@redhat.com>
199
200         * po/fr.po: Updated French translation.
201
202 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
203
204         * configure.ac (elf_list_options): Set to TRUE for
205         --enable-targets=all.
206         (elf_shlib_list_options): Likewise.
207         (elf_plt_unwind_list_options): Likewise.
208         * configure: Regenerated.
209
210 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
211
212         * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
213
214 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
215
216         * Makefile.am (ELF_CLFAGS): New.
217         (AM_CFLAGS): Add $(ELF_CLFAGS).
218         * configure.ac (elf_list_options): New.  AC_SUBST.
219         (elf_shlib_list_options): Likewise.
220         (elf_plt_unwind_list_options): Likewise.
221         * lexsup.c (elf_shlib_list_options): New.
222         (elf_static_list_options): Likewise.
223         (elf_plt_unwind_list_options): Likewise.
224         (ld_list_options): Likewise.
225         (help): Call ld_list_options.
226         * Makefile.in: Regenerated.
227         * configure: Likewise.
228         * emulparams/plt_unwind.sh (PLT_UNWIND): New.
229         (PARSE_AND_LIST_OPTIONS): Removed.
230         * emultempl/elf32.em (gld_list_options): New.
231         (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
232         PARSE_AND_LIST_OPTIONS is defined.
233         (ld_${EMULATION_NAME}_emulation): Replace
234         gld${EMULATION_NAME}_list_options with ${gld_list_options.
235
236 2015-04-07  Alan Modra  <amodra@gmail.com>
237
238         PR ld/18176
239         * ldlang.c (lang_size_sections): Cast shift expression.
240
241 2015-04-07  Alan Modra  <amodra@gmail.com>
242
243         * emultempl/ppc32elf.em: Handle --no-pic-fixup.
244         (params): Init new field.
245         (ppc_before_allocation): Enable relaxation for pic_fixup.
246
247 2015-04-07  Nick Clifton  <nickc@redhat.com>
248
249         * ld.h (struct ld_config_type): Add new field: warn_orphan.
250         * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
251         OPTION_NO_WARN_ORPHAN.
252         * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
253         (parse_args): Handle the new options.
254         * ldemul.c (ldemul_place_orphan): If requested, generate a warning
255         message when an orphan section is placed in the output file.
256         * ld.texinfo: Document the new option.
257         * NEWS: Mention the new feature.
258
259 2015-04-02  Andrew Turner <andrew@freebsd.org>
260
261         * Makefile.am: Add FreeBSD aarch64 files.
262         * Makefile.in: Regenerate.
263         * configure.tgt: Add aarch64-*-freebsd* target triple.
264         * emulparams/aarch64fbsd.sh: New file.
265         * emulparams/aarch64fbsdb.sh: New file.
266
267 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
268
269         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
270         around a GCC uninitialized warning bug fixed in GCC 4.6.
271
272 2015-04-01  Tejas Belagod  <tejas.belagod@arm.com>
273
274         * emultempl/aarch64elf.em
275         (aarch64_elf_create_output_section_statements): Add parameter in
276         bfd_elf${ELFSIZE}_aarch64_set_options call.
277         (OPTION_FIX_ERRATUM_843419): Define.
278         (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
279         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
280
281 2015-04-01  Chen Gang  <gang.chen.5i5j@gmail.com>
282
283         * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
284         relocating operation.
285
286 2015-04-01  Alan Modra  <amodra@gmail.com>
287
288         PR ld/18176
289         * ldlang.c (lang_size_sections): When alignment of sections
290         results in relro base adjustment being too large, don't go lower
291         than the initial value.
292         * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
293         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
294         alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
295
296 2015-04-01  Alan Modra  <amodra@gmail.com>
297
298         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
299         init ehdr_start_save.
300
301 2015-04-01  Alan Modra  <amodra@gmail.com>
302
303         * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
304         ldemul-list.h.
305         (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
306         eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
307         eelf32ppcsim.c): Rearrange deps for consistency.
308         * Makefile.in: Regenerate.
309
310 2015-04-01  Ed Schouten  <ed@nuxi.nl>
311
312         * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
313         the ehdr_start_save variable.
314
315 2015-03-31  Ed Schouten  <ed@nuxi.nl>
316
317         * Makefile.am (ALL_64_EMULATION_SOURCES): Add
318         eelf_x86_64_cloudabi.c.
319         (eelf_x86_64_cloudabi.c): New.
320         * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
321         x86_64-*-cloudabi*.
322         * Makefile.in: Regenerated.
323         * emulparams/elf_x86_64_cloudabi.sh: New file.
324
325 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
326
327         * configure.ac (AM_ZLIB): Removed.
328         * Makefile.in: Regenerated.
329         * config.in: Likewise.
330         * configure: Likewise.
331
332 2015-03-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
333
334         * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
335         alignment to 2.
336
337 2015-03-23  Marcus Shawcroft  <marcus.shawcroft@arm.com>
338
339         * emultempl/aarch64elf.em
340         (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
341
342 2015-03-18  Chen Gang  <gang.chen.5i5j@gmail.com>
343
344         * ldmain.c (main): Use %F instead of %X for einfo.
345
346 2015-03-02  Alan Modra  <amodra@gmail.com>
347
348         * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
349
350 2015-02-27  Nick Clifton  <nickc@redhat.com>
351
352         PR ld/17900
353         * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
354         sense of the following memory region attribute characters.
355
356 2015-02-27  Alan Modra  <amodra@gmail.com>
357
358         * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
359         (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
360         eh8300sxelf_linux.c): Do not invoke genscripts here.
361         * Makefile.in: Regenerate.
362
363 2015-02-24  Nick Clifton  <nickc@redhat.com>
364
365         * Makefile.am (ev850.c): Add dependency upon
366         $(srcdir)/emultempl/v850elf.em.
367         (ev850_rh850.c): Likewise.
368         * Makefile.in: Regenerate.
369         * emultempl/v850elf.em: New file.
370         * emulparams/v850.sh (EXTRA_EM_FILE): Define.
371         * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
372         * scripttempl/v850.sc: Add .note.renesas section.
373         * scripttempl/v850_rh850.sc: Likewise.
374
375 2015-02-24  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
376
377         * scripttempl/avr.sc: Add new user_signatures region.  Define and
378         use symbols for all region lengths.
379         * scripttempl/avrtiny.sc: Define and use symbols for all region
380         lengths.
381
382 2015-01-21  Yoshinori Sato <ysato@users.sourceforge.jp>
383
384         * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
385         * Makefile.in: Regenerate.
386         * configure.tgt: Add h8300-*-linux
387         * emulparams/h8300elf_linux.sh: Add new emulation.
388         * emulparams/h8300helf_linux.sh: Likewise.
389         * emulparams/h8300self_linux.sh: Likewise.
390         * emulparams/h8300sxelf_linux.sh: Likewise.
391
392 2015-02-23  Nick Clifton  <nickc@redhat.com>
393
394         * lexsup.c (parse_args): Produce a more reasonable error message
395         when -ixxx or -rxxx is the last option on the linker command line.
396
397 2015-02-14  H.J. Lu  <hongjiu.lu@intel.com>
398
399         PR ld/17973
400         * testplug2.c (allsymbolsread_silent): New.
401         (set_register_hook): Handle allsymbolsreadsilent.
402         (onall_symbols_read): Skip a message if allsymbolsread_silent is
403         TRUE.
404
405 2015-02-14  Alan Modra  <amodra@gmail.com>
406
407         PR ld/17973
408         * ldlang.h (struct lang_input_statement_flags): Add lto_output.
409         * ldlang.c (lang_process): Don't set loading_lto_outputs.
410         * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
411         to bfd.
412         * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
413
414 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
415
416         * NEWS: Mention support for LLVM plugin.
417
418 2015-02-13  Alan Modra  <amodra@gmail.com>
419
420         * ld.texinfo (Options <--defsym>): Correct cross reference.
421
422 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
423
424         * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
425         option compatibility.
426
427 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
428
429         * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
430         "error:" for LDPL_FATAL and LDPL_ERROR.
431         * testplug2.c (parse_option): Handle fatal, error and warning.
432
433 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
434
435         * testplug2.c (dump_tv_tag): Removed.
436         (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
437         closed.
438         * testplug3.c (dump_tv_tag): Removed.
439         (onclaim_file): Fix typo.
440
441 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
442
443         PR ld/17878
444         * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
445         libldtestplug3.la.
446         (libldtestplug2_la_SOURCES): New.
447         (libldtestplug2_la_CFLAGS): Likewise.
448         (libldtestplug2_la_LDFLAGS): Likewise.
449         (libldtestplug3_la_SOURCES): New.
450         (libldtestplug3_la_CFLAGS): Likewise.
451         (libldtestplug3_la_LDFLAGS): Likewise.
452         * Makefile.in: Regenerated.
453         * testplug2.c: New file.
454         * testplug3.c: Likewise.
455
456 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
457
458         PR ld/17878
459         * plugin.c: Include ../bfd/plugin.h.
460         (plugin_get_ir_dummy_bfd): Call bfd_create with
461         link_info.output_bfd instead of srctemplate.  Copy BFD info
462         from srctemplate only if it doesn't use BFD plugin target
463         vector.
464         (plugin_load_plugins): Call register_ld_plugin_object_p with
465         (plugin_object_p)
466         (plugin_maybe_claim): Renamed to ...
467         (plugin_object_p): This.  Return dummy BFD target vector if
468         input is calimed by plugin library, otherwise return NULL.
469         Update plugin_format and plugin_dummy_bfd.
470         (plugin_maybe_claim): New.  Use plugin_object_p.
471
472 2015-02-10  H.J. Lu  <hongjiu.lu@intel.com>
473
474         * plugin.c (plugin_maybe_claim): Initialize use_mmap.
475
476 2015-02-10  H.J. Lu  <hongjiu.lu@intel.com>
477
478         * plugin.c (plugin_input_file_t): Add use_mmap.
479         (plugin_pagesize): New.
480         (get_view): Use plugin_pagesize.  Set use_mmap if mmap is used.
481         (plugin_load_plugins): Initialize plugin_pagesize.
482         (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
483         file.
484
485 2015-02-10  H.J. Lu  <hongjiu.lu@intel.com>
486
487         * plugin.c (get_view): Align offset passed to mmap.
488
489 2015-02-08  H.J. Lu  <hongjiu.lu@intel.com>
490
491         * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
492         if plugin isn't active or there is no thing more to claim.
493
494 2015-02-08  H.J. Lu  <hongjiu.lu@intel.com>
495
496         * plugin.c (plugin_maybe_claim): Check format against bfd_object
497         directly.
498
499 2015-02-07  H.J. Lu  <hongjiu.lu@intel.com>
500
501         * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
502         ibfd.
503
504 2015-02-07  H.J. Lu  <hongjiu.lu@intel.com>
505
506         * plugin.c: Include "libbfd.h".
507         (plugin_strdup): New.
508         (plugin_maybe_claim): Remove the argument of pointer to struct
509         ld_plugin_input_file.  Open and handle input entry.
510         * plugin.h (plugin_maybe_claim): Updated.
511         * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
512         without passing a pointer to struct ld_plugin_input_file.
513         * ldmain.c: Don't include "libbfd.h".
514         (add_archive_element): Call plugin_maybe_claim directly without
515         passing a pointer to struct ld_plugin_input_file.
516
517 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
518
519         * ld.texinfo: Document -z text, -z notext and -z textoff.
520         * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
521         -z text, -z notext and -z textoff.
522
523 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
524
525         * configure.ac: Add AC_FUNC_MMAP.
526         * config.in: Regenerated.
527         * configure: Likewise.
528         * plugin.c: Include <sys/mman.h>.
529         (MAP_FAILED): New.  Defined if not defined.
530         (PROT_READ): Likewise.
531         (MAP_PRIVATE): Likewise.
532         (view_buffer_t): New.
533         (plugin_input_file_t): Add view_buffer.
534         (get_view): Try mmap and cache the view buffer.
535         (plugin_maybe_claim): Initialize view_buffer.
536
537 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
538
539         * plugin.c (release_input_file): Set fd to -1 after closing it.
540         (plugin_maybe_claim): Close fd only if fd != -1.
541
542 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
543
544         PR ld/17878
545         * plugin.c: Include <errno.h>.
546         (errno): New.  Declare if needed.
547         (plugin_input_file_t): New.
548         (get_input_file): Implemented.
549         (get_view): Likewise.
550         (release_input_file): Likewise.
551         (add_symbols): Updated.
552         (get_symbols): Likewise.
553         (plugin_maybe_claim): Allocate a plugin_input_file_t.  Close fd
554         only for a bfd_object input.
555
556 2015-02-02  Alan Modra  <amodra@gmail.com>
557
558         * emultempl/ppc64elf.em (toc_section_name): New var.
559         (ppc_after_open): Set it.
560         (ppc_before_allocation): Use it.
561         (gld${EMULATION_NAME}_after_allocation): Here too.
562
563 2015-01-29  H.J. Lu  <hongjiu.lu@intel.com>
564
565         * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
566         with link_info.lto_plugin_active.
567         * ldlang.c (lang_process): Likewise.
568         * ldmain.c (add_archive_element): Likewise.
569         * plugin.c (plugin_active_plugins_p): Removed.
570         * plugin.h (plugin_active_plugins_p): Likewise.
571
572 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
573
574         * plugin.h (plugin_get_ir_dummy_bfd): Removed.  Move comments to
575         ...
576         * plugin.c (plugin_get_ir_dummy_bfd): Here.  Make it static.
577
578 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
579
580         PR ld/17878
581         * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
582         (get_view): New function.
583         (set_tv_header): Handle LDPT_GET_VIEW.
584         * testplug.c (tag_names): Add LDPT_GET_VIEW.
585         (tv_get_view): New.
586         (dump_tv_tag): Handle LDPT_GET_VIEW.
587         (parse_tv_tag): Likewise.
588
589 2015-01-28  Alan Modra  <amodra@gmail.com>
590
591         * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
592         * emultempl/ppc64elf.em (params): Init new field.
593         (ppc_after_open): New function.
594         (LDEMUL_AFTER_OPEN): Define.
595         * ldlang.c (lang_final): Whitespace fix.
596
597 2015-01-28  James Bowman  <james.bowman@ftdichip.com>
598
599         * Makefile.am: Add FT32 files.
600         * configure.tgt: Handle FT32 target.
601         * emulparams/elf32ft32.sh: New file.
602         * scripttempl/ft32.sc: New file.
603         * Makefile.in: Regenerate.
604
605 2015-01-28  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
606
607         PR 4643
608         * ldexp.c (fold_name): Fold LENGTH only after
609         lang_first_phase_enum.
610         * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
611         rightaway.
612         * ldlang.h (struct memory_region_struct): Add origin_exp and
613         length_exp fields.
614         * ldlang.c (lang_do_memory_regions): New.
615         (lang_memory_region_lookup): Initialize origin_exp and
616         length_exp fields.
617         (lang_process): Call lang_do_memory_regions.
618
619 2015-01-20  Andrew Burgess  <andrew.burgess@embecosm.com>
620
621         * ldlang.c (print_assignment): Only evaluate the expression for a
622         PROVIDE'd assignment when the destination is being defined.
623         Display a special message for PROVIDE'd symbols that are not being
624         provided.
625
626 2015-01-20  Alan Modra  <amodra@gmail.com>
627
628         * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
629         (OTHER_BSS_SYMBOLS): ..this.
630         (OTHER_PLT_RELOC_SECTIONS): Don't define.
631         (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
632         (OTHER_READWRITE_SECTIONS): Don't define.  Move .toc1 to..
633         (OTHER_RELRO_SECTIONS_2): ..here.
634         * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
635
636 2015-01-20  Alan Modra  <amodra@gmail.com>
637
638         * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
639         (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
640         (OTHER_RELRO_SECTIONS_2): ..here.
641         (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
642         PLT_BEFORE_GOT): Define.
643         * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
644         PLT_BEFORE_GOT combination.
645         (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
646
647 2015-01-20  Alan Modra  <amodra@gmail.com>
648
649         * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
650         (OTHER_RELRO_SECTIONS_2): ..here, new define.
651         * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
652
653 2015-01-19  Alan Modra  <amodra@gmail.com>
654
655         PR ld/17615
656         * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
657
658 2015-01-14  Jiong Wang  <jiong.wang@arm.com>
659
660         * ld-arm/elf32-reject.s: New testcase.
661         * ld-arm/elf32-reject.d: Likewise.
662         * ld-arm/elf32-reject-pie.s: Likewise.
663         * ld-arm/elf32-reject-pie.d: Likewise.
664         * ld-arm/arm-elf.exp: Run new testcases.
665         * ld-arm/ifunc-7.s: Delete f2/f4 test items.
666         * ld-arm/ifunc-7.rd: Likewise.
667         * ld-arm/ifunc-7.gd: Likewise.
668         * ld-arm/ifunc-7.dd: Likewise.
669         * ld-arm/ifunc-8.s: Likewise.
670         * ld-arm/ifunc-8.rd: Likewise.
671         * ld-arm/ifunc-8.gd: Likewise.
672         * ld-arm/ifunc-8.dd: Likewise.
673
674 2015-01-01  Alan Modra  <amodra@gmail.com>
675
676         * ldver.c (ldversion): Just print current year.
677
678 2015-01-01  Alan Modra  <amodra@gmail.com>
679
680         Update year range in copyright notice of all files.
681
682 For older changes see ChangeLog-2014
683 \f
684 Copyright (C) 2015 Free Software Foundation, Inc.
685
686 Copying and distribution of this file, with or without modification,
687 are permitted in any medium without royalty provided the copyright
688 notice and this notice are preserved.
689
690 Local Variables:
691 mode: change-log
692 left-margin: 8
693 fill-column: 74
694 version-control: never
695 End: