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