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