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