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