]>
Commit | Line | Data |
---|---|---|
68880f31 CLT |
1 | 2015-05-17 Chung-Lin Tang <cltang@codesourcery.com> |
2 | ||
3 | * configure.ac (AC_PROG_GREP): Check for grep program. | |
4 | (elf_list_options,elf_shlib_list_options,elf_plt_unwind_list_options): | |
5 | Enable ELF option printing for emulations containing | |
6 | 'TEMPLATE_NAME=elf32'. | |
7 | * configure: Regenerate. | |
8 | ||
fd1c4238 NC |
9 | 2015-05-14 Nick Clifton <nickc@redhat.com> |
10 | ||
11 | * ld.texinfo (ASSERT): Describe the interaction with PROVIDEd | |
12 | symbols. | |
13 | ||
5197d474 L |
14 | 2015-05-11 H.J. Lu <hongjiu.lu@intel.com> |
15 | ||
16 | * configure.tgt: Support i[3-7]86-*-elfiamcu target. | |
17 | ||
7e0a8112 L |
18 | 2015-05-11 H.J. Lu <hongjiu.lu@intel.com> |
19 | ||
20 | * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_iamcu.c. | |
21 | (eelf_iamcu.c): New. | |
22 | * configure.tgt (targ_extra_emuls): Add elf_iamcu if elf_i386 is | |
23 | enabled in BFD. | |
24 | * Makefile.in: Regenerated. | |
25 | * emulparams/elf_iamcu.sh: New file. | |
26 | ||
837a17b3 NC |
27 | 2015-05-05 Nick Clifton <nickc@redhat.com> |
28 | ||
29 | * emulparams/msp430elf.sh (TEMPLATE_NAME): Change to msp430. | |
30 | * scripttempl/msp430.sc (.text): Add .lower.text and .either.text. | |
31 | (.data): Add .lower.data and .either.data. | |
32 | (.bss): Add .lower.bss and .either.bss. | |
33 | (.rodata): Add .lower.rodata and .either.rodata. | |
34 | * emultempl/msp430.em: New file. Implements a new orphan | |
35 | placement algorithm that divides sections between lower and upper | |
36 | memory regions. | |
37 | * Makefile.am (emsp430elf.c): Depend upon msp430.em. | |
38 | *emsp430X.c): Likewise. | |
39 | * Makefine.in: Regenerate. | |
40 | ||
a13eab06 AS |
41 | 2015-04-28 Andreas Schwab <schwab@linux-m68k.org> |
42 | ||
43 | PR ld/18344 | |
44 | * ldlex.l (INPUTLIST): Increment lineno on newline. | |
45 | ||
44bd1acd AM |
46 | 2015-04-24 Alan Modra <amodra@gmail.com> |
47 | ||
48 | * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): | |
49 | Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out. | |
50 | ||
08e2f2bb DD |
51 | 2015-04-24 DJ Delorie <dj@redhat.com> |
52 | ||
53 | * Makefile.am (msp430): Rename primary emulation to msp430elf. | |
54 | (emsp430.c): Rename to emsp430elf.c, update dependencies | |
55 | (emsp430X.c): Update dependencies. | |
56 | * Makefile.in: Likewise. | |
57 | * configure.tgt (msp430-*-*): Rename primary emulation to msp430elf. | |
d9e88e90 | 58 | * emulparams/msp430.sh: Rename to msp430elf.sh. |
08e2f2bb DD |
59 | * emulparams/msp430X.sh: Update. |
60 | ||
f6fe1ccd L |
61 | 2015-04-23 H.J. Lu <hongjiu.lu@intel.com> |
62 | ||
63 | PR binutils/18209 | |
64 | * ldfile.c (ldfile_try_open_bfd): Set is_linker_input to 1. | |
65 | ||
a27e685f AM |
66 | 2015-04-23 Alan Modra <amodra@gmail.com> |
67 | ||
68 | * emulparams/elf64ppc.sh (GOT): Align. | |
69 | ||
0e5fabeb AM |
70 | 2015-04-22 Alan Modra <amodra@gmail.com> |
71 | ||
72 | * ldexp.h (struct ldexp_control): Delete dataseg.min_base. Add | |
73 | data_seg.relro_offset. | |
74 | * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Don't set min_base. | |
75 | (fold_binary <DATA_SEGMENT_RELRO_END>): Do set relro_offset. | |
76 | * ldlang.c (lang_size_sections): Rewrite code adjusting relro | |
77 | segment base to line up last section on page boundary. | |
78 | ||
ea556d25 L |
79 | 2015-04-15 H.J. Lu <hongjiu.lu@intel.com> |
80 | ||
81 | * NEWS: Mention | |
82 | --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi]. | |
83 | ||
0ce398f1 L |
84 | 2015-04-14 H.J. Lu <hongjiu.lu@intel.com> |
85 | ||
86 | * ld.texinfo: Document --compress-debug-sections=. | |
87 | * ldmain.c (main): Set BFD_COMPRESS on output_bfd if | |
88 | COMPRESS_DEBUG is set. Set BFD_COMPRESS_GABI on output_bfd | |
89 | for COMPRESS_DEBUG_GABI_ZLIB. | |
90 | * lexsup.c (elf_static_list_options): Add | |
91 | --compress-debug-sections=. | |
92 | * emultempl/elf32.em (OPTION_COMPRESS_DEBUG): New. | |
93 | (xtra_long): Add "compress-debug-sections". | |
94 | (gld${EMULATION_NAME}_handle_option): Handle | |
95 | OPTION_COMPRESS_DEBUG. | |
96 | ||
889c2a67 L |
97 | 2015-04-14 H.J. Lu <hongjiu.lu@intel.com> |
98 | ||
99 | PR ld/pr17709 | |
100 | * ld.texinfo: Document "-z noextern-protected-data". | |
101 | * ldmain.c (main): Initialize link_info.extern_protected_data | |
102 | to -1. | |
103 | * lexsup.c (elf_shlib_list_options): Add | |
104 | "-z [no]extern-protected-data". | |
105 | * emulparams/elf32_x86_64.sh: Source extern_protected_data.sh. | |
106 | * emulparams/elf_i386.sh: Likewise. | |
107 | * emulparams/elf_i386_be.sh: Likewise. | |
108 | * emulparams/elf_i386_chaos.sh: Likewise. | |
109 | * emulparams/elf_i386_ldso.sh: Likewise. | |
110 | * emulparams/elf_i386_vxworks.sh: Likewise. | |
111 | * emulparams/elf_k1om.sh: Likewise. | |
112 | * emulparams/elf_l1om.sh: Likewise. | |
113 | * emulparams/elf_x86_64.sh: Source extern_protected_data.sh. | |
114 | (PARSE_AND_LIST_OPTIONS): Renamed to ... | |
115 | (PARSE_AND_LIST_OPTIONS_BNDPLT): This. | |
116 | (PARSE_AND_LIST_ARGS_CASE_Z): Renamed to ... | |
117 | (PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT): This. | |
118 | (PARSE_AND_LIST_OPTIONS): Append $PARSE_AND_LIST_OPTIONS_BNDPLT. | |
119 | (PARSE_AND_LIST_ARGS_CASE_Z): Append | |
120 | $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT. | |
121 | * emulparams/extern_protected_data.sh: New file. | |
122 | ||
fd5a1509 L |
123 | 2015-04-11 H.J. Lu <hongjiu.lu@intel.com> |
124 | ||
125 | * plugin.c (plugin_load_plugins): Removed an extra ';'. | |
126 | ||
080bb7bb NC |
127 | 2015-04-10 Nick Clifton <nickc@redhat.com> |
128 | ||
129 | PR binutils/18198 | |
130 | * ld.texinfo (--be8): Add a note about the interaction of this | |
131 | option with the assembler's -EB option. | |
132 | ||
8c3fff59 AM |
133 | 2015-04-10 Alan Modra <amodra@gmail.com> |
134 | ||
135 | * configure.ac: Set elf_list_options etc. in proper case. | |
136 | * configure: Regenerate. | |
137 | ||
6166ed93 AM |
138 | 2015-04-10 Alan Modra <amodra@gmail.com> |
139 | ||
140 | PR ld/18223 | |
141 | * ldlang.c (lang_process): Add _init and _fini to gc_sym_list. | |
142 | ||
eba27bd7 L |
143 | 2015-04-09 H.J. Lu <hongjiu.lu@intel.com> |
144 | ||
145 | * emulparams/elf_x86_64.sh (BNDPLT): Removed. | |
146 | (PARSE_AND_LIST_OPTIONS): New. | |
147 | (PARSE_AND_LIST_ARGS_CASE_Z): Likewise. | |
148 | * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove | |
149 | BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z. | |
150 | (gld${EMULATION_NAME}_list_options): Remove BNDPLT check. | |
151 | ||
233723a4 NC |
152 | 2015-04-09 Nick Clifton <nickc@redhat.com> |
153 | ||
154 | * po/fr.po: Updated French translation. | |
155 | ||
82d8e420 L |
156 | 2015-04-08 H.J. Lu <hongjiu.lu@intel.com> |
157 | ||
158 | * configure.ac (elf_list_options): Set to TRUE for | |
159 | --enable-targets=all. | |
160 | (elf_shlib_list_options): Likewise. | |
161 | (elf_plt_unwind_list_options): Likewise. | |
162 | * configure: Regenerated. | |
163 | ||
31b94bbb L |
164 | 2015-04-08 H.J. Lu <hongjiu.lu@intel.com> |
165 | ||
166 | * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME. | |
167 | ||
c58212ea L |
168 | 2015-04-08 H.J. Lu <hongjiu.lu@intel.com> |
169 | ||
170 | * Makefile.am (ELF_CLFAGS): New. | |
171 | (AM_CFLAGS): Add $(ELF_CLFAGS). | |
172 | * configure.ac (elf_list_options): New. AC_SUBST. | |
173 | (elf_shlib_list_options): Likewise. | |
174 | (elf_plt_unwind_list_options): Likewise. | |
175 | * lexsup.c (elf_shlib_list_options): New. | |
176 | (elf_static_list_options): Likewise. | |
177 | (elf_plt_unwind_list_options): Likewise. | |
178 | (ld_list_options): Likewise. | |
179 | (help): Call ld_list_options. | |
180 | * Makefile.in: Regenerated. | |
181 | * configure: Likewise. | |
182 | * emulparams/plt_unwind.sh (PLT_UNWIND): New. | |
183 | (PARSE_AND_LIST_OPTIONS): Removed. | |
184 | * emultempl/elf32.em (gld_list_options): New. | |
185 | (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or | |
186 | PARSE_AND_LIST_OPTIONS is defined. | |
187 | (ld_${EMULATION_NAME}_emulation): Replace | |
188 | gld${EMULATION_NAME}_list_options with ${gld_list_options. | |
189 | ||
0fad6e4b AM |
190 | 2015-04-07 Alan Modra <amodra@gmail.com> |
191 | ||
192 | PR ld/18176 | |
193 | * ldlang.c (lang_size_sections): Cast shift expression. | |
194 | ||
d3e454b9 AM |
195 | 2015-04-07 Alan Modra <amodra@gmail.com> |
196 | ||
197 | * emultempl/ppc32elf.em: Handle --no-pic-fixup. | |
198 | (params): Init new field. | |
199 | (ppc_before_allocation): Enable relaxation for pic_fixup. | |
200 | ||
3ea60775 NC |
201 | 2015-04-07 Nick Clifton <nickc@redhat.com> |
202 | ||
203 | * ld.h (struct ld_config_type): Add new field: warn_orphan. | |
204 | * ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and | |
205 | OPTION_NO_WARN_ORPHAN. | |
206 | * lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan. | |
207 | (parse_args): Handle the new options. | |
208 | * ldemul.c (ldemul_place_orphan): If requested, generate a warning | |
209 | message when an orphan section is placed in the output file. | |
210 | * ld.texinfo: Document the new option. | |
211 | * NEWS: Mention the new feature. | |
212 | ||
15c7659f AT |
213 | 2015-04-02 Andrew Turner <andrew@freebsd.org> |
214 | ||
215 | * Makefile.am: Add FreeBSD aarch64 files. | |
216 | * Makefile.in: Regenerate. | |
217 | * configure.tgt: Add aarch64-*-freebsd* target triple. | |
218 | * emulparams/aarch64fbsd.sh: New file. | |
219 | * emulparams/aarch64fbsdb.sh: New file. | |
220 | ||
a0bde398 L |
221 | 2015-04-01 H.J. Lu <hongjiu.lu@intel.com> |
222 | ||
223 | * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work | |
224 | around a GCC uninitialized warning bug fixed in GCC 4.6. | |
225 | ||
4106101c MS |
226 | 2015-04-01 Tejas Belagod <tejas.belagod@arm.com> |
227 | ||
228 | * emultempl/aarch64elf.em | |
229 | (aarch64_elf_create_output_section_statements): Add parameter in | |
230 | bfd_elf${ELFSIZE}_aarch64_set_options call. | |
231 | (OPTION_FIX_ERRATUM_843419): Define. | |
232 | (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419. | |
233 | (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419. | |
234 | ||
16c1c9d6 CG |
235 | 2015-04-01 Chen Gang <gang.chen.5i5j@gmail.com> |
236 | ||
237 | * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for | |
238 | relocating operation. | |
239 | ||
6c1aca3e AM |
240 | 2015-04-01 Alan Modra <amodra@gmail.com> |
241 | ||
875b5b9d | 242 | PR ld/18176 |
6c1aca3e AM |
243 | * ldlang.c (lang_size_sections): When alignment of sections |
244 | results in relro base adjustment being too large, don't go lower | |
245 | than the initial value. | |
246 | * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment. | |
247 | * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE | |
248 | alignment when SEGMENT_SIZE is the same as MAXPAGESIZE. | |
249 | ||
4a0bc59e AM |
250 | 2015-04-01 Alan Modra <amodra@gmail.com> |
251 | ||
252 | * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't | |
253 | init ehdr_start_save. | |
254 | ||
42271ec5 AM |
255 | 2015-04-01 Alan Modra <amodra@gmail.com> |
256 | ||
257 | * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and | |
258 | ldemul-list.h. | |
259 | (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c, | |
260 | eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c, | |
261 | eelf32ppcsim.c): Rearrange deps for consistency. | |
262 | * Makefile.in: Regenerate. | |
263 | ||
4e791d0f ES |
264 | 2015-04-01 Ed Schouten <ed@nuxi.nl> |
265 | ||
266 | * emultempl/elf32.em (gld*_before_allocation): Zero-initialize | |
267 | the ehdr_start_save variable. | |
268 | ||
6036f486 ES |
269 | 2015-03-31 Ed Schouten <ed@nuxi.nl> |
270 | ||
271 | * Makefile.am (ALL_64_EMULATION_SOURCES): Add | |
272 | eelf_x86_64_cloudabi.c. | |
273 | (eelf_x86_64_cloudabi.c): New. | |
274 | * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for | |
275 | x86_64-*-cloudabi*. | |
276 | * Makefile.in: Regenerated. | |
277 | * emulparams/elf_x86_64_cloudabi.sh: New file. | |
278 | ||
f24173eb L |
279 | 2015-03-31 H.J. Lu <hongjiu.lu@intel.com> |
280 | ||
281 | * configure.ac (AM_ZLIB): Removed. | |
282 | * Makefile.in: Regenerated. | |
283 | * config.in: Likewise. | |
284 | * configure: Likewise. | |
285 | ||
d9ced15d MS |
286 | 2015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com> |
287 | ||
288 | * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section | |
289 | alignment to 2. | |
290 | ||
499c37b5 MS |
291 | 2015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com> |
292 | ||
293 | * emultempl/aarch64elf.em | |
294 | (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout. | |
295 | ||
b3862264 CG |
296 | 2015-03-18 Chen Gang <gang.chen.5i5j@gmail.com> |
297 | ||
298 | * ldmain.c (main): Use %F instead of %X for einfo. | |
299 | ||
daf220f0 AM |
300 | 2015-03-02 Alan Modra <amodra@gmail.com> |
301 | ||
302 | * ld.texinfo (Options <-z nocopyreloc>): Rewrite. | |
303 | ||
f0673d20 NC |
304 | 2015-02-27 Nick Clifton <nickc@redhat.com> |
305 | ||
306 | PR ld/17900 | |
307 | * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the | |
308 | sense of the following memory region attribute characters. | |
309 | ||
330b17b3 AM |
310 | 2015-02-27 Alan Modra <amodra@gmail.com> |
311 | ||
312 | * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries. | |
313 | (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c, | |
314 | eh8300sxelf_linux.c): Do not invoke genscripts here. | |
315 | * Makefile.in: Regenerate. | |
316 | ||
685080f2 NC |
317 | 2015-02-24 Nick Clifton <nickc@redhat.com> |
318 | ||
319 | * Makefile.am (ev850.c): Add dependency upon | |
320 | $(srcdir)/emultempl/v850elf.em. | |
321 | (ev850_rh850.c): Likewise. | |
322 | * Makefile.in: Regenerate. | |
323 | * emultempl/v850elf.em: New file. | |
324 | * emulparams/v850.sh (EXTRA_EM_FILE): Define. | |
325 | * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define. | |
326 | * scripttempl/v850.sc: Add .note.renesas section. | |
327 | * scripttempl/v850_rh850.sc: Likewise. | |
328 | ||
cb072816 SKS |
329 | 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
330 | ||
331 | * scripttempl/avr.sc: Add new user_signatures region. Define and | |
332 | use symbols for all region lengths. | |
333 | * scripttempl/avrtiny.sc: Define and use symbols for all region | |
334 | lengths. | |
335 | ||
5518c738 YS |
336 | 2015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp> |
337 | ||
338 | * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations. | |
339 | * Makefile.in: Regenerate. | |
340 | * configure.tgt: Add h8300-*-linux | |
341 | * emulparams/h8300elf_linux.sh: Add new emulation. | |
342 | * emulparams/h8300helf_linux.sh: Likewise. | |
343 | * emulparams/h8300self_linux.sh: Likewise. | |
344 | * emulparams/h8300sxelf_linux.sh: Likewise. | |
345 | ||
f971c12f NC |
346 | 2015-02-23 Nick Clifton <nickc@redhat.com> |
347 | ||
348 | * lexsup.c (parse_args): Produce a more reasonable error message | |
349 | when -ixxx or -rxxx is the last option on the linker command line. | |
350 | ||
f58926a6 L |
351 | 2015-02-14 H.J. Lu <hongjiu.lu@intel.com> |
352 | ||
353 | PR ld/17973 | |
354 | * testplug2.c (allsymbolsread_silent): New. | |
355 | (set_register_hook): Handle allsymbolsreadsilent. | |
356 | (onall_symbols_read): Skip a message if allsymbolsread_silent is | |
357 | TRUE. | |
358 | ||
ce875075 AM |
359 | 2015-02-14 Alan Modra <amodra@gmail.com> |
360 | ||
361 | PR ld/17973 | |
362 | * ldlang.h (struct lang_input_statement_flags): Add lto_output. | |
363 | * ldlang.c (lang_process): Don't set loading_lto_outputs. | |
364 | * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output | |
365 | to bfd. | |
366 | * plugin.c (add_input_file, add_input_library): Set flags.lto_output. | |
367 | ||
b0619670 L |
368 | 2015-02-13 H.J. Lu <hongjiu.lu@intel.com> |
369 | ||
370 | * NEWS: Mention support for LLVM plugin. | |
371 | ||
66bc8739 AM |
372 | 2015-02-13 Alan Modra <amodra@gmail.com> |
373 | ||
374 | * ld.texinfo (Options <--defsym>): Correct cross reference. | |
375 | ||
88b9e2eb L |
376 | 2015-02-11 H.J. Lu <hongjiu.lu@intel.com> |
377 | ||
378 | * lexsup.c (ld_options): Add --[no-]map-whole-files for gold | |
379 | option compatibility. | |
380 | ||
45e81354 L |
381 | 2015-02-11 H.J. Lu <hongjiu.lu@intel.com> |
382 | ||
383 | * plugin.c (message): Output "warning:" for LDPL_WARNING. Output | |
384 | "error:" for LDPL_FATAL and LDPL_ERROR. | |
385 | * testplug2.c (parse_option): Handle fatal, error and warning. | |
386 | ||
e3001fd9 L |
387 | 2015-02-11 H.J. Lu <hongjiu.lu@intel.com> |
388 | ||
389 | * testplug2.c (dump_tv_tag): Removed. | |
390 | (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't | |
391 | closed. | |
392 | * testplug3.c (dump_tv_tag): Removed. | |
393 | (onclaim_file): Fix typo. | |
394 | ||
7275e869 L |
395 | 2015-02-11 H.J. Lu <hongjiu.lu@intel.com> |
396 | ||
397 | PR ld/17878 | |
398 | * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and | |
399 | libldtestplug3.la. | |
400 | (libldtestplug2_la_SOURCES): New. | |
401 | (libldtestplug2_la_CFLAGS): Likewise. | |
402 | (libldtestplug2_la_LDFLAGS): Likewise. | |
403 | (libldtestplug3_la_SOURCES): New. | |
404 | (libldtestplug3_la_CFLAGS): Likewise. | |
405 | (libldtestplug3_la_LDFLAGS): Likewise. | |
406 | * Makefile.in: Regenerated. | |
407 | * testplug2.c: New file. | |
408 | * testplug3.c: Likewise. | |
409 | ||
b9dc5a87 L |
410 | 2015-02-11 H.J. Lu <hongjiu.lu@intel.com> |
411 | ||
412 | PR ld/17878 | |
413 | * plugin.c: Include ../bfd/plugin.h. | |
414 | (plugin_get_ir_dummy_bfd): Call bfd_create with | |
415 | link_info.output_bfd instead of srctemplate. Copy BFD info | |
416 | from srctemplate only if it doesn't use BFD plugin target | |
417 | vector. | |
418 | (plugin_load_plugins): Call register_ld_plugin_object_p with | |
419 | (plugin_object_p) | |
420 | (plugin_maybe_claim): Renamed to ... | |
421 | (plugin_object_p): This. Return dummy BFD target vector if | |
422 | input is calimed by plugin library, otherwise return NULL. | |
423 | Update plugin_format and plugin_dummy_bfd. | |
424 | (plugin_maybe_claim): New. Use plugin_object_p. | |
425 | ||
d319a098 L |
426 | 2015-02-10 H.J. Lu <hongjiu.lu@intel.com> |
427 | ||
428 | * plugin.c (plugin_maybe_claim): Initialize use_mmap. | |
429 | ||
38604796 L |
430 | 2015-02-10 H.J. Lu <hongjiu.lu@intel.com> |
431 | ||
432 | * plugin.c (plugin_input_file_t): Add use_mmap. | |
433 | (plugin_pagesize): New. | |
434 | (get_view): Use plugin_pagesize. Set use_mmap if mmap is used. | |
435 | (plugin_load_plugins): Initialize plugin_pagesize. | |
436 | (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the | |
437 | file. | |
438 | ||
fe905789 L |
439 | 2015-02-10 H.J. Lu <hongjiu.lu@intel.com> |
440 | ||
441 | * plugin.c (get_view): Align offset passed to mmap. | |
442 | ||
1d5b29cf L |
443 | 2015-02-08 H.J. Lu <hongjiu.lu@intel.com> |
444 | ||
445 | * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format | |
446 | if plugin isn't active or there is no thing more to claim. | |
447 | ||
e13419c4 L |
448 | 2015-02-08 H.J. Lu <hongjiu.lu@intel.com> |
449 | ||
450 | * plugin.c (plugin_maybe_claim): Check format against bfd_object | |
451 | directly. | |
452 | ||
93843894 L |
453 | 2015-02-07 H.J. Lu <hongjiu.lu@intel.com> |
454 | ||
455 | * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with | |
456 | ibfd. | |
457 | ||
35a1e5f3 L |
458 | 2015-02-07 H.J. Lu <hongjiu.lu@intel.com> |
459 | ||
460 | * plugin.c: Include "libbfd.h". | |
461 | (plugin_strdup): New. | |
462 | (plugin_maybe_claim): Remove the argument of pointer to struct | |
463 | ld_plugin_input_file. Open and handle input entry. | |
464 | * plugin.h (plugin_maybe_claim): Updated. | |
465 | * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly | |
466 | without passing a pointer to struct ld_plugin_input_file. | |
467 | * ldmain.c: Don't include "libbfd.h". | |
468 | (add_archive_element): Call plugin_maybe_claim directly without | |
469 | passing a pointer to struct ld_plugin_input_file. | |
470 | ||
8dfef1bd L |
471 | 2015-02-06 H.J. Lu <hongjiu.lu@intel.com> |
472 | ||
473 | * ld.texinfo: Document -z text, -z notext and -z textoff. | |
474 | * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add | |
475 | -z text, -z notext and -z textoff. | |
476 | ||
2aec968d L |
477 | 2015-02-06 H.J. Lu <hongjiu.lu@intel.com> |
478 | ||
479 | * configure.ac: Add AC_FUNC_MMAP. | |
480 | * config.in: Regenerated. | |
481 | * configure: Likewise. | |
482 | * plugin.c: Include <sys/mman.h>. | |
483 | (MAP_FAILED): New. Defined if not defined. | |
484 | (PROT_READ): Likewise. | |
485 | (MAP_PRIVATE): Likewise. | |
486 | (view_buffer_t): New. | |
487 | (plugin_input_file_t): Add view_buffer. | |
488 | (get_view): Try mmap and cache the view buffer. | |
489 | (plugin_maybe_claim): Initialize view_buffer. | |
490 | ||
119d62ff L |
491 | 2015-02-05 H.J. Lu <hongjiu.lu@intel.com> |
492 | ||
493 | * plugin.c (release_input_file): Set fd to -1 after closing it. | |
494 | (plugin_maybe_claim): Close fd only if fd != -1. | |
495 | ||
f4b78d18 L |
496 | 2015-02-05 H.J. Lu <hongjiu.lu@intel.com> |
497 | ||
498 | PR ld/17878 | |
499 | * plugin.c: Include <errno.h>. | |
500 | (errno): New. Declare if needed. | |
501 | (plugin_input_file_t): New. | |
502 | (get_input_file): Implemented. | |
503 | (get_view): Likewise. | |
504 | (release_input_file): Likewise. | |
505 | (add_symbols): Updated. | |
506 | (get_symbols): Likewise. | |
507 | (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd | |
508 | only for a bfd_object input. | |
509 | ||
6c2573b7 AM |
510 | 2015-02-02 Alan Modra <amodra@gmail.com> |
511 | ||
512 | * emultempl/ppc64elf.em (toc_section_name): New var. | |
513 | (ppc_after_open): Set it. | |
514 | (ppc_before_allocation): Use it. | |
515 | (gld${EMULATION_NAME}_after_allocation): Here too. | |
516 | ||
716db898 L |
517 | 2015-01-29 H.J. Lu <hongjiu.lu@intel.com> |
518 | ||
519 | * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p() | |
520 | with link_info.lto_plugin_active. | |
521 | * ldlang.c (lang_process): Likewise. | |
522 | * ldmain.c (add_archive_element): Likewise. | |
523 | * plugin.c (plugin_active_plugins_p): Removed. | |
524 | * plugin.h (plugin_active_plugins_p): Likewise. | |
525 | ||
37a3056a L |
526 | 2015-01-28 H.J. Lu <hongjiu.lu@intel.com> |
527 | ||
528 | * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to | |
529 | ... | |
530 | * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static. | |
531 | ||
15f7a26b L |
532 | 2015-01-28 H.J. Lu <hongjiu.lu@intel.com> |
533 | ||
534 | PR ld/17878 | |
535 | * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW. | |
536 | (get_view): New function. | |
537 | (set_tv_header): Handle LDPT_GET_VIEW. | |
538 | * testplug.c (tag_names): Add LDPT_GET_VIEW. | |
539 | (tv_get_view): New. | |
540 | (dump_tv_tag): Handle LDPT_GET_VIEW. | |
541 | (parse_tv_tag): Likewise. | |
542 | ||
dbd1e97e AM |
543 | 2015-01-28 Alan Modra <amodra@gmail.com> |
544 | ||
545 | * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define. | |
546 | * emultempl/ppc64elf.em (params): Init new field. | |
547 | (ppc_after_open): New function. | |
548 | (LDEMUL_AFTER_OPEN): Define. | |
549 | * ldlang.c (lang_final): Whitespace fix. | |
550 | ||
3f8107ab AM |
551 | 2015-01-28 James Bowman <james.bowman@ftdichip.com> |
552 | ||
553 | * Makefile.am: Add FT32 files. | |
554 | * configure.tgt: Handle FT32 target. | |
555 | * emulparams/elf32ft32.sh: New file. | |
556 | * scripttempl/ft32.sc: New file. | |
557 | * Makefile.in: Regenerate. | |
558 | ||
cc9ad334 SKS |
559 | 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
560 | ||
561 | PR 4643 | |
562 | * ldexp.c (fold_name): Fold LENGTH only after | |
563 | lang_first_phase_enum. | |
564 | * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH | |
565 | rightaway. | |
566 | * ldlang.h (struct memory_region_struct): Add origin_exp and | |
567 | length_exp fields. | |
568 | * ldlang.c (lang_do_memory_regions): New. | |
569 | (lang_memory_region_lookup): Initialize origin_exp and | |
570 | length_exp fields. | |
571 | (lang_process): Call lang_do_memory_regions. | |
572 | ||
c05b575a AB |
573 | 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com> |
574 | ||
575 | * ldlang.c (print_assignment): Only evaluate the expression for a | |
576 | PROVIDE'd assignment when the destination is being defined. | |
577 | Display a special message for PROVIDE'd symbols that are not being | |
578 | provided. | |
579 | ||
5ad18f16 AM |
580 | 2015-01-20 Alan Modra <amodra@gmail.com> |
581 | ||
582 | * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of.. | |
583 | (OTHER_BSS_SYMBOLS): ..this. | |
584 | (OTHER_PLT_RELOC_SECTIONS): Don't define. | |
585 | (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss. | |
586 | (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to.. | |
587 | (OTHER_RELRO_SECTIONS_2): ..here. | |
588 | * scripttempl/elf.sc: Move SBSS too when DATA_SDATA. | |
589 | ||
23283c1b AM |
590 | 2015-01-20 Alan Modra <amodra@gmail.com> |
591 | ||
592 | * emulparams/elf64ppc.sh (BSS_PLT): Don't define. | |
593 | (OTHER_READWRITE_SECTIONS): Move .branch_lt to.. | |
594 | (OTHER_RELRO_SECTIONS_2): ..here. | |
595 | (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT, | |
596 | PLT_BEFORE_GOT): Define. | |
597 | * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/ | |
598 | PLT_BEFORE_GOT combination. | |
599 | (DATA_GOT, SDATA_GOT): Don't define if either is already defined. | |
600 | ||
3e2b0f31 AM |
601 | 2015-01-20 Alan Modra <amodra@gmail.com> |
602 | ||
603 | * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to.. | |
604 | (OTHER_RELRO_SECTIONS_2): ..here, new define. | |
605 | * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2. | |
606 | ||
c4621b33 AM |
607 | 2015-01-19 Alan Modra <amodra@gmail.com> |
608 | ||
3e2aa5bb | 609 | PR ld/17615 |
c4621b33 AM |
610 | * ldlang.c (lang_process): Run lang_common before lang_gc_sections. |
611 | ||
52db4ec2 JW |
612 | 2015-01-14 Jiong Wang <jiong.wang@arm.com> |
613 | ||
614 | * ld-arm/elf32-reject.s: New testcase. | |
615 | * ld-arm/elf32-reject.d: Likewise. | |
616 | * ld-arm/elf32-reject-pie.s: Likewise. | |
617 | * ld-arm/elf32-reject-pie.d: Likewise. | |
618 | * ld-arm/arm-elf.exp: Run new testcases. | |
619 | * ld-arm/ifunc-7.s: Delete f2/f4 test items. | |
620 | * ld-arm/ifunc-7.rd: Likewise. | |
621 | * ld-arm/ifunc-7.gd: Likewise. | |
622 | * ld-arm/ifunc-7.dd: Likewise. | |
623 | * ld-arm/ifunc-8.s: Likewise. | |
624 | * ld-arm/ifunc-8.rd: Likewise. | |
625 | * ld-arm/ifunc-8.gd: Likewise. | |
626 | * ld-arm/ifunc-8.dd: Likewise. | |
627 | ||
efd321f9 AM |
628 | 2015-01-01 Alan Modra <amodra@gmail.com> |
629 | ||
630 | * ldver.c (ldversion): Just print current year. | |
631 | ||
b90efa5b | 632 | 2015-01-01 Alan Modra <amodra@gmail.com> |
ca0694ad | 633 | |
b90efa5b | 634 | Update year range in copyright notice of all files. |
ca0694ad | 635 | |
b90efa5b | 636 | For older changes see ChangeLog-2014 |
252b5132 | 637 | \f |
b90efa5b | 638 | Copyright (C) 2015 Free Software Foundation, Inc. |
752937aa NC |
639 | |
640 | Copying and distribution of this file, with or without modification, | |
641 | are permitted in any medium without royalty provided the copyright | |
642 | notice and this notice are preserved. | |
643 | ||
252b5132 RH |
644 | Local Variables: |
645 | mode: change-log | |
646 | left-margin: 8 | |
647 | fill-column: 74 | |
648 | version-control: never | |
649 | End: |