Add --with-system-zlib in gas
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
d9ced15d
MS
12015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2
3 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
4 alignment to 2.
5
499c37b5
MS
62015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
7
8 * emultempl/aarch64elf.em
9 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
10
b3862264
CG
112015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
12
13 * ldmain.c (main): Use %F instead of %X for einfo.
14
daf220f0
AM
152015-03-02 Alan Modra <amodra@gmail.com>
16
17 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
18
f0673d20
NC
192015-02-27 Nick Clifton <nickc@redhat.com>
20
21 PR ld/17900
22 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
23 sense of the following memory region attribute characters.
24
330b17b3
AM
252015-02-27 Alan Modra <amodra@gmail.com>
26
27 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
28 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
29 eh8300sxelf_linux.c): Do not invoke genscripts here.
30 * Makefile.in: Regenerate.
31
685080f2
NC
322015-02-24 Nick Clifton <nickc@redhat.com>
33
34 * Makefile.am (ev850.c): Add dependency upon
35 $(srcdir)/emultempl/v850elf.em.
36 (ev850_rh850.c): Likewise.
37 * Makefile.in: Regenerate.
38 * emultempl/v850elf.em: New file.
39 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
40 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
41 * scripttempl/v850.sc: Add .note.renesas section.
42 * scripttempl/v850_rh850.sc: Likewise.
43
cb072816
SKS
442015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
45
46 * scripttempl/avr.sc: Add new user_signatures region. Define and
47 use symbols for all region lengths.
48 * scripttempl/avrtiny.sc: Define and use symbols for all region
49 lengths.
50
5518c738
YS
512015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
52
53 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
54 * Makefile.in: Regenerate.
55 * configure.tgt: Add h8300-*-linux
56 * emulparams/h8300elf_linux.sh: Add new emulation.
57 * emulparams/h8300helf_linux.sh: Likewise.
58 * emulparams/h8300self_linux.sh: Likewise.
59 * emulparams/h8300sxelf_linux.sh: Likewise.
60
f971c12f
NC
612015-02-23 Nick Clifton <nickc@redhat.com>
62
63 * lexsup.c (parse_args): Produce a more reasonable error message
64 when -ixxx or -rxxx is the last option on the linker command line.
65
f58926a6
L
662015-02-14 H.J. Lu <hongjiu.lu@intel.com>
67
68 PR ld/17973
69 * testplug2.c (allsymbolsread_silent): New.
70 (set_register_hook): Handle allsymbolsreadsilent.
71 (onall_symbols_read): Skip a message if allsymbolsread_silent is
72 TRUE.
73
ce875075
AM
742015-02-14 Alan Modra <amodra@gmail.com>
75
76 PR ld/17973
77 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
78 * ldlang.c (lang_process): Don't set loading_lto_outputs.
79 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
80 to bfd.
81 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
82
b0619670
L
832015-02-13 H.J. Lu <hongjiu.lu@intel.com>
84
85 * NEWS: Mention support for LLVM plugin.
86
66bc8739
AM
872015-02-13 Alan Modra <amodra@gmail.com>
88
89 * ld.texinfo (Options <--defsym>): Correct cross reference.
90
88b9e2eb
L
912015-02-11 H.J. Lu <hongjiu.lu@intel.com>
92
93 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
94 option compatibility.
95
45e81354
L
962015-02-11 H.J. Lu <hongjiu.lu@intel.com>
97
98 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
99 "error:" for LDPL_FATAL and LDPL_ERROR.
100 * testplug2.c (parse_option): Handle fatal, error and warning.
101
e3001fd9
L
1022015-02-11 H.J. Lu <hongjiu.lu@intel.com>
103
104 * testplug2.c (dump_tv_tag): Removed.
105 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
106 closed.
107 * testplug3.c (dump_tv_tag): Removed.
108 (onclaim_file): Fix typo.
109
7275e869
L
1102015-02-11 H.J. Lu <hongjiu.lu@intel.com>
111
112 PR ld/17878
113 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
114 libldtestplug3.la.
115 (libldtestplug2_la_SOURCES): New.
116 (libldtestplug2_la_CFLAGS): Likewise.
117 (libldtestplug2_la_LDFLAGS): Likewise.
118 (libldtestplug3_la_SOURCES): New.
119 (libldtestplug3_la_CFLAGS): Likewise.
120 (libldtestplug3_la_LDFLAGS): Likewise.
121 * Makefile.in: Regenerated.
122 * testplug2.c: New file.
123 * testplug3.c: Likewise.
124
b9dc5a87
L
1252015-02-11 H.J. Lu <hongjiu.lu@intel.com>
126
127 PR ld/17878
128 * plugin.c: Include ../bfd/plugin.h.
129 (plugin_get_ir_dummy_bfd): Call bfd_create with
130 link_info.output_bfd instead of srctemplate. Copy BFD info
131 from srctemplate only if it doesn't use BFD plugin target
132 vector.
133 (plugin_load_plugins): Call register_ld_plugin_object_p with
134 (plugin_object_p)
135 (plugin_maybe_claim): Renamed to ...
136 (plugin_object_p): This. Return dummy BFD target vector if
137 input is calimed by plugin library, otherwise return NULL.
138 Update plugin_format and plugin_dummy_bfd.
139 (plugin_maybe_claim): New. Use plugin_object_p.
140
d319a098
L
1412015-02-10 H.J. Lu <hongjiu.lu@intel.com>
142
143 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
144
38604796
L
1452015-02-10 H.J. Lu <hongjiu.lu@intel.com>
146
147 * plugin.c (plugin_input_file_t): Add use_mmap.
148 (plugin_pagesize): New.
149 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
150 (plugin_load_plugins): Initialize plugin_pagesize.
151 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
152 file.
153
fe905789
L
1542015-02-10 H.J. Lu <hongjiu.lu@intel.com>
155
156 * plugin.c (get_view): Align offset passed to mmap.
157
1d5b29cf
L
1582015-02-08 H.J. Lu <hongjiu.lu@intel.com>
159
160 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
161 if plugin isn't active or there is no thing more to claim.
162
e13419c4
L
1632015-02-08 H.J. Lu <hongjiu.lu@intel.com>
164
165 * plugin.c (plugin_maybe_claim): Check format against bfd_object
166 directly.
167
93843894
L
1682015-02-07 H.J. Lu <hongjiu.lu@intel.com>
169
170 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
171 ibfd.
172
35a1e5f3
L
1732015-02-07 H.J. Lu <hongjiu.lu@intel.com>
174
175 * plugin.c: Include "libbfd.h".
176 (plugin_strdup): New.
177 (plugin_maybe_claim): Remove the argument of pointer to struct
178 ld_plugin_input_file. Open and handle input entry.
179 * plugin.h (plugin_maybe_claim): Updated.
180 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
181 without passing a pointer to struct ld_plugin_input_file.
182 * ldmain.c: Don't include "libbfd.h".
183 (add_archive_element): Call plugin_maybe_claim directly without
184 passing a pointer to struct ld_plugin_input_file.
185
8dfef1bd
L
1862015-02-06 H.J. Lu <hongjiu.lu@intel.com>
187
188 * ld.texinfo: Document -z text, -z notext and -z textoff.
189 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
190 -z text, -z notext and -z textoff.
191
2aec968d
L
1922015-02-06 H.J. Lu <hongjiu.lu@intel.com>
193
194 * configure.ac: Add AC_FUNC_MMAP.
195 * config.in: Regenerated.
196 * configure: Likewise.
197 * plugin.c: Include <sys/mman.h>.
198 (MAP_FAILED): New. Defined if not defined.
199 (PROT_READ): Likewise.
200 (MAP_PRIVATE): Likewise.
201 (view_buffer_t): New.
202 (plugin_input_file_t): Add view_buffer.
203 (get_view): Try mmap and cache the view buffer.
204 (plugin_maybe_claim): Initialize view_buffer.
205
119d62ff
L
2062015-02-05 H.J. Lu <hongjiu.lu@intel.com>
207
208 * plugin.c (release_input_file): Set fd to -1 after closing it.
209 (plugin_maybe_claim): Close fd only if fd != -1.
210
f4b78d18
L
2112015-02-05 H.J. Lu <hongjiu.lu@intel.com>
212
213 PR ld/17878
214 * plugin.c: Include <errno.h>.
215 (errno): New. Declare if needed.
216 (plugin_input_file_t): New.
217 (get_input_file): Implemented.
218 (get_view): Likewise.
219 (release_input_file): Likewise.
220 (add_symbols): Updated.
221 (get_symbols): Likewise.
222 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
223 only for a bfd_object input.
224
6c2573b7
AM
2252015-02-02 Alan Modra <amodra@gmail.com>
226
227 * emultempl/ppc64elf.em (toc_section_name): New var.
228 (ppc_after_open): Set it.
229 (ppc_before_allocation): Use it.
230 (gld${EMULATION_NAME}_after_allocation): Here too.
231
716db898
L
2322015-01-29 H.J. Lu <hongjiu.lu@intel.com>
233
234 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
235 with link_info.lto_plugin_active.
236 * ldlang.c (lang_process): Likewise.
237 * ldmain.c (add_archive_element): Likewise.
238 * plugin.c (plugin_active_plugins_p): Removed.
239 * plugin.h (plugin_active_plugins_p): Likewise.
240
37a3056a
L
2412015-01-28 H.J. Lu <hongjiu.lu@intel.com>
242
243 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
244 ...
245 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
246
15f7a26b
L
2472015-01-28 H.J. Lu <hongjiu.lu@intel.com>
248
249 PR ld/17878
250 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
251 (get_view): New function.
252 (set_tv_header): Handle LDPT_GET_VIEW.
253 * testplug.c (tag_names): Add LDPT_GET_VIEW.
254 (tv_get_view): New.
255 (dump_tv_tag): Handle LDPT_GET_VIEW.
256 (parse_tv_tag): Likewise.
257
dbd1e97e
AM
2582015-01-28 Alan Modra <amodra@gmail.com>
259
260 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
261 * emultempl/ppc64elf.em (params): Init new field.
262 (ppc_after_open): New function.
263 (LDEMUL_AFTER_OPEN): Define.
264 * ldlang.c (lang_final): Whitespace fix.
265
3f8107ab
AM
2662015-01-28 James Bowman <james.bowman@ftdichip.com>
267
268 * Makefile.am: Add FT32 files.
269 * configure.tgt: Handle FT32 target.
270 * emulparams/elf32ft32.sh: New file.
271 * scripttempl/ft32.sc: New file.
272 * Makefile.in: Regenerate.
273
cc9ad334
SKS
2742015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
275
276 PR 4643
277 * ldexp.c (fold_name): Fold LENGTH only after
278 lang_first_phase_enum.
279 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
280 rightaway.
281 * ldlang.h (struct memory_region_struct): Add origin_exp and
282 length_exp fields.
283 * ldlang.c (lang_do_memory_regions): New.
284 (lang_memory_region_lookup): Initialize origin_exp and
285 length_exp fields.
286 (lang_process): Call lang_do_memory_regions.
287
c05b575a
AB
2882015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * ldlang.c (print_assignment): Only evaluate the expression for a
291 PROVIDE'd assignment when the destination is being defined.
292 Display a special message for PROVIDE'd symbols that are not being
293 provided.
294
5ad18f16
AM
2952015-01-20 Alan Modra <amodra@gmail.com>
296
297 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
298 (OTHER_BSS_SYMBOLS): ..this.
299 (OTHER_PLT_RELOC_SECTIONS): Don't define.
300 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
301 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
302 (OTHER_RELRO_SECTIONS_2): ..here.
303 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
304
23283c1b
AM
3052015-01-20 Alan Modra <amodra@gmail.com>
306
307 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
308 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
309 (OTHER_RELRO_SECTIONS_2): ..here.
310 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
311 PLT_BEFORE_GOT): Define.
312 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
313 PLT_BEFORE_GOT combination.
314 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
315
3e2b0f31
AM
3162015-01-20 Alan Modra <amodra@gmail.com>
317
318 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
319 (OTHER_RELRO_SECTIONS_2): ..here, new define.
320 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
321
c4621b33
AM
3222015-01-19 Alan Modra <amodra@gmail.com>
323
3e2aa5bb 324 PR ld/17615
c4621b33
AM
325 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
326
52db4ec2
JW
3272015-01-14 Jiong Wang <jiong.wang@arm.com>
328
329 * ld-arm/elf32-reject.s: New testcase.
330 * ld-arm/elf32-reject.d: Likewise.
331 * ld-arm/elf32-reject-pie.s: Likewise.
332 * ld-arm/elf32-reject-pie.d: Likewise.
333 * ld-arm/arm-elf.exp: Run new testcases.
334 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
335 * ld-arm/ifunc-7.rd: Likewise.
336 * ld-arm/ifunc-7.gd: Likewise.
337 * ld-arm/ifunc-7.dd: Likewise.
338 * ld-arm/ifunc-8.s: Likewise.
339 * ld-arm/ifunc-8.rd: Likewise.
340 * ld-arm/ifunc-8.gd: Likewise.
341 * ld-arm/ifunc-8.dd: Likewise.
342
efd321f9
AM
3432015-01-01 Alan Modra <amodra@gmail.com>
344
345 * ldver.c (ldversion): Just print current year.
346
b90efa5b 3472015-01-01 Alan Modra <amodra@gmail.com>
ca0694ad 348
b90efa5b 349 Update year range in copyright notice of all files.
ca0694ad 350
b90efa5b 351For older changes see ChangeLog-2014
252b5132 352\f
b90efa5b 353Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
354
355Copying and distribution of this file, with or without modification,
356are permitted in any medium without royalty provided the copyright
357notice and this notice are preserved.
358
252b5132
RH
359Local Variables:
360mode: change-log
361left-margin: 8
362fill-column: 74
363version-control: never
364End:
This page took 0.858896 seconds and 4 git commands to generate.