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