4db576cce742a94debd99004987c4e3e41c946f3
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2
3 * scripttempl/avr.sc: Add new user_signatures region. Define and
4 use symbols for all region lengths.
5 * scripttempl/avrtiny.sc: Define and use symbols for all region
6 lengths.
7
8 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
9
10 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
11 * Makefile.in: Regenerate.
12 * configure.tgt: Add h8300-*-linux
13 * emulparams/h8300elf_linux.sh: Add new emulation.
14 * emulparams/h8300helf_linux.sh: Likewise.
15 * emulparams/h8300self_linux.sh: Likewise.
16 * emulparams/h8300sxelf_linux.sh: Likewise.
17
18 2015-02-23 Nick Clifton <nickc@redhat.com>
19
20 * lexsup.c (parse_args): Produce a more reasonable error message
21 when -ixxx or -rxxx is the last option on the linker command line.
22
23 2015-02-14 H.J. Lu <hongjiu.lu@intel.com>
24
25 PR ld/17973
26 * testplug2.c (allsymbolsread_silent): New.
27 (set_register_hook): Handle allsymbolsreadsilent.
28 (onall_symbols_read): Skip a message if allsymbolsread_silent is
29 TRUE.
30
31 2015-02-14 Alan Modra <amodra@gmail.com>
32
33 PR ld/17973
34 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
35 * ldlang.c (lang_process): Don't set loading_lto_outputs.
36 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
37 to bfd.
38 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
39
40 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
41
42 * NEWS: Mention support for LLVM plugin.
43
44 2015-02-13 Alan Modra <amodra@gmail.com>
45
46 * ld.texinfo (Options <--defsym>): Correct cross reference.
47
48 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
49
50 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
51 option compatibility.
52
53 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
54
55 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
56 "error:" for LDPL_FATAL and LDPL_ERROR.
57 * testplug2.c (parse_option): Handle fatal, error and warning.
58
59 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
60
61 * testplug2.c (dump_tv_tag): Removed.
62 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
63 closed.
64 * testplug3.c (dump_tv_tag): Removed.
65 (onclaim_file): Fix typo.
66
67 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
68
69 PR ld/17878
70 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
71 libldtestplug3.la.
72 (libldtestplug2_la_SOURCES): New.
73 (libldtestplug2_la_CFLAGS): Likewise.
74 (libldtestplug2_la_LDFLAGS): Likewise.
75 (libldtestplug3_la_SOURCES): New.
76 (libldtestplug3_la_CFLAGS): Likewise.
77 (libldtestplug3_la_LDFLAGS): Likewise.
78 * Makefile.in: Regenerated.
79 * testplug2.c: New file.
80 * testplug3.c: Likewise.
81
82 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
83
84 PR ld/17878
85 * plugin.c: Include ../bfd/plugin.h.
86 (plugin_get_ir_dummy_bfd): Call bfd_create with
87 link_info.output_bfd instead of srctemplate. Copy BFD info
88 from srctemplate only if it doesn't use BFD plugin target
89 vector.
90 (plugin_load_plugins): Call register_ld_plugin_object_p with
91 (plugin_object_p)
92 (plugin_maybe_claim): Renamed to ...
93 (plugin_object_p): This. Return dummy BFD target vector if
94 input is calimed by plugin library, otherwise return NULL.
95 Update plugin_format and plugin_dummy_bfd.
96 (plugin_maybe_claim): New. Use plugin_object_p.
97
98 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
99
100 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
101
102 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
103
104 * plugin.c (plugin_input_file_t): Add use_mmap.
105 (plugin_pagesize): New.
106 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
107 (plugin_load_plugins): Initialize plugin_pagesize.
108 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
109 file.
110
111 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
112
113 * plugin.c (get_view): Align offset passed to mmap.
114
115 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
116
117 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
118 if plugin isn't active or there is no thing more to claim.
119
120 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
121
122 * plugin.c (plugin_maybe_claim): Check format against bfd_object
123 directly.
124
125 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
126
127 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
128 ibfd.
129
130 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
131
132 * plugin.c: Include "libbfd.h".
133 (plugin_strdup): New.
134 (plugin_maybe_claim): Remove the argument of pointer to struct
135 ld_plugin_input_file. Open and handle input entry.
136 * plugin.h (plugin_maybe_claim): Updated.
137 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
138 without passing a pointer to struct ld_plugin_input_file.
139 * ldmain.c: Don't include "libbfd.h".
140 (add_archive_element): Call plugin_maybe_claim directly without
141 passing a pointer to struct ld_plugin_input_file.
142
143 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
144
145 * ld.texinfo: Document -z text, -z notext and -z textoff.
146 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
147 -z text, -z notext and -z textoff.
148
149 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
150
151 * configure.ac: Add AC_FUNC_MMAP.
152 * config.in: Regenerated.
153 * configure: Likewise.
154 * plugin.c: Include <sys/mman.h>.
155 (MAP_FAILED): New. Defined if not defined.
156 (PROT_READ): Likewise.
157 (MAP_PRIVATE): Likewise.
158 (view_buffer_t): New.
159 (plugin_input_file_t): Add view_buffer.
160 (get_view): Try mmap and cache the view buffer.
161 (plugin_maybe_claim): Initialize view_buffer.
162
163 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
164
165 * plugin.c (release_input_file): Set fd to -1 after closing it.
166 (plugin_maybe_claim): Close fd only if fd != -1.
167
168 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
169
170 PR ld/17878
171 * plugin.c: Include <errno.h>.
172 (errno): New. Declare if needed.
173 (plugin_input_file_t): New.
174 (get_input_file): Implemented.
175 (get_view): Likewise.
176 (release_input_file): Likewise.
177 (add_symbols): Updated.
178 (get_symbols): Likewise.
179 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
180 only for a bfd_object input.
181
182 2015-02-02 Alan Modra <amodra@gmail.com>
183
184 * emultempl/ppc64elf.em (toc_section_name): New var.
185 (ppc_after_open): Set it.
186 (ppc_before_allocation): Use it.
187 (gld${EMULATION_NAME}_after_allocation): Here too.
188
189 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
190
191 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
192 with link_info.lto_plugin_active.
193 * ldlang.c (lang_process): Likewise.
194 * ldmain.c (add_archive_element): Likewise.
195 * plugin.c (plugin_active_plugins_p): Removed.
196 * plugin.h (plugin_active_plugins_p): Likewise.
197
198 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
199
200 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
201 ...
202 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
203
204 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
205
206 PR ld/17878
207 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
208 (get_view): New function.
209 (set_tv_header): Handle LDPT_GET_VIEW.
210 * testplug.c (tag_names): Add LDPT_GET_VIEW.
211 (tv_get_view): New.
212 (dump_tv_tag): Handle LDPT_GET_VIEW.
213 (parse_tv_tag): Likewise.
214
215 2015-01-28 Alan Modra <amodra@gmail.com>
216
217 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
218 * emultempl/ppc64elf.em (params): Init new field.
219 (ppc_after_open): New function.
220 (LDEMUL_AFTER_OPEN): Define.
221 * ldlang.c (lang_final): Whitespace fix.
222
223 2015-01-28 James Bowman <james.bowman@ftdichip.com>
224
225 * Makefile.am: Add FT32 files.
226 * configure.tgt: Handle FT32 target.
227 * emulparams/elf32ft32.sh: New file.
228 * scripttempl/ft32.sc: New file.
229 * Makefile.in: Regenerate.
230
231 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
232
233 PR 4643
234 * ldexp.c (fold_name): Fold LENGTH only after
235 lang_first_phase_enum.
236 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
237 rightaway.
238 * ldlang.h (struct memory_region_struct): Add origin_exp and
239 length_exp fields.
240 * ldlang.c (lang_do_memory_regions): New.
241 (lang_memory_region_lookup): Initialize origin_exp and
242 length_exp fields.
243 (lang_process): Call lang_do_memory_regions.
244
245 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 * ldlang.c (print_assignment): Only evaluate the expression for a
248 PROVIDE'd assignment when the destination is being defined.
249 Display a special message for PROVIDE'd symbols that are not being
250 provided.
251
252 2015-01-20 Alan Modra <amodra@gmail.com>
253
254 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
255 (OTHER_BSS_SYMBOLS): ..this.
256 (OTHER_PLT_RELOC_SECTIONS): Don't define.
257 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
258 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
259 (OTHER_RELRO_SECTIONS_2): ..here.
260 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
261
262 2015-01-20 Alan Modra <amodra@gmail.com>
263
264 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
265 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
266 (OTHER_RELRO_SECTIONS_2): ..here.
267 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
268 PLT_BEFORE_GOT): Define.
269 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
270 PLT_BEFORE_GOT combination.
271 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
272
273 2015-01-20 Alan Modra <amodra@gmail.com>
274
275 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
276 (OTHER_RELRO_SECTIONS_2): ..here, new define.
277 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
278
279 2015-01-19 Alan Modra <amodra@gmail.com>
280
281 PR ld/17615
282 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
283
284 2015-01-14 Jiong Wang <jiong.wang@arm.com>
285
286 * ld-arm/elf32-reject.s: New testcase.
287 * ld-arm/elf32-reject.d: Likewise.
288 * ld-arm/elf32-reject-pie.s: Likewise.
289 * ld-arm/elf32-reject-pie.d: Likewise.
290 * ld-arm/arm-elf.exp: Run new testcases.
291 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
292 * ld-arm/ifunc-7.rd: Likewise.
293 * ld-arm/ifunc-7.gd: Likewise.
294 * ld-arm/ifunc-7.dd: Likewise.
295 * ld-arm/ifunc-8.s: Likewise.
296 * ld-arm/ifunc-8.rd: Likewise.
297 * ld-arm/ifunc-8.gd: Likewise.
298 * ld-arm/ifunc-8.dd: Likewise.
299
300 2015-01-01 Alan Modra <amodra@gmail.com>
301
302 * ldver.c (ldversion): Just print current year.
303
304 2015-01-01 Alan Modra <amodra@gmail.com>
305
306 Update year range in copyright notice of all files.
307
308 For older changes see ChangeLog-2014
309 \f
310 Copyright (C) 2015 Free Software Foundation, Inc.
311
312 Copying and distribution of this file, with or without modification,
313 are permitted in any medium without royalty provided the copyright
314 notice and this notice are preserved.
315
316 Local Variables:
317 mode: change-log
318 left-margin: 8
319 fill-column: 74
320 version-control: never
321 End:
This page took 0.037055 seconds and 3 git commands to generate.