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