]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
Remove ppc860, ppc750cl, ppc7450 insns from common ppc.
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
ee0c0c50
L
12015-06-28 H.J. Lu <hongjiu.lu@intel.com>
2
3 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option):
4 Replace COMPRESS_DEBUG_ZLIB with COMPRESS_DEBUG_GNU_ZLIB.
5
c742574f
L
62015-06-26 H.J. Lu <hongjiu.lu@intel.com>
7
8 * emulparams/elf_iamcu.sh (COMPILE_IN): New.
9
a2a4d60d
NC
102015-06-15 Nick Clifton <nickc@redhat.com>
11
12 PR ld/18466
13 * emultempl/pe.em (pe_find_data_imports): Generate an error if a
14 symbol name is too long to handle.
15 * emultempl/pep.em (pep_find_data_imports): Likewise.
16
3604cb1f
TG
172015-06-12 Tristan Gingold <gingold@adacore.com>
18
19 * NEWS: Mention new option.
20 * lexsup.c (parse_args): Handle --print-memory-usage.
21 (ld_options): Add --print-memory-usage.
22 * ldmain.c (main): Call lang_print_memory_usage.
23 * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
24 * ldlang.h: Add prototype of lang_print_memory_usage.
25 * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
26 functions.
27 * ld.texinfo (Options): Document --print-memory-usage.
28 * ld.h (args_type): Add print_memory_usage field.
29
1e1b2efc
NC
302015-06-08 Nick Clifton <nickc@redhat.com>
31
32 * po/fr.po: Updated French Translation.
33
2f0c68f2
CM
342015-05-28 Catherine Moore <clm@codesourcery.com>
35 Paul Brook <paul@codesourcery.com>
36
2f0c68f2
CM
37 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
38 Add Compact EH support.
39 * scripttempl/elf.sc: Handle .eh_frame_entry and .gnu_extab
40 sections.
41
68880f31
CLT
422015-05-17 Chung-Lin Tang <cltang@codesourcery.com>
43
44 * configure.ac (AC_PROG_GREP): Check for grep program.
45 (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options):
46 Enable ELF option printing for emulations containing
47 'TEMPLATE_NAME=elf32'.
48 * configure: Regenerate.
49
fd1c4238
NC
502015-05-14 Nick Clifton <nickc@redhat.com>
51
52 * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd
53 symbols.
54
5197d474
L
552015-05-11 H.J. Lu <hongjiu.lu@intel.com>
56
57 * configure.tgt: Support i[3-7]86-*-elfiamcu target.
58
7e0a8112
L
592015-05-11 H.J. Lu <hongjiu.lu@intel.com>
60
61 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c.
62 (eelf_iamcu.c): New.
63 * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is
64 enabled in BFD.
65 * Makefile.in: Regenerated.
66 * emulparams/elf_iamcu.sh: New file.
67
837a17b3
NC
682015-05-05 Nick Clifton <nickc@redhat.com>
69
70 * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430.
71 * scripttempl/msp430.sc (.text): Add .lower.text and .either.text.
72 (.data): Add .lower.data and .either.data.
73 (.bss): Add .lower.bss and .either.bss.
74 (.rodata): Add .lower.rodata and .either.rodata.
75 * emultempl/msp430.em: New file. Implements a new orphan
76 placement algorithm that divides sections between lower and upper
77 memory regions.
78 * Makefile.am (emsp430elf.c): Depend upon msp430.em.
79 *emsp430X.c): Likewise.
80 * Makefine.in: Regenerate.
81
a13eab06
AS
822015-04-28 Andreas Schwab <schwab@linux-m68k.org>
83
84 PR ld/18344
85 * ldlex.l (INPUTLIST): Increment lineno on newline.
86
44bd1acd
AM
872015-04-24 Alan Modra <amodra@gmail.com>
88
89 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
90 Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
91
08e2f2bb
DD
922015-04-24 DJ Delorie <dj@redhat.com>
93
94 * Makefile.am (msp430): Rename primary emulation to msp430elf.
95 (emsp430.c): Rename to emsp430elf.c, update dependencies
96 (emsp430X.c): Update dependencies.
97 * Makefile.in: Likewise.
98 * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf.
d9e88e90 99 * emulparams/msp430.sh: Rename to msp430elf.sh.
08e2f2bb
DD
100 * emulparams/msp430X.sh: Update.
101
f6fe1ccd
L
1022015-04-23 H.J. Lu <hongjiu.lu@intel.com>
103
104 PR binutils/18209
105 * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1.
106
a27e685f
AM
1072015-04-23 Alan Modra <amodra@gmail.com>
108
109 * emulparams/elf64ppc.sh (GOT): Align.
110
0e5fabeb
AM
1112015-04-22 Alan Modra <amodra@gmail.com>
112
113 * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add
114 data_seg.relro_offset.
115 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base.
116 (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset.
117 * ldlang.c (lang_size_sections): Rewrite code adjusting relro
118 segment base to line up last section on page boundary.
119
ea556d25
L
1202015-04-15 H.J. Lu <hongjiu.lu@intel.com>
121
122 * NEWS: Mention
123 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
124
0ce398f1
L
1252015-04-14 H.J. Lu <hongjiu.lu@intel.com>
126
127 * ld.texinfo: Document --compress-debug-sections=.
128 * ldmain.c (main): Set BFD_COMPRESS on output_bfd if
129 COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd
130 for COMPRESS_DEBUG_GABI_ZLIB.
131 * lexsup.c (elf_static_list_options): Add
132 --compress-debug-sections=.
133 * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New.
134 (xtra_long): Add "compress-debug-sections".
135 (gld${EMULATION_NAME}_handle_option): Handle
136 OPTION_COMPRESS_DEBUG.
137
889c2a67
L
1382015-04-14 H.J. Lu <hongjiu.lu@intel.com>
139
140 PR ld/pr17709
141 * ld.texinfo: Document "-z noextern-protected-data".
142 * ldmain.c (main): Initialize link_info.extern_protected_data
143 to -1.
144 * lexsup.c (elf_shlib_list_options): Add
145 "-z [no]extern-protected-data".
146 * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh.
147 * emulparams/elf_i386.sh: Likewise.
148 * emulparams/elf_i386_be.sh: Likewise.
149 * emulparams/elf_i386_chaos.sh: Likewise.
150 * emulparams/elf_i386_ldso.sh: Likewise.
151 * emulparams/elf_i386_vxworks.sh: Likewise.
152 * emulparams/elf_k1om.sh: Likewise.
153 * emulparams/elf_l1om.sh: Likewise.
154 * emulparams/elf_x86_64.sh: Source extern_protected_data.sh.
155 (PARSE_AND_LIST_OPTIONS): Renamed to ...
156 (PARSE_AND_LIST_OPTIONS_BNDPLT): This.
157 (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ...
158 (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This.
159 (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT.
160 (PARSE_AND_LIST_ARGS_CASE_Z): Append
161 $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT.
162 * emulparams/extern_protected_data.sh: New file.
163
fd5a1509
L
1642015-04-11 H.J. Lu <hongjiu.lu@intel.com>
165
166 * plugin.c (plugin_load_plugins): Removed an extra ';'.
167
080bb7bb
NC
1682015-04-10 Nick Clifton <nickc@redhat.com>
169
170 PR binutils/18198
171 * ld.texinfo (--be8): Add a note about the interaction of this
172 option with the assembler's -EB option.
173
8c3fff59
AM
1742015-04-10 Alan Modra <amodra@gmail.com>
175
176 * configure.ac: Set elf_list_options etc. in proper case.
177 * configure: Regenerate.
178
6166ed93
AM
1792015-04-10 Alan Modra <amodra@gmail.com>
180
181 PR ld/18223
182 * ldlang.c (lang_process): Add _init and _fini to gc_sym_list.
183
eba27bd7
L
1842015-04-09 H.J. Lu <hongjiu.lu@intel.com>
185
186 * emulparams/elf_x86_64.sh (BNDPLT): Removed.
187 (PARSE_AND_LIST_OPTIONS): New.
188 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
189 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove
190 BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z.
191 (gld${EMULATION_NAME}_list_options): Remove BNDPLT check.
192
233723a4
NC
1932015-04-09 Nick Clifton <nickc@redhat.com>
194
195 * po/fr.po: Updated French translation.
196
82d8e420
L
1972015-04-08 H.J. Lu <hongjiu.lu@intel.com>
198
199 * configure.ac (elf_list_options): Set to TRUE for
200 --enable-targets=all.
201 (elf_shlib_list_options): Likewise.
202 (elf_plt_unwind_list_options): Likewise.
203 * configure: Regenerated.
204
31b94bbb
L
2052015-04-08 H.J. Lu <hongjiu.lu@intel.com>
206
207 * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
208
c58212ea
L
2092015-04-08 H.J. Lu <hongjiu.lu@intel.com>
210
211 * Makefile.am (ELF_CLFAGS): New.
212 (AM_CFLAGS): Add $(ELF_CLFAGS).
213 * configure.ac (elf_list_options): New. AC_SUBST.
214 (elf_shlib_list_options): Likewise.
215 (elf_plt_unwind_list_options): Likewise.
216 * lexsup.c (elf_shlib_list_options): New.
217 (elf_static_list_options): Likewise.
218 (elf_plt_unwind_list_options): Likewise.
219 (ld_list_options): Likewise.
220 (help): Call ld_list_options.
221 * Makefile.in: Regenerated.
222 * configure: Likewise.
223 * emulparams/plt_unwind.sh (PLT_UNWIND): New.
224 (PARSE_AND_LIST_OPTIONS): Removed.
225 * emultempl/elf32.em (gld_list_options): New.
226 (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or
227 PARSE_AND_LIST_OPTIONS is defined.
228 (ld_${EMULATION_NAME}_emulation): Replace
229 gld${EMULATION_NAME}_list_options with ${gld_list_options.
230
0fad6e4b
AM
2312015-04-07 Alan Modra <amodra@gmail.com>
232
233 PR ld/18176
234 * ldlang.c (lang_size_sections): Cast shift expression.
235
d3e454b9
AM
2362015-04-07 Alan Modra <amodra@gmail.com>
237
238 * emultempl/ppc32elf.em: Handle --no-pic-fixup.
239 (params): Init new field.
240 (ppc_before_allocation): Enable relaxation for pic_fixup.
241
3ea60775
NC
2422015-04-07 Nick Clifton <nickc@redhat.com>
243
244 * ld.h (struct ld_config_type): Add new field: warn_orphan.
245 * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
246 OPTION_NO_WARN_ORPHAN.
247 * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
248 (parse_args): Handle the new options.
249 * ldemul.c (ldemul_place_orphan): If requested, generate a warning
250 message when an orphan section is placed in the output file.
251 * ld.texinfo: Document the new option.
252 * NEWS: Mention the new feature.
253
15c7659f
AT
2542015-04-02 Andrew Turner <andrew@freebsd.org>
255
256 * Makefile.am: Add FreeBSD aarch64 files.
257 * Makefile.in: Regenerate.
258 * configure.tgt: Add aarch64-*-freebsd* target triple.
259 * emulparams/aarch64fbsd.sh: New file.
260 * emulparams/aarch64fbsdb.sh: New file.
261
a0bde398
L
2622015-04-01 H.J. Lu <hongjiu.lu@intel.com>
263
264 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
265 around a GCC uninitialized warning bug fixed in GCC 4.6.
266
4106101c
MS
2672015-04-01 Tejas Belagod <tejas.belagod@arm.com>
268
269 * emultempl/aarch64elf.em
270 (aarch64_elf_create_output_section_statements): Add parameter in
271 bfd_elf${ELFSIZE}_aarch64_set_options call.
272 (OPTION_FIX_ERRATUM_843419): Define.
273 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
274 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
275
16c1c9d6
CG
2762015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
277
278 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
279 relocating operation.
280
6c1aca3e
AM
2812015-04-01 Alan Modra <amodra@gmail.com>
282
875b5b9d 283 PR ld/18176
6c1aca3e
AM
284 * ldlang.c (lang_size_sections): When alignment of sections
285 results in relro base adjustment being too large, don't go lower
286 than the initial value.
287 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
288 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
289 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
290
4a0bc59e
AM
2912015-04-01 Alan Modra <amodra@gmail.com>
292
293 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
294 init ehdr_start_save.
295
42271ec5
AM
2962015-04-01 Alan Modra <amodra@gmail.com>
297
298 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
299 ldemul-list.h.
300 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
301 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
302 eelf32ppcsim.c): Rearrange deps for consistency.
303 * Makefile.in: Regenerate.
304
4e791d0f
ES
3052015-04-01 Ed Schouten <ed@nuxi.nl>
306
307 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
308 the ehdr_start_save variable.
309
6036f486
ES
3102015-03-31 Ed Schouten <ed@nuxi.nl>
311
312 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
313 eelf_x86_64_cloudabi.c.
314 (eelf_x86_64_cloudabi.c): New.
315 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
316 x86_64-*-cloudabi*.
317 * Makefile.in: Regenerated.
318 * emulparams/elf_x86_64_cloudabi.sh: New file.
319
f24173eb
L
3202015-03-31 H.J. Lu <hongjiu.lu@intel.com>
321
322 * configure.ac (AM_ZLIB): Removed.
323 * Makefile.in: Regenerated.
324 * config.in: Likewise.
325 * configure: Likewise.
326
d9ced15d
MS
3272015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
328
329 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
330 alignment to 2.
331
499c37b5
MS
3322015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
333
334 * emultempl/aarch64elf.em
335 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
336
b3862264
CG
3372015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
338
339 * ldmain.c (main): Use %F instead of %X for einfo.
340
daf220f0
AM
3412015-03-02 Alan Modra <amodra@gmail.com>
342
343 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
344
f0673d20
NC
3452015-02-27 Nick Clifton <nickc@redhat.com>
346
347 PR ld/17900
348 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
349 sense of the following memory region attribute characters.
350
330b17b3
AM
3512015-02-27 Alan Modra <amodra@gmail.com>
352
353 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
354 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
355 eh8300sxelf_linux.c): Do not invoke genscripts here.
356 * Makefile.in: Regenerate.
357
685080f2
NC
3582015-02-24 Nick Clifton <nickc@redhat.com>
359
360 * Makefile.am (ev850.c): Add dependency upon
361 $(srcdir)/emultempl/v850elf.em.
362 (ev850_rh850.c): Likewise.
363 * Makefile.in: Regenerate.
364 * emultempl/v850elf.em: New file.
365 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
366 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
367 * scripttempl/v850.sc: Add .note.renesas section.
368 * scripttempl/v850_rh850.sc: Likewise.
369
cb072816
SKS
3702015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
371
372 * scripttempl/avr.sc: Add new user_signatures region. Define and
373 use symbols for all region lengths.
374 * scripttempl/avrtiny.sc: Define and use symbols for all region
375 lengths.
376
5518c738
YS
3772015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
378
379 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
380 * Makefile.in: Regenerate.
381 * configure.tgt: Add h8300-*-linux
382 * emulparams/h8300elf_linux.sh: Add new emulation.
383 * emulparams/h8300helf_linux.sh: Likewise.
384 * emulparams/h8300self_linux.sh: Likewise.
385 * emulparams/h8300sxelf_linux.sh: Likewise.
386
f971c12f
NC
3872015-02-23 Nick Clifton <nickc@redhat.com>
388
389 * lexsup.c (parse_args): Produce a more reasonable error message
390 when -ixxx or -rxxx is the last option on the linker command line.
391
f58926a6
L
3922015-02-14 H.J. Lu <hongjiu.lu@intel.com>
393
394 PR ld/17973
395 * testplug2.c (allsymbolsread_silent): New.
396 (set_register_hook): Handle allsymbolsreadsilent.
397 (onall_symbols_read): Skip a message if allsymbolsread_silent is
398 TRUE.
399
ce875075
AM
4002015-02-14 Alan Modra <amodra@gmail.com>
401
402 PR ld/17973
403 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
404 * ldlang.c (lang_process): Don't set loading_lto_outputs.
405 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
406 to bfd.
407 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
408
b0619670
L
4092015-02-13 H.J. Lu <hongjiu.lu@intel.com>
410
411 * NEWS: Mention support for LLVM plugin.
412
66bc8739
AM
4132015-02-13 Alan Modra <amodra@gmail.com>
414
415 * ld.texinfo (Options <--defsym>): Correct cross reference.
416
88b9e2eb
L
4172015-02-11 H.J. Lu <hongjiu.lu@intel.com>
418
419 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
420 option compatibility.
421
45e81354
L
4222015-02-11 H.J. Lu <hongjiu.lu@intel.com>
423
424 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
425 "error:" for LDPL_FATAL and LDPL_ERROR.
426 * testplug2.c (parse_option): Handle fatal, error and warning.
427
e3001fd9
L
4282015-02-11 H.J. Lu <hongjiu.lu@intel.com>
429
430 * testplug2.c (dump_tv_tag): Removed.
431 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
432 closed.
433 * testplug3.c (dump_tv_tag): Removed.
434 (onclaim_file): Fix typo.
435
7275e869
L
4362015-02-11 H.J. Lu <hongjiu.lu@intel.com>
437
438 PR ld/17878
439 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
440 libldtestplug3.la.
441 (libldtestplug2_la_SOURCES): New.
442 (libldtestplug2_la_CFLAGS): Likewise.
443 (libldtestplug2_la_LDFLAGS): Likewise.
444 (libldtestplug3_la_SOURCES): New.
445 (libldtestplug3_la_CFLAGS): Likewise.
446 (libldtestplug3_la_LDFLAGS): Likewise.
447 * Makefile.in: Regenerated.
448 * testplug2.c: New file.
449 * testplug3.c: Likewise.
450
b9dc5a87
L
4512015-02-11 H.J. Lu <hongjiu.lu@intel.com>
452
453 PR ld/17878
454 * plugin.c: Include ../bfd/plugin.h.
455 (plugin_get_ir_dummy_bfd): Call bfd_create with
456 link_info.output_bfd instead of srctemplate. Copy BFD info
457 from srctemplate only if it doesn't use BFD plugin target
458 vector.
459 (plugin_load_plugins): Call register_ld_plugin_object_p with
460 (plugin_object_p)
461 (plugin_maybe_claim): Renamed to ...
462 (plugin_object_p): This. Return dummy BFD target vector if
463 input is calimed by plugin library, otherwise return NULL.
464 Update plugin_format and plugin_dummy_bfd.
465 (plugin_maybe_claim): New. Use plugin_object_p.
466
d319a098
L
4672015-02-10 H.J. Lu <hongjiu.lu@intel.com>
468
469 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
470
38604796
L
4712015-02-10 H.J. Lu <hongjiu.lu@intel.com>
472
473 * plugin.c (plugin_input_file_t): Add use_mmap.
474 (plugin_pagesize): New.
475 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
476 (plugin_load_plugins): Initialize plugin_pagesize.
477 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
478 file.
479
fe905789
L
4802015-02-10 H.J. Lu <hongjiu.lu@intel.com>
481
482 * plugin.c (get_view): Align offset passed to mmap.
483
1d5b29cf
L
4842015-02-08 H.J. Lu <hongjiu.lu@intel.com>
485
486 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
487 if plugin isn't active or there is no thing more to claim.
488
e13419c4
L
4892015-02-08 H.J. Lu <hongjiu.lu@intel.com>
490
491 * plugin.c (plugin_maybe_claim): Check format against bfd_object
492 directly.
493
93843894
L
4942015-02-07 H.J. Lu <hongjiu.lu@intel.com>
495
496 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
497 ibfd.
498
35a1e5f3
L
4992015-02-07 H.J. Lu <hongjiu.lu@intel.com>
500
501 * plugin.c: Include "libbfd.h".
502 (plugin_strdup): New.
503 (plugin_maybe_claim): Remove the argument of pointer to struct
504 ld_plugin_input_file. Open and handle input entry.
505 * plugin.h (plugin_maybe_claim): Updated.
506 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
507 without passing a pointer to struct ld_plugin_input_file.
508 * ldmain.c: Don't include "libbfd.h".
509 (add_archive_element): Call plugin_maybe_claim directly without
510 passing a pointer to struct ld_plugin_input_file.
511
8dfef1bd
L
5122015-02-06 H.J. Lu <hongjiu.lu@intel.com>
513
514 * ld.texinfo: Document -z text, -z notext and -z textoff.
515 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
516 -z text, -z notext and -z textoff.
517
2aec968d
L
5182015-02-06 H.J. Lu <hongjiu.lu@intel.com>
519
520 * configure.ac: Add AC_FUNC_MMAP.
521 * config.in: Regenerated.
522 * configure: Likewise.
523 * plugin.c: Include <sys/mman.h>.
524 (MAP_FAILED): New. Defined if not defined.
525 (PROT_READ): Likewise.
526 (MAP_PRIVATE): Likewise.
527 (view_buffer_t): New.
528 (plugin_input_file_t): Add view_buffer.
529 (get_view): Try mmap and cache the view buffer.
530 (plugin_maybe_claim): Initialize view_buffer.
531
119d62ff
L
5322015-02-05 H.J. Lu <hongjiu.lu@intel.com>
533
534 * plugin.c (release_input_file): Set fd to -1 after closing it.
535 (plugin_maybe_claim): Close fd only if fd != -1.
536
f4b78d18
L
5372015-02-05 H.J. Lu <hongjiu.lu@intel.com>
538
539 PR ld/17878
540 * plugin.c: Include <errno.h>.
541 (errno): New. Declare if needed.
542 (plugin_input_file_t): New.
543 (get_input_file): Implemented.
544 (get_view): Likewise.
545 (release_input_file): Likewise.
546 (add_symbols): Updated.
547 (get_symbols): Likewise.
548 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
549 only for a bfd_object input.
550
6c2573b7
AM
5512015-02-02 Alan Modra <amodra@gmail.com>
552
553 * emultempl/ppc64elf.em (toc_section_name): New var.
554 (ppc_after_open): Set it.
555 (ppc_before_allocation): Use it.
556 (gld${EMULATION_NAME}_after_allocation): Here too.
557
716db898
L
5582015-01-29 H.J. Lu <hongjiu.lu@intel.com>
559
560 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
561 with link_info.lto_plugin_active.
562 * ldlang.c (lang_process): Likewise.
563 * ldmain.c (add_archive_element): Likewise.
564 * plugin.c (plugin_active_plugins_p): Removed.
565 * plugin.h (plugin_active_plugins_p): Likewise.
566
37a3056a
L
5672015-01-28 H.J. Lu <hongjiu.lu@intel.com>
568
569 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
570 ...
571 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
572
15f7a26b
L
5732015-01-28 H.J. Lu <hongjiu.lu@intel.com>
574
575 PR ld/17878
576 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
577 (get_view): New function.
578 (set_tv_header): Handle LDPT_GET_VIEW.
579 * testplug.c (tag_names): Add LDPT_GET_VIEW.
580 (tv_get_view): New.
581 (dump_tv_tag): Handle LDPT_GET_VIEW.
582 (parse_tv_tag): Likewise.
583
dbd1e97e
AM
5842015-01-28 Alan Modra <amodra@gmail.com>
585
586 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
587 * emultempl/ppc64elf.em (params): Init new field.
588 (ppc_after_open): New function.
589 (LDEMUL_AFTER_OPEN): Define.
590 * ldlang.c (lang_final): Whitespace fix.
591
3f8107ab
AM
5922015-01-28 James Bowman <james.bowman@ftdichip.com>
593
594 * Makefile.am: Add FT32 files.
595 * configure.tgt: Handle FT32 target.
596 * emulparams/elf32ft32.sh: New file.
597 * scripttempl/ft32.sc: New file.
598 * Makefile.in: Regenerate.
599
cc9ad334
SKS
6002015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
601
602 PR 4643
603 * ldexp.c (fold_name): Fold LENGTH only after
604 lang_first_phase_enum.
605 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
606 rightaway.
607 * ldlang.h (struct memory_region_struct): Add origin_exp and
608 length_exp fields.
609 * ldlang.c (lang_do_memory_regions): New.
610 (lang_memory_region_lookup): Initialize origin_exp and
611 length_exp fields.
612 (lang_process): Call lang_do_memory_regions.
613
c05b575a
AB
6142015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
615
616 * ldlang.c (print_assignment): Only evaluate the expression for a
617 PROVIDE'd assignment when the destination is being defined.
618 Display a special message for PROVIDE'd symbols that are not being
619 provided.
620
5ad18f16
AM
6212015-01-20 Alan Modra <amodra@gmail.com>
622
623 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
624 (OTHER_BSS_SYMBOLS): ..this.
625 (OTHER_PLT_RELOC_SECTIONS): Don't define.
626 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
627 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
628 (OTHER_RELRO_SECTIONS_2): ..here.
629 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
630
23283c1b
AM
6312015-01-20 Alan Modra <amodra@gmail.com>
632
633 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
634 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
635 (OTHER_RELRO_SECTIONS_2): ..here.
636 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
637 PLT_BEFORE_GOT): Define.
638 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
639 PLT_BEFORE_GOT combination.
640 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
641
3e2b0f31
AM
6422015-01-20 Alan Modra <amodra@gmail.com>
643
644 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
645 (OTHER_RELRO_SECTIONS_2): ..here, new define.
646 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
647
c4621b33
AM
6482015-01-19 Alan Modra <amodra@gmail.com>
649
3e2aa5bb 650 PR ld/17615
c4621b33
AM
651 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
652
52db4ec2
JW
6532015-01-14 Jiong Wang <jiong.wang@arm.com>
654
655 * ld-arm/elf32-reject.s: New testcase.
656 * ld-arm/elf32-reject.d: Likewise.
657 * ld-arm/elf32-reject-pie.s: Likewise.
658 * ld-arm/elf32-reject-pie.d: Likewise.
659 * ld-arm/arm-elf.exp: Run new testcases.
660 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
661 * ld-arm/ifunc-7.rd: Likewise.
662 * ld-arm/ifunc-7.gd: Likewise.
663 * ld-arm/ifunc-7.dd: Likewise.
664 * ld-arm/ifunc-8.s: Likewise.
665 * ld-arm/ifunc-8.rd: Likewise.
666 * ld-arm/ifunc-8.gd: Likewise.
667 * ld-arm/ifunc-8.dd: Likewise.
668
efd321f9
AM
6692015-01-01 Alan Modra <amodra@gmail.com>
670
671 * ldver.c (ldversion): Just print current year.
672
b90efa5b 6732015-01-01 Alan Modra <amodra@gmail.com>
ca0694ad 674
b90efa5b 675 Update year range in copyright notice of all files.
ca0694ad 676
b90efa5b 677For older changes see ChangeLog-2014
252b5132 678\f
b90efa5b 679Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
680
681Copying and distribution of this file, with or without modification,
682are permitted in any medium without royalty provided the copyright
683notice and this notice are preserved.
684
252b5132
RH
685Local Variables:
686mode: change-log
687left-margin: 8
688fill-column: 74
689version-control: never
690End: