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