Cast shift expression
[external/binutils.git] / ld / ChangeLog
1 2015-04-07  Alan Modra  <amodra@gmail.com>
2
3         PR ld/18176
4         * ldlang.c (lang_size_sections): Cast shift expression.
5
6 2015-04-07  Alan Modra  <amodra@gmail.com>
7
8         * emultempl/ppc32elf.em: Handle --no-pic-fixup.
9         (params): Init new field.
10         (ppc_before_allocation): Enable relaxation for pic_fixup.
11
12 2015-04-02  Andrew Turner <andrew@freebsd.org>
13
14         * Makefile.am: Add FreeBSD aarch64 files.
15         * Makefile.in: Regenerate.
16         * configure.tgt: Add aarch64-*-freebsd* target triple.
17         * emulparams/aarch64fbsd.sh: New file.
18         * emulparams/aarch64fbsdb.sh: New file.
19
20 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
21
22         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
23         around a GCC uninitialized warning bug fixed in GCC 4.6.
24
25 2015-04-01  Tejas Belagod  <tejas.belagod@arm.com>
26
27         * emultempl/aarch64elf.em
28         (aarch64_elf_create_output_section_statements): Add parameter in
29         bfd_elf${ELFSIZE}_aarch64_set_options call.
30         (OPTION_FIX_ERRATUM_843419): Define.
31         (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
32         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
33
34 2015-04-01  Chen Gang  <gang.chen.5i5j@gmail.com>
35
36         * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
37         relocating operation.
38
39 2015-04-01  Alan Modra  <amodra@gmail.com>
40
41         PR ld/18176
42         * ldlang.c (lang_size_sections): When alignment of sections
43         results in relro base adjustment being too large, don't go lower
44         than the initial value.
45         * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
46         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
47         alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
48
49 2015-04-01  Alan Modra  <amodra@gmail.com>
50
51         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
52         init ehdr_start_save.
53
54 2015-04-01  Alan Modra  <amodra@gmail.com>
55
56         * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
57         ldemul-list.h.
58         (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
59         eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
60         eelf32ppcsim.c): Rearrange deps for consistency.
61         * Makefile.in: Regenerate.
62
63 2015-04-01  Ed Schouten  <ed@nuxi.nl>
64
65         * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
66         the ehdr_start_save variable.
67
68 2015-03-31  Ed Schouten  <ed@nuxi.nl>
69
70         * Makefile.am (ALL_64_EMULATION_SOURCES): Add
71         eelf_x86_64_cloudabi.c.
72         (eelf_x86_64_cloudabi.c): New.
73         * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
74         x86_64-*-cloudabi*.
75         * Makefile.in: Regenerated.
76         * emulparams/elf_x86_64_cloudabi.sh: New file.
77
78 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
79
80         * configure.ac (AM_ZLIB): Removed.
81         * Makefile.in: Regenerated.
82         * config.in: Likewise.
83         * configure: Likewise.
84
85 2015-03-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
86
87         * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
88         alignment to 2.
89
90 2015-03-23  Marcus Shawcroft  <marcus.shawcroft@arm.com>
91
92         * emultempl/aarch64elf.em
93         (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
94
95 2015-03-18  Chen Gang  <gang.chen.5i5j@gmail.com>
96
97         * ldmain.c (main): Use %F instead of %X for einfo.
98
99 2015-03-02  Alan Modra  <amodra@gmail.com>
100
101         * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
102
103 2015-02-27  Nick Clifton  <nickc@redhat.com>
104
105         PR ld/17900
106         * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
107         sense of the following memory region attribute characters.
108
109 2015-02-27  Alan Modra  <amodra@gmail.com>
110
111         * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
112         (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
113         eh8300sxelf_linux.c): Do not invoke genscripts here.
114         * Makefile.in: Regenerate.
115
116 2015-02-24  Nick Clifton  <nickc@redhat.com>
117
118         * Makefile.am (ev850.c): Add dependency upon
119         $(srcdir)/emultempl/v850elf.em.
120         (ev850_rh850.c): Likewise.
121         * Makefile.in: Regenerate.
122         * emultempl/v850elf.em: New file.
123         * emulparams/v850.sh (EXTRA_EM_FILE): Define.
124         * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
125         * scripttempl/v850.sc: Add .note.renesas section.
126         * scripttempl/v850_rh850.sc: Likewise.
127
128 2015-02-24  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
129
130         * scripttempl/avr.sc: Add new user_signatures region.  Define and
131         use symbols for all region lengths.
132         * scripttempl/avrtiny.sc: Define and use symbols for all region
133         lengths.
134
135 2015-01-21  Yoshinori Sato <ysato@users.sourceforge.jp>
136
137         * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
138         * Makefile.in: Regenerate.
139         * configure.tgt: Add h8300-*-linux
140         * emulparams/h8300elf_linux.sh: Add new emulation.
141         * emulparams/h8300helf_linux.sh: Likewise.
142         * emulparams/h8300self_linux.sh: Likewise.
143         * emulparams/h8300sxelf_linux.sh: Likewise.
144
145 2015-02-23  Nick Clifton  <nickc@redhat.com>
146
147         * lexsup.c (parse_args): Produce a more reasonable error message
148         when -ixxx or -rxxx is the last option on the linker command line.
149
150 2015-02-14  H.J. Lu  <hongjiu.lu@intel.com>
151
152         PR ld/17973
153         * testplug2.c (allsymbolsread_silent): New.
154         (set_register_hook): Handle allsymbolsreadsilent.
155         (onall_symbols_read): Skip a message if allsymbolsread_silent is
156         TRUE.
157
158 2015-02-14  Alan Modra  <amodra@gmail.com>
159
160         PR ld/17973
161         * ldlang.h (struct lang_input_statement_flags): Add lto_output.
162         * ldlang.c (lang_process): Don't set loading_lto_outputs.
163         * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
164         to bfd.
165         * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
166
167 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
168
169         * NEWS: Mention support for LLVM plugin.
170
171 2015-02-13  Alan Modra  <amodra@gmail.com>
172
173         * ld.texinfo (Options <--defsym>): Correct cross reference.
174
175 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
176
177         * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
178         option compatibility.
179
180 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
181
182         * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
183         "error:" for LDPL_FATAL and LDPL_ERROR.
184         * testplug2.c (parse_option): Handle fatal, error and warning.
185
186 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
187
188         * testplug2.c (dump_tv_tag): Removed.
189         (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
190         closed.
191         * testplug3.c (dump_tv_tag): Removed.
192         (onclaim_file): Fix typo.
193
194 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
195
196         PR ld/17878
197         * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
198         libldtestplug3.la.
199         (libldtestplug2_la_SOURCES): New.
200         (libldtestplug2_la_CFLAGS): Likewise.
201         (libldtestplug2_la_LDFLAGS): Likewise.
202         (libldtestplug3_la_SOURCES): New.
203         (libldtestplug3_la_CFLAGS): Likewise.
204         (libldtestplug3_la_LDFLAGS): Likewise.
205         * Makefile.in: Regenerated.
206         * testplug2.c: New file.
207         * testplug3.c: Likewise.
208
209 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
210
211         PR ld/17878
212         * plugin.c: Include ../bfd/plugin.h.
213         (plugin_get_ir_dummy_bfd): Call bfd_create with
214         link_info.output_bfd instead of srctemplate.  Copy BFD info
215         from srctemplate only if it doesn't use BFD plugin target
216         vector.
217         (plugin_load_plugins): Call register_ld_plugin_object_p with
218         (plugin_object_p)
219         (plugin_maybe_claim): Renamed to ...
220         (plugin_object_p): This.  Return dummy BFD target vector if
221         input is calimed by plugin library, otherwise return NULL.
222         Update plugin_format and plugin_dummy_bfd.
223         (plugin_maybe_claim): New.  Use plugin_object_p.
224
225 2015-02-10  H.J. Lu  <hongjiu.lu@intel.com>
226
227         * plugin.c (plugin_maybe_claim): Initialize use_mmap.
228
229 2015-02-10  H.J. Lu  <hongjiu.lu@intel.com>
230
231         * plugin.c (plugin_input_file_t): Add use_mmap.
232         (plugin_pagesize): New.
233         (get_view): Use plugin_pagesize.  Set use_mmap if mmap is used.
234         (plugin_load_plugins): Initialize plugin_pagesize.
235         (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
236         file.
237
238 2015-02-10  H.J. Lu  <hongjiu.lu@intel.com>
239
240         * plugin.c (get_view): Align offset passed to mmap.
241
242 2015-02-08  H.J. Lu  <hongjiu.lu@intel.com>
243
244         * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
245         if plugin isn't active or there is no thing more to claim.
246
247 2015-02-08  H.J. Lu  <hongjiu.lu@intel.com>
248
249         * plugin.c (plugin_maybe_claim): Check format against bfd_object
250         directly.
251
252 2015-02-07  H.J. Lu  <hongjiu.lu@intel.com>
253
254         * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
255         ibfd.
256
257 2015-02-07  H.J. Lu  <hongjiu.lu@intel.com>
258
259         * plugin.c: Include "libbfd.h".
260         (plugin_strdup): New.
261         (plugin_maybe_claim): Remove the argument of pointer to struct
262         ld_plugin_input_file.  Open and handle input entry.
263         * plugin.h (plugin_maybe_claim): Updated.
264         * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
265         without passing a pointer to struct ld_plugin_input_file.
266         * ldmain.c: Don't include "libbfd.h".
267         (add_archive_element): Call plugin_maybe_claim directly without
268         passing a pointer to struct ld_plugin_input_file.
269
270 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
271
272         * ld.texinfo: Document -z text, -z notext and -z textoff.
273         * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
274         -z text, -z notext and -z textoff.
275
276 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
277
278         * configure.ac: Add AC_FUNC_MMAP.
279         * config.in: Regenerated.
280         * configure: Likewise.
281         * plugin.c: Include <sys/mman.h>.
282         (MAP_FAILED): New.  Defined if not defined.
283         (PROT_READ): Likewise.
284         (MAP_PRIVATE): Likewise.
285         (view_buffer_t): New.
286         (plugin_input_file_t): Add view_buffer.
287         (get_view): Try mmap and cache the view buffer.
288         (plugin_maybe_claim): Initialize view_buffer.
289
290 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
291
292         * plugin.c (release_input_file): Set fd to -1 after closing it.
293         (plugin_maybe_claim): Close fd only if fd != -1.
294
295 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
296
297         PR ld/17878
298         * plugin.c: Include <errno.h>.
299         (errno): New.  Declare if needed.
300         (plugin_input_file_t): New.
301         (get_input_file): Implemented.
302         (get_view): Likewise.
303         (release_input_file): Likewise.
304         (add_symbols): Updated.
305         (get_symbols): Likewise.
306         (plugin_maybe_claim): Allocate a plugin_input_file_t.  Close fd
307         only for a bfd_object input.
308
309 2015-02-02  Alan Modra  <amodra@gmail.com>
310
311         * emultempl/ppc64elf.em (toc_section_name): New var.
312         (ppc_after_open): Set it.
313         (ppc_before_allocation): Use it.
314         (gld${EMULATION_NAME}_after_allocation): Here too.
315
316 2015-01-29  H.J. Lu  <hongjiu.lu@intel.com>
317
318         * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
319         with link_info.lto_plugin_active.
320         * ldlang.c (lang_process): Likewise.
321         * ldmain.c (add_archive_element): Likewise.
322         * plugin.c (plugin_active_plugins_p): Removed.
323         * plugin.h (plugin_active_plugins_p): Likewise.
324
325 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
326
327         * plugin.h (plugin_get_ir_dummy_bfd): Removed.  Move comments to
328         ...
329         * plugin.c (plugin_get_ir_dummy_bfd): Here.  Make it static.
330
331 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
332
333         PR ld/17878
334         * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
335         (get_view): New function.
336         (set_tv_header): Handle LDPT_GET_VIEW.
337         * testplug.c (tag_names): Add LDPT_GET_VIEW.
338         (tv_get_view): New.
339         (dump_tv_tag): Handle LDPT_GET_VIEW.
340         (parse_tv_tag): Likewise.
341
342 2015-01-28  Alan Modra  <amodra@gmail.com>
343
344         * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
345         * emultempl/ppc64elf.em (params): Init new field.
346         (ppc_after_open): New function.
347         (LDEMUL_AFTER_OPEN): Define.
348         * ldlang.c (lang_final): Whitespace fix.
349
350 2015-01-28  James Bowman  <james.bowman@ftdichip.com>
351
352         * Makefile.am: Add FT32 files.
353         * configure.tgt: Handle FT32 target.
354         * emulparams/elf32ft32.sh: New file.
355         * scripttempl/ft32.sc: New file.
356         * Makefile.in: Regenerate.
357
358 2015-01-28  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
359
360         PR 4643
361         * ldexp.c (fold_name): Fold LENGTH only after
362         lang_first_phase_enum.
363         * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
364         rightaway.
365         * ldlang.h (struct memory_region_struct): Add origin_exp and
366         length_exp fields.
367         * ldlang.c (lang_do_memory_regions): New.
368         (lang_memory_region_lookup): Initialize origin_exp and
369         length_exp fields.
370         (lang_process): Call lang_do_memory_regions.
371
372 2015-01-20  Andrew Burgess  <andrew.burgess@embecosm.com>
373
374         * ldlang.c (print_assignment): Only evaluate the expression for a
375         PROVIDE'd assignment when the destination is being defined.
376         Display a special message for PROVIDE'd symbols that are not being
377         provided.
378
379 2015-01-20  Alan Modra  <amodra@gmail.com>
380
381         * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
382         (OTHER_BSS_SYMBOLS): ..this.
383         (OTHER_PLT_RELOC_SECTIONS): Don't define.
384         (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
385         (OTHER_READWRITE_SECTIONS): Don't define.  Move .toc1 to..
386         (OTHER_RELRO_SECTIONS_2): ..here.
387         * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
388
389 2015-01-20  Alan Modra  <amodra@gmail.com>
390
391         * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
392         (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
393         (OTHER_RELRO_SECTIONS_2): ..here.
394         (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
395         PLT_BEFORE_GOT): Define.
396         * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
397         PLT_BEFORE_GOT combination.
398         (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
399
400 2015-01-20  Alan Modra  <amodra@gmail.com>
401
402         * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
403         (OTHER_RELRO_SECTIONS_2): ..here, new define.
404         * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
405
406 2015-01-19  Alan Modra  <amodra@gmail.com>
407
408         PR ld/17615
409         * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
410
411 2015-01-14  Jiong Wang  <jiong.wang@arm.com>
412
413         * ld-arm/elf32-reject.s: New testcase.
414         * ld-arm/elf32-reject.d: Likewise.
415         * ld-arm/elf32-reject-pie.s: Likewise.
416         * ld-arm/elf32-reject-pie.d: Likewise.
417         * ld-arm/arm-elf.exp: Run new testcases.
418         * ld-arm/ifunc-7.s: Delete f2/f4 test items.
419         * ld-arm/ifunc-7.rd: Likewise.
420         * ld-arm/ifunc-7.gd: Likewise.
421         * ld-arm/ifunc-7.dd: Likewise.
422         * ld-arm/ifunc-8.s: Likewise.
423         * ld-arm/ifunc-8.rd: Likewise.
424         * ld-arm/ifunc-8.gd: Likewise.
425         * ld-arm/ifunc-8.dd: Likewise.
426
427 2015-01-01  Alan Modra  <amodra@gmail.com>
428
429         * ldver.c (ldversion): Just print current year.
430
431 2015-01-01  Alan Modra  <amodra@gmail.com>
432
433         Update year range in copyright notice of all files.
434
435 For older changes see ChangeLog-2014
436 \f
437 Copyright (C) 2015 Free Software Foundation, Inc.
438
439 Copying and distribution of this file, with or without modification,
440 are permitted in any medium without royalty provided the copyright
441 notice and this notice are preserved.
442
443 Local Variables:
444 mode: change-log
445 left-margin: 8
446 fill-column: 74
447 version-control: never
448 End: