]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
Prevent multiple definitions for _HEAP_START, _HEAP_MAX, and _STACK_START when perfor...
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
16c1c9d6
CG
12015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
2
3 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
4 relocating operation.
5
6c1aca3e
AM
62015-04-01 Alan Modra <amodra@gmail.com>
7
8 * ldlang.c (lang_size_sections): When alignment of sections
9 results in relro base adjustment being too large, don't go lower
10 than the initial value.
11 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
12 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
13 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
14
4a0bc59e
AM
152015-04-01 Alan Modra <amodra@gmail.com>
16
17 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
18 init ehdr_start_save.
19
42271ec5
AM
202015-04-01 Alan Modra <amodra@gmail.com>
21
22 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
23 ldemul-list.h.
24 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
25 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
26 eelf32ppcsim.c): Rearrange deps for consistency.
27 * Makefile.in: Regenerate.
28
4e791d0f
ES
292015-04-01 Ed Schouten <ed@nuxi.nl>
30
31 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
32 the ehdr_start_save variable.
33
6036f486
ES
342015-03-31 Ed Schouten <ed@nuxi.nl>
35
36 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
37 eelf_x86_64_cloudabi.c.
38 (eelf_x86_64_cloudabi.c): New.
39 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
40 x86_64-*-cloudabi*.
41 * Makefile.in: Regenerated.
42 * emulparams/elf_x86_64_cloudabi.sh: New file.
43
f24173eb
L
442015-03-31 H.J. Lu <hongjiu.lu@intel.com>
45
46 * configure.ac (AM_ZLIB): Removed.
47 * Makefile.in: Regenerated.
48 * config.in: Likewise.
49 * configure: Likewise.
50
d9ced15d
MS
512015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
52
53 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
54 alignment to 2.
55
499c37b5
MS
562015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
57
58 * emultempl/aarch64elf.em
59 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
60
b3862264
CG
612015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
62
63 * ldmain.c (main): Use %F instead of %X for einfo.
64
daf220f0
AM
652015-03-02 Alan Modra <amodra@gmail.com>
66
67 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
68
f0673d20
NC
692015-02-27 Nick Clifton <nickc@redhat.com>
70
71 PR ld/17900
72 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
73 sense of the following memory region attribute characters.
74
330b17b3
AM
752015-02-27 Alan Modra <amodra@gmail.com>
76
77 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
78 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
79 eh8300sxelf_linux.c): Do not invoke genscripts here.
80 * Makefile.in: Regenerate.
81
685080f2
NC
822015-02-24 Nick Clifton <nickc@redhat.com>
83
84 * Makefile.am (ev850.c): Add dependency upon
85 $(srcdir)/emultempl/v850elf.em.
86 (ev850_rh850.c): Likewise.
87 * Makefile.in: Regenerate.
88 * emultempl/v850elf.em: New file.
89 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
90 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
91 * scripttempl/v850.sc: Add .note.renesas section.
92 * scripttempl/v850_rh850.sc: Likewise.
93
cb072816
SKS
942015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
95
96 * scripttempl/avr.sc: Add new user_signatures region. Define and
97 use symbols for all region lengths.
98 * scripttempl/avrtiny.sc: Define and use symbols for all region
99 lengths.
100
5518c738
YS
1012015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
102
103 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
104 * Makefile.in: Regenerate.
105 * configure.tgt: Add h8300-*-linux
106 * emulparams/h8300elf_linux.sh: Add new emulation.
107 * emulparams/h8300helf_linux.sh: Likewise.
108 * emulparams/h8300self_linux.sh: Likewise.
109 * emulparams/h8300sxelf_linux.sh: Likewise.
110
f971c12f
NC
1112015-02-23 Nick Clifton <nickc@redhat.com>
112
113 * lexsup.c (parse_args): Produce a more reasonable error message
114 when -ixxx or -rxxx is the last option on the linker command line.
115
f58926a6
L
1162015-02-14 H.J. Lu <hongjiu.lu@intel.com>
117
118 PR ld/17973
119 * testplug2.c (allsymbolsread_silent): New.
120 (set_register_hook): Handle allsymbolsreadsilent.
121 (onall_symbols_read): Skip a message if allsymbolsread_silent is
122 TRUE.
123
ce875075
AM
1242015-02-14 Alan Modra <amodra@gmail.com>
125
126 PR ld/17973
127 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
128 * ldlang.c (lang_process): Don't set loading_lto_outputs.
129 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
130 to bfd.
131 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
132
b0619670
L
1332015-02-13 H.J. Lu <hongjiu.lu@intel.com>
134
135 * NEWS: Mention support for LLVM plugin.
136
66bc8739
AM
1372015-02-13 Alan Modra <amodra@gmail.com>
138
139 * ld.texinfo (Options <--defsym>): Correct cross reference.
140
88b9e2eb
L
1412015-02-11 H.J. Lu <hongjiu.lu@intel.com>
142
143 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
144 option compatibility.
145
45e81354
L
1462015-02-11 H.J. Lu <hongjiu.lu@intel.com>
147
148 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
149 "error:" for LDPL_FATAL and LDPL_ERROR.
150 * testplug2.c (parse_option): Handle fatal, error and warning.
151
e3001fd9
L
1522015-02-11 H.J. Lu <hongjiu.lu@intel.com>
153
154 * testplug2.c (dump_tv_tag): Removed.
155 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
156 closed.
157 * testplug3.c (dump_tv_tag): Removed.
158 (onclaim_file): Fix typo.
159
7275e869
L
1602015-02-11 H.J. Lu <hongjiu.lu@intel.com>
161
162 PR ld/17878
163 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
164 libldtestplug3.la.
165 (libldtestplug2_la_SOURCES): New.
166 (libldtestplug2_la_CFLAGS): Likewise.
167 (libldtestplug2_la_LDFLAGS): Likewise.
168 (libldtestplug3_la_SOURCES): New.
169 (libldtestplug3_la_CFLAGS): Likewise.
170 (libldtestplug3_la_LDFLAGS): Likewise.
171 * Makefile.in: Regenerated.
172 * testplug2.c: New file.
173 * testplug3.c: Likewise.
174
b9dc5a87
L
1752015-02-11 H.J. Lu <hongjiu.lu@intel.com>
176
177 PR ld/17878
178 * plugin.c: Include ../bfd/plugin.h.
179 (plugin_get_ir_dummy_bfd): Call bfd_create with
180 link_info.output_bfd instead of srctemplate. Copy BFD info
181 from srctemplate only if it doesn't use BFD plugin target
182 vector.
183 (plugin_load_plugins): Call register_ld_plugin_object_p with
184 (plugin_object_p)
185 (plugin_maybe_claim): Renamed to ...
186 (plugin_object_p): This. Return dummy BFD target vector if
187 input is calimed by plugin library, otherwise return NULL.
188 Update plugin_format and plugin_dummy_bfd.
189 (plugin_maybe_claim): New. Use plugin_object_p.
190
d319a098
L
1912015-02-10 H.J. Lu <hongjiu.lu@intel.com>
192
193 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
194
38604796
L
1952015-02-10 H.J. Lu <hongjiu.lu@intel.com>
196
197 * plugin.c (plugin_input_file_t): Add use_mmap.
198 (plugin_pagesize): New.
199 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
200 (plugin_load_plugins): Initialize plugin_pagesize.
201 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
202 file.
203
fe905789
L
2042015-02-10 H.J. Lu <hongjiu.lu@intel.com>
205
206 * plugin.c (get_view): Align offset passed to mmap.
207
1d5b29cf
L
2082015-02-08 H.J. Lu <hongjiu.lu@intel.com>
209
210 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
211 if plugin isn't active or there is no thing more to claim.
212
e13419c4
L
2132015-02-08 H.J. Lu <hongjiu.lu@intel.com>
214
215 * plugin.c (plugin_maybe_claim): Check format against bfd_object
216 directly.
217
93843894
L
2182015-02-07 H.J. Lu <hongjiu.lu@intel.com>
219
220 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
221 ibfd.
222
35a1e5f3
L
2232015-02-07 H.J. Lu <hongjiu.lu@intel.com>
224
225 * plugin.c: Include "libbfd.h".
226 (plugin_strdup): New.
227 (plugin_maybe_claim): Remove the argument of pointer to struct
228 ld_plugin_input_file. Open and handle input entry.
229 * plugin.h (plugin_maybe_claim): Updated.
230 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
231 without passing a pointer to struct ld_plugin_input_file.
232 * ldmain.c: Don't include "libbfd.h".
233 (add_archive_element): Call plugin_maybe_claim directly without
234 passing a pointer to struct ld_plugin_input_file.
235
8dfef1bd
L
2362015-02-06 H.J. Lu <hongjiu.lu@intel.com>
237
238 * ld.texinfo: Document -z text, -z notext and -z textoff.
239 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
240 -z text, -z notext and -z textoff.
241
2aec968d
L
2422015-02-06 H.J. Lu <hongjiu.lu@intel.com>
243
244 * configure.ac: Add AC_FUNC_MMAP.
245 * config.in: Regenerated.
246 * configure: Likewise.
247 * plugin.c: Include <sys/mman.h>.
248 (MAP_FAILED): New. Defined if not defined.
249 (PROT_READ): Likewise.
250 (MAP_PRIVATE): Likewise.
251 (view_buffer_t): New.
252 (plugin_input_file_t): Add view_buffer.
253 (get_view): Try mmap and cache the view buffer.
254 (plugin_maybe_claim): Initialize view_buffer.
255
119d62ff
L
2562015-02-05 H.J. Lu <hongjiu.lu@intel.com>
257
258 * plugin.c (release_input_file): Set fd to -1 after closing it.
259 (plugin_maybe_claim): Close fd only if fd != -1.
260
f4b78d18
L
2612015-02-05 H.J. Lu <hongjiu.lu@intel.com>
262
263 PR ld/17878
264 * plugin.c: Include <errno.h>.
265 (errno): New. Declare if needed.
266 (plugin_input_file_t): New.
267 (get_input_file): Implemented.
268 (get_view): Likewise.
269 (release_input_file): Likewise.
270 (add_symbols): Updated.
271 (get_symbols): Likewise.
272 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
273 only for a bfd_object input.
274
6c2573b7
AM
2752015-02-02 Alan Modra <amodra@gmail.com>
276
277 * emultempl/ppc64elf.em (toc_section_name): New var.
278 (ppc_after_open): Set it.
279 (ppc_before_allocation): Use it.
280 (gld${EMULATION_NAME}_after_allocation): Here too.
281
716db898
L
2822015-01-29 H.J. Lu <hongjiu.lu@intel.com>
283
284 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
285 with link_info.lto_plugin_active.
286 * ldlang.c (lang_process): Likewise.
287 * ldmain.c (add_archive_element): Likewise.
288 * plugin.c (plugin_active_plugins_p): Removed.
289 * plugin.h (plugin_active_plugins_p): Likewise.
290
37a3056a
L
2912015-01-28 H.J. Lu <hongjiu.lu@intel.com>
292
293 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
294 ...
295 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
296
15f7a26b
L
2972015-01-28 H.J. Lu <hongjiu.lu@intel.com>
298
299 PR ld/17878
300 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
301 (get_view): New function.
302 (set_tv_header): Handle LDPT_GET_VIEW.
303 * testplug.c (tag_names): Add LDPT_GET_VIEW.
304 (tv_get_view): New.
305 (dump_tv_tag): Handle LDPT_GET_VIEW.
306 (parse_tv_tag): Likewise.
307
dbd1e97e
AM
3082015-01-28 Alan Modra <amodra@gmail.com>
309
310 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
311 * emultempl/ppc64elf.em (params): Init new field.
312 (ppc_after_open): New function.
313 (LDEMUL_AFTER_OPEN): Define.
314 * ldlang.c (lang_final): Whitespace fix.
315
3f8107ab
AM
3162015-01-28 James Bowman <james.bowman@ftdichip.com>
317
318 * Makefile.am: Add FT32 files.
319 * configure.tgt: Handle FT32 target.
320 * emulparams/elf32ft32.sh: New file.
321 * scripttempl/ft32.sc: New file.
322 * Makefile.in: Regenerate.
323
cc9ad334
SKS
3242015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
325
326 PR 4643
327 * ldexp.c (fold_name): Fold LENGTH only after
328 lang_first_phase_enum.
329 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
330 rightaway.
331 * ldlang.h (struct memory_region_struct): Add origin_exp and
332 length_exp fields.
333 * ldlang.c (lang_do_memory_regions): New.
334 (lang_memory_region_lookup): Initialize origin_exp and
335 length_exp fields.
336 (lang_process): Call lang_do_memory_regions.
337
c05b575a
AB
3382015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
339
340 * ldlang.c (print_assignment): Only evaluate the expression for a
341 PROVIDE'd assignment when the destination is being defined.
342 Display a special message for PROVIDE'd symbols that are not being
343 provided.
344
5ad18f16
AM
3452015-01-20 Alan Modra <amodra@gmail.com>
346
347 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
348 (OTHER_BSS_SYMBOLS): ..this.
349 (OTHER_PLT_RELOC_SECTIONS): Don't define.
350 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
351 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
352 (OTHER_RELRO_SECTIONS_2): ..here.
353 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
354
23283c1b
AM
3552015-01-20 Alan Modra <amodra@gmail.com>
356
357 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
358 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
359 (OTHER_RELRO_SECTIONS_2): ..here.
360 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
361 PLT_BEFORE_GOT): Define.
362 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
363 PLT_BEFORE_GOT combination.
364 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
365
3e2b0f31
AM
3662015-01-20 Alan Modra <amodra@gmail.com>
367
368 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
369 (OTHER_RELRO_SECTIONS_2): ..here, new define.
370 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
371
c4621b33
AM
3722015-01-19 Alan Modra <amodra@gmail.com>
373
3e2aa5bb 374 PR ld/17615
c4621b33
AM
375 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
376
52db4ec2
JW
3772015-01-14 Jiong Wang <jiong.wang@arm.com>
378
379 * ld-arm/elf32-reject.s: New testcase.
380 * ld-arm/elf32-reject.d: Likewise.
381 * ld-arm/elf32-reject-pie.s: Likewise.
382 * ld-arm/elf32-reject-pie.d: Likewise.
383 * ld-arm/arm-elf.exp: Run new testcases.
384 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
385 * ld-arm/ifunc-7.rd: Likewise.
386 * ld-arm/ifunc-7.gd: Likewise.
387 * ld-arm/ifunc-7.dd: Likewise.
388 * ld-arm/ifunc-8.s: Likewise.
389 * ld-arm/ifunc-8.rd: Likewise.
390 * ld-arm/ifunc-8.gd: Likewise.
391 * ld-arm/ifunc-8.dd: Likewise.
392
efd321f9
AM
3932015-01-01 Alan Modra <amodra@gmail.com>
394
395 * ldver.c (ldversion): Just print current year.
396
b90efa5b 3972015-01-01 Alan Modra <amodra@gmail.com>
ca0694ad 398
b90efa5b 399 Update year range in copyright notice of all files.
ca0694ad 400
b90efa5b 401For older changes see ChangeLog-2014
252b5132 402\f
b90efa5b 403Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
404
405Copying and distribution of this file, with or without modification,
406are permitted in any medium without royalty provided the copyright
407notice and this notice are preserved.
408
252b5132
RH
409Local Variables:
410mode: change-log
411left-margin: 8
412fill-column: 74
413version-control: never
414End: