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