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