Add support for the h8300-linux target.
[binutils-gdb.git] / ld / ChangeLog
blobd95267028599e080cdaf18bf2505a0bebbb20e3a
1 2015-01-21  Yoshinori Sato <ysato@users.sourceforge.jp>
3         * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
4         * Makefile.in: Regenerate.
5         * configure.tgt: Add h8300-*-linux
6         * emulparams/h8300elf_linux.sh: Add new emulation.
7         * emulparams/h8300helf_linux.sh: Likewise.
8         * emulparams/h8300self_linux.sh: Likewise.
9         * emulparams/h8300sxelf_linux.sh: Likewise.
11 2015-02-23  Nick Clifton  <nickc@redhat.com>
13         * lexsup.c (parse_args): Produce a more reasonable error message
14         when -ixxx or -rxxx is the last option on the linker command line.
16 2015-02-14  H.J. Lu  <hongjiu.lu@intel.com>
18         PR ld/17973
19         * testplug2.c (allsymbolsread_silent): New.
20         (set_register_hook): Handle allsymbolsreadsilent.
21         (onall_symbols_read): Skip a message if allsymbolsread_silent is
22         TRUE.
24 2015-02-14  Alan Modra  <amodra@gmail.com>
26         PR ld/17973
27         * ldlang.h (struct lang_input_statement_flags): Add lto_output.
28         * ldlang.c (lang_process): Don't set loading_lto_outputs.
29         * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
30         to bfd.
31         * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
33 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
35         * NEWS: Mention support for LLVM plugin.
37 2015-02-13  Alan Modra  <amodra@gmail.com>
39         * ld.texinfo (Options <--defsym>): Correct cross reference.
41 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
43         * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
44         option compatibility.
46 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
48         * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
49         "error:" for LDPL_FATAL and LDPL_ERROR.
50         * testplug2.c (parse_option): Handle fatal, error and warning.
52 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
54         * testplug2.c (dump_tv_tag): Removed.
55         (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
56         closed.
57         * testplug3.c (dump_tv_tag): Removed.
58         (onclaim_file): Fix typo.
60 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
62         PR ld/17878
63         * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
64         libldtestplug3.la.
65         (libldtestplug2_la_SOURCES): New.
66         (libldtestplug2_la_CFLAGS): Likewise.
67         (libldtestplug2_la_LDFLAGS): Likewise.
68         (libldtestplug3_la_SOURCES): New.
69         (libldtestplug3_la_CFLAGS): Likewise.
70         (libldtestplug3_la_LDFLAGS): Likewise.
71         * Makefile.in: Regenerated.
72         * testplug2.c: New file.
73         * testplug3.c: Likewise.
75 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
77         PR ld/17878
78         * plugin.c: Include ../bfd/plugin.h.
79         (plugin_get_ir_dummy_bfd): Call bfd_create with
80         link_info.output_bfd instead of srctemplate.  Copy BFD info
81         from srctemplate only if it doesn't use BFD plugin target
82         vector.
83         (plugin_load_plugins): Call register_ld_plugin_object_p with
84         (plugin_object_p)
85         (plugin_maybe_claim): Renamed to ...
86         (plugin_object_p): This.  Return dummy BFD target vector if
87         input is calimed by plugin library, otherwise return NULL.
88         Update plugin_format and plugin_dummy_bfd.
89         (plugin_maybe_claim): New.  Use plugin_object_p.
91 2015-02-10  H.J. Lu  <hongjiu.lu@intel.com>
93         * plugin.c (plugin_maybe_claim): Initialize use_mmap.
95 2015-02-10  H.J. Lu  <hongjiu.lu@intel.com>
97         * plugin.c (plugin_input_file_t): Add use_mmap.
98         (plugin_pagesize): New.
99         (get_view): Use plugin_pagesize.  Set use_mmap if mmap is used.
100         (plugin_load_plugins): Initialize plugin_pagesize.
101         (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
102         file.
104 2015-02-10  H.J. Lu  <hongjiu.lu@intel.com>
106         * plugin.c (get_view): Align offset passed to mmap.
108 2015-02-08  H.J. Lu  <hongjiu.lu@intel.com>
110         * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
111         if plugin isn't active or there is no thing more to claim.
113 2015-02-08  H.J. Lu  <hongjiu.lu@intel.com>
115         * plugin.c (plugin_maybe_claim): Check format against bfd_object
116         directly.
118 2015-02-07  H.J. Lu  <hongjiu.lu@intel.com>
120         * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
121         ibfd.
123 2015-02-07  H.J. Lu  <hongjiu.lu@intel.com>
125         * plugin.c: Include "libbfd.h".
126         (plugin_strdup): New.
127         (plugin_maybe_claim): Remove the argument of pointer to struct
128         ld_plugin_input_file.  Open and handle input entry.
129         * plugin.h (plugin_maybe_claim): Updated.
130         * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
131         without passing a pointer to struct ld_plugin_input_file.
132         * ldmain.c: Don't include "libbfd.h".
133         (add_archive_element): Call plugin_maybe_claim directly without
134         passing a pointer to struct ld_plugin_input_file.
136 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
138         * ld.texinfo: Document -z text, -z notext and -z textoff.
139         * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
140         -z text, -z notext and -z textoff.
142 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
144         * configure.ac: Add AC_FUNC_MMAP.
145         * config.in: Regenerated.
146         * configure: Likewise.
147         * plugin.c: Include <sys/mman.h>.
148         (MAP_FAILED): New.  Defined if not defined.
149         (PROT_READ): Likewise.
150         (MAP_PRIVATE): Likewise.
151         (view_buffer_t): New.
152         (plugin_input_file_t): Add view_buffer.
153         (get_view): Try mmap and cache the view buffer.
154         (plugin_maybe_claim): Initialize view_buffer.
156 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
158         * plugin.c (release_input_file): Set fd to -1 after closing it.
159         (plugin_maybe_claim): Close fd only if fd != -1.
161 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
163         PR ld/17878
164         * plugin.c: Include <errno.h>.
165         (errno): New.  Declare if needed.
166         (plugin_input_file_t): New.
167         (get_input_file): Implemented.
168         (get_view): Likewise.
169         (release_input_file): Likewise.
170         (add_symbols): Updated.
171         (get_symbols): Likewise.
172         (plugin_maybe_claim): Allocate a plugin_input_file_t.  Close fd
173         only for a bfd_object input.
175 2015-02-02  Alan Modra  <amodra@gmail.com>
177         * emultempl/ppc64elf.em (toc_section_name): New var.
178         (ppc_after_open): Set it.
179         (ppc_before_allocation): Use it.
180         (gld${EMULATION_NAME}_after_allocation): Here too.
182 2015-01-29  H.J. Lu  <hongjiu.lu@intel.com>
184         * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
185         with link_info.lto_plugin_active.
186         * ldlang.c (lang_process): Likewise.
187         * ldmain.c (add_archive_element): Likewise.
188         * plugin.c (plugin_active_plugins_p): Removed.
189         * plugin.h (plugin_active_plugins_p): Likewise.
191 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
193         * plugin.h (plugin_get_ir_dummy_bfd): Removed.  Move comments to
194         ...
195         * plugin.c (plugin_get_ir_dummy_bfd): Here.  Make it static.
197 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
199         PR ld/17878
200         * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
201         (get_view): New function.
202         (set_tv_header): Handle LDPT_GET_VIEW.
203         * testplug.c (tag_names): Add LDPT_GET_VIEW.
204         (tv_get_view): New.
205         (dump_tv_tag): Handle LDPT_GET_VIEW.
206         (parse_tv_tag): Likewise.
208 2015-01-28  Alan Modra  <amodra@gmail.com>
210         * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
211         * emultempl/ppc64elf.em (params): Init new field.
212         (ppc_after_open): New function.
213         (LDEMUL_AFTER_OPEN): Define.
214         * ldlang.c (lang_final): Whitespace fix.
216 2015-01-28  James Bowman  <james.bowman@ftdichip.com>
218         * Makefile.am: Add FT32 files.
219         * configure.tgt: Handle FT32 target.
220         * emulparams/elf32ft32.sh: New file.
221         * scripttempl/ft32.sc: New file.
222         * Makefile.in: Regenerate.
224 2015-01-28  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
226         PR 4643
227         * ldexp.c (fold_name): Fold LENGTH only after
228         lang_first_phase_enum.
229         * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
230         rightaway.
231         * ldlang.h (struct memory_region_struct): Add origin_exp and
232         length_exp fields.
233         * ldlang.c (lang_do_memory_regions): New.
234         (lang_memory_region_lookup): Initialize origin_exp and
235         length_exp fields.
236         (lang_process): Call lang_do_memory_regions.
238 2015-01-20  Andrew Burgess  <andrew.burgess@embecosm.com>
240         * ldlang.c (print_assignment): Only evaluate the expression for a
241         PROVIDE'd assignment when the destination is being defined.
242         Display a special message for PROVIDE'd symbols that are not being
243         provided.
245 2015-01-20  Alan Modra  <amodra@gmail.com>
247         * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
248         (OTHER_BSS_SYMBOLS): ..this.
249         (OTHER_PLT_RELOC_SECTIONS): Don't define.
250         (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
251         (OTHER_READWRITE_SECTIONS): Don't define.  Move .toc1 to..
252         (OTHER_RELRO_SECTIONS_2): ..here.
253         * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
255 2015-01-20  Alan Modra  <amodra@gmail.com>
257         * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
258         (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
259         (OTHER_RELRO_SECTIONS_2): ..here.
260         (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
261         PLT_BEFORE_GOT): Define.
262         * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
263         PLT_BEFORE_GOT combination.
264         (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
266 2015-01-20  Alan Modra  <amodra@gmail.com>
268         * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
269         (OTHER_RELRO_SECTIONS_2): ..here, new define.
270         * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
272 2015-01-19  Alan Modra  <amodra@gmail.com>
274         PR ld/17615
275         * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
277 2015-01-14  Jiong Wang  <jiong.wang@arm.com>
279         * ld-arm/elf32-reject.s: New testcase.
280         * ld-arm/elf32-reject.d: Likewise.
281         * ld-arm/elf32-reject-pie.s: Likewise.
282         * ld-arm/elf32-reject-pie.d: Likewise.
283         * ld-arm/arm-elf.exp: Run new testcases.
284         * ld-arm/ifunc-7.s: Delete f2/f4 test items.
285         * ld-arm/ifunc-7.rd: Likewise.
286         * ld-arm/ifunc-7.gd: Likewise.
287         * ld-arm/ifunc-7.dd: Likewise.
288         * ld-arm/ifunc-8.s: Likewise.
289         * ld-arm/ifunc-8.rd: Likewise.
290         * ld-arm/ifunc-8.gd: Likewise.
291         * ld-arm/ifunc-8.dd: Likewise.
293 2015-01-01  Alan Modra  <amodra@gmail.com>
295         * ldver.c (ldversion): Just print current year.
297 2015-01-01  Alan Modra  <amodra@gmail.com>
299         Update year range in copyright notice of all files.
301 For older changes see ChangeLog-2014
303 Copyright (C) 2015 Free Software Foundation, Inc.
305 Copying and distribution of this file, with or without modification,
306 are permitted in any medium without royalty provided the copyright
307 notice and this notice are preserved.
309 Local Variables:
310 mode: change-log
311 left-margin: 8
312 fill-column: 74
313 version-control: never
314 End: