Commit | Line | Data |
---|---|---|
d99b4b92 AM |
1 | 2018-04-25 Alan Modra <amodra@gmail.com> |
2 | ||
3 | * elf-linux-core.h: Disable gcc-8 string truncation warning. | |
4 | * elf.c (elfcore_write_prpsinfo): Likewise. | |
5 | ||
6 | 2018-04-25 Alan Modra <amodra@gmail.com> | |
2ac93be7 AM |
7 | |
8 | * Makefile.am: Remove arm-aout and arm-coff support. | |
9 | * config.bfd: Likewise. | |
10 | * configure.ac: Likewise. | |
11 | * targets.c: Likewise. | |
12 | * aout-arm.c: Delete. | |
13 | * armnetbsd.c: Delete. | |
14 | * riscix.c: Delete. | |
15 | * Makefile.in: Regenerate. | |
16 | * configure: Regenerate. | |
17 | * po/SRC-POTFILES.in: Regenerate. | |
18 | ||
aa4a8c2a NC |
19 | 2018-04-24 Nick Clifton <nickc@redhat.com> |
20 | ||
db0c309f NC |
21 | PR 23113 |
22 | * elf.c (ignore_section_sym): Check for the output_section pointer | |
23 | being NULL before dereferencing it. | |
24 | ||
aa4a8c2a NC |
25 | PR 23110 |
26 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for | |
27 | a negative PE_DEBUG_DATA size before iterating over the debug data. | |
28 | ||
b9f26d2e AM |
29 | 2018-04-23 Alan Modra <amodra@gmail.com> |
30 | ||
31 | * elf-linux-core.h: Revert last change. | |
32 | * elf.c: Likewise. | |
33 | ||
bf82069d NC |
34 | 2018-04-23 Nick Clifton <nickc@redhat.com> |
35 | ||
36 | PR 23056 | |
37 | * aoutx.h (aout_get_external_symbols): Allocate an extra byte at | |
38 | the end of the string table, and zero it. | |
39 | ||
5a6312e8 AM |
40 | 2018-04-23 Alan Modra <amodra@gmail.com> |
41 | ||
42 | * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable | |
43 | gcc-8 string truncation warning. | |
44 | (swap_linux_prpsinfo32_ugid16_out): Likewise. | |
45 | (swap_linux_prpsinfo64_ugid32_out): Likewise. | |
46 | (swap_linux_prpsinfo64_ugid16_out): Likewise. | |
47 | * elf.c (elfcore_write_prpsinfo): Likewise. | |
48 | ||
bf82069d NC |
49 | 2018-04-23 Nick Clifton <nickc@redhat.com> |
50 | ||
51 | PR 23056 | |
52 | * aoutx.h (aout_get_external_symbols): Allocate an extra byte at | |
53 | the end of the string table, and zero it. | |
54 | ||
4352556b AM |
55 | 2018-04-20 Alan Modra <amodra@gmail.com> |
56 | ||
57 | PR 22978 | |
58 | * elf32-hppa.c (got_relocs_needed): Add extra param to special | |
59 | case both dtprel and tprel relocs. | |
60 | (allocate_dynrelocs): Adjust conditions for got relocs. | |
61 | (elf32_hppa_relocate_section): Likewise for local sym got relocs. | |
62 | Emit dynamic relocs on TLS GOT entries for shared libraries, | |
63 | not when pic. Omit dynamic reloc on dtprel entry when local, | |
64 | and on tprel entry when local and executable. | |
65 | ||
f6a8b8c7 AM |
66 | 2018-04-19 Alan Modra <amodra@gmail.com> |
67 | ||
68 | PR 22537 | |
69 | * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1. | |
70 | (hppa_type_of_stub): Don't return a long branch stub for | |
71 | symbols other than those defined statically. | |
72 | ||
8e415ce8 AM |
73 | 2018-04-19 Alan Modra <amodra@gmail.com> |
74 | ||
75 | * Makefile.am: Revert 2018-04-18 coff-mips changes. | |
76 | * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec | |
77 | to selvecs for mips targets change 2018-04-18. | |
78 | * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec | |
79 | and mips_ecoff_bele_vec. | |
80 | * targets.c: Likewise. | |
81 | * coff-mips.c: Resurrect. | |
82 | * Makefile.in: Regenerate. | |
83 | * configure: Regenerate. | |
84 | * po/SRC-POTFILES.in: Regenerate. | |
85 | ||
3596d8ce AM |
86 | 2018-04-18 Alan Modra <amodra@gmail.com> |
87 | ||
88 | * Makefile.am: Remove mips aout and coff support. | |
89 | * config.bfd: Likewise. | |
90 | * configure.ac: Likewise. | |
91 | * targets.c: Likewise. | |
92 | * coff-mips.c: Delete | |
93 | * mipsbsd.c: Delete | |
94 | * pe-mips.c: Delete | |
95 | * pei-mips.c: Delete | |
96 | * Makefile.in: Regenerate. | |
97 | * configure: Regenerate. | |
98 | * po/SRC-POTFILES.in: Regenerate. | |
99 | ||
d9dd2045 L |
100 | 2018-04-17 H.J. Lu <hongjiu.lu@intel.com> |
101 | ||
102 | * elf32-i386.c (elf32_bed): Define before including | |
103 | "elf32-target.h". | |
104 | * elf64-x86-64.c (elf64_bed): Define before including | |
105 | "elf64-target.h". | |
106 | (elf32_bed): Define before including "elf32-target.h". | |
107 | ||
e4e6a73d L |
108 | 2018-04-17 H.J. Lu <hongjiu.lu@intel.com> |
109 | ||
110 | PR ld/23055 | |
111 | * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a | |
112 | normal input file with compatible relocation. | |
113 | ||
c65c21e1 AM |
114 | 2018-04-18 Alan Modra <amodra@gmail.com> |
115 | ||
116 | * Makefile.am: Remove support for assorted i386 aout and coff targets. | |
117 | * config.bfd: Likewise. | |
118 | * configure.ac: Likewise. | |
119 | * doc/bfdint.texi: Likewise. | |
120 | * targets.c: Likewise. | |
121 | * freebsd.h: Delete. | |
122 | * i386dynix.c: Delete. | |
123 | * i386freebsd.c: Delete. | |
124 | * i386linux.c: Delete. | |
125 | * i386mach3.c: Delete. | |
126 | * i386netbsd.c: Delete. | |
127 | * i386os9k.c: Delete. | |
128 | * Makefile.in: Regenerate. | |
129 | * configure: Regenerate. | |
130 | * po/SRC-POTFILES.in: Regenerate. | |
131 | ||
884d4d8a | 132 | 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com> |
3f0a5f17 ME |
133 | |
134 | Microblaze Target: PIC data text relative | |
135 | ||
136 | * bfd/reloc.c (2 new BFD relocations): | |
137 | BFD_RELOC_MICROBLAZE_64_TEXTPCREL & | |
138 | BFD_RELOC_MICROBLAZE_64_TEXTPCREL | |
139 | * bfd/bfd-in2.h: Regenerate | |
140 | * bfd/libbfd.h: Regenerate | |
141 | * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3 | |
142 | new relocs and handle them in both relocate and relax functions. | |
143 | (microblaze_elf_reloc_type_lookup): add mapping between for new | |
144 | bfd relocs. | |
145 | (microblaze_elf_relocate_section): Handle new relocs in case of | |
146 | elf relocation. | |
147 | (microblaze_elf_relax_section): Handle new relocs for elf relaxation. | |
148 | ||
6327533b NC |
149 | 2018-04-17 Nick Clifton <nickc@redhat.com> |
150 | ||
808346fc NC |
151 | PR 23055 |
152 | * aoutx.h (find_nearest_line): Check that the symbol name exists | |
153 | and is long enough, before attempting to see if it is for a .o | |
154 | file. | |
155 | * hash.c (bfd_hash_hash): Add an assertion that the string is not | |
156 | NULL. | |
157 | * linker.c (bfd_link_hash_lookup): Fail if the table or string are | |
158 | NULL. | |
159 | (_bfd_generic_link_add_archive_symbols): Fail if an archive entry | |
160 | has no name. | |
161 | ||
6327533b NC |
162 | PR 23065 |
163 | * dwarf2.c (concat_filename): Check for a NULL table pointer. | |
164 | ||
e9af4700 NC |
165 | 2018-04-16 Nick Clifton <nickc@redhat.com> |
166 | ||
167 | PR 23061 | |
168 | * coffgen.c (coff_pointerize_aux): Check for an out of range | |
169 | fixup. | |
170 | ||
ddb00039 AM |
171 | 2018-04-16 Alan Modra <amodra@gmail.com> |
172 | ||
173 | * Makefile.am: Remove arm-epoc-pe support. | |
174 | * coff-arm.c: Likewise. | |
175 | * config.bfd: Likewise. | |
176 | * configure.ac: Likewise. | |
177 | * targets.c: Likewise. | |
178 | * epoc-pe-arm.c: Delete. | |
179 | * epoc-pei-arm.c: Delete. | |
180 | * Makefile.in: Regenerate. | |
181 | * configure: Regenerate. | |
182 | * po/SRC-POTFILES.in: Regenerate. | |
183 | ||
c9098af4 AM |
184 | 2018-04-16 Alan Modra <amodra@gmail.com> |
185 | ||
186 | * Makefile.am: Remove sparc-aout and sparc-coff support. | |
187 | * config.bfd: Likewise. | |
188 | * configure.ac: Likewise. | |
189 | * targets.c: Likewise. | |
190 | * aout-sparcle.c: Delete. | |
191 | * aoutf1.h: Delete. | |
192 | * cf-sparclynx.c: Delete. | |
193 | * coff-sparc.c: Delete. | |
194 | * demo64.c: Delete. | |
195 | * sparclinux.c: Delete. | |
196 | * sparclynx.c: Delete. | |
197 | * sparcnetbsd.c: Delete. | |
198 | * sunos.c: Delete. | |
199 | * Makefile.in: Regenerate. | |
200 | * configure: Regenerate. | |
201 | * po/SRC-POTFILES.in: Regenerate. | |
202 | ||
dc12032b AM |
203 | 2018-04-16 Alan Modra <amodra@gmail.com> |
204 | ||
205 | * Makefile.am: Remove m68k-aout and m68k-coff support. | |
206 | * aoutf1.h: Likewise. | |
207 | * aoutx.h: Likewise. | |
208 | * archive.c: Likewise. | |
209 | * bfd-in.h: Likewise. | |
210 | * bfd.c: Likewise. | |
211 | * coffcode.h: Likewise. | |
212 | * coffswap.h: Likewise. | |
213 | * config.bfd: Likewise. | |
214 | * configure.ac: Likewise. | |
215 | * configure.host: Likewise. | |
216 | * doc/bfd.texinfo: Likewise. | |
217 | * doc/bfdint.texi: Likewise. | |
218 | * freebsd.h: Likewise. | |
219 | * gen-aout.c: Likewise. | |
220 | * hpux-core.c: Likewise. | |
221 | * libaout.h: Likewise. | |
222 | * libbfd-in.h: Likewise. | |
223 | * pdp11.c: Likewise. | |
224 | * peicode.h: Likewise. | |
225 | * riscix.c: Likewise. | |
226 | * targets.c: Likewise. | |
227 | * aout0.c: Delete. | |
228 | * coff-apollo.c: Delete. | |
229 | * coff-aux.c: Delete. | |
230 | * coff-m68k.c: Delete. | |
231 | * coff-svm68k.c: Delete. | |
232 | * coff-u68k.c: Delete. | |
233 | * hosts/delta68.h: Delete. | |
234 | * hosts/hp300bsd.h: Delete. | |
235 | * hosts/m68kaux.h: Delete. | |
236 | * hosts/news.h: Delete. | |
237 | * hp300bsd.c: Delete. | |
238 | * hp300hpux.c: Delete. | |
239 | * liboasys.h: Delete. | |
240 | * m68k4knetbsd.c: Delete. | |
241 | * m68klinux.c: Delete. | |
242 | * m68knetbsd.c: Delete. | |
243 | * oasys.c: Delete. | |
244 | * versados.c: Delete. | |
245 | * Makefile.in: Regenerate. | |
246 | * bfd-in2.h: Regenerate. | |
247 | * configure: Regenerate. | |
248 | * libbfd.h: Regenerate. | |
249 | * po/SRC-POTFILES.in: Regenerate. | |
250 | ||
211dc24b AM |
251 | 2018-04-16 Alan Modra <amodra@gmail.com> |
252 | ||
253 | * Makefile.am: Remove sh5 and sh64 support. | |
254 | * archures.c: Likewise. | |
255 | * config.bfd: Likewise. | |
256 | * configure.ac: Likewise. | |
257 | * cpu-sh.c: Likewise. | |
258 | * elf32-sh-relocs.h: Likewise. | |
259 | * elf32-sh.c: Likewise. | |
260 | * targets.c: Likewise. | |
261 | * elf32-sh64-com.c: Delete. | |
262 | * elf32-sh64.c: Delete. | |
263 | * elf32-sh64.h: Delete. | |
264 | * elf64-sh64.c: Delete. | |
265 | * Makefile.in: Regenerate. | |
266 | * bfd-in2.h: Regenerate. | |
267 | * configure: Regenerate. | |
268 | * po/SRC-POTFILES.in: Regenerate. | |
269 | ||
4db9937a AM |
270 | 2018-04-16 Alan Modra <amodra@gmail.com> |
271 | ||
272 | * Makefile.am: Remove sh-symbianelf support. | |
273 | * config.bfd: Likewise. | |
274 | * configure.ac: Likewise. | |
275 | * targets.c: Likewise. | |
276 | * elf32-sh-symbian.c: Delete. | |
277 | * Makefile.in: Regenerate. | |
278 | * configure: Regenerate. | |
279 | * po/SRC-POTFILES.in: Regenerate. | |
280 | ||
9f5d1593 AM |
281 | 2018-04-16 Alan Modra <amodra@gmail.com> |
282 | ||
283 | * Makefile.am: Remove vax-bsd and vax-ultrix support. | |
284 | * config.bfd: Likewise. | |
285 | * configure.ac: Likewise. | |
286 | * targets.c: Likewise. | |
287 | * vaxbsd.c: Delete. | |
288 | * Makefile.in: Regenerate. | |
289 | * configure: Regenerate. | |
290 | * po/SRC-POTFILES.in: Regenerate. | |
291 | ||
a9a4b302 AM |
292 | 2018-04-16 Alan Modra <amodra@gmail.com> |
293 | ||
294 | * Makefile.am: Remove w65 support. | |
295 | * archures.c: Likewise. | |
296 | * coffcode.h: Likewise. | |
297 | * config.bfd: Likewise. | |
298 | * configure.ac: Likewise. | |
299 | * targets.c: Likewise. | |
300 | * coff-w65.c: Delete. | |
301 | * cpu-w65.c: Delete. | |
302 | * Makefile.in: Regenerate. | |
303 | * bfd-in2.h: Regenerate. | |
304 | * configure: Regenerate. | |
305 | * po/SRC-POTFILES.in: Regenerate. | |
306 | ||
04cb01fd AM |
307 | 2018-04-16 Alan Modra <amodra@gmail.com> |
308 | ||
309 | * Makefile.am: Remove we32k support. | |
310 | * archures.c: Likewise. | |
311 | * coffcode.h: Likewise. | |
312 | * config.bfd: Likewise. | |
313 | * configure.ac: Likewise. | |
314 | * targets.c: Likewise. | |
315 | * coff-we32k.c: Delete. | |
316 | * cpu-we32k.c: Delete. | |
317 | * Makefile.in: Regenerate. | |
318 | * bfd-in2.h: Regenerate. | |
319 | * configure: Regenerate. | |
320 | * po/SRC-POTFILES.in: Regenerate. | |
321 | ||
c2bf1eec AM |
322 | 2018-04-16 Alan Modra <amodra@gmail.com> |
323 | ||
324 | * Makefile.am: Remove m88k support. | |
325 | * aoutx.h: Likewise. | |
326 | * archures.c: Likewise. | |
327 | * coffcode.h: Likewise. | |
328 | * coffswap.h: Likewise. | |
329 | * config.bfd: Likewise. | |
330 | * configure.ac: Likewise. | |
331 | * cpu-ns32k.c: Likewise. | |
332 | * elf32-nds32.c: Likewise. | |
333 | * mach-o.c: Likewise. | |
334 | * netbsd-core.c: Likewise. | |
335 | * reloc.c: Likewise. | |
336 | * targets.c: Likewise. | |
337 | * coff-m88k.c: Delete. | |
338 | * cpu-m88k.c: Delete. | |
339 | * elf32-m88k.c: Delete. | |
340 | * hosts/m88kmach3.h: Delete. | |
341 | * m88kmach3.c: Delete. | |
342 | * m88kopenbsd.c: Delete. | |
343 | * Makefile.in: Regenerate. | |
344 | * bfd-in2.h: Regenerate. | |
345 | * configure: Regenerate. | |
346 | * po/SRC-POTFILES.in: Regenerate. | |
347 | ||
6793974d AM |
348 | 2018-04-16 Alan Modra <amodra@gmail.com> |
349 | ||
350 | * Makefile.am: Remove i370 support. | |
351 | * archures.c: Likewise. | |
352 | * config.bfd: Likewise. | |
353 | * configure.ac: Likewise. | |
354 | * targets.c: Likewise. | |
355 | * cpu-i370.c: Delete. | |
356 | * elf32-i370.c: Delete. | |
357 | * Makefile.in: Regenerate. | |
358 | * bfd-in2.h: Regenerate. | |
359 | * configure: Regenerate. | |
360 | * po/SRC-POTFILES.in: Regenerate. | |
361 | ||
e82aa794 AM |
362 | 2018-04-16 Alan Modra <amodra@gmail.com> |
363 | ||
364 | * Makefile.am: Remove h8500 support. | |
365 | * archures.c: Likewise. | |
366 | * coffcode.h: Likewise. | |
367 | * config.bfd: Likewise. | |
368 | * configure.ac: Likewise. | |
369 | * targets.c: Likewise. | |
370 | * coff-h8500.c: Delete. | |
371 | * cpu-h8500.c: Delete. | |
372 | * Makefile.in: Regenerate. | |
373 | * bfd-in2.h: Regenerate. | |
374 | * configure: Regenerate. | |
375 | * po/SRC-POTFILES.in: Regenerate. | |
376 | ||
fe0bf0fd AM |
377 | 2018-04-16 Alan Modra <amodra@gmail.com> |
378 | ||
379 | * Makefile.am: Remove h8300-coff support. | |
380 | * coffcode.h: Likewise. | |
381 | * config.bfd: Likewise. | |
382 | * configure.ac: Likewise. | |
383 | * reloc16.c: Likewise. | |
384 | * targets.c: Likewise. | |
385 | * coff-h8300.c: Delete. | |
386 | * Makefile.in: Regenerate. | |
387 | * configure: Regenerate. | |
388 | * po/SRC-POTFILES.in: Regenerate. | |
389 | ||
fdef3943 AM |
390 | 2018-04-16 Alan Modra <amodra@gmail.com> |
391 | ||
392 | * Makefile.am: Remove IEEE 695 support. | |
393 | * archures.c: Likewise. | |
394 | * bfd.c: Likewise. | |
395 | * config.bfd: Likewise. | |
396 | * configure.ac: Likewise. | |
397 | * doc/bfd.texinfo: Likewise. | |
398 | * doc/bfdint.texi: Likewise. | |
399 | * doc/bfdsumm.texi: Likewise. | |
400 | * section.c: Likewise. | |
401 | * targets.c: Likewise. | |
402 | * ieee.c: Delete. | |
403 | * libieee.h: Delete. | |
404 | * Makefile.in: Regenerate. | |
405 | * bfd-in2.h: Regenerate. | |
406 | * configure: Regenerate. | |
407 | * po/SRC-POTFILES.in: Regenerate. | |
408 | ||
de96689e AM |
409 | 2018-04-16 Alan Modra <amodra@gmail.com> |
410 | ||
411 | * config.bfd: Remove tandem support. | |
412 | ||
5972ac73 AM |
413 | 2018-04-16 Alan Modra <amodra@gmail.com> |
414 | ||
415 | * Makefile.am: Remove newsos3 support. | |
416 | * aoutx.h: Likewise. | |
417 | * config.bfd: Likewise. | |
418 | * configure.ac: Likewise. | |
419 | * targets.c: Likewise. | |
420 | * newsos3.c: Delete. | |
421 | * Makefile.in: Regenerate. | |
422 | * configure: Regenerate. | |
423 | * po/SRC-POTFILES.in: Regenerate. | |
424 | ||
b4b594e3 AM |
425 | 2018-04-16 Alan Modra <amodra@gmail.com> |
426 | ||
427 | * Makefile.am: Remove netware support. | |
428 | * bfd-in.h: Likewise. | |
429 | * bfd.c: Likewise. | |
430 | * config.bfd: Likewise. | |
431 | * configure.ac: Likewise. | |
432 | * doc/bfdint.texi: Likewise. | |
433 | * ecoff.c: Likewise. | |
434 | * targets.c: Likewise. | |
435 | * libnlm.h: Delete. | |
436 | * nlm-target.h: Delete. | |
437 | * nlm.c: Delete. | |
438 | * nlm32-alpha.c: Delete. | |
439 | * nlm32-i386.c: Delete. | |
440 | * nlm32-ppc.c: Delete. | |
441 | * nlm32-sparc.c: Delete. | |
442 | * nlm32.c: Delete. | |
443 | * nlm64.c: Delete. | |
444 | * nlmcode.h: Delete. | |
445 | * nlmswap.h: Delete. | |
446 | * Makefile.in: Regenerate. | |
447 | * bfd-in2.h: Regenerate. | |
448 | * configure: Regenerate. | |
449 | * po/SRC-POTFILES.in: Regenerate. | |
450 | ||
fceadf09 AM |
451 | 2018-04-16 Alan Modra <amodra@gmail.com> |
452 | ||
453 | * archures.c: Remove tahoe support. | |
454 | * config.bfd: Likewise. | |
455 | * configure.ac: Likewise. | |
456 | * hosts/tahoe.h: Delete. | |
457 | * bfd-in2.h: Regenerate. | |
458 | * configure: Regenerate. | |
459 | ||
702d1671 AM |
460 | 2018-04-14 Alan Modra <amodra@gmail.com> |
461 | ||
462 | * elf-bfd.h (struct elf_backend_data): Add relropagesize. | |
463 | * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and | |
464 | sanity test. | |
465 | (elfNN_bed): Init relropagesize. | |
466 | * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to | |
467 | select relropagesize. | |
468 | * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000. | |
469 | (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE. | |
470 | (ELF_MINPAGESIZE): Don't define. | |
471 | * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000. | |
472 | (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE. | |
473 | * bfd-in2.h: Regenerate. | |
474 | ||
03aa9684 AM |
475 | 2018-04-14 Alan Modra <amodra@gmail.com> |
476 | ||
477 | * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend | |
478 | on __QNXTARGET__ define. | |
479 | ||
24acfe5e AM |
480 | 2018-04-14 Alan Modra <amodra@gmail.com> |
481 | ||
482 | * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss* | |
483 | to obsolete list. | |
484 | ||
a8eb42a8 AM |
485 | 2018-04-11 Alan Modra <amodra@gmail.com> |
486 | ||
487 | * aout-adobe.c: Delete. | |
488 | * bout.c: Delete. | |
489 | * coff-i860.c: Delete. | |
490 | * coff-i960.c: Delete. | |
491 | * cpu-i860.c: Delete. | |
492 | * cpu-i960.c: Delete. | |
493 | * elf32-i860.c: Delete. | |
494 | * elf32-i960.c: Delete. | |
495 | * hosts/i860mach3.h: Delete. | |
496 | * Makefile.am: Remove i860, i960, bout, and adobe support. | |
497 | * archures.c: Remove i860 and i960 support. | |
498 | * coffcode.h: Likewise. | |
499 | * reloc.c: Likewise. | |
500 | * aoutx.h: Comment updates. | |
501 | * archive.c: Remove BOUT and i960 support. | |
502 | * bfd.c: Remove BOUT support. | |
503 | * coffswap.h: Remove i960 support. | |
504 | * config.bfd: Remove i860, i960 and adobe targets. | |
505 | * configure.ac: Remove adode, bout, i860, i960, icoff targets. | |
506 | * targets.c: Likewise. | |
507 | * ieee.c: Remove i960 support. | |
508 | * mach-o.c: Remove i860 support. | |
509 | * Makefile.in: Regenerate. | |
510 | * bfd-in2.h: Regenerate. | |
511 | * configure: Regenerate. | |
512 | * libbfd.h: Regenerate. | |
513 | * po/SRC-POTFILES.in: Regenerate. | |
514 | ||
aec2e0d2 MR |
515 | 2018-04-09 Maciej W. Rozycki <macro@mips.com> |
516 | ||
517 | * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer | |
518 | in the BFD symbol referred by the relocation. | |
519 | (mips_elf64_write_rela): Likewise. | |
520 | ||
9ccfa98b MR |
521 | 2018-04-09 Maciej W. Rozycki <macro@mips.com> |
522 | ||
523 | * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an | |
524 | error for out-of-range `r_sym' values. | |
525 | ||
3e04d765 AM |
526 | 2018-04-09 Alan Modra <amodra@gmail.com> |
527 | ||
528 | * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field. | |
529 | (struct ppc_link_hash_table): Add can_convert_all_inline_plt. | |
530 | (ppc64_elf_check_relocs): Set has_pltcall. | |
531 | (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries. | |
532 | (ppc64_elf_inline_plt): New function. | |
533 | (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals. | |
534 | * elf64-ppc.h (ppc64_elf_inline_plt): Declare. | |
535 | * elf32-ppc.c (has_pltcall): Define. | |
536 | (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt. | |
537 | (ppc_elf_check_relocs): Set has_pltcall. | |
538 | (ppc_elf_inline_plt): New function. | |
539 | (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries. | |
540 | (ppc_elf_size_dynamic_sections): Likewise. | |
541 | * elf32-ppc.h (ppc_elf_inline_plt): Declare. | |
542 | ||
23cedd1d AM |
543 | 2018-04-09 Alan Modra <amodra@gmail.com> |
544 | ||
545 | * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos. | |
546 | (is_plt_seq_reloc): New function. | |
547 | (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs. | |
548 | (ppc_elf_tls_optimize): Handle inline plt call sequence. | |
549 | (ppc_elf_relax_section): Handle PLTCALL reloc. | |
550 | (ppc_elf_relocate_section): Nop out inline plt call sequence when | |
551 | resolving locally. | |
552 | * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and | |
553 | R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE. | |
554 | (has_tls_get_addr_call): Correct comment. | |
555 | (is_branch_reloc): Add PLTCALL. | |
556 | (is_plt_seq_reloc): New function. | |
557 | (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set | |
558 | has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt | |
559 | entry for R_PPC64_PLTCALL. | |
560 | (ppc64_elf_tls_optimize): Handle inline plt call sequence. | |
561 | (ppc_type_of_stub): Handle PLTCALL reloc. | |
562 | (toc_adjusting_stub_needed): Likewise. | |
563 | (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL | |
564 | reloc insn. Nop out inline plt call sequence when resolving | |
565 | locally. Handle __tls_get_addr inline plt call optimization. | |
566 | ||
2d7ad24e AM |
567 | 2018-04-09 Alan Modra <amodra@gmail.com> |
568 | ||
569 | * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define. | |
570 | (struct ppc_stub_hash_entry): Add symtype field. | |
571 | (PLT_KEEP): Define. | |
572 | (struct ppc_link_hash_table): Add pltlocal and relpltlocal. | |
573 | (create_linkage_sections): Create pltlocal and relpltlocal. | |
574 | (ppc64_elf_check_relocs): Allow PLT relocs on local symbols. | |
575 | Set PLT_KEEP. | |
576 | (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls. | |
577 | (allocate_dynrelocs): Allocate pltlocal and relpltlocal. | |
578 | (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal. | |
579 | Keep PLT entries for inline calls against locals. | |
580 | (ppc_build_one_stub): Use pltlocal as appropriate. | |
581 | (ppc_size_one_stub): Likewise. | |
582 | (ppc64_elf_size_stubs): Set symtype. | |
583 | (build_global_entry_stubs_and_plt): Init pltlocal and write | |
584 | relpltlocal for globals. | |
585 | (write_plt_relocs_for_local_syms): Likewise for local syms. | |
586 | (ppc64_elf_relocate_section): Support PLT for local syms. | |
587 | * elf32-ppc.c (PLT_KEEP): Define. | |
588 | (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal. | |
589 | (ppc_elf_create_glink): Create pltlocal and relpltlocal. | |
590 | (ppc_elf_check_relocs): Allow PLT relocs on local symbols. | |
591 | Set PLT_KEEP. Adjust update_local_sym_info call. | |
592 | (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls. | |
593 | (allocate_dynrelocs): Allocate pltlocal and relpltlocal. | |
594 | (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal. | |
595 | (ppc_elf_relocate_section): Support PLT16 relocs for local syms. | |
596 | (write_global_sym_plt): Init pltlocal and write relpltlocal. | |
597 | (ppc_finish_symbols): Likewise for locals. | |
598 | ||
49c09209 AM |
599 | 2018-04-09 Alan Modra <amodra@gmail.com> |
600 | ||
601 | * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs | |
602 | for local symbols to.. | |
603 | (write_plt_relocs_for_local_syms): ..here. New function. | |
604 | (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for | |
605 | global symbols to.. | |
606 | (build_global_entry_stubs_and_plt): ..here. Rename from | |
607 | build_global_entry_stubs. | |
608 | (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt. | |
609 | Call write_plt_relocs_for_local_syms. | |
610 | * elf32-ppc.c (get_sym_h): New function. | |
611 | (ppc_elf_relax_section): Use get_sym_h. | |
612 | (ppc_elf_relocate_section): Move output of PLT relocs and glink | |
613 | stubs for local symbols to.. | |
614 | (ppc_finish_symbols): ..here. New function. | |
615 | (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for | |
616 | global syms to.. | |
617 | (write_global_sym_plt): ..here. New function. | |
618 | * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute. | |
619 | (ppc_finish_symbols): Declare. | |
620 | ||
08be3224 AM |
621 | 2018-04-09 Alan Modra <amodra@gmail.com> |
622 | ||
623 | * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs. | |
624 | (ppc_elf_relocate_section): Likewise. | |
625 | * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS. | |
626 | (ppc64_elf_relocate_section): Likewise. Correct PLT16 | |
627 | resolution to plt entry relative to toc pointer. | |
628 | ||
37da22e5 AM |
629 | 2018-04-09 Alan Modra <amodra@gmail.com> |
630 | ||
631 | * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL, | |
632 | TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout | |
633 | file when other TLS flags are tested in a mask. | |
634 | (TLS_MARK, NON_GOT): Define. | |
635 | (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well. | |
636 | (update_local_sym_info): Don't create got entry when NON_GOT. | |
637 | (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC. | |
638 | Set TLS_MARK. | |
639 | (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK. | |
640 | (ppc64_elf_relocate_section): Likewise. | |
641 | (ppc64_elf_tls_optimize): Don't attempt to optimize indirect | |
642 | __tls_get_addr calls lacking a marker reloc. | |
643 | * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL, | |
644 | TLS_TPRELGD): Renumber. Update comment. | |
645 | (TLS_MARK, NON_GOT): Define. | |
646 | (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well. | |
647 | (update_local_sym_info): Don't create got entry when NON_GOT. | |
648 | (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC. | |
649 | Set TLS_MARK. | |
650 | (ppc_elf_tls_optimize): Don't attempt to optimize indirect | |
651 | __tls_get_addr calls lacking a marker reloc. | |
652 | ||
a6fd92b0 L |
653 | 2018-04-06 H.J. Lu <hongjiu.lu@intel.com> |
654 | ||
655 | * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out | |
656 | R_X86_64_converted_reloc_bit. | |
657 | ||
3cba8b6c L |
658 | 2018-04-05 H.J. Lu <hongjiu.lu@intel.com> |
659 | ||
660 | PR gas/22318 | |
661 | * configure: Regenerated. | |
662 | ||
0e8452bb AM |
663 | 2018-04-05 Alan Modra <amodra@gmail.com> |
664 | ||
665 | * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL. | |
666 | (elf_hppa_info_to_howto_rel): Likewise. | |
667 | ||
8ee55178 MR |
668 | 2018-04-04 Maciej W. Rozycki <macro@mips.com> |
669 | ||
670 | * elf-hppa.h (elf_hppa_info_to_howto): Also return | |
671 | unsuccessfully for unimplemented relocations. | |
672 | (elf_hppa_info_to_howto_rel): Likewise. | |
673 | ||
5d7c8b80 MR |
674 | 2018-04-04 Maciej W. Rozycki <macro@mips.com> |
675 | ||
676 | * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the | |
677 | `bfd_error_bad_value' error and call `_bfd_error_handler' on a | |
678 | howto lookup failure. | |
679 | (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call | |
680 | accordingly. | |
681 | (elf32_i860_info_to_howto_rela): Likewise. | |
682 | (elf32_i860_relocate_splitn): Likewise. | |
683 | (elf32_i860_relocate_pc16): Likewise. | |
684 | (elf32_i860_relocate_pc26): Likewise. | |
685 | (elf32_i860_relocate_section): Likewise. | |
686 | ||
707bad1b MR |
687 | 2018-04-04 Maciej W. Rozycki <macro@mips.com> |
688 | ||
689 | * elf32-visium.c (visium_info_to_howto_rela): Correct the range | |
690 | check for `visium_elf_howto_table' table access. | |
691 | ||
0cc919dc MR |
692 | 2018-04-04 Maciej W. Rozycki <macro@mips.com> |
693 | ||
694 | * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range | |
695 | check for `iq2000_elf_howto_table' table access. | |
696 | ||
f428698e MR |
697 | 2018-04-04 Maciej W. Rozycki <macro@mips.com> |
698 | ||
699 | * elf32-frv.c (frv_info_to_howto_rela): Correct the range check | |
700 | for `elf32_frv_howto_table' table access. | |
701 | ||
7ed6f92a MR |
702 | 2018-04-04 Maciej W. Rozycki <macro@mips.com> |
703 | ||
704 | * elf32-mips.c (mips_elf32_rtype_to_howto): Also return | |
705 | unsuccessfully for placeholder howtos. | |
706 | * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise. | |
707 | * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise. | |
708 | ||
75def2ab MR |
709 | 2018-03-29 Maciej W. Rozycki <macro@mips.com> |
710 | ||
711 | * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to | |
712 | `_bfd_error_handler' and to set the `bfd_error_bad_value' error. | |
713 | ||
8b6a949a MR |
714 | 2018-03-28 Maciej W. Rozycki <macro@mips.com> |
715 | ||
716 | * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove | |
717 | ATTRIBUTE_UNUSED from `abfd'. | |
718 | ||
d81270c3 MR |
719 | 2018-03-28 Maciej W. Rozycki <macro@mips.com> |
720 | ||
721 | * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct | |
722 | `_bfd_error_handler' call formatting. | |
723 | ||
60dceb8d | 724 | 2018-03-28 Maciej W. Rozycki <macro@mips.com> |
8205a328 MR |
725 | |
726 | * elf32-mips.c (mips_info_to_howto_rel): Call | |
727 | `mips_elf32_rtype_to_howto' directly rather than via | |
728 | `->elf_backend_mips_rtype_to_howto'. | |
729 | ||
e04ef022 RL |
730 | 2018-03-28 Renlin Li <renlin.li@arm.com> |
731 | ||
732 | PR ld/22970 | |
733 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for | |
734 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12, | |
735 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC, | |
736 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12, | |
737 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC, | |
738 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12, | |
739 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC, | |
740 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12, | |
741 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC. | |
742 | (elfNN_aarch64_final_link_relocate): Support new relocations. | |
743 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new | |
744 | relocations. | |
745 | (_bfd_aarch64_elf_resolve_relocation): Support new relocations. | |
746 | ||
84f1b9fb RL |
747 | 2018-03-28 Renlin Li <renlin.li@arm.com> |
748 | ||
749 | PR ld/22970 | |
750 | * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12 | |
751 | BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC, | |
752 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12, | |
753 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC, | |
754 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12, | |
755 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC, | |
756 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12, | |
757 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC, | |
758 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12, | |
759 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC. | |
760 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for | |
761 | TLSLE_LDST16_TPREL_LO12, | |
762 | TLSLE_LDST16_TPREL_LO12_NC, | |
763 | TLSLE_LDST32_TPREL_LO12, | |
764 | TLSLE_LDST32_TPREL_LO12_NC, | |
765 | TLSLE_LDST64_TPREL_LO12, | |
766 | TLSLE_LDST64_TPREL_LO12_NC, | |
767 | TLSLE_LDST8_TPREL_LO12, | |
768 | TLSLE_LDST8_TPREL_LO12_NC. | |
769 | * bfd-in2.h: Regenerated. | |
770 | * libbfd.h: Regenerated. | |
771 | ||
f8745e1c EB |
772 | 2018-03-28 Eric Botcazou <ebotcazou@adacore.com> |
773 | ||
774 | PR ld/22972 | |
775 | * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag | |
776 | has_old_style_got_reloc. | |
777 | (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style | |
778 | relocations. Fix a couple of long lines. | |
779 | (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate | |
780 | a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style | |
781 | GOT relocations. | |
782 | ||
bf54968b L |
783 | 2018-03-25 H.J. Lu <hongjiu.lu@intel.com> |
784 | ||
785 | PR ld/23000 | |
786 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add | |
787 | ENDBR64 to the TLSDESC PLT entry. | |
788 | ||
0ccf57bd AM |
789 | 2018-03-21 Alan Modra <amodra@gmail.com> |
790 | ||
791 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting | |
792 | symbols. Use size_t counts. Delete redundant opd test. | |
793 | ||
4bad6366 AM |
794 | 2018-03-21 Alan Modra <amodra@gmail.com> |
795 | ||
796 | * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms. | |
797 | ||
bac3c8c5 AM |
798 | 2018-03-21 Alan Modra <amodra@gmail.com> |
799 | ||
800 | * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask | |
801 | field unsigned. | |
802 | (update_local_sym_info): Likewise for local_got_tls_masks. | |
803 | (ppc_elf_tls_optimize): Likewise for lgot_masks. | |
804 | ||
6a3858a6 AM |
805 | 2018-03-21 Alan Modra <amodra@gmail.com> |
806 | ||
807 | * elf64-ppc.c (ppc_size_one_stub): Fix comment typo. | |
808 | (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we | |
809 | do in size_dynamic_sections. | |
810 | ||
675e2809 AM |
811 | 2018-03-21 Alan Modra <amodra@gmail.com> |
812 | ||
813 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1] | |
814 | without first checking array bounds. | |
815 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
816 | ||
416c34d6 L |
817 | 2018-03-20 H.J. Lu <hongjiu.lu@intel.com> |
818 | ||
819 | PR ld/22983 | |
820 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set | |
821 | non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list. | |
822 | ||
315aa1cf NC |
823 | 2018-03-19 Nick Clifton <nickc@redhat.com> |
824 | ||
825 | * po/es.po: Updated Spanish translation. | |
826 | ||
0854d504 MF |
827 | 2018-03-15 Max Filippov <jcmvbkbc@gmail.com> |
828 | ||
829 | * elf32-xtensa.c (xlate_map_entry): Change types of address | |
830 | fields from 'unsigned' to 'bfd_vma'. | |
831 | (xlate_offset_with_removed_text): Use struct xlate_map_entry as | |
832 | the key argument to bsearch. Allow offsets past the end of a | |
833 | section, use the last map entry for translation of such offsets. | |
834 | ||
f9671640 KLC |
835 | 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
836 | ||
837 | * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed. | |
838 | Not support the target feature. | |
839 | (nds32_elf_ex9_itb_base): Likewise. | |
840 | (nds32_elf_ex9_import_table): Likewise. | |
841 | (nds32_elf_ex9_finish): Likewise. | |
842 | (nds32_elf_ex9_reloc_jmp): Likewise. | |
843 | (nds32_elf_get_insn_with_reg): Likewise. | |
844 | (nds32_get_local_syms): Likewise. | |
845 | (nds32_elf_ex9_replace_instruction): Likewise. | |
846 | (nds32_elf_ifc_calc): Likewise. | |
847 | (nds32_elf_ifc_finish): Likewise. | |
848 | (nds32_elf_ifc_replace): Likewise. | |
849 | (nds32_elf_ifc_reloc): Likewise. | |
850 | ||
7dda8d3c AM |
851 | 2018-03-14 Alan Modra <amodra@gmail.com> |
852 | ||
853 | * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having | |
854 | sfpr size added before defining alias symbols. | |
855 | (ppc64_elf_build_stubs): Add stub section padding before | |
856 | copying sfpr contents and defining save/restore alias symbols. | |
857 | ||
9e223787 L |
858 | 2018-03-14 H.J. Lu <hongjiu.lu@intel.com> |
859 | ||
860 | PR ld/20882 | |
861 | * elflink.c (elf_gc_mark_debug_section): Also check the local | |
862 | debug definition section. | |
863 | ||
3e33b239 NC |
864 | 2018-03-13 Nick Clifton <nickc@redhat.com> |
865 | ||
866 | PR 22113 | |
867 | * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean | |
868 | function. Add an end address parameter. Check access of the data | |
869 | pointer to make sure that they do not extend beyond the end | |
870 | address. Return FALSE if any check fails. Add the end address | |
871 | pointer to the ui structure. | |
872 | (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind | |
873 | codes to make sure that they do not extend beyond the end address | |
874 | pointer. Print an error message and return immediately if any | |
875 | check fails. | |
876 | ||
f657f8c4 NC |
877 | 2018-03-09 Nick Clifton <nickc@redhat.com> |
878 | ||
879 | * elf64-s390.c (elf_s390_relocate_section): Move check for | |
880 | relocations against non-allocated sections to before the code that | |
881 | handles ifunc relocations. | |
882 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
883 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat | |
884 | relocs against IFUNC symbols in non-allocated sections as relocs | |
885 | against FUNC symbols. | |
886 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. | |
887 | ||
347a8774 L |
888 | 2018-03-08 H.J. Lu <hongjiu.lu@intel.com> |
889 | ||
890 | PR ld/22929 | |
891 | * elf32-i386.c (elf_i386_relocate_section): Treat relocation | |
892 | against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as | |
893 | relocation against FUNC symbol. | |
894 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
895 | ||
0c1ded8d RL |
896 | 2018-03-07 Renlin Li <renlin.li@arm.com> |
897 | ||
898 | PR ld/20402 | |
899 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute | |
900 | symbol, and don't emit relocation in specific case. | |
901 | ||
0118219e AM |
902 | 2018-03-07 Alan Modra <amodra@gmail.com> |
903 | ||
904 | * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error. | |
905 | (mips_elf64_slurp_one_reloc_table): Pass on error. | |
906 | ||
dfb93f11 JC |
907 | 2018-03-03 James Cowgill <james.cowgill@mips.com> |
908 | Maciej W. Rozycki <macro@mips.com> | |
909 | ||
910 | PR ld/21900 | |
911 | * elfxx-mips.c (mips_elf_calculate_relocation): Only return | |
912 | after calling `undefined_symbol' hook if this is an error | |
913 | condition. Assume the value of 0 for the symbol requested | |
914 | otherwise. | |
915 | ||
9a2ebffd JW |
916 | 2018-03-02 Jim Wilson <jimw@sifive.com> |
917 | ||
918 | PR 22903 | |
919 | * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch | |
920 | and nop instead of 4. | |
921 | (elfNN_arch64_build_stubs): Add nop after branch. Increase size by | |
922 | 8 instead of 4. | |
923 | ||
788af978 JW |
924 | 2018-03-01 Jim Wilson <jimw@sifive.com> |
925 | ||
926 | PR 22756 | |
927 | * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use | |
928 | else if instead of if. | |
929 | ||
5224fa03 AM |
930 | 2018-03-01 Alan Modra <amodra@gmail.com> |
931 | ||
932 | * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test. | |
933 | ||
116acb2c AM |
934 | 2018-02-28 Alan Modra <amodra@gmail.com> |
935 | ||
936 | PR 22887 | |
937 | * aoutx.h (swap_std_reloc_in): Correct r_index bound check. | |
938 | ||
eef10466 NC |
939 | 2018-02-28 Nick Clifton <nickc@redhat.com> |
940 | ||
12c96342 NC |
941 | PR 22895 |
942 | PR 22893 | |
943 | * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block | |
944 | pointer. Drop unused abfd parameter. Check the size of the block | |
945 | before initialising the data field. Return the end pointer if the | |
946 | size is invalid. | |
947 | (read_attribute_value): Adjust invocations of read_n_bytes. | |
948 | ||
eef10466 NC |
949 | PR 22894 |
950 | * dwarf1.c (parse_die): Check the length of form blocks before | |
951 | advancing the data pointer. | |
952 | ||
0d329c0a AM |
953 | 2018-02-28 Alan Modra <amodra@gmail.com> |
954 | ||
955 | PR 22887 | |
956 | * aoutx.h (translate_symbol_table): Print an error message and set | |
957 | bfd_error on finding an invalid name string offset. | |
958 | ||
f6aec96d L |
959 | 2018-02-27 H.J. Lu <hongjiu.lu@intel.com> |
960 | ||
961 | * config.in: Regenerated. | |
962 | * configure: Likewise. | |
963 | * configure.ac: Add --enable-separate-code. | |
964 | (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default | |
965 | to 1 for Linux/x86 targets, | |
966 | * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if | |
967 | DEFAULT_LD_Z_SEPARATE_CODE is 1. | |
968 | ||
f3185997 NC |
969 | 2018-02-27 Nick Clifton <nickc@redhat.com> |
970 | ||
e8f5af78 NC |
971 | * aout-cris.c (swap_ext_reloc_out): Standadize error/warning |
972 | message. | |
973 | * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise. | |
974 | * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise. | |
975 | * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise. | |
976 | * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise. | |
977 | * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise. | |
978 | * elf64-sh64.c (sh_elf64_info_to_howto): Likewise. | |
979 | * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise. | |
980 | * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise. | |
981 | * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise. | |
982 | ||
f3185997 NC |
983 | PR 22875 |
984 | * elf-bfd.h (struct elf_backend_data): Change the return type of | |
985 | the elf_info_to_howto and elf_info_to_howto_rel function pointers | |
986 | to bfd_boolean. | |
987 | * elfcode.h (elf_slurp_reloc_table_from_section): Check the return | |
988 | value from the info_to_howto function and fail if that function | |
989 | failed. | |
990 | * elf32-h8300.c (elf32_h8_relocate_section): Check return value | |
991 | from the info_to_howto function. | |
992 | (elf32_h8_relax_section): Likewise. | |
993 | * elf32-lm32.c (lm32_elf_relocate_section): Likewise. | |
994 | * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise. | |
995 | * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise. | |
996 | * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. | |
997 | * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise. | |
998 | * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise. | |
999 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise. | |
1000 | * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise. | |
1001 | * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
1002 | * elfnn-riscv.c (riscv_elf_check_relocs): Likewise. | |
1003 | (riscv_elf_relocate_section): Likewise. | |
1004 | * elf-hppa.h (elf_hppa_info_to_howto): Change return type to | |
1005 | bfd_boolean. Issue an error message, set an error value and | |
1006 | return FALSE if the reloc is not recognized. | |
1007 | (elf_hppa_info_to_howto_rel): Likewise. | |
1008 | * elf-m10200.c (mn10200_info_to_howto): Likewise. | |
1009 | * elf-m10300.c (mn10300_info_to_howto): Likewise. | |
1010 | * elf.c (_bfd_elf_no_info_to_howto): Likewise. | |
1011 | * elf32-arc.c (arc_info_to_howto_rel): Likewise. | |
1012 | * elf32-arm.c (elf32_arm_info_to_howto): Likewise. | |
1013 | * elf32-avr.c (avr_info_to_howto_rela): Likewise. | |
1014 | * elf32-bfin.c (bfin_info_to_howto): Likewise. | |
1015 | * elf32-cr16.c (elf_cr16_info_to_howto): Likewise. | |
1016 | * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise. | |
1017 | * elf32-cris.c (elf_cr16c_info_to_howto_rel) | |
1018 | (cris_info_to_howto_rela): Likewise. | |
1019 | * elf32-crx.c (elf_crx_info_to_howto): Likewise. | |
1020 | * elf32-d10v.c (d10v_info_to_howto_rel): Likewise. | |
1021 | * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela): | |
1022 | Likewise. | |
1023 | * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto) | |
1024 | (elf32_dlx_info_to_howto_rel): Likewise. | |
1025 | * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise. | |
1026 | * elf32-fr30.c (fr30_info_to_howto_rela): Likewise. | |
1027 | * elf32-frv.c (frv_info_to_howto_rela) | |
1028 | (frvfdpic_info_to_howto_rel): Likewise. | |
1029 | * elf32-ft32.c (ft32_info_to_howto_rela): Likewise. | |
1030 | * elf32-gen.c (elf_generic_info_to_howto) | |
1031 | (elf_generic_info_to_howto_rel): Likewise. | |
1032 | * elf32-h8300.c (elf32_h8_info_to_howto) | |
1033 | (elf32_h8_info_to_howto_rel): Likewise. | |
1034 | * elf32-i370.c (i370_elf_info_to_howto): Likewise. | |
1035 | * elf32-i386.c (elf_i386_reloc_type_lookup) | |
1036 | (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise. | |
1037 | * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela): | |
1038 | Likewise. | |
1039 | * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise. | |
1040 | * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise. | |
1041 | * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise. | |
1042 | * elf32-lm32.c (lm32_info_to_howto_rela): Likewise. | |
1043 | * elf32-m32c.c (m32c_info_to_howto_rela): Likewise. | |
1044 | * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto): | |
1045 | Likewise. | |
1046 | * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise. | |
1047 | * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise. | |
1048 | * elf32-m68k.c (rtype_to_howto): Likewise. | |
1049 | * elf32-mcore.c (mcore_elf_info_to_howto): Likewise. | |
1050 | * elf32-mep.c (mep_info_to_howto_rela): Likewise. | |
1051 | * elf32-metag.c (metag_info_to_howto_rela): Likewise. | |
1052 | * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise. | |
1053 | * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela): | |
1054 | Likewise. | |
1055 | * elf32-moxie.c (moxie_info_to_howto_rela): Likewise. | |
1056 | * elf32-msp430.c (msp430_info_to_howto_rela): Likewise. | |
1057 | * elf32-mt.c (mt_info_to_howto_rela): Likewise. | |
1058 | * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto): | |
1059 | Likewise. | |
1060 | * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise. | |
1061 | * elf32-or1k.c (or1k_info_to_howto_rela): Likewise. | |
1062 | * elf32-pj.c (pj_elf_info_to_howto): Likewise. | |
1063 | * elf32-ppc.c (ppc_elf_info_to_howto): Likewise. | |
1064 | * elf32-pru.c (pru_elf32_info_to_howto): Likewise. | |
1065 | * elf32-rl78.c (rl78_info_to_howto_rela): Likewise. | |
1066 | * elf32-rx.c (rx_info_to_howto_rela): Likewise. | |
1067 | * elf32-s390.c (elf_s390_info_to_howto): Likewise. | |
1068 | * elf32-score.c (s3_bfd_score_info_to_howto) | |
1069 | (_bfd_score_info_to_howto): Likewise. | |
1070 | * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise. | |
1071 | * elf32-sh.c (sh_elf_info_to_howto): Likewise. | |
1072 | * elf32-spu.c (spu_elf_info_to_howto): Likewise. | |
1073 | * elf32-tic6x.c (elf32_tic6x_info_to_howto) | |
1074 | (elf32_tic6x_info_to_howto_rel): Likewise. | |
1075 | * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise. | |
1076 | * elf32-v850.c (v850_elf_info_to_howto_rel) | |
1077 | (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise. | |
1078 | * elf32-vax.c (rtype_to_howto): Likewise. | |
1079 | * elf32-visium.c (visium_info_to_howto_rela): Likewise. | |
1080 | * elf32-wasm32.c (elf32_wasm32_rtype_to_howto) | |
1081 | (elf32_wasm32_info_to_howto_rela): Likewise. | |
1082 | * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise. | |
1083 | * elf32-xgate.c (xgate_info_to_howto_rel): Likewise. | |
1084 | * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise. | |
1085 | * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise. | |
1086 | * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise. | |
1087 | * elf64-gen.c (elf_generic_info_to_howto) | |
1088 | (elf_generic_info_to_howto_rel): Likewise. | |
1089 | * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise. | |
1090 | * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise. | |
1091 | * elf64-mmix.c (mmix_info_to_howto_rela): Likewise. | |
1092 | * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise. | |
1093 | * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise. | |
1094 | * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto): | |
1095 | Likewise. | |
1096 | * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise. | |
1097 | * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela): | |
1098 | Likewise. | |
1099 | * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise. | |
1100 | * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise. | |
1101 | * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise. | |
1102 | * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise. | |
1103 | * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise. | |
1104 | * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise. | |
1105 | * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype. | |
1106 | * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype. | |
1107 | * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype. | |
1108 | * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel): | |
1109 | Default to NULL. | |
1110 | ||
1f4bace8 JW |
1111 | 2018-02-26 Jim Wilson <jimw@sifive.com> |
1112 | Stephan Schreiber <info@fs-driver.org> | |
1113 | ||
1114 | PR 15904 | |
1115 | * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl | |
1116 | call, set changed_contents and changed_relocs. Likewise after | |
1117 | successful ia64_elf_relax_br call. | |
1118 | ||
6838f2be AM |
1119 | 2018-02-26 Alan Modra <amodra@gmail.com> |
1120 | ||
1121 | * elf.c (assign_file_positions_except_relocs): Don't segfault | |
1122 | when actual number of phdrs is less than allocated. Delete | |
1123 | outdated comment. Formatting. | |
1124 | ||
38f14ab8 AM |
1125 | 2018-02-26 Alan Modra <amodra@gmail.com> |
1126 | ||
1127 | * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c, | |
1128 | * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c, | |
1129 | * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c, | |
1130 | * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c, | |
1131 | * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c, | |
1132 | * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c, | |
1133 | * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c, | |
1134 | * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c, | |
1135 | * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c, | |
1136 | * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize | |
1137 | error/warning messages. | |
1138 | ||
6e05870c AM |
1139 | 2018-02-26 Alan Modra <amodra@gmail.com> |
1140 | ||
1141 | * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c, | |
1142 | * syms.c: Standardize error/warning messages. | |
1143 | ||
59d08d6c AM |
1144 | 2018-02-26 Alan Modra <amodra@gmail.com> |
1145 | ||
1146 | * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c, | |
1147 | * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c, | |
1148 | * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c, | |
1149 | * peXXigen.c, * peicode.h: Standardize error/warning messages. | |
1150 | ||
90b6238f AM |
1151 | 2018-02-26 Alan Modra <amodra@gmail.com> |
1152 | ||
1153 | * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages. | |
1154 | ||
2c1c9679 AM |
1155 | 2018-02-26 Alan Modra <amodra@gmail.com> |
1156 | ||
1157 | * elfxx-mips.c: Standardize error/warning messages. | |
1158 | ||
9793eb77 AM |
1159 | 2018-02-26 Alan Modra <amodra@gmail.com> |
1160 | ||
1161 | * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c, | |
1162 | * elflink.c: Standardize error/warning messages. Replace use of | |
1163 | linker callback einfo with _bfd_error_handler when possible. | |
1164 | ||
0aa13fee AM |
1165 | 2018-02-26 Alan Modra <amodra@gmail.com> |
1166 | ||
1167 | * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c, | |
1168 | * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c, | |
1169 | * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c, | |
1170 | * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c, | |
1171 | * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c, | |
1172 | * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c, | |
1173 | * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c, | |
1174 | * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, | |
1175 | * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, | |
1176 | * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c, | |
1177 | * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c, | |
1178 | * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c, | |
1179 | * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c, | |
1180 | * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c, | |
1181 | * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c, | |
1182 | * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c, | |
1183 | * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c, | |
1184 | * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c, | |
1185 | * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c, | |
1186 | * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h, | |
1187 | * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize | |
1188 | unrecognized/unsupported reloc message. | |
1189 | ||
cf97bcb0 AM |
1190 | 2018-02-26 Alan Modra <amodra@gmail.com> |
1191 | ||
1192 | * elf32-ppc.c: Standardize error/warning messages. Use | |
1193 | _bfd_error_handler rather than einfo when einfo features not used. | |
1194 | * elf64-ppc.c: Likewise. | |
1195 | ||
01f7e10c AM |
1196 | 2018-02-23 Alan Modra <amodra@gmail.com> |
1197 | ||
1198 | PR 22881 | |
1199 | * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO | |
1200 | segment if no matching LOAD segment. | |
1201 | ||
e859f655 KLC |
1202 | 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
1203 | ||
1204 | * elf32-nds32.h: Define mask for ict_model. | |
1205 | ||
6e8d06db JD |
1206 | 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com> |
1207 | ||
1208 | * elfnn-ia64.c (elf_backend_can_gc_sections): Enable. | |
1209 | ||
b248d650 MR |
1210 | 2018-02-19 Maciej W. Rozycki <macro@mips.com> |
1211 | ||
1212 | Revert | |
1213 | 2018-01-12 Vlad Ivanov <vlad@ivanov.email> | |
1214 | ||
1215 | * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when | |
1216 | .reginfo section has wrong size. | |
1217 | ||
6798f8bf MR |
1218 | 2018-02-19 Maciej W. Rozycki <macro@mips.com> |
1219 | ||
1220 | * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set | |
1221 | SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and | |
1222 | `.MIPS.abiflags' sections. | |
1223 | (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo' | |
1224 | section's end. | |
1225 | ||
8772de11 MR |
1226 | 2018-02-19 Maciej W. Rozycki <macro@mips.com> |
1227 | ||
1228 | * section.c (SEC_FIXED_SIZE): New macro. | |
1229 | * bfd-in2.h: Regenerate. | |
1230 | ||
4f7fd351 MR |
1231 | 2018-02-19 Maciej W. Rozycki <macro@mips.com> |
1232 | ||
1233 | * section.c (SEC_HAS_GOT_REF): Remove macro. | |
1234 | * bfd-in2.h: Regenerate. | |
1235 | ||
f2b740ac AM |
1236 | 2018-02-19 Alan Modra <amodra@gmail.com> |
1237 | ||
1238 | * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler | |
1239 | arguments. | |
1240 | * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise. | |
1241 | * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise. | |
1242 | (_bfd_riscv_relax_pc): Likewise and fix typos. | |
1243 | * libbfd-in.h (_bfd_error_handler): Add attribute printf. | |
1244 | * libbfd.h: Regenerate. | |
1245 | ||
8979927a AM |
1246 | 2018-02-19 Alan Modra <amodra@gmail.com> |
1247 | ||
1248 | * dwarf2.c (read_section): Don't use 'll' format modifier. | |
1249 | (find_abstract_instance): Likewise. | |
1250 | * elfcore.h (elf_core_file_p): Likewise. | |
1251 | ||
2dcf00ce AM |
1252 | 2018-02-19 Alan Modra <amodra@gmail.com> |
1253 | ||
1254 | * bfd-in.h: Include inttypes.h or if not available define | |
1255 | PRId64, PRIu64 and PRIx64. | |
1256 | * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L | |
1257 | modifier to print bfd_vma. | |
1258 | * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, | |
1259 | * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c, | |
1260 | * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c, | |
1261 | * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c, | |
1262 | * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c, | |
1263 | * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c, | |
1264 | * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c, | |
1265 | * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c, | |
1266 | * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c, | |
1267 | * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c, | |
1268 | * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c, | |
1269 | * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c, | |
1270 | * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c, | |
1271 | * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c, | |
1272 | * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64, | |
1273 | and cast input to uint64_t, and similarly for Ld and Lu. | |
1274 | * bfd-in2.h: Regenerate. | |
1275 | ||
c1c8c1ef AM |
1276 | 2018-02-19 Alan Modra <amodra@gmail.com> |
1277 | ||
1278 | * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c, | |
1279 | * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c, | |
1280 | * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c, | |
1281 | * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c, | |
1282 | * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c, | |
1283 | * reloc.c: Replace use of %R and %T in format strings passed to | |
1284 | einfo and friends by %pR and %pT. | |
1285 | ||
871b3ab2 AM |
1286 | 2018-02-19 Alan Modra <amodra@gmail.com> |
1287 | ||
1288 | * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place | |
1289 | of %A and %B. | |
1290 | * aout-adobe.c: Update all messages using %A and %B. | |
1291 | * aout-cris.c: Likewise. | |
1292 | * aoutx.h: Likewise. | |
1293 | * archive.c: Likewise. | |
1294 | * binary.c: Likewise. | |
1295 | * cache.c: Likewise. | |
1296 | * coff-alpha.c: Likewise. | |
1297 | * coff-arm.c: Likewise. | |
1298 | * coff-i860.c: Likewise. | |
1299 | * coff-mcore.c: Likewise. | |
1300 | * coff-ppc.c: Likewise. | |
1301 | * coff-rs6000.c: Likewise. | |
1302 | * coff-sh.c: Likewise. | |
1303 | * coff-tic4x.c: Likewise. | |
1304 | * coff-tic54x.c: Likewise. | |
1305 | * coff-tic80.c: Likewise. | |
1306 | * coff64-rs6000.c: Likewise. | |
1307 | * coffcode.h: Likewise. | |
1308 | * coffgen.c: Likewise. | |
1309 | * cofflink.c: Likewise. | |
1310 | * coffswap.h: Likewise. | |
1311 | * compress.c: Likewise. | |
1312 | * cpu-arm.c: Likewise. | |
1313 | * ecoff.c: Likewise. | |
1314 | * elf-attrs.c: Likewise. | |
1315 | * elf-eh-frame.c: Likewise. | |
1316 | * elf-ifunc.c: Likewise. | |
1317 | * elf-m10300.c: Likewise. | |
1318 | * elf-properties.c: Likewise. | |
1319 | * elf-s390-common.c: Likewise. | |
1320 | * elf.c: Likewise. | |
1321 | * elf32-arc.c: Likewise. | |
1322 | * elf32-arm.c: Likewise. | |
1323 | * elf32-avr.c: Likewise. | |
1324 | * elf32-bfin.c: Likewise. | |
1325 | * elf32-cr16.c: Likewise. | |
1326 | * elf32-cr16c.c: Likewise. | |
1327 | * elf32-cris.c: Likewise. | |
1328 | * elf32-crx.c: Likewise. | |
1329 | * elf32-d10v.c: Likewise. | |
1330 | * elf32-d30v.c: Likewise. | |
1331 | * elf32-epiphany.c: Likewise. | |
1332 | * elf32-fr30.c: Likewise. | |
1333 | * elf32-frv.c: Likewise. | |
1334 | * elf32-gen.c: Likewise. | |
1335 | * elf32-hppa.c: Likewise. | |
1336 | * elf32-i370.c: Likewise. | |
1337 | * elf32-i386.c: Likewise. | |
1338 | * elf32-i960.c: Likewise. | |
1339 | * elf32-ip2k.c: Likewise. | |
1340 | * elf32-iq2000.c: Likewise. | |
1341 | * elf32-lm32.c: Likewise. | |
1342 | * elf32-m32c.c: Likewise. | |
1343 | * elf32-m32r.c: Likewise. | |
1344 | * elf32-m68hc11.c: Likewise. | |
1345 | * elf32-m68hc12.c: Likewise. | |
1346 | * elf32-m68hc1x.c: Likewise. | |
1347 | * elf32-m68k.c: Likewise. | |
1348 | * elf32-mcore.c: Likewise. | |
1349 | * elf32-mep.c: Likewise. | |
1350 | * elf32-metag.c: Likewise. | |
1351 | * elf32-microblaze.c: Likewise. | |
1352 | * elf32-moxie.c: Likewise. | |
1353 | * elf32-msp430.c: Likewise. | |
1354 | * elf32-mt.c: Likewise. | |
1355 | * elf32-nds32.c: Likewise. | |
1356 | * elf32-nios2.c: Likewise. | |
1357 | * elf32-or1k.c: Likewise. | |
1358 | * elf32-pj.c: Likewise. | |
1359 | * elf32-ppc.c: Likewise. | |
1360 | * elf32-rl78.c: Likewise. | |
1361 | * elf32-rx.c: Likewise. | |
1362 | * elf32-s390.c: Likewise. | |
1363 | * elf32-score.c: Likewise. | |
1364 | * elf32-score7.c: Likewise. | |
1365 | * elf32-sh-symbian.c: Likewise. | |
1366 | * elf32-sh.c: Likewise. | |
1367 | * elf32-sh64.c: Likewise. | |
1368 | * elf32-sparc.c: Likewise. | |
1369 | * elf32-spu.c: Likewise. | |
1370 | * elf32-tic6x.c: Likewise. | |
1371 | * elf32-tilepro.c: Likewise. | |
1372 | * elf32-v850.c: Likewise. | |
1373 | * elf32-vax.c: Likewise. | |
1374 | * elf32-visium.c: Likewise. | |
1375 | * elf32-wasm32.c: Likewise. | |
1376 | * elf32-xgate.c: Likewise. | |
1377 | * elf32-xtensa.c: Likewise. | |
1378 | * elf64-alpha.c: Likewise. | |
1379 | * elf64-gen.c: Likewise. | |
1380 | * elf64-hppa.c: Likewise. | |
1381 | * elf64-ia64-vms.c: Likewise. | |
1382 | * elf64-mmix.c: Likewise. | |
1383 | * elf64-ppc.c: Likewise. | |
1384 | * elf64-s390.c: Likewise. | |
1385 | * elf64-sh64.c: Likewise. | |
1386 | * elf64-sparc.c: Likewise. | |
1387 | * elf64-x86-64.c: Likewise. | |
1388 | * elfcode.h: Likewise. | |
1389 | * elfcore.h: Likewise. | |
1390 | * elflink.c: Likewise. | |
1391 | * elfnn-aarch64.c: Likewise. | |
1392 | * elfnn-ia64.c: Likewise. | |
1393 | * elfnn-riscv.c: Likewise. | |
1394 | * elfxx-mips.c: Likewise. | |
1395 | * elfxx-sparc.c: Likewise. | |
1396 | * elfxx-tilegx.c: Likewise. | |
1397 | * elfxx-x86.c: Likewise. | |
1398 | * hpux-core.c: Likewise. | |
1399 | * ieee.c: Likewise. | |
1400 | * ihex.c: Likewise. | |
1401 | * libbfd.c: Likewise. | |
1402 | * linker.c: Likewise. | |
1403 | * mach-o.c: Likewise. | |
1404 | * merge.c: Likewise. | |
1405 | * mmo.c: Likewise. | |
1406 | * oasys.c: Likewise. | |
1407 | * pdp11.c: Likewise. | |
1408 | * pe-mips.c: Likewise. | |
1409 | * peXXigen.c: Likewise. | |
1410 | * peicode.h: Likewise. | |
1411 | * reloc.c: Likewise. | |
1412 | * rs6000-core.c: Likewise. | |
1413 | * srec.c: Likewise. | |
1414 | * stabs.c: Likewise. | |
1415 | * vms-alpha.c: Likewise. | |
1416 | * xcofflink.c: Likewise. | |
1417 | ||
dbc88fc1 AM |
1418 | 2018-02-19 Alan Modra <amodra@gmail.com> |
1419 | ||
1420 | PR 22845 | |
1421 | * elf.c (IS_TBSS): Define. | |
1422 | (_bfd_elf_map_sections_to_segments): Use IS_TBSS. | |
1423 | (assign_file_positions_for_non_load_sections): Revert last change. | |
1424 | Properly calculate load segment limits to compare against relro limits. | |
1425 | ||
325ba6fb AM |
1426 | 2018-02-17 Alan Modra <amodra@gmail.com> |
1427 | ||
1428 | PR 22845 | |
1429 | * elf.c (assign_file_positions_for_non_load_sections): Ignore | |
1430 | degenerate zero size PT_LOAD segments when finding one overlapping | |
1431 | the PT_GNU_RELRO segment. | |
1432 | ||
d00dd7dc AM |
1433 | 2018-02-16 Alan Modra <amodra@gmail.com> |
1434 | ||
1435 | * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false. | |
1436 | (_bfd_bool_bfd_true): Rename from bfd_true. | |
1437 | (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr. | |
1438 | (_bfd_int_bfd_0): Rename from bfd_0. | |
1439 | (_bfd_uint_bfd_0): Rename from bfd_0u. | |
1440 | (_bfd_long_bfd_0): Rename from bfd_0l. | |
1441 | (_bfd_long_bfd_n1_error): Rename from _bfd_n1. | |
1442 | (_bfd_void_bfd): Rename from bfd_void. | |
1443 | (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false), | |
1444 | (_bfd_bool_bfd_link_false_error), | |
1445 | (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true), | |
1446 | (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true), | |
1447 | (_bfd_bool_bfd_asection_bfd_asection_true), | |
1448 | (_bfd_bool_bfd_asymbol_bfd_asymbol_true), | |
1449 | (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions. | |
1450 | * archive.c (_bfd_noarchive_get_elt_at_index), | |
1451 | (_bfd_noarchive_openr_next_archived_file), | |
1452 | (_bfd_noarchive_construct_extended_name_table), | |
1453 | (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname), | |
1454 | (_bfd_noarchive_write_armap): New functions. | |
1455 | * archures.c (_bfd_nowrite_set_arch_mach): New function. | |
1456 | * coff-alpha.c (alpha_ecoff_swap_coff_aux_in), | |
1457 | (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in), | |
1458 | (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out), | |
1459 | (alpha_ecoff_swap_coff_lineno_out), | |
1460 | (alpha_ecoff_swap_coff_reloc_out): New functions. | |
1461 | * coff-mips.c (mips_ecoff_swap_coff_aux_in), | |
1462 | (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in), | |
1463 | (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out), | |
1464 | (mips_ecoff_swap_coff_lineno_out), | |
1465 | (mips_ecoff_swap_coff_reloc_out): New functions. | |
1466 | * coffcode.h (coff_set_alignment_hook): Replace define with | |
1467 | new function. | |
1468 | (symname_in_debug_hook): Likewise. | |
1469 | * ecoff.c (_bfd_ecoff_set_alignment_hook): New function. | |
1470 | * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0. | |
1471 | * elf.c (assign_file_positions_except_relocs): Test | |
1472 | elf_backend_allow_non_load_phdr for NULL. | |
1473 | * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from | |
1474 | _bfd_elf_link_omit_section_dynsym. Update uses. | |
1475 | (_bfd_elf_omit_section_dynsym_all): New function. | |
1476 | * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete. | |
1477 | (_bfd_elf_omit_section_dynsym_default): Declare. | |
1478 | (_bfd_elf_omit_section_dynsym_all): Declare. | |
1479 | * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section), | |
1480 | (_bfd_nolink_bfd_get_relocated_section_contents), | |
1481 | (_bfd_nolink_bfd_lookup_section_flags), | |
1482 | (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group), | |
1483 | (_bfd_nolink_bfd_link_hash_table_create), | |
1484 | (_bfd_nolink_bfd_link_just_syms), | |
1485 | (_bfd_nolink_bfd_copy_link_hash_symbol_type), | |
1486 | (_bfd_nolink_bfd_link_split_section), | |
1487 | (_bfd_nolink_section_already_linked), | |
1488 | (_bfd_nolink_bfd_define_common_symbol), | |
1489 | (_bfd_nolink_bfd_define_start_stop): New functions. | |
1490 | * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup), | |
1491 | (_bfd_norelocs_bfd_reloc_name_lookup), | |
1492 | (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions. | |
1493 | * section.c (_bfd_nowrite_set_section_contents): New function. | |
1494 | * syms.c (_bfd_nosymbols_canonicalize_symtab), | |
1495 | (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info), | |
1496 | (_bfd_nosymbols_get_symbol_version_string), | |
1497 | (_bfd_nosymbols_bfd_is_local_label_name), | |
1498 | (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line), | |
1499 | (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info), | |
1500 | (_bfd_nosymbols_bfd_make_debug_symbol), | |
1501 | ( _bfd_nosymbols_read_minisymbols), | |
1502 | ( _bfd_nosymbols_minisymbol_to_symbol), | |
1503 | (_bfd_nodynamic_get_synthetic_symtab): New functions. | |
1504 | * libbfd-in.h: Declare new functions. Update existing defines, | |
1505 | removing casts. | |
1506 | * aix386-core.c: Update to use new hooks. Formatting. | |
1507 | * aout-adobe.c: Likewise. | |
1508 | * aout-arm.c: Likewise. | |
1509 | * aout-target.h: Likewise. | |
1510 | * aout-tic30.c: Likewise. | |
1511 | * aoutf1.h: Likewise. | |
1512 | * binary.c: Likewise. | |
1513 | * bout.c: Likewise. | |
1514 | * cisco-core.c: Likewise. | |
1515 | * coff-alpha.c: Likewise. | |
1516 | * coff-i386.c: Likewise. | |
1517 | * coff-i860.c: Likewise. | |
1518 | * coff-i960.c: Likewise. | |
1519 | * coff-ia64.c: Likewise. | |
1520 | * coff-mips.c: Likewise. | |
1521 | * coff-ppc.c: Likewise. | |
1522 | * coff-rs6000.c: Likewise. | |
1523 | * coff-sh.c: Likewise. | |
1524 | * coff-tic30.c: Likewise. | |
1525 | * coff-tic54x.c: Likewise. | |
1526 | * coff-x86_64.c: Likewise. | |
1527 | * coff64-rs6000.c: Likewise. | |
1528 | * coffcode.h: Likewise. | |
1529 | * elf-m10300.c: Likewise. | |
1530 | * elf32-cr16.c: Likewise. | |
1531 | * elf32-lm32.c: Likewise. | |
1532 | * elf32-m32r.c: Likewise. | |
1533 | * elf32-metag.c: Likewise. | |
1534 | * elf32-score.c: Likewise. | |
1535 | * elf32-score7.c: Likewise. | |
1536 | * elf32-tilepro.c: Likewise. | |
1537 | * elf32-xstormy16.c: Likewise. | |
1538 | * elf32-xtensa.c: Likewise. | |
1539 | * elf64-alpha.c: Likewise. | |
1540 | * elf64-hppa.c: Likewise. | |
1541 | * elf64-ia64-vms.c: Likewise. | |
1542 | * elf64-mmix.c: Likewise. | |
1543 | * elf64-sh64.c: Likewise. | |
1544 | * elfnn-ia64.c: Likewise. | |
1545 | * elfxx-sparc.c: Likewise. | |
1546 | * elfxx-target.h: Likewise. | |
1547 | * elfxx-tilegx.c: Likewise. | |
1548 | * elfxx-x86.h: Likewise. | |
1549 | * hp300hpux.c: Likewise. | |
1550 | * hppabsd-core.c: Likewise. | |
1551 | * hpux-core.c: Likewise. | |
1552 | * i386msdos.c: Likewise. | |
1553 | * i386os9k.c: Likewise. | |
1554 | * ieee.c: Likewise. | |
1555 | * ihex.c: Likewise. | |
1556 | * irix-core.c: Likewise. | |
1557 | * libaout.h: Likewise. | |
1558 | * libecoff.h: Likewise. | |
1559 | * mach-o-target.c: Likewise. | |
1560 | * mach-o.c: Likewise. | |
1561 | * mipsbsd.c: Likewise. | |
1562 | * mmo.c: Likewise. | |
1563 | * netbsd-core.c: Likewise. | |
1564 | * nlm-target.h: Likewise. | |
1565 | * oasys.c: Likewise. | |
1566 | * osf-core.c: Likewise. | |
1567 | * pdp11.c: Likewise. | |
1568 | * pe-mips.c: Likewise. | |
1569 | * pe-x86_64.c: Likewise. | |
1570 | * pef.c: Likewise. | |
1571 | * plugin.c: Likewise. | |
1572 | * ppcboot.c: Likewise. | |
1573 | * ptrace-core.c: Likewise. | |
1574 | * sco5-core.c: Likewise. | |
1575 | * som.c: Likewise. | |
1576 | * sparclynx.c: Likewise. | |
1577 | * srec.c: Likewise. | |
1578 | * tekhex.c: Likewise. | |
1579 | * trad-core.c: Likewise. | |
1580 | * verilog.c: Likewise. | |
1581 | * versados.c: Likewise. | |
1582 | * vms-alpha.c: Likewise. | |
1583 | * vms-lib.c: Likewise. | |
1584 | * wasm-module.c: Likewise. | |
1585 | * xsym.c: Likewise. | |
1586 | * libbfd.h: Regenerate. | |
1587 | ||
2a0d9853 JW |
1588 | 2018-02-15 Jim Wilson <jimw@sifive.com> |
1589 | ||
09ca4b9d JW |
1590 | * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore |
1591 | symbols whose section address is zero. | |
1592 | ||
2a0d9853 JW |
1593 | * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous |
1594 | when pcrel_lo reloc has an addend. Use reloc_dangerous callback for | |
1595 | bfd_reloc_dangerous. Use einfo instead of warning callback for errors. | |
1596 | Add %X%P to error messages. | |
1597 | ||
e513bd38 EB |
1598 | 2018-02-15 Eric Botcazou <ebotcazou@adacore.com> |
1599 | ||
1600 | PR ld/22832 | |
1601 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: | |
1602 | Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup | |
1603 | and assert that the result of the call is not NULL. | |
1604 | ||
12ef3f5a NC |
1605 | 2018-02-14 Nick Clifton <nickc@redhat.com> |
1606 | ||
1607 | PR 22823 | |
1608 | Revert previous delta. Add extra casts to avoid compile time | |
1609 | warnings instead. | |
1610 | * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra | |
1611 | cast to avoid warning from gcc v8 compiler. | |
1612 | (_bfd_generic_bfd_merge_private_bfd_data): Likewise. | |
1613 | (_bfd_generic_bfd_set_private_flags): Likewise. | |
1614 | (_bfd_generic_bfd_copy_private_section_data): Likewise. | |
1615 | (_bfd_generic_bfd_copy_private_symbol_data): Likewise. | |
1616 | (_bfd_generic_bfd_copy_private_header_data): Likewise. | |
1617 | (_bfd_generic_bfd_print_private_bfd_data): Likewise. | |
1618 | (_bfd_noarchive_construct_extended_name_table): Likewise. | |
1619 | (_bfd_noarchive_truncate_arname): Likewise. | |
1620 | (_bfd_noarchive_write_ar_hdr): Likewise. | |
1621 | (_bfd_noarchive_get_elt_at_index): Likewise. | |
1622 | (_bfd_nosymbols_canonicalize_symtab): Likewise. | |
1623 | (_bfd_nosymbols_print_symbol): Likewise. | |
1624 | (_bfd_nosymbols_get_symbol_info): Likewise. | |
1625 | (_bfd_nosymbols_get_symbol_version_string): Likewise. | |
1626 | (_bfd_nosymbols_bfd_is_local_label_name): Likewise. | |
1627 | (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise. | |
1628 | (_bfd_nosymbols_get_lineno): Likewise. | |
1629 | (_bfd_nosymbols_find_nearest_line): Likewise. | |
1630 | (_bfd_nosymbols_find_line): Likewise. | |
1631 | (_bfd_nosymbols_find_inliner_info): Likewise. | |
1632 | (_bfd_nosymbols_bfd_make_debug_symbol): Likewise. | |
1633 | (_bfd_nosymbols_read_minisymbols): Likewise. | |
1634 | (_bfd_nosymbols_minisymbol_to_symbol): Likewise. | |
1635 | (_bfd_norelocs_bfd_reloc_type_lookup): Likewise. | |
1636 | (_bfd_norelocs_bfd_reloc_name_lookup): Likewise. | |
1637 | (_bfd_nowrite_set_arch_mach): Likewise. | |
1638 | (_bfd_nowrite_set_section_contents): Likewise. | |
1639 | (_bfd_nolink_sizeof_headers): Likewise. | |
1640 | (_bfd_nolink_bfd_get_relocated_section_contents): Likewise. | |
1641 | (_bfd_nolink_bfd_relax_section): Likewise. | |
1642 | (_bfd_nolink_bfd_gc_sections): Likewise. | |
1643 | (_bfd_nolink_bfd_lookup_section_flags): Likewise. | |
1644 | (_bfd_nolink_bfd_merge_sections): Likewise. | |
1645 | (_bfd_nolink_bfd_is_group_section): Likewise. | |
1646 | (_bfd_nolink_bfd_discard_group): Likewise. | |
1647 | (_bfd_nolink_bfd_link_hash_table_create): Likewise. | |
1648 | (_bfd_nolink_bfd_link_add_symbols): Likewise. | |
1649 | (_bfd_nolink_bfd_link_just_syms): Likewise. | |
1650 | (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise. | |
1651 | (_bfd_nolink_bfd_final_link): Likewise. | |
1652 | (_bfd_nolink_bfd_link_split_section): Likewise. | |
1653 | (_bfd_nolink_section_already_linked): Likewise. | |
1654 | (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
1655 | (_bfd_nolink_bfd_define_start_stop): Likewise. | |
1656 | (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise. | |
1657 | (_bfd_nodynamic_get_synthetic_symtab): Likewise. | |
1658 | (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise. | |
1659 | (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise. | |
1660 | * libbfd.c (bfd_false_any): Delete. | |
1661 | (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete. | |
1662 | (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete. | |
1663 | * libbfd.h (extern): Regenerate | |
1664 | * aout-target.h (MY_bfd_is_target_special_symbol): Add extra | |
1665 | cast to avoid warning from gcc v8 compiler. | |
1666 | * aout-tic30.c (tic30_aout_set_arch_mach): Likewise. | |
1667 | * binary.c (binary_get_symbol_info): Likewise. | |
1668 | * coff-alpha.c (alpha_ecoff_backend_data): Likewise. | |
1669 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
1670 | * coffcode.h (coff_set_alignment_hook): Likewise. | |
1671 | (symname_in_debug_hook): Likewise. | |
1672 | (bfd_coff_backend_data bigobj_swap_table): Likewise. | |
1673 | * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise. | |
1674 | * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise. | |
1675 | * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise. | |
1676 | * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise. | |
1677 | * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise. | |
1678 | * elf32-score.c (elf_backend_omit_section_dynsym): Likewise. | |
1679 | * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise. | |
1680 | * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise. | |
1681 | * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise. | |
1682 | * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise. | |
1683 | * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise. | |
1684 | * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise. | |
1685 | * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise. | |
1686 | * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise. | |
1687 | * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise. | |
1688 | * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise. | |
1689 | (bfd_elfNN_bfd_make_debug_symbol): Likewise. | |
1690 | (bfd_elfNN_bfd_merge_private_bfd_data): Likewise. | |
1691 | (bfd_elfNN_bfd_set_private_flags): Likewise. | |
1692 | (bfd_elfNN_bfd_is_target_special_symbol): Likewise. | |
1693 | (elf_backend_init_index_section): Likewise. | |
1694 | (elf_backend_allow_non_load_phdr): Likewise. | |
1695 | * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise. | |
1696 | * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise. | |
1697 | * ieee.c (ieee_construct_extended_name_table): Likewise. | |
1698 | (ieee_write_armap): Likewise. | |
1699 | (ieee_write_ar_hdr): Likewise. | |
1700 | (ieee_bfd_is_target_special_symbol): Likewise. | |
1701 | * ihex.c (ihex_canonicalize_symtab): Likewise. | |
1702 | (ihex_bfd_is_target_special_symbol): Likewise. | |
1703 | * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise. | |
1704 | * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise. | |
1705 | (_bfd_ecoff_set_alignment_hook): Likewise. | |
1706 | * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise. | |
1707 | * mmo.c (mmo_bfd_is_target_special_symbol): Likewise. | |
1708 | * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise. | |
1709 | * oasys.c (oasys_construct_extended_name_table): Likewise. | |
1710 | (oasys_write_armap): Likewise. | |
1711 | (oasys_write_ar_hdr): Likewise. | |
1712 | (oasys_bfd_is_target_special_symbol): Likewise. | |
1713 | * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise. | |
1714 | * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise. | |
1715 | * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise. | |
1716 | * som.c (som_bfd_is_target_special_symbol): Likewise. | |
1717 | * srec.c (srec_bfd_is_target_special_symbol): Likewise. | |
1718 | * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise. | |
1719 | * verilog.c (verilog_bfd_is_target_special_symbol): Likewise. | |
1720 | * versados.c (versados_bfd_is_target_special_symbol): Likewise. | |
1721 | (versados_bfd_reloc_name_lookup): Likewise. | |
1722 | * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise. | |
1723 | (vms_bfd_define_start_stop): Likewise. | |
1724 | (alpha_vms_bfd_is_target_special_symbol): Likewise. | |
1725 | * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise. | |
1726 | * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise. | |
1727 | ||
451875b4 L |
1728 | 2018-02-14 H.J. Lu <hongjiu.lu@intel.com> |
1729 | ||
1730 | PR ld/22842 | |
1731 | * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non | |
1732 | PC-relative PLT to NEED_DYNAMIC_RELOCATION_P. | |
1733 | * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for | |
1734 | R_X86_64_PC32 reloc against dynamic function in data section. | |
1735 | Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P. | |
1736 | (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc | |
1737 | against dynamic function in data section. | |
1738 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as | |
1739 | function address only if pcrel_plt is true. | |
1740 | (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt. | |
1741 | * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for | |
1742 | PC-relative PLT. If PLT is PC-relative, don't generate dynamic | |
1743 | PC-relative relocation against a function definition in data | |
1744 | secton in PIE. Remove the obsolete comments. | |
1745 | (elf_x86_link_hash_table): Add pcrel_plt. | |
1746 | ||
1031c264 L |
1747 | 2018-02-13 H.J. Lu <hongjiu.lu@intel.com> |
1748 | ||
1749 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll, | |
1750 | instead of bfd_link_pic, for building shared library. | |
1751 | ||
bd7ab16b L |
1752 | 2018-02-13 H.J. Lu <hongjiu.lu@intel.com> |
1753 | ||
1754 | PR gas/22791 | |
1755 | * elf64-x86-64.c (is_32bit_relative_branch): Removed. | |
1756 | (elf_x86_64_relocate_section): Check PIC relocations in PIE. | |
1757 | Remove is_32bit_relative_branch usage. Disallow PC32 reloc | |
1758 | against protected function in shared object. | |
1759 | ||
80c96350 ST |
1760 | 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru> |
1761 | ||
1762 | PR 22828 | |
1763 | * po/ru.po: Fix typo in Russian translation. | |
1764 | ||
87993319 MR |
1765 | 2018-02-13 Maciej W. Rozycki <macro@mips.com> |
1766 | ||
1767 | * wasm-module.c (wasm_scan_name_function_section): Rename | |
1768 | `index' local variable to `idx'. | |
1769 | ||
68d20676 NC |
1770 | 2018-02-13 Nick Clifton <nickc@redhat.com> |
1771 | ||
1772 | PR 22823 | |
1773 | Fix compile time warnings generated by gcc version 8. | |
1774 | * libbfd-in.h: Remove extraneous text from prototypes. | |
1775 | Add prototypes for bfd_false_any, bfd_true_any, | |
1776 | bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any, | |
1777 | bfd_n1_any, bfd_void_any. | |
1778 | (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy | |
1779 | function. | |
1780 | (_bfd_generic_bfd_merge_private_bfd_data): Likewise. | |
1781 | (_bfd_generic_bfd_set_private_flags): Likewise. | |
1782 | (_bfd_generic_bfd_copy_private_section_data): Likewise. | |
1783 | (_bfd_generic_bfd_copy_private_symbol_data): Likewise. | |
1784 | (_bfd_generic_bfd_copy_private_header_data): Likewise. | |
1785 | (_bfd_generic_bfd_print_private_bfd_data): Likewise. | |
1786 | (_bfd_noarchive_construct_extended_name_table): Likewise. | |
1787 | (_bfd_noarchive_truncate_arname): Likewise. | |
1788 | (_bfd_noarchive_write_ar_hdr): Likewise. | |
1789 | (_bfd_noarchive_get_elt_at_index): Likewise. | |
1790 | (_bfd_nosymbols_canonicalize_symtab): Likewise. | |
1791 | (_bfd_nosymbols_print_symbol): Likewise. | |
1792 | (_bfd_nosymbols_get_symbol_info): Likewise. | |
1793 | (_bfd_nosymbols_get_symbol_version_string): Likewise. | |
1794 | (_bfd_nosymbols_bfd_is_local_label_name): Likewise. | |
1795 | (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise. | |
1796 | (_bfd_nosymbols_get_lineno): Likewise. | |
1797 | (_bfd_nosymbols_find_nearest_line): Likewise. | |
1798 | (_bfd_nosymbols_find_line): Likewise. | |
1799 | (_bfd_nosymbols_find_inliner_info): Likewise. | |
1800 | (_bfd_nosymbols_bfd_make_debug_symbol): Likewise. | |
1801 | (_bfd_nosymbols_read_minisymbols): Likewise. | |
1802 | (_bfd_nosymbols_minisymbol_to_symbol): Likewise. | |
1803 | (_bfd_norelocs_bfd_reloc_type_lookup): Likewise. | |
1804 | (_bfd_norelocs_bfd_reloc_name_lookup): Likewise. | |
1805 | (_bfd_nowrite_set_arch_mach): Likewise. | |
1806 | (_bfd_nowrite_set_section_contents): Likewise. | |
1807 | (_bfd_nolink_sizeof_headers): Likewise. | |
1808 | (_bfd_nolink_bfd_get_relocated_section_contents): Likewise. | |
1809 | (_bfd_nolink_bfd_relax_section): Likewise. | |
1810 | (_bfd_nolink_bfd_gc_sections): Likewise. | |
1811 | (_bfd_nolink_bfd_lookup_section_flags): Likewise. | |
1812 | (_bfd_nolink_bfd_merge_sections): Likewise. | |
1813 | (_bfd_nolink_bfd_is_group_section): Likewise. | |
1814 | (_bfd_nolink_bfd_discard_group): Likewise. | |
1815 | (_bfd_nolink_bfd_link_hash_table_create): Likewise. | |
1816 | (_bfd_nolink_bfd_link_add_symbols): Likewise. | |
1817 | (_bfd_nolink_bfd_link_just_syms): Likewise. | |
1818 | (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise. | |
1819 | (_bfd_nolink_bfd_final_link): Likewise. | |
1820 | (_bfd_nolink_bfd_link_split_section): Likewise. | |
1821 | (_bfd_nolink_section_already_linked): Likewise. | |
1822 | (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
1823 | (_bfd_nolink_bfd_define_start_stop): Likewise. | |
1824 | (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise. | |
1825 | (_bfd_nodynamic_get_synthetic_symtab): Likewise. | |
1826 | (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise. | |
1827 | (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise. | |
1828 | * libbfd.c (bfd_false_any): New function. Like bfd_false but | |
1829 | accepts one or more arguments. | |
1830 | (bfd_true_any): Likewise. | |
1831 | (bfd_nullvoidptr_any): Likewise. | |
1832 | (bfd_0_any): Likewise. | |
1833 | (bfd_0u_any): Likewise. | |
1834 | (bfd_0l_any): Likewise. | |
1835 | (_bfd_n1_any): Likewise. | |
1836 | (bfd_void_any): Likewise. | |
1837 | * libbfd.h (extern): Regenerate | |
1838 | * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg | |
1839 | based dummy function. | |
1840 | * aout-tic30.c (tic30_aout_set_arch_mach): Likewise. | |
1841 | * binary.c (binary_get_symbol_info): Likewise. | |
1842 | * coff-alpha.c (alpha_ecoff_backend_data): Likewise. | |
1843 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
1844 | * coffcode.h (coff_set_alignment_hook): Likewise. | |
1845 | (symname_in_debug_hook): Likewise. | |
1846 | (bfd_coff_backend_data bigobj_swap_table): Likewise. | |
1847 | * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise. | |
1848 | * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise. | |
1849 | * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise. | |
1850 | * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise. | |
1851 | * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise. | |
1852 | * elf32-score.c (elf_backend_omit_section_dynsym): Likewise. | |
1853 | * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise. | |
1854 | * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise. | |
1855 | * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise. | |
1856 | * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise. | |
1857 | * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise. | |
1858 | * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise. | |
1859 | * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise. | |
1860 | * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise. | |
1861 | * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise. | |
1862 | * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise. | |
1863 | (bfd_elfNN_bfd_make_debug_symbol): Likewise. | |
1864 | (bfd_elfNN_bfd_merge_private_bfd_data): Likewise. | |
1865 | (bfd_elfNN_bfd_set_private_flags): Likewise. | |
1866 | (bfd_elfNN_bfd_is_target_special_symbol): Likewise. | |
1867 | (elf_backend_init_index_section): Likewise. | |
1868 | (elf_backend_allow_non_load_phdr): Likewise. | |
1869 | * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise. | |
1870 | * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise. | |
1871 | * ieee.c (ieee_construct_extended_name_table): Likewise. | |
1872 | (ieee_write_armap): Likewise. | |
1873 | (ieee_write_ar_hdr): Likewise. | |
1874 | (ieee_bfd_is_target_special_symbol): Likewise. | |
1875 | * ihex.c (ihex_canonicalize_symtab): Likewise. | |
1876 | (ihex_bfd_is_target_special_symbol): Likewise. | |
1877 | * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise. | |
1878 | * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise. | |
1879 | (_bfd_ecoff_set_alignment_hook): Likewise. | |
1880 | * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise. | |
1881 | * mmo.c (mmo_bfd_is_target_special_symbol): Likewise. | |
1882 | * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise. | |
1883 | * oasys.c (oasys_construct_extended_name_table): Likewise. | |
1884 | (oasys_write_armap): Likewise. | |
1885 | (oasys_write_ar_hdr): Likewise. | |
1886 | (oasys_bfd_is_target_special_symbol): Likewise. | |
1887 | * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise. | |
1888 | * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise. | |
1889 | * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise. | |
1890 | * som.c (som_bfd_is_target_special_symbol): Likewise. | |
1891 | * srec.c (srec_bfd_is_target_special_symbol): Likewise. | |
1892 | * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise. | |
1893 | * verilog.c (verilog_bfd_is_target_special_symbol): Likewise. | |
1894 | * versados.c (versados_bfd_is_target_special_symbol): Likewise. | |
1895 | (versados_bfd_reloc_name_lookup): Likewise. | |
1896 | * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise. | |
1897 | (vms_bfd_define_start_stop): Likewise. | |
1898 | (alpha_vms_bfd_is_target_special_symbol): Likewise. | |
1899 | * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise. | |
1900 | * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise. | |
1901 | * elf32-arc.c (get_replace_function): Assign replacement function | |
1902 | to func pointer. | |
1903 | * elf32-i370.c (i370_noop): Update prototype. | |
1904 | ||
6e5e9d58 AM |
1905 | 2018-02-13 Alan Modra <amodra@gmail.com> |
1906 | ||
1907 | PR 22836 | |
1908 | * elf.c (_bfd_elf_fixup_group_sections): Account for removed | |
1909 | relocation sections. If size reduces to just the flag word, | |
1910 | remove that too and mark with SEC_EXCLUDE. | |
1911 | * elflink.c (bfd_elf_final_link): Strip empty group sections. | |
1912 | ||
f2731e0c AM |
1913 | 2018-02-13 Alan Modra <amodra@gmail.com> |
1914 | ||
1915 | PR 22829 | |
1916 | * elf.c (assign_file_positions_for_non_load_sections): Rewrite | |
1917 | PT_GNU_RELRO setup. | |
1918 | ||
830db048 ZF |
1919 | 2018-02-12 Zebediah Figura <z.figura12@gmail.com> |
1920 | ||
1921 | * i386msdos.c (msdos_mkobject); New function. | |
1922 | (msdos_object_p): New function. | |
1923 | (i386_msdos_vec): Use msdos_object_p as the check_format | |
1924 | function. | |
1925 | * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and | |
1926 | NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and | |
1927 | IMAGE_NT_SIGNATURE. | |
1928 | * peXXigen.c: Likewise. | |
1929 | * coff-ia64.c: Likewise. | |
1930 | ||
94fe5757 NC |
1931 | 2018-02-12 Nick Clifton <nickc@redhat.com> |
1932 | ||
1933 | * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant | |
1934 | assignment. | |
0b8683b7 | 1935 | * elf32-arc.c (elf_arc_relocate_section): Likewise. |
94fe5757 | 1936 | |
d805612e | 1937 | 2018-02-09 Eric Botcazou <ebotcazou@adacore.com> |
a8735c82 EB |
1938 | |
1939 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions. | |
1940 | (sparc_elf_append_rela): Assert that there is enough room in section. | |
1941 | (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting. | |
1942 | (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak. | |
1943 | (allocate_dynrelocs): Remove outdated comments and reorder conditions. | |
1944 | For a symbol subject to a GOT relocation, reserve a slot in the | |
1945 | relocation section if the symbol isn't dynamic and we are in PIC mode. | |
1946 | (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation | |
1947 | is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation. | |
1948 | <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments. | |
1949 | <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion. | |
1950 | (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into | |
1951 | resolved_to_zero. Do not generate a dynamic GOT relocation for an | |
1952 | undefined weak symbol with non-default visibility. Remove superfluous | |
1953 | 'else' and fix formatting. | |
1954 | ||
3b4c3844 L |
1955 | 2018-02-09 H.J. Lu <hongjiu.lu@intel.com> |
1956 | ||
1957 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle | |
1958 | is_solaris. | |
1959 | (i386_elf32_sol2_vec): Don't declare. | |
1960 | (elf_i386_link_setup_gnu_properties): Also handle is_solaris. | |
1961 | Don't set need_global_offset_table. | |
1962 | (elf_i386_solaris_arch_bed): New. | |
1963 | (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for | |
1964 | Solaris. | |
1965 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check | |
1966 | target_os != is_nacl instead of target_os == is_normal. | |
1967 | (x86_64_elf64_sol2_vec): Don't declare. | |
1968 | (elf_x86_64_link_setup_gnu_properties): Check target_os != | |
1969 | is_nacl instead of target_os == is_normal. Don't set | |
1970 | need_global_offset_table. | |
1971 | (elf_x86_64_solaris_arch_bed): New. | |
1972 | (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for | |
1973 | Solaris. | |
1974 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep | |
1975 | _GLOBAL_OFFSET_TABLE_ for Solaris. | |
1976 | (_bfd_x86_elf_link_setup_gnu_properties): Don't copy | |
1977 | need_global_offset_table. | |
1978 | * elfxx-x86.h (elf_x86_target_os): Add is_solaris. | |
1979 | (elf_x86_link_hash_table): Remove need_global_offset_table. | |
1980 | (elf_x86_init_table): Likewise. | |
1981 | ||
15b23f36 L |
1982 | 2018-02-08 H.J. Lu <hongjiu.lu@intel.com> |
1983 | ||
1984 | * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields): | |
1985 | Remove prototype. | |
1986 | (i386_elf32_sol2_vec): Declared. | |
1987 | (elf_i386_link_setup_gnu_properties): Set | |
1988 | need_global_offset_table with info->output_bfd->xvec. | |
1989 | * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields): | |
1990 | Remove prototype. | |
1991 | (x86_64_elf64_sol2_vec): Declared. | |
1992 | (elf_x86_64_link_setup_gnu_properties): Set | |
1993 | need_global_offset_table with info->output_bfd->xvec. | |
1994 | ||
dc11dea2 L |
1995 | 2018-02-08 H.J. Lu <hongjiu.lu@intel.com> |
1996 | ||
1997 | * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields): | |
1998 | New prototype. | |
1999 | (elf_i386_link_setup_gnu_properties): Set need_global_offset_table | |
2000 | for Solaris. | |
2001 | * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields): | |
2002 | New prototype. | |
2003 | (elf_x86_64_link_setup_gnu_properties): Set | |
2004 | need_global_offset_table for Solaris. | |
2005 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the | |
2006 | unused _GLOBAL_OFFSET_TABLE_ for Solaris. | |
2007 | (_bfd_x86_elf_link_setup_gnu_properties): Copy | |
2008 | need_global_offset_table. | |
2009 | * elfxx-x86.h (elf_x86_link_hash_table): Add | |
2010 | need_global_offset_table. | |
2011 | (elf_x86_init_table): Likewise. | |
2012 | ||
3f48fe4a JW |
2013 | 2018-02-08 Jim Wilson <jimw@sifive.com> |
2014 | ||
2015 | * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous | |
2016 | change. | |
2017 | ||
ef135d43 NC |
2018 | 2018-02-08 Nick Clifton <nickc@redhat.com> |
2019 | ||
2020 | PR 22788 | |
2021 | * elf.c (elf_parse_notes): Reject notes with excessuively large | |
2022 | alignments. | |
2023 | ||
407aa07c AM |
2024 | 2018-02-07 Alan Modra <amodra@gmail.com> |
2025 | ||
2026 | Revert 2018-01-17 Alan Modra <amodra@gmail.com> | |
2027 | * elf32-ppc.c: Remove speculation barrier support. | |
2028 | * elf32-ppc.h: Likewise. | |
2029 | * elf64-ppc.c: Likewise. | |
2030 | * elf64-ppc.h: Likewise. | |
2031 | ||
ed01220c JW |
2032 | 2018-02-06 Jim Wilson <jimw@sifive.com> |
2033 | ||
2034 | * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used | |
2035 | callback to report an error. | |
2036 | ||
c20c30f6 EB |
2037 | 2018-02-06 Eric Botcazou <ebotcazou@adacore.com> |
2038 | ||
2039 | PR ld/22263 | |
2040 | * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic | |
2041 | into call to !bfd_link_executable and tidy up. | |
2042 | (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up. | |
2043 | <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to | |
2044 | !bfd_link_executable. | |
2045 | <R_SPARC_TLS_IE_HI22>: Likewise. | |
2046 | <GOT relocations>: Remove useless code, tidy and merge related blocks. | |
2047 | <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to | |
2048 | !bfd_link_executable. | |
2049 | <R_SPARC_WPLT30>: Tidy up. | |
2050 | (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to | |
2051 | !bfd_link_executable. | |
2052 | (allocate_dynrelocs): Likewise. | |
2053 | (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up. | |
2054 | <R_SPARC_TLS_GD_HI22>: Merge into... | |
2055 | <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to | |
2056 | sparc_elf_tls_transition and remove redundant code. | |
2057 | <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to | |
2058 | !bfd_link_executable. | |
2059 | <R_SPARC_TLS_LDO_HIX22>: Likewise. | |
2060 | <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up. | |
2061 | <R_SPARC_TLS_LDM_CALL>: Likewise. | |
2062 | <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up. | |
2063 | <R_SPARC_TLS_GD_ADD>: Likewise. | |
2064 | <R_SPARC_TLS_LDM_ADD>: Likewise. | |
2065 | <R_SPARC_TLS_LDO_ADD>: Likewise. | |
2066 | <R_SPARC_TLS_IE_LD>: Likewise. | |
2067 | ||
46d09186 NC |
2068 | 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com> |
2069 | ||
2070 | PR 22789 | |
2071 | * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf | |
2072 | functions failed to find the function name, try the generic elf | |
2073 | find function instead. | |
2074 | ||
8278e7ce SDJ |
2075 | 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com> |
2076 | ||
2077 | * coff-rs6000.c (xcoff_write_archive_contents_old): Use | |
2078 | 'memcpy' instead of 'strncpy' when writing the magic number. | |
2079 | ||
64e234d4 NC |
2080 | 2018-02-06 Nick Clifton <nickc@redhat.com> |
2081 | ||
2082 | PR 22794 | |
2083 | * opncls.c (bfd_get_debug_link_info_1): Check the size of the | |
2084 | section before attempting to read it in. | |
2085 | (bfd_get_alt_debug_link_info): Likewise. | |
2086 | ||
422f3d3d PC |
2087 | 2018-02-06 Paul Carroll <pcarroll@codesourcery.com> |
2088 | ||
2089 | * bfd/dwarf2.c (find_abstract_name): Modified to return file and | |
2090 | line information in addition to name, if they can be found. | |
2091 | ||
279b2f94 RL |
2092 | 2018-02-05 Renlin Li <renlin.li@arm.com> |
2093 | ||
2094 | PR ld/22764 | |
2095 | * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the | |
2096 | R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the | |
2097 | check for writeable section as well. | |
2098 | ||
cd048363 L |
2099 | 2018-02-05 H.J. Lu <hongjiu.lu@intel.com> |
2100 | ||
2101 | PR ld/22782 | |
2102 | * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if | |
2103 | _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve | |
2104 | undefined weak symbol to 0. | |
2105 | * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced | |
2106 | if _GLOBAL_OFFSET_TABLE_ is referenced. | |
2107 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check | |
2108 | got_referenced instead of ref_regular_nonweak. Remove the | |
2109 | unused _GLOBAL_OFFSET_TABLE_ from symbol table. | |
2110 | * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced. | |
2111 | ||
e65b1a78 MR |
2112 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
2113 | ||
2114 | * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to | |
2115 | initialize `hi_reloc'. | |
2116 | ||
2d6dda71 MR |
2117 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
2118 | ||
2119 | * elfxx-mips.c (_bfd_mips_elf_section_processing): For | |
2120 | SHT_MIPS_REGINFO sections don't assert the correct size and | |
2121 | report an error instead. | |
2122 | ||
75506100 MR |
2123 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
2124 | ||
2125 | * elf.c (_bfd_elf_write_object_contents): Propagate a failure | |
2126 | status from `->elf_backend_section_processing'. | |
2127 | ||
7f02625e JW |
2128 | 2018-02-02 Jim Wilson <jimw@sifive.com> |
2129 | ||
2130 | PR ld/22756 | |
2131 | * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info. | |
2132 | If link_info->wrap_hash, check for a duplicate symbol and ignore. | |
2133 | (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le): | |
2134 | Pass new argument to riscv_relax_delete_bytes. | |
2135 | (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove | |
2136 | ATTRIBUTE_UNUSED from link_info parameter. | |
2137 | ||
d830549d AM |
2138 | 2018-02-02 Alan Modra <amodra@gmail.com> |
2139 | ||
2140 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops | |
2141 | emitted for toc sequence optimization. Set and use "howto" later. | |
2142 | ||
e99955cd SM |
2143 | 2018-02-01 Simon Marchi <simon.marchi@ericsson.com> |
2144 | ||
2145 | * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer | |
2146 | arithmetic on NULL pointer. | |
2147 | * elflink.c (_bfd_elf_archive_symbol_lookup, | |
2148 | elf_link_add_archive_symbols): Likewise. | |
2149 | ||
bf3077a6 MM |
2150 | 2018-01-31 Michael Matz <matz@suse.de> |
2151 | ||
2152 | * elflink.c (bfd_elf_define_start_stop): Fix check of | |
2153 | def_dynamic. | |
2154 | ||
823143c6 L |
2155 | 2018-01-31 H.J. Lu <hongjiu.lu@intel.com> |
2156 | ||
2157 | PR ld/21964 | |
2158 | * elflink.c (bfd_elf_define_start_stop): Check if __start and | |
2159 | __stop symbols are referenced by shared objects. | |
2160 | ||
76cb3a89 AM |
2161 | 2018-01-30 Alan Modra <amodra@gmail.com> |
2162 | ||
2163 | PR 22758 | |
2164 | * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new | |
2165 | segment when demand paged with lma on the same page. Test this | |
2166 | before load/non-load, executable/non-executable, | |
2167 | writable/non-writable tests and simplify. Delete bogus relro | |
2168 | condition in writable/non-writable test. Delete outdated | |
2169 | comment. Formatting. | |
2170 | ||
36b8fda5 AM |
2171 | 2018-01-30 Alan Modra <amodra@gmail.com> |
2172 | ||
2173 | * elflink.c (bfd_elf_define_start_stop): Make __start and __stop | |
2174 | symbols dynamic. | |
2175 | ||
eb77f6a4 AM |
2176 | 2018-01-29 Alan Modra <amodra@gmail.com> |
2177 | ||
2178 | PR 22741 | |
2179 | * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in | |
2180 | range before converting to a symbol table pointer. | |
2181 | ||
7d73b4c8 NC |
2182 | 2018-01-27 Nick Clifton <nickc@redhat.com> |
2183 | ||
2184 | * po/ru.po: Updated Russian translation. | |
2185 | ||
32253bb7 AM |
2186 | 2018-01-26 Alan Modra <amodra@gmail.com> |
2187 | ||
2188 | * elflink.c (bfd_elf_define_start_stop): Override symbols when | |
2189 | they are defined dynamically. | |
2190 | ||
ba21f564 AM |
2191 | 2018-01-26 Alan Modra <amodra@gmail.com> |
2192 | ||
2193 | * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when | |
2194 | .branch_lt changes size. | |
2195 | ||
38e64b0e AM |
2196 | 2018-01-25 Alan Modra <amodra@gmail.com> |
2197 | ||
2198 | PR 22746 | |
2199 | * elfcode.h (elf_object_p): Avoid integer overflow. | |
2200 | ||
bb363086 EB |
2201 | 2018-01-25 Eric Botcazou <ebotcazou@adacore.com> |
2202 | ||
2203 | PR ld/22727 | |
2204 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: | |
2205 | Do a mere lookup of the __tls_get_addr symbol instead of adding it. | |
2206 | ||
2207 | Revert | |
2208 | 2017-10-19 H.J. Lu <hongjiu.lu@intel.com> | |
2209 | ||
2210 | PR ld/22263 | |
2211 | * elfxx-sparc.c (sparc_elf_tls_transition): Replace | |
2212 | bfd_link_pic with !bfd_link_executable, !bfd_link_pic with | |
2213 | bfd_link_executable for TLS check. | |
2214 | (_bfd_sparc_elf_check_relocs): Likewise. | |
2215 | (allocate_dynrelocs): Likewise. | |
2216 | (_bfd_sparc_elf_relocate_section): Likewise. | |
2217 | ||
1daf502a RL |
2218 | 2018-01-24 Renlin Li <renlin.li@arm.com> |
2219 | ||
2220 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for | |
2221 | BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, | |
2222 | BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, | |
2223 | BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, | |
2224 | BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
2225 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
2226 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
2227 | ||
32247401 RL |
2228 | 2018-01-24 Renlin Li <renlin.li@arm.com> |
2229 | ||
2230 | * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0, | |
2231 | BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1, | |
2232 | BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2, | |
2233 | BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
2234 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for | |
2235 | BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, | |
2236 | BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, | |
2237 | BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, | |
2238 | BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
2239 | * bfd-in2.h: Regenerate. | |
2240 | * libbfd.h: Regenerate. | |
2241 | ||
1c5e4ee9 MR |
2242 | 2018-01-23 Maciej W. Rozycki <macro@mips.com> |
2243 | ||
2244 | * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale | |
2245 | `mips_elf32_section_processing' comment reference. | |
2246 | ||
8a1b824a L |
2247 | 2018-01-20 H.J. Lu <hongjiu.lu@intel.com> |
2248 | ||
2249 | PR ld/22721 | |
2250 | * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the | |
2251 | versioned __tls_get_addr symbol. | |
2252 | ||
ee3fbc1e NC |
2253 | 2018-01-19 Nick Clifton <nickc@redhat.com> |
2254 | ||
2255 | * po/fr.po: Updated French translation. | |
2256 | ||
691d2e9a AM |
2257 | 2018-01-18 Alan Modra <amodra@gmail.com> |
2258 | ||
2259 | * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink. | |
2260 | * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align. | |
2261 | (ppc64_elf_build_stubs): Likewise. | |
2262 | ||
4bfce128 NC |
2263 | 2018-01-17 Nick Clifton <nickc@redhat.com> |
2264 | ||
2265 | * po/ru.po: Updated Russian translation. | |
2266 | * po/uk/po: Updated Ukranian translation. | |
2267 | ||
c75bc4f7 AM |
2268 | 2018-01-17 Alan Modra <amodra@gmail.com> |
2269 | ||
2270 | * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning. | |
2271 | ||
1be5d8d3 AM |
2272 | 2018-01-17 Alan Modra <amodra@gmail.com> |
2273 | ||
2274 | * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier. | |
2275 | (CRSETEQ, BEQCTRM): Define. | |
2276 | (is_nonpic_glink_stub): Don't check bctr. | |
2277 | (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. | |
2278 | (ppc_elf_relax_section): Size speculation barrier. | |
2279 | (output_bctr): New function. | |
2280 | (write_glink_stub): Use output_bctr. | |
2281 | (ppc_elf_relocate_section): Use output_bctr for long branch stub. | |
2282 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
2283 | (ppc_elf_finish_dynamic_sections): Use output_bctr. | |
2284 | * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps. | |
2285 | * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define. | |
2286 | (GLINK_PLTRESOLVE_SIZE): Size speculation barrier. | |
2287 | (size_global_entry_stubs): Handle speculation barrier sizing. | |
2288 | (plt_stub_size): Likewise. | |
2289 | (output_bctr): New function. | |
2290 | (build_plt_stub, build_tls_get_addr_stub): Output speculation | |
2291 | barrier. | |
2292 | (ppc_build_one_stub): Likewise for ppc_stub_plt_branch. | |
2293 | (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch. | |
2294 | (build_global_entry_stubs): Output speculation barrier. | |
2295 | (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub. | |
2296 | * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps. | |
2297 | ||
9e390558 AM |
2298 | 2018-01-17 Alan Modra <amodra@gmail.com> |
2299 | ||
2300 | * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle | |
2301 | __tls_get_addr_opt, and alignment sizing. | |
2302 | (TLS_GET_ADDR_GLINK_SIZE): Delete. | |
2303 | (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE. | |
2304 | (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6, | |
2305 | or 8 insns. | |
2306 | (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. | |
2307 | (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE. | |
2308 | (ppc_elf_size_dynamic_sections): Likewise. Size branch table | |
2309 | by PLT reloc count. | |
2310 | (write_glink_stub): Handle __tls_get_addr_opt stub. | |
2311 | Pad out to size given by GLINK_ENTRY_SIZE. | |
2312 | (ppc_elf_relocate_section): Adjust write_glink_stub call. | |
2313 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
2314 | (ppc_elf_finish_dynamic_sections): Write PLTresolve without using | |
2315 | insn array since so many need rewriting. | |
2316 | * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align. | |
2317 | * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from | |
2318 | GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without | |
2319 | nops. Adjust all uses. | |
2320 | (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE | |
2321 | in glink_vma calculation. | |
2322 | (struct ppc_link_hash_table): Add global_entry section pointer. | |
2323 | (create_linkage_sections): Create separate section for global | |
2324 | entry stubs. | |
2325 | (PPC_LO, PPC_HI, PPC_HA): Move earlier. | |
2326 | (size_global_entry_stubs): Handle sizing for aligned stubs. | |
2327 | (ppc64_elf_size_dynamic_sections): Handle global_entry alloc, | |
2328 | and don't stash end of glink branch table in rawsize. | |
2329 | (ppc_build_one_stub): Rewrite stub size calculations. | |
2330 | (build_global_entry_stubs): Use new section. | |
2331 | (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops. | |
2332 | Build lazy link stubs out to end of section. Build global entry | |
2333 | stubs in new section. | |
2334 | ||
616dcb87 NC |
2335 | 2018-01-15 Nick Clifton <nickc@redhat.com> |
2336 | ||
2337 | * po/uk.po: Updated Ukranian translation. | |
2338 | ||
3957a496 NC |
2339 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
2340 | ||
2341 | * po/bfd.pot: Regenerated. | |
2342 | ||
769c7ea5 NC |
2343 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
2344 | ||
2345 | * version.m4: Bump version to 2.30.51 | |
2346 | * configure: Regenerate. | |
2347 | ||
faf766e3 NC |
2348 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
2349 | ||
2350 | 2.30 branch created. | |
2351 | ||
564e11c9 JW |
2352 | 2018-01-12 Jens Widell <jl@opera.com> |
2353 | ||
2354 | * elf.c (setup_group): Optimize search for group by remembering | |
2355 | last found group and restarting search at that index. | |
2356 | * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field. | |
2357 | ||
a78eea16 AM |
2358 | 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net> |
2359 | ||
2360 | * aoutx.h (aout_link_check_ar_symbols): Remove default and handle | |
2361 | bfd_link_common_skip_none in switch. | |
2362 | ||
87e79a65 AM |
2363 | 2018-01-12 Alan Modra <amodra@gmail.com> |
2364 | ||
2365 | PR ld/22649 | |
2366 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic | |
2367 | references on forced local symbols. | |
2368 | ||
58807c48 VI |
2369 | 2018-01-12 Vlad Ivanov <vlad@ivanov.email> |
2370 | ||
2371 | * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when | |
2372 | .reginfo section has wrong size. | |
2373 | ||
2888249f L |
2374 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
2375 | ||
2376 | PR ld/22393 | |
2377 | * elf.c (_bfd_elf_map_sections_to_segments): When generating | |
2378 | separate code and read-only data LOAD segments, create a new | |
2379 | LOAD segment if the previous section contains text and the | |
2380 | current section doesn't or vice versa. Don't put a writable | |
2381 | section in a read-only segment if there is a RELRO segment. | |
2382 | ||
d664fd41 L |
2383 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
2384 | ||
2385 | PR ld/22649 | |
2386 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic | |
2387 | references on forced local symbols. | |
2388 | ||
8b6f4cd3 L |
2389 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
2390 | ||
2391 | PR ld/22677 | |
2392 | * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY, | |
2393 | INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section. | |
2394 | ||
9c70c522 | 2395 | 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
6cef73f9 KLC |
2396 | |
2397 | PR 22662 | |
2398 | * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error. | |
2399 | ||
ddb2bbcf JB |
2400 | 2018-01-03 John Baldwin <jhb@FreeBSD.org> |
2401 | ||
2402 | * elf.c (elfcore_grok_freebsd_note): Handle | |
2403 | NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and | |
2404 | NT_FREEBSD_PROCSTAT_VMMAP. | |
2405 | ||
219d1afa AM |
2406 | 2018-01-03 Alan Modra <amodra@gmail.com> |
2407 | ||
2408 | Update year range in copyright notice of all files. | |
2409 | ||
1e563868 | 2410 | For older changes see ChangeLog-2017 |
3499769a | 2411 | \f |
1e563868 | 2412 | Copyright (C) 2018 Free Software Foundation, Inc. |
3499769a AM |
2413 | |
2414 | Copying and distribution of this file, with or without modification, | |
2415 | are permitted in any medium without royalty provided the copyright | |
2416 | notice and this notice are preserved. | |
2417 | ||
2418 | Local Variables: | |
2419 | mode: change-log | |
2420 | left-margin: 8 | |
2421 | fill-column: 74 | |
2422 | version-control: never | |
2423 | End: |