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