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