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