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