1 2018-02-26 Alan Modra <amodra@gmail.com>
3 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
4 * syms.c: Standardize error/warning messages.
6 2018-02-26 Alan Modra <amodra@gmail.com>
8 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
9 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
10 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
11 * peXXigen.c, * peicode.h: Standardize error/warning messages.
13 2018-02-26 Alan Modra <amodra@gmail.com>
15 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
17 2018-02-26 Alan Modra <amodra@gmail.com>
19 * elfxx-mips.c: Standardize error/warning messages.
21 2018-02-26 Alan Modra <amodra@gmail.com>
23 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
24 * elflink.c: Standardize error/warning messages. Replace use of
25 linker callback einfo with _bfd_error_handler when possible.
27 2018-02-26 Alan Modra <amodra@gmail.com>
29 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
30 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
31 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
32 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
33 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
34 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
35 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
36 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
37 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
38 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
39 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
40 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
41 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
42 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
43 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
44 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
45 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
46 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
47 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
48 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
49 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
50 unrecognized/unsupported reloc message.
52 2018-02-26 Alan Modra <amodra@gmail.com>
54 * elf32-ppc.c: Standardize error/warning messages. Use
55 _bfd_error_handler rather than einfo when einfo features not used.
56 * elf64-ppc.c: Likewise.
58 2018-02-23 Alan Modra <amodra@gmail.com>
61 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
62 segment if no matching LOAD segment.
64 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
66 * elf32-nds32.h: Define mask for ict_model.
68 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
70 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
72 2018-02-19 Maciej W. Rozycki <macro@mips.com>
75 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
77 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
78 .reginfo section has wrong size.
80 2018-02-19 Maciej W. Rozycki <macro@mips.com>
82 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
83 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
84 `.MIPS.abiflags' sections.
85 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
88 2018-02-19 Maciej W. Rozycki <macro@mips.com>
90 * section.c (SEC_FIXED_SIZE): New macro.
91 * bfd-in2.h: Regenerate.
93 2018-02-19 Maciej W. Rozycki <macro@mips.com>
95 * section.c (SEC_HAS_GOT_REF): Remove macro.
96 * bfd-in2.h: Regenerate.
98 2018-02-19 Alan Modra <amodra@gmail.com>
100 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
102 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
103 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
104 (_bfd_riscv_relax_pc): Likewise and fix typos.
105 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
106 * libbfd.h: Regenerate.
108 2018-02-19 Alan Modra <amodra@gmail.com>
110 * dwarf2.c (read_section): Don't use 'll' format modifier.
111 (find_abstract_instance): Likewise.
112 * elfcore.h (elf_core_file_p): Likewise.
114 2018-02-19 Alan Modra <amodra@gmail.com>
116 * bfd-in.h: Include inttypes.h or if not available define
117 PRId64, PRIu64 and PRIx64.
118 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
119 modifier to print bfd_vma.
120 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
121 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
122 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
123 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
124 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
125 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
126 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
127 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
128 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
129 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
130 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
131 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
132 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
133 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
134 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
135 and cast input to uint64_t, and similarly for Ld and Lu.
136 * bfd-in2.h: Regenerate.
138 2018-02-19 Alan Modra <amodra@gmail.com>
140 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
141 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
142 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
143 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
144 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
145 * reloc.c: Replace use of %R and %T in format strings passed to
146 einfo and friends by %pR and %pT.
148 2018-02-19 Alan Modra <amodra@gmail.com>
150 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
152 * aout-adobe.c: Update all messages using %A and %B.
153 * aout-cris.c: Likewise.
155 * archive.c: Likewise.
156 * binary.c: Likewise.
158 * coff-alpha.c: Likewise.
159 * coff-arm.c: Likewise.
160 * coff-i860.c: Likewise.
161 * coff-mcore.c: Likewise.
162 * coff-ppc.c: Likewise.
163 * coff-rs6000.c: Likewise.
164 * coff-sh.c: Likewise.
165 * coff-tic4x.c: Likewise.
166 * coff-tic54x.c: Likewise.
167 * coff-tic80.c: Likewise.
168 * coff64-rs6000.c: Likewise.
169 * coffcode.h: Likewise.
170 * coffgen.c: Likewise.
171 * cofflink.c: Likewise.
172 * coffswap.h: Likewise.
173 * compress.c: Likewise.
174 * cpu-arm.c: Likewise.
176 * elf-attrs.c: Likewise.
177 * elf-eh-frame.c: Likewise.
178 * elf-ifunc.c: Likewise.
179 * elf-m10300.c: Likewise.
180 * elf-properties.c: Likewise.
181 * elf-s390-common.c: Likewise.
183 * elf32-arc.c: Likewise.
184 * elf32-arm.c: Likewise.
185 * elf32-avr.c: Likewise.
186 * elf32-bfin.c: Likewise.
187 * elf32-cr16.c: Likewise.
188 * elf32-cr16c.c: Likewise.
189 * elf32-cris.c: Likewise.
190 * elf32-crx.c: Likewise.
191 * elf32-d10v.c: Likewise.
192 * elf32-d30v.c: Likewise.
193 * elf32-epiphany.c: Likewise.
194 * elf32-fr30.c: Likewise.
195 * elf32-frv.c: Likewise.
196 * elf32-gen.c: Likewise.
197 * elf32-hppa.c: Likewise.
198 * elf32-i370.c: Likewise.
199 * elf32-i386.c: Likewise.
200 * elf32-i960.c: Likewise.
201 * elf32-ip2k.c: Likewise.
202 * elf32-iq2000.c: Likewise.
203 * elf32-lm32.c: Likewise.
204 * elf32-m32c.c: Likewise.
205 * elf32-m32r.c: Likewise.
206 * elf32-m68hc11.c: Likewise.
207 * elf32-m68hc12.c: Likewise.
208 * elf32-m68hc1x.c: Likewise.
209 * elf32-m68k.c: Likewise.
210 * elf32-mcore.c: Likewise.
211 * elf32-mep.c: Likewise.
212 * elf32-metag.c: Likewise.
213 * elf32-microblaze.c: Likewise.
214 * elf32-moxie.c: Likewise.
215 * elf32-msp430.c: Likewise.
216 * elf32-mt.c: Likewise.
217 * elf32-nds32.c: Likewise.
218 * elf32-nios2.c: Likewise.
219 * elf32-or1k.c: Likewise.
220 * elf32-pj.c: Likewise.
221 * elf32-ppc.c: Likewise.
222 * elf32-rl78.c: Likewise.
223 * elf32-rx.c: Likewise.
224 * elf32-s390.c: Likewise.
225 * elf32-score.c: Likewise.
226 * elf32-score7.c: Likewise.
227 * elf32-sh-symbian.c: Likewise.
228 * elf32-sh.c: Likewise.
229 * elf32-sh64.c: Likewise.
230 * elf32-sparc.c: Likewise.
231 * elf32-spu.c: Likewise.
232 * elf32-tic6x.c: Likewise.
233 * elf32-tilepro.c: Likewise.
234 * elf32-v850.c: Likewise.
235 * elf32-vax.c: Likewise.
236 * elf32-visium.c: Likewise.
237 * elf32-wasm32.c: Likewise.
238 * elf32-xgate.c: Likewise.
239 * elf32-xtensa.c: Likewise.
240 * elf64-alpha.c: Likewise.
241 * elf64-gen.c: Likewise.
242 * elf64-hppa.c: Likewise.
243 * elf64-ia64-vms.c: Likewise.
244 * elf64-mmix.c: Likewise.
245 * elf64-ppc.c: Likewise.
246 * elf64-s390.c: Likewise.
247 * elf64-sh64.c: Likewise.
248 * elf64-sparc.c: Likewise.
249 * elf64-x86-64.c: Likewise.
250 * elfcode.h: Likewise.
251 * elfcore.h: Likewise.
252 * elflink.c: Likewise.
253 * elfnn-aarch64.c: Likewise.
254 * elfnn-ia64.c: Likewise.
255 * elfnn-riscv.c: Likewise.
256 * elfxx-mips.c: Likewise.
257 * elfxx-sparc.c: Likewise.
258 * elfxx-tilegx.c: Likewise.
259 * elfxx-x86.c: Likewise.
260 * hpux-core.c: Likewise.
263 * libbfd.c: Likewise.
264 * linker.c: Likewise.
265 * mach-o.c: Likewise.
270 * pe-mips.c: Likewise.
271 * peXXigen.c: Likewise.
272 * peicode.h: Likewise.
274 * rs6000-core.c: Likewise.
277 * vms-alpha.c: Likewise.
278 * xcofflink.c: Likewise.
280 2018-02-19 Alan Modra <amodra@gmail.com>
283 * elf.c (IS_TBSS): Define.
284 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
285 (assign_file_positions_for_non_load_sections): Revert last change.
286 Properly calculate load segment limits to compare against relro limits.
288 2018-02-17 Alan Modra <amodra@gmail.com>
291 * elf.c (assign_file_positions_for_non_load_sections): Ignore
292 degenerate zero size PT_LOAD segments when finding one overlapping
293 the PT_GNU_RELRO segment.
295 2018-02-16 Alan Modra <amodra@gmail.com>
297 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
298 (_bfd_bool_bfd_true): Rename from bfd_true.
299 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
300 (_bfd_int_bfd_0): Rename from bfd_0.
301 (_bfd_uint_bfd_0): Rename from bfd_0u.
302 (_bfd_long_bfd_0): Rename from bfd_0l.
303 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
304 (_bfd_void_bfd): Rename from bfd_void.
305 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
306 (_bfd_bool_bfd_link_false_error),
307 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
308 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
309 (_bfd_bool_bfd_asection_bfd_asection_true),
310 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
311 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
312 * archive.c (_bfd_noarchive_get_elt_at_index),
313 (_bfd_noarchive_openr_next_archived_file),
314 (_bfd_noarchive_construct_extended_name_table),
315 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
316 (_bfd_noarchive_write_armap): New functions.
317 * archures.c (_bfd_nowrite_set_arch_mach): New function.
318 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
319 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
320 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
321 (alpha_ecoff_swap_coff_lineno_out),
322 (alpha_ecoff_swap_coff_reloc_out): New functions.
323 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
324 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
325 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
326 (mips_ecoff_swap_coff_lineno_out),
327 (mips_ecoff_swap_coff_reloc_out): New functions.
328 * coffcode.h (coff_set_alignment_hook): Replace define with
330 (symname_in_debug_hook): Likewise.
331 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
332 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
333 * elf.c (assign_file_positions_except_relocs): Test
334 elf_backend_allow_non_load_phdr for NULL.
335 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
336 _bfd_elf_link_omit_section_dynsym. Update uses.
337 (_bfd_elf_omit_section_dynsym_all): New function.
338 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
339 (_bfd_elf_omit_section_dynsym_default): Declare.
340 (_bfd_elf_omit_section_dynsym_all): Declare.
341 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
342 (_bfd_nolink_bfd_get_relocated_section_contents),
343 (_bfd_nolink_bfd_lookup_section_flags),
344 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
345 (_bfd_nolink_bfd_link_hash_table_create),
346 (_bfd_nolink_bfd_link_just_syms),
347 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
348 (_bfd_nolink_bfd_link_split_section),
349 (_bfd_nolink_section_already_linked),
350 (_bfd_nolink_bfd_define_common_symbol),
351 (_bfd_nolink_bfd_define_start_stop): New functions.
352 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
353 (_bfd_norelocs_bfd_reloc_name_lookup),
354 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
355 * section.c (_bfd_nowrite_set_section_contents): New function.
356 * syms.c (_bfd_nosymbols_canonicalize_symtab),
357 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
358 (_bfd_nosymbols_get_symbol_version_string),
359 (_bfd_nosymbols_bfd_is_local_label_name),
360 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
361 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
362 (_bfd_nosymbols_bfd_make_debug_symbol),
363 ( _bfd_nosymbols_read_minisymbols),
364 ( _bfd_nosymbols_minisymbol_to_symbol),
365 (_bfd_nodynamic_get_synthetic_symtab): New functions.
366 * libbfd-in.h: Declare new functions. Update existing defines,
368 * aix386-core.c: Update to use new hooks. Formatting.
369 * aout-adobe.c: Likewise.
370 * aout-arm.c: Likewise.
371 * aout-target.h: Likewise.
372 * aout-tic30.c: Likewise.
373 * aoutf1.h: Likewise.
374 * binary.c: Likewise.
376 * cisco-core.c: Likewise.
377 * coff-alpha.c: Likewise.
378 * coff-i386.c: Likewise.
379 * coff-i860.c: Likewise.
380 * coff-i960.c: Likewise.
381 * coff-ia64.c: Likewise.
382 * coff-mips.c: Likewise.
383 * coff-ppc.c: Likewise.
384 * coff-rs6000.c: Likewise.
385 * coff-sh.c: Likewise.
386 * coff-tic30.c: Likewise.
387 * coff-tic54x.c: Likewise.
388 * coff-x86_64.c: Likewise.
389 * coff64-rs6000.c: Likewise.
390 * coffcode.h: Likewise.
391 * elf-m10300.c: Likewise.
392 * elf32-cr16.c: Likewise.
393 * elf32-lm32.c: Likewise.
394 * elf32-m32r.c: Likewise.
395 * elf32-metag.c: Likewise.
396 * elf32-score.c: Likewise.
397 * elf32-score7.c: Likewise.
398 * elf32-tilepro.c: Likewise.
399 * elf32-xstormy16.c: Likewise.
400 * elf32-xtensa.c: Likewise.
401 * elf64-alpha.c: Likewise.
402 * elf64-hppa.c: Likewise.
403 * elf64-ia64-vms.c: Likewise.
404 * elf64-mmix.c: Likewise.
405 * elf64-sh64.c: Likewise.
406 * elfnn-ia64.c: Likewise.
407 * elfxx-sparc.c: Likewise.
408 * elfxx-target.h: Likewise.
409 * elfxx-tilegx.c: Likewise.
410 * elfxx-x86.h: Likewise.
411 * hp300hpux.c: Likewise.
412 * hppabsd-core.c: Likewise.
413 * hpux-core.c: Likewise.
414 * i386msdos.c: Likewise.
415 * i386os9k.c: Likewise.
418 * irix-core.c: Likewise.
419 * libaout.h: Likewise.
420 * libecoff.h: Likewise.
421 * mach-o-target.c: Likewise.
422 * mach-o.c: Likewise.
423 * mipsbsd.c: Likewise.
425 * netbsd-core.c: Likewise.
426 * nlm-target.h: Likewise.
428 * osf-core.c: Likewise.
430 * pe-mips.c: Likewise.
431 * pe-x86_64.c: Likewise.
433 * plugin.c: Likewise.
434 * ppcboot.c: Likewise.
435 * ptrace-core.c: Likewise.
436 * sco5-core.c: Likewise.
438 * sparclynx.c: Likewise.
440 * tekhex.c: Likewise.
441 * trad-core.c: Likewise.
442 * verilog.c: Likewise.
443 * versados.c: Likewise.
444 * vms-alpha.c: Likewise.
445 * vms-lib.c: Likewise.
446 * wasm-module.c: Likewise.
448 * libbfd.h: Regenerate.
450 2018-02-15 Jim Wilson <jimw@sifive.com>
452 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
453 symbols whose section address is zero.
455 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
456 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
457 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
458 Add %X%P to error messages.
460 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
463 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
464 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
465 and assert that the result of the call is not NULL.
467 2018-02-14 Nick Clifton <nickc@redhat.com>
470 Revert previous delta. Add extra casts to avoid compile time
472 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
473 cast to avoid warning from gcc v8 compiler.
474 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
475 (_bfd_generic_bfd_set_private_flags): Likewise.
476 (_bfd_generic_bfd_copy_private_section_data): Likewise.
477 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
478 (_bfd_generic_bfd_copy_private_header_data): Likewise.
479 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
480 (_bfd_noarchive_construct_extended_name_table): Likewise.
481 (_bfd_noarchive_truncate_arname): Likewise.
482 (_bfd_noarchive_write_ar_hdr): Likewise.
483 (_bfd_noarchive_get_elt_at_index): Likewise.
484 (_bfd_nosymbols_canonicalize_symtab): Likewise.
485 (_bfd_nosymbols_print_symbol): Likewise.
486 (_bfd_nosymbols_get_symbol_info): Likewise.
487 (_bfd_nosymbols_get_symbol_version_string): Likewise.
488 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
489 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
490 (_bfd_nosymbols_get_lineno): Likewise.
491 (_bfd_nosymbols_find_nearest_line): Likewise.
492 (_bfd_nosymbols_find_line): Likewise.
493 (_bfd_nosymbols_find_inliner_info): Likewise.
494 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
495 (_bfd_nosymbols_read_minisymbols): Likewise.
496 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
497 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
498 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
499 (_bfd_nowrite_set_arch_mach): Likewise.
500 (_bfd_nowrite_set_section_contents): Likewise.
501 (_bfd_nolink_sizeof_headers): Likewise.
502 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
503 (_bfd_nolink_bfd_relax_section): Likewise.
504 (_bfd_nolink_bfd_gc_sections): Likewise.
505 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
506 (_bfd_nolink_bfd_merge_sections): Likewise.
507 (_bfd_nolink_bfd_is_group_section): Likewise.
508 (_bfd_nolink_bfd_discard_group): Likewise.
509 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
510 (_bfd_nolink_bfd_link_add_symbols): Likewise.
511 (_bfd_nolink_bfd_link_just_syms): Likewise.
512 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
513 (_bfd_nolink_bfd_final_link): Likewise.
514 (_bfd_nolink_bfd_link_split_section): Likewise.
515 (_bfd_nolink_section_already_linked): Likewise.
516 (_bfd_nolink_bfd_define_common_symbol): Likewise.
517 (_bfd_nolink_bfd_define_start_stop): Likewise.
518 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
519 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
520 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
521 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
522 * libbfd.c (bfd_false_any): Delete.
523 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
524 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
525 * libbfd.h (extern): Regenerate
526 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
527 cast to avoid warning from gcc v8 compiler.
528 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
529 * binary.c (binary_get_symbol_info): Likewise.
530 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
531 * coff-mips.c (mips_ecoff_backend_data): Likewise.
532 * coffcode.h (coff_set_alignment_hook): Likewise.
533 (symname_in_debug_hook): Likewise.
534 (bfd_coff_backend_data bigobj_swap_table): Likewise.
535 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
536 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
537 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
538 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
539 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
540 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
541 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
542 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
543 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
544 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
545 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
546 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
547 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
548 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
549 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
550 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
551 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
552 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
553 (bfd_elfNN_bfd_set_private_flags): Likewise.
554 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
555 (elf_backend_init_index_section): Likewise.
556 (elf_backend_allow_non_load_phdr): Likewise.
557 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
558 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
559 * ieee.c (ieee_construct_extended_name_table): Likewise.
560 (ieee_write_armap): Likewise.
561 (ieee_write_ar_hdr): Likewise.
562 (ieee_bfd_is_target_special_symbol): Likewise.
563 * ihex.c (ihex_canonicalize_symtab): Likewise.
564 (ihex_bfd_is_target_special_symbol): Likewise.
565 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
566 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
567 (_bfd_ecoff_set_alignment_hook): Likewise.
568 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
569 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
570 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
571 * oasys.c (oasys_construct_extended_name_table): Likewise.
572 (oasys_write_armap): Likewise.
573 (oasys_write_ar_hdr): Likewise.
574 (oasys_bfd_is_target_special_symbol): Likewise.
575 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
576 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
577 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
578 * som.c (som_bfd_is_target_special_symbol): Likewise.
579 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
580 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
581 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
582 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
583 (versados_bfd_reloc_name_lookup): Likewise.
584 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
585 (vms_bfd_define_start_stop): Likewise.
586 (alpha_vms_bfd_is_target_special_symbol): Likewise.
587 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
588 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
590 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
593 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
594 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
595 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
596 R_X86_64_PC32 reloc against dynamic function in data section.
597 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
598 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
599 against dynamic function in data section.
600 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
601 function address only if pcrel_plt is true.
602 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
603 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
604 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
605 PC-relative relocation against a function definition in data
606 secton in PIE. Remove the obsolete comments.
607 (elf_x86_link_hash_table): Add pcrel_plt.
609 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
611 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
612 instead of bfd_link_pic, for building shared library.
614 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
617 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
618 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
619 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
620 against protected function in shared object.
622 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
625 * po/ru.po: Fix typo in Russian translation.
627 2018-02-13 Maciej W. Rozycki <macro@mips.com>
629 * wasm-module.c (wasm_scan_name_function_section): Rename
630 `index' local variable to `idx'.
632 2018-02-13 Nick Clifton <nickc@redhat.com>
635 Fix compile time warnings generated by gcc version 8.
636 * libbfd-in.h: Remove extraneous text from prototypes.
637 Add prototypes for bfd_false_any, bfd_true_any,
638 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
639 bfd_n1_any, bfd_void_any.
640 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
642 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
643 (_bfd_generic_bfd_set_private_flags): Likewise.
644 (_bfd_generic_bfd_copy_private_section_data): Likewise.
645 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
646 (_bfd_generic_bfd_copy_private_header_data): Likewise.
647 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
648 (_bfd_noarchive_construct_extended_name_table): Likewise.
649 (_bfd_noarchive_truncate_arname): Likewise.
650 (_bfd_noarchive_write_ar_hdr): Likewise.
651 (_bfd_noarchive_get_elt_at_index): Likewise.
652 (_bfd_nosymbols_canonicalize_symtab): Likewise.
653 (_bfd_nosymbols_print_symbol): Likewise.
654 (_bfd_nosymbols_get_symbol_info): Likewise.
655 (_bfd_nosymbols_get_symbol_version_string): Likewise.
656 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
657 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
658 (_bfd_nosymbols_get_lineno): Likewise.
659 (_bfd_nosymbols_find_nearest_line): Likewise.
660 (_bfd_nosymbols_find_line): Likewise.
661 (_bfd_nosymbols_find_inliner_info): Likewise.
662 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
663 (_bfd_nosymbols_read_minisymbols): Likewise.
664 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
665 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
666 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
667 (_bfd_nowrite_set_arch_mach): Likewise.
668 (_bfd_nowrite_set_section_contents): Likewise.
669 (_bfd_nolink_sizeof_headers): Likewise.
670 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
671 (_bfd_nolink_bfd_relax_section): Likewise.
672 (_bfd_nolink_bfd_gc_sections): Likewise.
673 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
674 (_bfd_nolink_bfd_merge_sections): Likewise.
675 (_bfd_nolink_bfd_is_group_section): Likewise.
676 (_bfd_nolink_bfd_discard_group): Likewise.
677 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
678 (_bfd_nolink_bfd_link_add_symbols): Likewise.
679 (_bfd_nolink_bfd_link_just_syms): Likewise.
680 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
681 (_bfd_nolink_bfd_final_link): Likewise.
682 (_bfd_nolink_bfd_link_split_section): Likewise.
683 (_bfd_nolink_section_already_linked): Likewise.
684 (_bfd_nolink_bfd_define_common_symbol): Likewise.
685 (_bfd_nolink_bfd_define_start_stop): Likewise.
686 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
687 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
688 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
689 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
690 * libbfd.c (bfd_false_any): New function. Like bfd_false but
691 accepts one or more arguments.
692 (bfd_true_any): Likewise.
693 (bfd_nullvoidptr_any): Likewise.
694 (bfd_0_any): Likewise.
695 (bfd_0u_any): Likewise.
696 (bfd_0l_any): Likewise.
697 (_bfd_n1_any): Likewise.
698 (bfd_void_any): Likewise.
699 * libbfd.h (extern): Regenerate
700 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
701 based dummy function.
702 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
703 * binary.c (binary_get_symbol_info): Likewise.
704 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
705 * coff-mips.c (mips_ecoff_backend_data): Likewise.
706 * coffcode.h (coff_set_alignment_hook): Likewise.
707 (symname_in_debug_hook): Likewise.
708 (bfd_coff_backend_data bigobj_swap_table): Likewise.
709 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
710 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
711 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
712 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
713 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
714 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
715 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
716 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
717 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
718 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
719 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
720 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
721 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
722 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
723 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
724 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
725 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
726 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
727 (bfd_elfNN_bfd_set_private_flags): Likewise.
728 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
729 (elf_backend_init_index_section): Likewise.
730 (elf_backend_allow_non_load_phdr): Likewise.
731 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
732 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
733 * ieee.c (ieee_construct_extended_name_table): Likewise.
734 (ieee_write_armap): Likewise.
735 (ieee_write_ar_hdr): Likewise.
736 (ieee_bfd_is_target_special_symbol): Likewise.
737 * ihex.c (ihex_canonicalize_symtab): Likewise.
738 (ihex_bfd_is_target_special_symbol): Likewise.
739 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
740 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
741 (_bfd_ecoff_set_alignment_hook): Likewise.
742 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
743 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
744 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
745 * oasys.c (oasys_construct_extended_name_table): Likewise.
746 (oasys_write_armap): Likewise.
747 (oasys_write_ar_hdr): Likewise.
748 (oasys_bfd_is_target_special_symbol): Likewise.
749 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
750 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
751 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
752 * som.c (som_bfd_is_target_special_symbol): Likewise.
753 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
754 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
755 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
756 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
757 (versados_bfd_reloc_name_lookup): Likewise.
758 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
759 (vms_bfd_define_start_stop): Likewise.
760 (alpha_vms_bfd_is_target_special_symbol): Likewise.
761 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
762 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
763 * elf32-arc.c (get_replace_function): Assign replacement function
765 * elf32-i370.c (i370_noop): Update prototype.
767 2018-02-13 Alan Modra <amodra@gmail.com>
770 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
771 relocation sections. If size reduces to just the flag word,
772 remove that too and mark with SEC_EXCLUDE.
773 * elflink.c (bfd_elf_final_link): Strip empty group sections.
775 2018-02-13 Alan Modra <amodra@gmail.com>
778 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
781 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
783 * i386msdos.c (msdos_mkobject); New function.
784 (msdos_object_p): New function.
785 (i386_msdos_vec): Use msdos_object_p as the check_format
787 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
788 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
790 * peXXigen.c: Likewise.
791 * coff-ia64.c: Likewise.
793 2018-02-12 Nick Clifton <nickc@redhat.com>
795 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
797 * elf32-arc.c (elf_arc_relocate_section): Likewise.
799 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
801 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
802 (sparc_elf_append_rela): Assert that there is enough room in section.
803 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
804 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
805 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
806 For a symbol subject to a GOT relocation, reserve a slot in the
807 relocation section if the symbol isn't dynamic and we are in PIC mode.
808 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
809 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
810 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
811 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
812 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
813 resolved_to_zero. Do not generate a dynamic GOT relocation for an
814 undefined weak symbol with non-default visibility. Remove superfluous
815 'else' and fix formatting.
817 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
819 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
821 (i386_elf32_sol2_vec): Don't declare.
822 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
823 Don't set need_global_offset_table.
824 (elf_i386_solaris_arch_bed): New.
825 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
827 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
828 target_os != is_nacl instead of target_os == is_normal.
829 (x86_64_elf64_sol2_vec): Don't declare.
830 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
831 is_nacl instead of target_os == is_normal. Don't set
832 need_global_offset_table.
833 (elf_x86_64_solaris_arch_bed): New.
834 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
836 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
837 _GLOBAL_OFFSET_TABLE_ for Solaris.
838 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
839 need_global_offset_table.
840 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
841 (elf_x86_link_hash_table): Remove need_global_offset_table.
842 (elf_x86_init_table): Likewise.
844 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
846 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
848 (i386_elf32_sol2_vec): Declared.
849 (elf_i386_link_setup_gnu_properties): Set
850 need_global_offset_table with info->output_bfd->xvec.
851 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
853 (x86_64_elf64_sol2_vec): Declared.
854 (elf_x86_64_link_setup_gnu_properties): Set
855 need_global_offset_table with info->output_bfd->xvec.
857 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
859 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
861 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
863 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
865 (elf_x86_64_link_setup_gnu_properties): Set
866 need_global_offset_table for Solaris.
867 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
868 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
869 (_bfd_x86_elf_link_setup_gnu_properties): Copy
870 need_global_offset_table.
871 * elfxx-x86.h (elf_x86_link_hash_table): Add
872 need_global_offset_table.
873 (elf_x86_init_table): Likewise.
875 2018-02-08 Jim Wilson <jimw@sifive.com>
877 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
880 2018-02-08 Nick Clifton <nickc@redhat.com>
883 * elf.c (elf_parse_notes): Reject notes with excessuively large
886 2018-02-07 Alan Modra <amodra@gmail.com>
888 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
889 * elf32-ppc.c: Remove speculation barrier support.
890 * elf32-ppc.h: Likewise.
891 * elf64-ppc.c: Likewise.
892 * elf64-ppc.h: Likewise.
894 2018-02-06 Jim Wilson <jimw@sifive.com>
896 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
897 callback to report an error.
899 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
902 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
903 into call to !bfd_link_executable and tidy up.
904 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
905 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
906 !bfd_link_executable.
907 <R_SPARC_TLS_IE_HI22>: Likewise.
908 <GOT relocations>: Remove useless code, tidy and merge related blocks.
909 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
910 !bfd_link_executable.
911 <R_SPARC_WPLT30>: Tidy up.
912 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
913 !bfd_link_executable.
914 (allocate_dynrelocs): Likewise.
915 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
916 <R_SPARC_TLS_GD_HI22>: Merge into...
917 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
918 sparc_elf_tls_transition and remove redundant code.
919 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
920 !bfd_link_executable.
921 <R_SPARC_TLS_LDO_HIX22>: Likewise.
922 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
923 <R_SPARC_TLS_LDM_CALL>: Likewise.
924 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
925 <R_SPARC_TLS_GD_ADD>: Likewise.
926 <R_SPARC_TLS_LDM_ADD>: Likewise.
927 <R_SPARC_TLS_LDO_ADD>: Likewise.
928 <R_SPARC_TLS_IE_LD>: Likewise.
930 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
933 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
934 functions failed to find the function name, try the generic elf
935 find function instead.
937 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
939 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
940 'memcpy' instead of 'strncpy' when writing the magic number.
942 2018-02-06 Nick Clifton <nickc@redhat.com>
945 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
946 section before attempting to read it in.
947 (bfd_get_alt_debug_link_info): Likewise.
949 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
951 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
952 line information in addition to name, if they can be found.
954 2018-02-05 Renlin Li <renlin.li@arm.com>
957 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
958 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
959 check for writeable section as well.
961 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
964 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
965 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
966 undefined weak symbol to 0.
967 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
968 if _GLOBAL_OFFSET_TABLE_ is referenced.
969 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
970 got_referenced instead of ref_regular_nonweak. Remove the
971 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
972 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
974 2018-02-05 Maciej W. Rozycki <macro@mips.com>
976 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
977 initialize `hi_reloc'.
979 2018-02-05 Maciej W. Rozycki <macro@mips.com>
981 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
982 SHT_MIPS_REGINFO sections don't assert the correct size and
983 report an error instead.
985 2018-02-05 Maciej W. Rozycki <macro@mips.com>
987 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
988 status from `->elf_backend_section_processing'.
990 2018-02-02 Jim Wilson <jimw@sifive.com>
993 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
994 If link_info->wrap_hash, check for a duplicate symbol and ignore.
995 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
996 Pass new argument to riscv_relax_delete_bytes.
997 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
998 ATTRIBUTE_UNUSED from link_info parameter.
1000 2018-02-02 Alan Modra <amodra@gmail.com>
1002 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
1003 emitted for toc sequence optimization. Set and use "howto" later.
1005 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
1007 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
1008 arithmetic on NULL pointer.
1009 * elflink.c (_bfd_elf_archive_symbol_lookup,
1010 elf_link_add_archive_symbols): Likewise.
1012 2018-01-31 Michael Matz <matz@suse.de>
1014 * elflink.c (bfd_elf_define_start_stop): Fix check of
1017 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
1020 * elflink.c (bfd_elf_define_start_stop): Check if __start and
1021 __stop symbols are referenced by shared objects.
1023 2018-01-30 Alan Modra <amodra@gmail.com>
1026 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
1027 segment when demand paged with lma on the same page. Test this
1028 before load/non-load, executable/non-executable,
1029 writable/non-writable tests and simplify. Delete bogus relro
1030 condition in writable/non-writable test. Delete outdated
1031 comment. Formatting.
1033 2018-01-30 Alan Modra <amodra@gmail.com>
1035 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
1038 2018-01-29 Alan Modra <amodra@gmail.com>
1041 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
1042 range before converting to a symbol table pointer.
1044 2018-01-27 Nick Clifton <nickc@redhat.com>
1046 * po/ru.po: Updated Russian translation.
1048 2018-01-26 Alan Modra <amodra@gmail.com>
1050 * elflink.c (bfd_elf_define_start_stop): Override symbols when
1051 they are defined dynamically.
1053 2018-01-26 Alan Modra <amodra@gmail.com>
1055 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
1056 .branch_lt changes size.
1058 2018-01-25 Alan Modra <amodra@gmail.com>
1061 * elfcode.h (elf_object_p): Avoid integer overflow.
1063 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
1066 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
1067 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
1070 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
1073 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
1074 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
1075 bfd_link_executable for TLS check.
1076 (_bfd_sparc_elf_check_relocs): Likewise.
1077 (allocate_dynrelocs): Likewise.
1078 (_bfd_sparc_elf_relocate_section): Likewise.
1080 2018-01-24 Renlin Li <renlin.li@arm.com>
1082 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
1083 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
1084 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
1085 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
1086 BFD_RELOC_AARCH64_MOVW_PREL_G3.
1087 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
1088 (_bfd_aarch64_elf_resolve_relocation): Likewise.
1090 2018-01-24 Renlin Li <renlin.li@arm.com>
1092 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
1093 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
1094 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
1095 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
1096 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
1097 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
1098 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
1099 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
1100 BFD_RELOC_AARCH64_MOVW_PREL_G3.
1101 * bfd-in2.h: Regenerate.
1102 * libbfd.h: Regenerate.
1104 2018-01-23 Maciej W. Rozycki <macro@mips.com>
1106 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
1107 `mips_elf32_section_processing' comment reference.
1109 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
1112 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
1113 versioned __tls_get_addr symbol.
1115 2018-01-19 Nick Clifton <nickc@redhat.com>
1117 * po/fr.po: Updated French translation.
1119 2018-01-18 Alan Modra <amodra@gmail.com>
1121 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
1122 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
1123 (ppc64_elf_build_stubs): Likewise.
1125 2018-01-17 Nick Clifton <nickc@redhat.com>
1127 * po/ru.po: Updated Russian translation.
1128 * po/uk/po: Updated Ukranian translation.
1130 2018-01-17 Alan Modra <amodra@gmail.com>
1132 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
1134 2018-01-17 Alan Modra <amodra@gmail.com>
1136 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
1137 (CRSETEQ, BEQCTRM): Define.
1138 (is_nonpic_glink_stub): Don't check bctr.
1139 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
1140 (ppc_elf_relax_section): Size speculation barrier.
1141 (output_bctr): New function.
1142 (write_glink_stub): Use output_bctr.
1143 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
1144 (ppc_elf_finish_dynamic_symbol): Likewise.
1145 (ppc_elf_finish_dynamic_sections): Use output_bctr.
1146 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
1147 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
1148 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
1149 (size_global_entry_stubs): Handle speculation barrier sizing.
1150 (plt_stub_size): Likewise.
1151 (output_bctr): New function.
1152 (build_plt_stub, build_tls_get_addr_stub): Output speculation
1154 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
1155 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
1156 (build_global_entry_stubs): Output speculation barrier.
1157 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
1158 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
1160 2018-01-17 Alan Modra <amodra@gmail.com>
1162 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
1163 __tls_get_addr_opt, and alignment sizing.
1164 (TLS_GET_ADDR_GLINK_SIZE): Delete.
1165 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
1166 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
1168 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
1169 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
1170 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
1172 (write_glink_stub): Handle __tls_get_addr_opt stub.
1173 Pad out to size given by GLINK_ENTRY_SIZE.
1174 (ppc_elf_relocate_section): Adjust write_glink_stub call.
1175 (ppc_elf_finish_dynamic_symbol): Likewise.
1176 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
1177 insn array since so many need rewriting.
1178 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
1179 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
1180 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
1181 nops. Adjust all uses.
1182 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
1183 in glink_vma calculation.
1184 (struct ppc_link_hash_table): Add global_entry section pointer.
1185 (create_linkage_sections): Create separate section for global
1187 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
1188 (size_global_entry_stubs): Handle sizing for aligned stubs.
1189 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
1190 and don't stash end of glink branch table in rawsize.
1191 (ppc_build_one_stub): Rewrite stub size calculations.
1192 (build_global_entry_stubs): Use new section.
1193 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
1194 Build lazy link stubs out to end of section. Build global entry
1195 stubs in new section.
1197 2018-01-15 Nick Clifton <nickc@redhat.com>
1199 * po/uk.po: Updated Ukranian translation.
1201 2018-01-13 Nick Clifton <nickc@redhat.com>
1203 * po/bfd.pot: Regenerated.
1205 2018-01-13 Nick Clifton <nickc@redhat.com>
1207 * version.m4: Bump version to 2.30.51
1208 * configure: Regenerate.
1210 2018-01-13 Nick Clifton <nickc@redhat.com>
1212 2.30 branch created.
1214 2018-01-12 Jens Widell <jl@opera.com>
1216 * elf.c (setup_group): Optimize search for group by remembering
1217 last found group and restarting search at that index.
1218 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
1220 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
1222 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
1223 bfd_link_common_skip_none in switch.
1225 2018-01-12 Alan Modra <amodra@gmail.com>
1228 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
1229 references on forced local symbols.
1231 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
1233 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
1234 .reginfo section has wrong size.
1236 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
1239 * elf.c (_bfd_elf_map_sections_to_segments): When generating
1240 separate code and read-only data LOAD segments, create a new
1241 LOAD segment if the previous section contains text and the
1242 current section doesn't or vice versa. Don't put a writable
1243 section in a read-only segment if there is a RELRO segment.
1245 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
1248 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
1249 references on forced local symbols.
1251 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
1254 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
1255 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
1257 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1260 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
1262 2018-01-03 John Baldwin <jhb@FreeBSD.org>
1264 * elf.c (elfcore_grok_freebsd_note): Handle
1265 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
1266 NT_FREEBSD_PROCSTAT_VMMAP.
1268 2018-01-03 Alan Modra <amodra@gmail.com>
1270 Update year range in copyright notice of all files.
1272 For older changes see ChangeLog-2017
1274 Copyright (C) 2018 Free Software Foundation, Inc.
1276 Copying and distribution of this file, with or without modification,
1277 are permitted in any medium without royalty provided the copyright
1278 notice and this notice are preserved.
1284 version-control: never