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