12019-08-22 Alan Modra <amodra@gmail.com> 2 3 * elf32-arm.c (cmse_scan): Don't use ARM_GET_SYM_CMSE_SPCL, 4 instead recognize CMSE_PREFIX in symbol name. 5 (elf32_arm_gc_mark_extra_sections): Likewise. 6 (elf32_arm_filter_cmse_symbols): Don't test ARM_GET_SYM_CMSE_SPCL. 7 (elf32_arm_swap_symbol_in): Don't invoke ARM_SET_SYM_CMSE_SPCL. 8 92018-07-18 Nick Clifton <nickc@redhat.com> 10 11 2.31.1 Release point. 12 * version.m4: Set to 2.31.1 13 * development.sh: Set to true. 14 * configure: Regenerate. 15 * po/bfd.pot: Regenerate. 16 172018-07-14 Nick Clifton <nickc@redhat.com> 18 19 * version.m4: Update to 2.31.0. 20 * development.sh: Set to true. 21 * configure: Regenerate. 22 * po/bfd.pot: Regenerate. 23 242018-07-14 Nick Clifton <nickc@redhat.com> 25 26 2.31 Release point. 27 * version.m4: Update to 2.31. 28 * development.sh: Set to false. 29 * configure: Regenerate. 30 * po/bfd.pot: Regenerate. 31 322018-07-03 Alan Modra <amodra@gmail.com> 33 34 PR 17550 35 * elflink.c (_bfd_elf_fix_symbol_flags): Hide dynamic symbols 36 in discarded sections. 37 382018-07-11 Max Filippov <jcmvbkbc@gmail.com> 39 40 * elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Don't allocate 41 space for dynamic relocation for undefined weak symbol. 42 (elf_xtensa_relocate_section): Don't emit R_XTENSA_RELATIVE 43 relocation for undefined weak symbols. 44 (shrink_dynamic_reloc_sections): Don't shrink dynamic relocation 45 section for relocations against undefined weak symbols. 46 472018-07-10 Maciej W. Rozycki <macro@mips.com> 48 49 * elflink.c (bfd_elf_final_link): Rename `remove' local variable 50 to `remove_section'. 51 522018-07-09 H.J. Lu <hongjiu.lu@intel.com> 53 54 PR ld/23388 55 * configure.ac: Use changequote for "i[3-7]86-*-linux-*". 56 * configure: Regenerated. 57 582018-07-09 H.J. Lu <hongjiu.lu@intel.com> 59 60 PR ld/23372 61 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Remove x86 62 ISA properties with empty bits. 63 642018-07-06 Alan Modra <amodra@gmail.com> 65 66 * elf32-arm.c (elf32_arm_nabi_write_core_note): Don't use 67 DIAGNOTIC_PUSH and DIAGNOSTIC_POP unconditionally. 68 * elf32-ppc.c (ppc_elf_write_core_note): Likewise. 69 * elf32-s390.c (elf_s390_write_core_note): Likewise. 70 * elf64-ppc.c (ppc64_elf_write_core_note): Likewise. 71 * elf64-s390.c (elf_s390_write_core_note): Likewise. 72 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise. 73 742018-07-05 Jim Wilson <jimw@sifive.com> 75 76 * config.bfd (riscv32*-*-*): Renamed from riscv32-*-*. 77 (riscv64*-*-*): Likewise. 78 (riscv-*-*): Add as an alias for riscv32*-*-*. 79 802018-07-05 Alan Modra <amodra@gmail.com> 81 82 * elf-bfd.h (_bfd_elf_ppc_merge_fp_attributes): Update prototype. 83 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Return error 84 on mismatch. Remove "warning: " from messages. Track last bfd 85 used to set tags. 86 (ppc_elf_merge_obj_attributes): Likewise. Handle status from 87 _bfd_elf_ppc_merge_fp_attributes. 88 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Handle status 89 from _bfd_elf_ppc_merge_fp_attributes. 90 912018-07-03 Alan Modra <amodra@gmail.com> 92 93 * elflink.c (bfd_elf_final_link): Remove zero size .gnu.attributes 94 sections. 95 962018-07-03 Alan Modra <amodra@gmail.com> 97 98 * elf-bfd.h (ATTR_TYPE_FLAG_ERROR, ATTR_TYPE_HAS_ERROR): Define. 99 * elf-attrs.c (is_default_attr): Handle ATTR_TYPE_HAS_ERROR. 100 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Use 101 ATTR_TYPE_FLAG_INT_VAL. Set ATTR_TYPE_HAS_ERROR on finding 102 incompatible attribute. 103 (ppc_elf_merge_obj_attributes): Likewise. Return 104 _bfd_elf_merge_object_attributes result. 105 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Return 106 _bfd_elf_merge_object_attributes result. 107 1082018-07-05 Nick Clifton <nickc@redhat.com> 109 110 * po/ru.po: Updated Russian translation. 111 1122018-07-04 H.J. Lu <hongjiu.lu@intel.com> 113 114 * Makefile.am (bfdinclude_HEADERS): Add $(INCDIR)/diagnostics.h. 115 * Makefile.in: Regenerated. 116 1172018-07-04 H.J. Lu <hongjiu.lu@intel.com> 118 119 PR ld/23324 120 * elf64-x86-64.c (elf_x86_64_relocate_section): Clear the 121 R_X86_64_converted_reloc_bit bit. 122 1232018-06-26 Nick Clifton <nickc@redhat.com> 124 125 * po/uk.po: Updated Ukranian translation. 126 1272018-06-25 Nick Clifton <nickc@redhat.com> 128 129 * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_stub_name): Check 130 for malloc returning NULL. 131 (_bfd_aarch64_erratum_843419_fixup): Check for 132 _bfd_aarch64_erratum_835769_stub_name returning NULL. 133 1342018-06-24 Nick Clifton <nickc@redhat.com> 135 136 * version.m4 (BFD_VERSION): Update to 2.30.90. 137 * configure: Regenerate. 138 * po/bfd.pot: Regenerate. 139 1402018-06-24 Nick Clifton <nickc@redhat.com> 141 142 2.31 branch created. 143 1442018-06-21 Maciej W. Rozycki <macro@mips.com> 145 146 * elfxx-mips.c (_bfd_mips_elf_compact_eh_encoding) 147 (_bfd_mips_elf_cant_unwind_opcode): Correct formatting. 148 1492018-06-21 Maciej W. Rozycki <macro@mips.com> 150 151 * elfxx-mips.c (_bfd_mips_post_process_headers): Keep 152 EI_ABIVERSION setting together. 153 1542018-06-21 Maciej W. Rozycki <macro@mips.com> 155 156 * elfxx-mips.c (MIPS_LIBC_ABI_DEFAULT, MIPS_LIBC_ABI_MIPS_PLT) 157 (MIPS_LIBC_ABI_UNIQUE, MIPS_LIBC_ABI_MIPS_O32_FP64) 158 (MIPS_LIBC_ABI_MAX): New enumeration constants. 159 (_bfd_mips_post_process_headers): Use them in place of magic 160 numbers. 161 1622018-06-21 Jim Wilson <jimw@sifive.com> 163 164 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Update comment. 165 Use SYMBOL_REFERENCES_LOCAL. Add asserts for h->got.offset. 166 1672018-06-21 Alan Modra <amodra@gmail.com> 168 169 * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign". 170 * doc/Makefile.in: Regenerate. 171 1722018-06-20 Renlin Li <renlin.li@arm.com> 173 174 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use PG_OFFSET 175 to resolve BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC, 176 BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC, 177 BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC, 178 BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC, 179 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC, 180 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC, 181 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC, 182 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC. 183 1842018-06-20 Nick Clifton <nickc@redhat.com> 185 186 PR 23316 187 * opncls.c (get_build_id): Check for a negative or excessive data 188 size in the build-id note. 189 1902018-06-20 Nick Clifton <nickc@redhat.com> 191 192 PR 23299 193 * mach-o.c (cputype): New function. 194 (cpusubtype): New function. 195 (bfd_mach_o_bfd_print_private_data): New function. Dispalys the 196 values in the MACH-O file header. 197 (bfd_mach_o_bfd_copy_private_header_data): Copy the cputype and 198 cpusubtype fields from the input bfd's mach-o header to the output 199 bfd. 200 * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data): 201 Redefine to bfd_mach_o_bfd_print_private_data. 202 * mach-o.h (bfd_mach_o_bfd_print_private_bfd_data): Prototype. 203 2042018-06-19 Maciej W. Rozycki <macro@mips.com> 205 206 PR ld/22966 207 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Verify the 208 `.got.plt' entry referred is in range. 209 (mips_finish_exec_plt): Correct the range check for `.got.plt' 210 start. Replace the assertion used for that with a proper error 211 message. 212 2132018-06-19 Maciej W. Rozycki <macro@mips.com> 214 215 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Fix 216 formatting. 217 2182018-06-19 Simon Marchi <simon.marchi@ericsson.com> 219 220 * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11. 221 (INCLUDES): Rename to ... 222 (AM_CPPFLAGS): ... this. 223 * configure.ac: Remove AC_PREREQ. 224 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove 1.9, cygnus, add 225 info-in-builddir no-texinfo.tex. 226 (info_TEXINFOS): Rename bfd.texinfo to bfd.texi. 227 * doc/bfd.texinfo: Rename to ... 228 * doc/bfd.texi: ... this. 229 * Makefile.in: Re-generate. 230 * aclocal.m4: Re-generate. 231 * config.in: Re-generate. 232 * configure: Re-generate. 233 * doc/Makefile.in: Re-generate. 234 2352018-06-18 Mephi <mephi42@gmail.com> 236 237 PR 23297 238 * mach-o-x86-64.c (x86_64_howto_table): Add entry for 239 BFD_RELOC_MACH_O_X86_64_RELOC_TLV. 240 (bfd_mach_o_x86_64_canonicalize_one_reloc): Handle the new reloc. 241 (bfd_mach_o_x86_64_swap_reloc_out): Likewise. 242 * reloc.c (BFD_RELOC_MACH_O_X86_64_TV): New entry. 243 * bfd-in2.h: Regenerate. 244 * libbfd.h: Regenerate. 245 2462018-06-14 Faraz Shahbazker <Faraz.Shahbazker@mips.com> 247 248 * elfxx-mips.c (print_mips_ases): Add GINV extension. 249 2502018-06-14 H.J. Lu <hongjiu.lu@intel.com> 251 252 PR binutils/23267 253 * elf.c (_bfd_elf_get_symbol_version_string): Check if the first 254 symbol version is base version. 255 2562018-06-14 Alan Modra <amodra@gmail.com> 257 258 * elf-bfd.h (struct elf_link_hash_table): Add "dynamic_relocs". 259 * elflink.c (_bfd_elf_init_2_index_sections): Comment fix. 260 (_bfd_elf_add_dynamic_entry): Set "dynamic_relocs". 261 (_bfd_elf_link_renumber_dynsyms): Exclude all section symbols when 262 "dynamic_relocs" is not set. 263 * elfxx-mips.c (count_section_dynsyms): Likewise. 264 2652018-06-14 Alan Modra <amodra@gmail.com> 266 267 PR 23282 268 * bfdio.c (bfd_seek): Optimize away seeks to current position. 269 2702018-06-13 Scott Egerton <scott.egerton@imgtec.com> 271 Faraz Shahbazker <Faraz.Shahbazker@mips.com> 272 273 * elfxx-mips.c (print_mips_ases): Add CRC. 274 2752018-06-08 H.J. Lu <hongjiu.lu@intel.com> 276 277 PR ld/23161 278 * elfxx-x86.c (elf_x86_hide_linker_defined): New function. 279 (_bfd_x86_elf_link_check_relocs): Use it to hide hidden 280 __bss_start, _end and _edata in shared libraries. 281 2822018-06-07 Alan Modra <amodra@gmail.com> 283 284 * elf32-tic6x.c (elf32_tic6x_check_relocs): Reference 285 __c6xabi_DSBT_BASE explicitly for R_C6000_SBR_* relocs. 286 2872018-06-05 Alan Modra <amodra@gmail.com> 288 289 * bfd.c (struct bfd): Update comment on "where" usage. 290 * bfdio.c (bfd_bwrite, bfd_stat): Use and update "iovec", 291 "iostream", and "where" from containing archive file. Return 292 error on NULL iovec. 293 (bfd_bread): Similarly, and return error attempted out of 294 bounds archive element access. 295 (bfd_tell, bfd_flush): Use and update "iovec", "iostream", and 296 "where" from containing archive file. 297 (bfd_seek): Likewise. Return error on NULL iovec. Don't 298 attempt to optimize away seeks. Don't paper over errors by 299 calling bfd_tell. 300 (bfd_get_mtime): Call bfd_stat rather than iovec->bstat. 301 (bfd_get_size): Likewise. 302 (bfd_mmap): Operate on and use iovec of containing archive 303 file. Return error on NULL iovec. 304 * cache.c (bfd_cache_lookup_worker): Abort if working on 305 archive element bfd. 306 (cache_bread_1): Delete bfd parameter, add FILE* parameter. 307 Don't ignore zero byte reads. 308 (cache_bread): Look up FILE* in cache here. Error on NULL 309 lookup. 310 (cache_bwrite): Rename "where" to "from". 311 (cache_bmmap): Don't handle archive elements. 312 * coffcode.h (coff_slurp_line_table): Exit early on zero 313 lineno count. 314 * bfd-in2.h: Regenerate. 315 3162018-06-05 Alan Modra <amodra@gmail.com> 317 318 PR 23254 319 * plugin.c (bfd_plugin_open_input): Allow for possibility of 320 nested archives. Open file again for plugin. 321 (try_claim): Don't save and restore file position. Close file 322 if not claimed. 323 * sysdep.h (O_BINARY): Define. 324 3252018-06-04 Max Filippov <jcmvbkbc@gmail.com> 326 327 * elf32-xtensa.c (xtensa_read_table_entries): Make global. 328 (compute_fill_extra_space): Drop declaration. Rename function to 329 xtensa_compute_fill_extra_space. 330 (compute_ebb_actions, remove_dead_literal): Update references to 331 compute_fill_extra_space. 332 3332018-06-04 Volodymyr Arbatov <arbatov@cadence.com> 334 335 * elf32-xtensa.c (elf32xtensa_separate_props): New global 336 variable. 337 (xtensa_add_names): New function. 338 (xtensa_property_section_name): Add new parameter 339 separate_sections, use it to choose property section name. 340 (xtensa_get_separate_property_section): New function. 341 (xtensa_get_property_section): Invoke 342 xtensa_get_separate_property_section to get individual property 343 section if it exists, common property section otherwise. 344 (xtensa_make_property_section): Pass elf32xtensa_separate_props 345 to xtensa_property_section_name. 346 3472018-06-04 H.J. Lu <hongjiu.lu@intel.com> 348 349 PR binutils/23146 350 * bfd-in.h: Include "diagnostics.h". 351 * bfd-in2.h: Regenerated. 352 * elf32-arm.c (elf32_arm_nabi_write_core_note): Use 353 DIAGNOSTIC_PUSH, DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION and 354 DIAGNOSTIC_POP to silence GCC 8.1 warnings with 355 -Wstringop-truncation. 356 * elf32-ppc.c (ppc_elf_write_core_note): Likewse. 357 * elf32-s390.c (elf_s390_write_core_note): Likewse. 358 * elf64-ppc.c (ppc64_elf_write_core_note): Likewse. 359 * elf64-s390.c (elf_s390_write_core_note): Likewse. 360 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewse. 361 3622018-06-03 Jim Wilson <jimw@sifive.com> 363 364 PR ld/23244 365 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check 366 for and handle an undefined weak with no PLT. 367 368 PR ld/22756 369 * elfnn-riscv.c (riscv_relax_delete_bytes): Add versioned_hidden check 370 to code that ignores duplicate symbols. 371 3722018-06-01 H.J. Lu <hongjiu.lu@intel.com> 373 374 * version.m4: Bump version to 2.30.52 375 * configure: Regenerated. 376 3772018-06-01 Alan Modra <amodra@gmail.com> 378 379 * bfd.c (_bfd_error_handler): Arrange for this function to be 380 declared in bfd-in2.h. 381 * libbfd-in.h (_bfd_error_handler): Don't declare. 382 * libbfd.h: Regenerate. 383 * bfd-in2.h: Regenerate. 384 3852018-05-30 Amaan Cheval <amaan.cheval@gmail.com> 386 387 * config.bfd (x86_64-*-*): Add pei-x86-64 target to x86_64-*-rtems* 388 This is needed to generate UEFI application image files from ELFs. 389 3902018-05-28 H.J. Lu <hongjiu.lu@intel.com> 391 392 * elf32-i386.c (elf_i386_lazy_plt): Add plt_tlsdesc_entry, 393 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset, 394 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and 395 plt_tlsdesc_got2_insn_end for TLSDESC entry. 396 (elf_i386_lazy_ibt_plt): Likewise. 397 (elf_i386_nacl_plt): Likewise. 398 * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ... 399 (elf_x86_64_tlsdesc_plt_entry): This. 400 (elf_x86_64_lazy_plt): Add plt_tlsdesc_entry, 401 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset, 402 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and 403 plt_tlsdesc_got2_insn_end for TLSDESC entry. 404 (elf_x86_64_lazy_bnd_plt): Likewise. 405 (elf_x86_64_lazy_ibt_plt): Likewise. 406 (elf_x32_lazy_ibt_plt): Likewise. 407 (elf_x86_64_nacl_plt): Likewise. 408 (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry, 409 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset, 410 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and 411 plt_tlsdesc_got2_insn_end to update TLSDESC entry. 412 * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments. 413 Add plt_tlsdesc_entry, plt_tlsdesc_entry_size, 414 plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset, 415 plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end. 416 (elf_x86_non_lazy_plt_layout): Update comments. 417 (elf_x86_plt_layout): Likewise. 418 4192018-05-28 H.J. Lu <hongjiu.lu@intel.com> 420 421 PR ld/23238 422 * elf-s390-common.c (elf_s390_add_symbol_hook): Removed. 423 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise. 424 (elf_backend_add_symbol_hook): Likewise. 425 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise. 426 (elf_backend_add_symbol_hook): Likewise. 427 * elf32-s390.c (elf_backend_add_symbol_hook): Likewise. 428 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise. 429 (elf_backend_add_symbol_hook): Likewise. 430 * elf64-s390.c (elf_backend_add_symbol_hook): Likewise. 431 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise. 432 * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise. 433 (elf_backend_add_symbol_hook): Likewise. 434 * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC 435 handling. 436 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise. 437 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise. 438 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise. 439 * elflink.c (elf_link_add_object_symbols): Set 440 elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols. 441 4422018-05-26 H.J. Lu <hongjiu.lu@intel.com> 443 444 PR ld/23194 445 * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New. 446 * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function. 447 Extracted from _bfd_elf_link_assign_sym_version. 448 (_bfd_elf_link_hide_sym_by_version): New function. 449 (_bfd_elf_link_assign_sym_version): Use 450 _bfd_elf_link_hide_versioned_symbol. 451 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call 452 _bfd_elf_link_hide_sym_by_version instead of 453 bfd_hide_sym_by_version. Don't check unversioned symbol. 454 4552018-05-25 Alan Modra <amodra@gmail.com> 456 457 * Makefile.in: Regenerate. 458 * po/SRC-POTFILES.in: Regenerate. 459 4602018-05-25 Alan Modra <amodra@gmail.com> 461 462 * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS. 463 * configure: Regenerate. 464 4652018-05-23 H.J. Lu <hongjiu.lu@intel.com> 466 467 * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING 468 to data. 469 4702018-05-22 Alan Modra <amodra@gmail.com> 471 472 PR 23207 473 * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec 474 is NULL. 475 (elf32_hppa_size_stubs): Only create stubs for load, alloc, code 476 sections. 477 (final_link_relocate): Revert last change. 478 4792018-05-22 Alan Modra <amodra@gmail.com> 480 481 PR 23207 482 * elf32-hppa.c (final_link_relocate): Don't look for plt call 483 stubs in non-alloc sections. 484 4852018-05-21 H.J. Lu <hongjiu.lu@intel.com> 486 487 PR ld/23201 488 * aout-target.h (MY_bfd_link_hide_symbol): New. 489 * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise. 490 * binary.c (binary_bfd_link_hide_symbol): Likewise. 491 * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise. 492 * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise. 493 * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise. 494 * coffcode.h (coff_bfd_link_hide_symbol): Likewise. 495 * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise. 496 * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise. 497 * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise. 498 * ihex.c (ihex_bfd_link_hide_symbol): Likewise. 499 * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise. 500 * linker.c (_bfd_generic_link_hide_symbol): Likewise. 501 (bfd_link_hide_symbol): Likewise. 502 * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise. 503 * mmo.c (mmo_bfd_link_hide_symbol): Likewise. 504 * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise. 505 * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise. 506 * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise. 507 * som.c (som_bfd_link_hide_symbol): Likewise. 508 * srec.c (srec_bfd_link_hide_symbol): Likewise. 509 * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise. 510 * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise. 511 (alpha_vms_bfd_link_hide_symbol): Likewise. 512 * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise. 513 * coff64-rs6000.c (rs6000_xcoff64_vec): Add 514 _bfd_generic_link_hide_symbol. 515 (rs6000_xcoff64_aix_vec): Likewise. 516 * elflink.c (bfd_elf_record_link_assignment): Don't make forced 517 local symbol dynamic. 518 (_bfd_elf_link_hide_symbol): New function. 519 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't 520 check root.ldscript_def. 521 * targets.c (bfd_target): Add _bfd_link_hide_symbol. 522 (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol. 523 * bfd-in2.h: Regenerated. 524 * libbfd.h: Likewise. 525 5262018-05-21 H.J. Lu <hongjiu.lu@intel.com> 527 528 PR binutils/23199 529 * elf.c (setup_group): Mark section in a section group with 530 SHF_GROUP. 531 5322018-05-18 H.J. Lu <hongjiu.lu@intel.com> 533 534 PR ld/23194 535 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't 536 set eh->local_ref to 1 if a symbol is versioned and there is a 537 version script. 538 5392018-05-18 Kito Cheng <kito.cheng@gmail.com> 540 541 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle 542 EF_RISCV_RVE. 543 5442018-05-18 Jim Wilson <jimw@sifive.com> 545 546 * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if 547 UNDEFWEAK_NO_DYNAMIC_RELOC is true. 548 (riscv_elf_relocate_section): Don't generate dynamic relocation if 549 UNDEFWEAK_NO_DYNAMIC_RELOC is true. 550 (riscv_elf_finish_dynamic_symbol): Likewise. 551 5522018-05-18 John Darrington <john@darrington.wattle.id.au> 553 554 * Makefile.am: Add s12z files. 555 * Makefile.in: Regenerate. 556 * archures.c: Add bfd_s12z_arch. 557 * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24. 558 * bfd-in2.h: Regenerate. 559 * config.bfd: Add s12z target. 560 * configure.ac: Add s12z target. 561 * configure: Regenerate. 562 * cpu-s12z.c: New file. 563 * elf32-s12z.c: New file. 564 * libbfd.c (bfd_putb24): New function. 565 (bfd_putl24): New function. 566 * libbfd.h: Regenerate. 567 * reloc.c: Add s12z relocations. 568 (bfd_get_reloc_size): Handle size 5 relocs. 569 * targets.c: Add s12z_elf32_vec. 570 5712018-05-18 H.J. Lu <hongjiu.lu@intel.com> 572 573 PR ld/23189 574 * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X 575 like R_386_GOT32. 576 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't 577 set eh->local_ref to 1 for linker defined symbols. 578 5792018-05-18 Alan Modra <amodra@gmail.com> 580 581 PR 23199 582 * elf.c (setup_group): Formatting. Check that SHT_GROUP entries 583 don't point at other SHT_GROUP sections. Set shdr corresponding 584 to invalid entry, to NULL rather than section 0. Identify 585 SHT_GROUP section index when reporting an error. Cope with NULL 586 shdr pointer. 587 5882018-05-18 Alan Modra <amodra@gmail.com> 589 590 * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout. 591 * configure.ac (HAVE_HIDDEN): Check compiler support for hidden 592 visibility. 593 * libbfd.h: Regenerate. 594 * configure: Regenerate. 595 * config.in: Regenerate. 596 5972018-05-18 Alan Modra <amodra@gmail.com> 598 599 * libbfd-in.h: Add include guard. 600 * libcoff-in.h: Likewise. 601 * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif. 602 * doc/Makefile.in: Regenerate. 603 * libbfd.h: Regenerate. 604 * libcoff.h: Regenerate. 605 6062018-05-16 Maciej W. Rozycki <macro@mips.com> 607 608 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'. 609 6102018-05-16 Alan Modra <amodra@gmail.com> 611 612 PR 22458 613 * format.c (struct bfd_preserve): Add section_id. 614 (bfd_preserve_save, bfd_preserve_restore): Save and restore 615 _bfd_section_id. 616 (bfd_reinit): Set _bfd_section_id. 617 (bfd_check_format_matches): Put all matches of any priority into 618 matching_vector. Save initial section id and start each attempted 619 match at that section id. 620 * libbfd-in.h (_bfd_section_id): Declare. 621 * section.c (_bfd_section_id): Rename from section_id and make 622 global. Adjust uses. 623 (bfd_get_next_section_id): Delete. 624 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of 625 bfd_get_section_id with _bfd_section_id. 626 * libbfd.h: Regenerate. 627 * bfd-in2.h: Regenerate. 628 6292018-05-15 Christophe Guillon <christophe.guillon@st.com> 630 631 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields 632 of the aux structure are initialised. 633 6342018-05-15 Francois H. Theron <francois.theron@netronome.com> 635 636 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef. 637 6382018-05-15 Nick Clifton <nickc@redhat.com> 639 640 * po/pt.po: New Portuguese translation. 641 * configure.ac (ALL_LINGUAS): Add pt. 642 * configure: Regenerate. 643 6442018-05-14 H.J. Lu <hongjiu.lu@intel.com> 645 646 PR ld/23169 647 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue 648 an error on IFUNC pointer defined in PDE. 649 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call 650 _bfd_x86_elf_link_fixup_ifunc_symbol. 651 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. 652 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New 653 function. 654 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New. 655 6562018-05-14 H.J. Lu <hongjiu.lu@intel.com> 657 658 PR ld/23162 659 * elfxx-x86.c (elf_x86_linker_defined): New function. 660 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start, 661 _end and _edata locally defined within executables. 662 6632018-05-12 Alan Modra <amodra@gmail.com> 664 665 PR 20659 666 * elf.c (rewrite_elf_program_header): Use segment_mark only for 667 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma. 668 Instead make matching_lma and suggested_lma pointers to the 669 sections. Align section vma and lma calculated from segment. 670 Don't clear includes_phdrs or includes_filehdr based on p_paddr 671 test. Try to handle alignment padding before first section by 672 adjusting new segment lma down. Adjust PT_PHDR map p_paddr. 673 6742018-05-09 Dimitar Dimitrov <dimitar@dinux.eu> 675 676 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation 677 conformant to TI ABI. 678 (pru_elf32_relax_section): Likewise. 679 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code. 680 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend. 681 (pru_elf32_pmem_relocate): Trap - should not get here. 682 (pru_elf32_relocate_section): Add support for REL relocations. 683 (elf_info_to_howto_rel): Enable REL. 684 (elf_backend_may_use_rel_p): Likewise. 685 (elf_backend_may_use_rela_p): Likewise. 686 (elf_backend_default_use_rela_p): Likewise. 687 6882018-05-09 Alan Modra <amodra@gmail.com> 689 690 PR 23148 691 * peXXigen.c (pe_print_edata): Correct minimum size. 692 6932018-05-09 Alan Modra <amodra@gmail.com> 694 695 PR 23147 696 * peXXigen.c (pe_print_idata): Bound check hint_addr. 697 6982018-05-08 Nick Clifton <nickc@redhat.com> 699 700 PR 22809 701 * elf.c (bfd_elf_get_str_section): Check for an excessively large 702 string section. 703 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the 704 attribute section is larger than the size of the file. 705 7062018-05-07 Alan Modra <amodra@gmail.com> 707 708 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than 709 strncmp when checking for ".bf" special symbol. 710 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags 711 section name a char array, remove sentinal known_sections entry, 712 and adjust loop over known_sections to suit. Use memcmp rather 713 than strncmp. 714 7152018-05-04 Alan Modra <amodra@gmail.com> 716 717 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32), 718 (struct elf_external_linux_prpsinfo32_ugid16), 719 (struct elf_external_linux_prpsinfo64_ugid32), 720 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING 721 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas. 722 Move comment to.. 723 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor 724 directives. 725 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING 726 to data. 727 * elf32-ppc.c (ppc_elf_write_core_note): Likewise. 728 * elf32-s390.c (elf_s390_write_core_note): Likewise. 729 * elf64-s390.c (elf_s390_write_core_note): Likewise. 730 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise. 731 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic 732 pragmas. 733 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid 734 false positive gcc-8 warning. 735 * cofflink.c (_bfd_coff_link_input_bfd): Likewise. 736 7372018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> 738 739 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order 740 of arguments when warning about different long double types. 741 7422018-05-03 Simon Atanasyan <simon@atanasyan.com> 743 744 * elf32-mips.c: (elf32_mips_fixup_symbol): New function. 745 (elf_backend_fixup_symbol): New macro. 746 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp 747 handling. 748 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. 749 7502018-04-30 Francois H. Theron <francois.theron@netronome.com> 751 752 * Makefile.am: Added NFP files to build. 753 * archures.c: Added bfd_arch_nfp 754 * config.bfd: Added NFP support. 755 * configure.ac: Added NFP support. 756 * cpu-nfp.c: New, for NFP support. 757 * elf-bfd.h: Added elf_section_info() 758 * elf64-nfp.c: New, for NFP support. 759 * po/SRC-POTFILES.in: Added NFP source files. 760 * targets.c: Added nfp_elf64_vec 761 * bfd-in2.h: Regenerate. 762 * Makefile.in: Regenerate. 763 * configure: Regenerate. 764 7652018-04-27 Alan Modra <amodra@gmail.com> 766 767 * bfd-in2.h: Regenerate. 768 * libbfd.h: Regenerate. 769 7702018-04-27 Alan Modra <amodra@gmail.com> 771 772 PR 23123 773 PR 22374 774 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt 775 relocs for ifuncs. 776 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes. 777 7782018-04-26 Pedro Alves <palves@redhat.com> 779 780 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider 781 ifunc and non-ifunc symbols duplicates. 782 7832018-04-25 Christophe Lyon <christophe.lyon@st.com> 784 Mickaël Guêné <mickael.guene@st.com> 785 786 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New. 787 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case. 788 (elf32_arm_populate_plt_entry): Likewise. 789 (elf32_arm_output_plt_map_1): Likewise. 790 (elf32_arm_output_arch_local_syms): Likewise. 791 7922018-04-25 Christophe Lyon <christophe.lyon@st.com> 793 Mickaël Guêné <mickael.guene@st.com> 794 795 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle 796 _GLOBAL_OFFSET_TABLE_ in FDPIC mode. 797 7982018-04-25 Christophe Lyon <christophe.lyon@st.com> 799 Mickaël Guêné <mickael.guene@st.com> 800 801 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case 802 for R_ARM_TARGET2. 803 8042018-04-25 Christophe Lyon <christophe.lyon@st.com> 805 Mickaël Guêné <mickael.guene@st.com> 806 807 * elf32-arm.c (DEFAULT_STACK_SIZE): New. 808 (elf32_arm_always_size_sections): Create stack segment. 809 8102018-04-25 Christophe Lyon <christophe.lyon@st.com> 811 Mickaël Guêné <mickael.guene@st.com> 812 813 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC) 814 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New 815 relocations. 816 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC, 817 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations. 818 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC, 819 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC. 820 (struct elf32_arm_link_hash_table): Update comment. 821 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations. 822 (IS_ARM_TLS_RELOC): Likewise. 823 (elf32_arm_check_relocs): Likewise. 824 (allocate_dynrelocs_for_symbol): Likewise. 825 (elf32_arm_size_dynamic_sections): Update comment. 826 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC, 827 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC. 828 8292018-04-25 Christophe Lyon <christophe.lyon@st.com> 830 Mickaël Guêné <mickael.guene@st.com> 831 832 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New. 833 (elf32_arm_create_dynamic_sections): Handle FDPIC. 834 (elf32_arm_allocate_plt_entry): Likewise. 835 (elf32_arm_populate_plt_entry): Likewise. 836 (elf32_arm_output_plt_map_1): Likewise. 837 8382018-04-25 Christophe Lyon <christophe.lyon@st.com> 839 Mickaël Guêné <mickael.guene@st.com> 840 841 * elf32-arm.c (struct fdpic_local): New. 842 (elf_arm_obj_tdata): Add local_fdpic_cnts field. 843 (elf32_arm_local_fdpic_cnts): New. 844 (struct fdpic_global): New. 845 (elf32_arm_link_hash_entry): Add fdpic_cnts field. 846 (elf32_arm_link_hash_table): Add srofixup field. 847 (arm_elf_add_rofixup): New. 848 (arm_elf_fill_funcdesc): New. 849 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts. 850 (elf32_arm_allocate_local_sym_info): Likewise. 851 (create_got_section): Create .rofixup section. 852 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts. 853 (bfd_elf32_arm_set_target_params): Handle FDPIC. 854 (elf32_arm_final_link_relocate): Likewise. 855 (elf32_arm_check_relocs): Likewise. 856 (allocate_dynrelocs_for_symbol): Likewise. 857 (elf32_arm_size_dynamic_sections): Likewise. 858 (elf32_arm_finish_dynamic_sections): Likewise. 859 (elf32_arm_output_arch_local_syms): Likewise. 860 (elf32_arm_fdpic_omit_section_dynsym): New. 861 8622018-04-25 Christophe Lyon <christophe.lyon@st.com> 863 Mickaël Guêné <mickael.guene@st.com> 864 865 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC) 866 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC) 867 (BFD_RELOC_ARM_FUNCDESC_VALUE): New. 868 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC, 869 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE. 870 (elf32_arm_howto_from_type): Take new members of 871 elf32_arm_howto_table_2 into account. 872 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC, 873 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC, 874 BFD_RELOC_ARM_FUNCDESC_VALUE. 875 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC, 876 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC, 877 BFD_RELOC_ARM_FUNCDESC_VALUE. 878 8792018-04-25 Christophe Lyon <christophe.lyon@st.com> 880 Mickaël Guêné <mickael.guene@st.com> 881 882 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support 883 EF_ARM_PIC and ELFOSABI_ARM_FDPIC. 884 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC. 885 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC. 886 8872018-04-25 Christophe Lyon <christophe.lyon@st.com> 888 Mickaël Guêné <mickael.guene@st.com> 889 890 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and 891 arm_elf32_fdpic_le_vec to targ_selvecs. Accept 892 arm*-*-uclinuxfdpiceabi. 893 * configure.ac: Add support for arm_elf32_fdpic_be_vec and 894 arm_elf32_fdpic_le_vec. 895 * configure: Regenerate. 896 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p. 897 (elf32_arm_link_hash_table_create): Initialize fdpic_p. 898 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM) 899 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets. 900 (elf32_arm_fdpic_link_hash_table_create): New. 901 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and 902 arm_elf32_fdpic_le_vec. 903 9042018-04-25 Alan Modra <amodra@gmail.com> 905 906 * elf-linux-core.h: Disable gcc-8 string truncation warning. 907 * elf.c (elfcore_write_prpsinfo): Likewise. 908 9092018-04-25 Alan Modra <amodra@gmail.com> 910 911 * Makefile.am: Remove arm-aout and arm-coff support. 912 * config.bfd: Likewise. 913 * configure.ac: Likewise. 914 * targets.c: Likewise. 915 * aout-arm.c: Delete. 916 * armnetbsd.c: Delete. 917 * riscix.c: Delete. 918 * Makefile.in: Regenerate. 919 * configure: Regenerate. 920 * po/SRC-POTFILES.in: Regenerate. 921 9222018-04-24 Nick Clifton <nickc@redhat.com> 923 924 PR 23113 925 * elf.c (ignore_section_sym): Check for the output_section pointer 926 being NULL before dereferencing it. 927 928 PR 23110 929 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for 930 a negative PE_DEBUG_DATA size before iterating over the debug data. 931 9322018-04-23 Alan Modra <amodra@gmail.com> 933 934 * elf-linux-core.h: Revert last change. 935 * elf.c: Likewise. 936 9372018-04-23 Nick Clifton <nickc@redhat.com> 938 939 PR 23056 940 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at 941 the end of the string table, and zero it. 942 9432018-04-23 Alan Modra <amodra@gmail.com> 944 945 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable 946 gcc-8 string truncation warning. 947 (swap_linux_prpsinfo32_ugid16_out): Likewise. 948 (swap_linux_prpsinfo64_ugid32_out): Likewise. 949 (swap_linux_prpsinfo64_ugid16_out): Likewise. 950 * elf.c (elfcore_write_prpsinfo): Likewise. 951 9522018-04-23 Nick Clifton <nickc@redhat.com> 953 954 PR 23056 955 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at 956 the end of the string table, and zero it. 957 9582018-04-20 Alan Modra <amodra@gmail.com> 959 960 PR 22978 961 * elf32-hppa.c (got_relocs_needed): Add extra param to special 962 case both dtprel and tprel relocs. 963 (allocate_dynrelocs): Adjust conditions for got relocs. 964 (elf32_hppa_relocate_section): Likewise for local sym got relocs. 965 Emit dynamic relocs on TLS GOT entries for shared libraries, 966 not when pic. Omit dynamic reloc on dtprel entry when local, 967 and on tprel entry when local and executable. 968 9692018-04-19 Alan Modra <amodra@gmail.com> 970 971 PR 22537 972 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1. 973 (hppa_type_of_stub): Don't return a long branch stub for 974 symbols other than those defined statically. 975 9762018-04-19 Alan Modra <amodra@gmail.com> 977 978 * Makefile.am: Revert 2018-04-18 coff-mips changes. 979 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec 980 to selvecs for mips targets change 2018-04-18. 981 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec 982 and mips_ecoff_bele_vec. 983 * targets.c: Likewise. 984 * coff-mips.c: Resurrect. 985 * Makefile.in: Regenerate. 986 * configure: Regenerate. 987 * po/SRC-POTFILES.in: Regenerate. 988 9892018-04-18 Alan Modra <amodra@gmail.com> 990 991 * Makefile.am: Remove mips aout and coff support. 992 * config.bfd: Likewise. 993 * configure.ac: Likewise. 994 * targets.c: Likewise. 995 * coff-mips.c: Delete 996 * mipsbsd.c: Delete 997 * pe-mips.c: Delete 998 * pei-mips.c: Delete 999 * Makefile.in: Regenerate. 1000 * configure: Regenerate. 1001 * po/SRC-POTFILES.in: Regenerate. 1002 10032018-04-17 H.J. Lu <hongjiu.lu@intel.com> 1004 1005 * elf32-i386.c (elf32_bed): Define before including 1006 "elf32-target.h". 1007 * elf64-x86-64.c (elf64_bed): Define before including 1008 "elf64-target.h". 1009 (elf32_bed): Define before including "elf32-target.h". 1010 10112018-04-17 H.J. Lu <hongjiu.lu@intel.com> 1012 1013 PR ld/23055 1014 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a 1015 normal input file with compatible relocation. 1016 10172018-04-18 Alan Modra <amodra@gmail.com> 1018 1019 * Makefile.am: Remove support for assorted i386 aout and coff targets. 1020 * config.bfd: Likewise. 1021 * configure.ac: Likewise. 1022 * doc/bfdint.texi: Likewise. 1023 * targets.c: Likewise. 1024 * freebsd.h: Delete. 1025 * i386dynix.c: Delete. 1026 * i386freebsd.c: Delete. 1027 * i386linux.c: Delete. 1028 * i386mach3.c: Delete. 1029 * i386netbsd.c: Delete. 1030 * i386os9k.c: Delete. 1031 * Makefile.in: Regenerate. 1032 * configure: Regenerate. 1033 * po/SRC-POTFILES.in: Regenerate. 1034 10352018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com> 1036 1037 Microblaze Target: PIC data text relative 1038 1039 * bfd/reloc.c (2 new BFD relocations): 1040 BFD_RELOC_MICROBLAZE_64_TEXTPCREL & 1041 BFD_RELOC_MICROBLAZE_64_TEXTPCREL 1042 * bfd/bfd-in2.h: Regenerate 1043 * bfd/libbfd.h: Regenerate 1044 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3 1045 new relocs and handle them in both relocate and relax functions. 1046 (microblaze_elf_reloc_type_lookup): add mapping between for new 1047 bfd relocs. 1048 (microblaze_elf_relocate_section): Handle new relocs in case of 1049 elf relocation. 1050 (microblaze_elf_relax_section): Handle new relocs for elf relaxation. 1051 10522018-04-17 Nick Clifton <nickc@redhat.com> 1053 1054 PR 23055 1055 * aoutx.h (find_nearest_line): Check that the symbol name exists 1056 and is long enough, before attempting to see if it is for a .o 1057 file. 1058 * hash.c (bfd_hash_hash): Add an assertion that the string is not 1059 NULL. 1060 * linker.c (bfd_link_hash_lookup): Fail if the table or string are 1061 NULL. 1062 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry 1063 has no name. 1064 1065 PR 23065 1066 * dwarf2.c (concat_filename): Check for a NULL table pointer. 1067 10682018-04-16 Nick Clifton <nickc@redhat.com> 1069 1070 PR 23061 1071 * coffgen.c (coff_pointerize_aux): Check for an out of range 1072 fixup. 1073 10742018-04-16 Alan Modra <amodra@gmail.com> 1075 1076 * Makefile.am: Remove arm-epoc-pe support. 1077 * coff-arm.c: Likewise. 1078 * config.bfd: Likewise. 1079 * configure.ac: Likewise. 1080 * targets.c: Likewise. 1081 * epoc-pe-arm.c: Delete. 1082 * epoc-pei-arm.c: Delete. 1083 * Makefile.in: Regenerate. 1084 * configure: Regenerate. 1085 * po/SRC-POTFILES.in: Regenerate. 1086 10872018-04-16 Alan Modra <amodra@gmail.com> 1088 1089 * Makefile.am: Remove sparc-aout and sparc-coff support. 1090 * config.bfd: Likewise. 1091 * configure.ac: Likewise. 1092 * targets.c: Likewise. 1093 * aout-sparcle.c: Delete. 1094 * aoutf1.h: Delete. 1095 * cf-sparclynx.c: Delete. 1096 * coff-sparc.c: Delete. 1097 * demo64.c: Delete. 1098 * sparclinux.c: Delete. 1099 * sparclynx.c: Delete. 1100 * sparcnetbsd.c: Delete. 1101 * sunos.c: Delete. 1102 * Makefile.in: Regenerate. 1103 * configure: Regenerate. 1104 * po/SRC-POTFILES.in: Regenerate. 1105 11062018-04-16 Alan Modra <amodra@gmail.com> 1107 1108 * Makefile.am: Remove m68k-aout and m68k-coff support. 1109 * aoutf1.h: Likewise. 1110 * aoutx.h: Likewise. 1111 * archive.c: Likewise. 1112 * bfd-in.h: Likewise. 1113 * bfd.c: Likewise. 1114 * coffcode.h: Likewise. 1115 * coffswap.h: Likewise. 1116 * config.bfd: Likewise. 1117 * configure.ac: Likewise. 1118 * configure.host: Likewise. 1119 * doc/bfd.texinfo: Likewise. 1120 * doc/bfdint.texi: Likewise. 1121 * freebsd.h: Likewise. 1122 * gen-aout.c: Likewise. 1123 * hpux-core.c: Likewise. 1124 * libaout.h: Likewise. 1125 * libbfd-in.h: Likewise. 1126 * pdp11.c: Likewise. 1127 * peicode.h: Likewise. 1128 * riscix.c: Likewise. 1129 * targets.c: Likewise. 1130 * aout0.c: Delete. 1131 * coff-apollo.c: Delete. 1132 * coff-aux.c: Delete. 1133 * coff-m68k.c: Delete. 1134 * coff-svm68k.c: Delete. 1135 * coff-u68k.c: Delete. 1136 * hosts/delta68.h: Delete. 1137 * hosts/hp300bsd.h: Delete. 1138 * hosts/m68kaux.h: Delete. 1139 * hosts/news.h: Delete. 1140 * hp300bsd.c: Delete. 1141 * hp300hpux.c: Delete. 1142 * liboasys.h: Delete. 1143 * m68k4knetbsd.c: Delete. 1144 * m68klinux.c: Delete. 1145 * m68knetbsd.c: Delete. 1146 * oasys.c: Delete. 1147 * versados.c: Delete. 1148 * Makefile.in: Regenerate. 1149 * bfd-in2.h: Regenerate. 1150 * configure: Regenerate. 1151 * libbfd.h: Regenerate. 1152 * po/SRC-POTFILES.in: Regenerate. 1153 11542018-04-16 Alan Modra <amodra@gmail.com> 1155 1156 * Makefile.am: Remove sh5 and sh64 support. 1157 * archures.c: Likewise. 1158 * config.bfd: Likewise. 1159 * configure.ac: Likewise. 1160 * cpu-sh.c: Likewise. 1161 * elf32-sh-relocs.h: Likewise. 1162 * elf32-sh.c: Likewise. 1163 * targets.c: Likewise. 1164 * elf32-sh64-com.c: Delete. 1165 * elf32-sh64.c: Delete. 1166 * elf32-sh64.h: Delete. 1167 * elf64-sh64.c: Delete. 1168 * Makefile.in: Regenerate. 1169 * bfd-in2.h: Regenerate. 1170 * configure: Regenerate. 1171 * po/SRC-POTFILES.in: Regenerate. 1172 11732018-04-16 Alan Modra <amodra@gmail.com> 1174 1175 * Makefile.am: Remove sh-symbianelf support. 1176 * config.bfd: Likewise. 1177 * configure.ac: Likewise. 1178 * targets.c: Likewise. 1179 * elf32-sh-symbian.c: Delete. 1180 * Makefile.in: Regenerate. 1181 * configure: Regenerate. 1182 * po/SRC-POTFILES.in: Regenerate. 1183 11842018-04-16 Alan Modra <amodra@gmail.com> 1185 1186 * Makefile.am: Remove vax-bsd and vax-ultrix support. 1187 * config.bfd: Likewise. 1188 * configure.ac: Likewise. 1189 * targets.c: Likewise. 1190 * vaxbsd.c: Delete. 1191 * Makefile.in: Regenerate. 1192 * configure: Regenerate. 1193 * po/SRC-POTFILES.in: Regenerate. 1194 11952018-04-16 Alan Modra <amodra@gmail.com> 1196 1197 * Makefile.am: Remove w65 support. 1198 * archures.c: Likewise. 1199 * coffcode.h: Likewise. 1200 * config.bfd: Likewise. 1201 * configure.ac: Likewise. 1202 * targets.c: Likewise. 1203 * coff-w65.c: Delete. 1204 * cpu-w65.c: Delete. 1205 * Makefile.in: Regenerate. 1206 * bfd-in2.h: Regenerate. 1207 * configure: Regenerate. 1208 * po/SRC-POTFILES.in: Regenerate. 1209 12102018-04-16 Alan Modra <amodra@gmail.com> 1211 1212 * Makefile.am: Remove we32k support. 1213 * archures.c: Likewise. 1214 * coffcode.h: Likewise. 1215 * config.bfd: Likewise. 1216 * configure.ac: Likewise. 1217 * targets.c: Likewise. 1218 * coff-we32k.c: Delete. 1219 * cpu-we32k.c: Delete. 1220 * Makefile.in: Regenerate. 1221 * bfd-in2.h: Regenerate. 1222 * configure: Regenerate. 1223 * po/SRC-POTFILES.in: Regenerate. 1224 12252018-04-16 Alan Modra <amodra@gmail.com> 1226 1227 * Makefile.am: Remove m88k support. 1228 * aoutx.h: Likewise. 1229 * archures.c: Likewise. 1230 * coffcode.h: Likewise. 1231 * coffswap.h: Likewise. 1232 * config.bfd: Likewise. 1233 * configure.ac: Likewise. 1234 * cpu-ns32k.c: Likewise. 1235 * elf32-nds32.c: Likewise. 1236 * mach-o.c: Likewise. 1237 * netbsd-core.c: Likewise. 1238 * reloc.c: Likewise. 1239 * targets.c: Likewise. 1240 * coff-m88k.c: Delete. 1241 * cpu-m88k.c: Delete. 1242 * elf32-m88k.c: Delete. 1243 * hosts/m88kmach3.h: Delete. 1244 * m88kmach3.c: Delete. 1245 * m88kopenbsd.c: Delete. 1246 * Makefile.in: Regenerate. 1247 * bfd-in2.h: Regenerate. 1248 * configure: Regenerate. 1249 * po/SRC-POTFILES.in: Regenerate. 1250 12512018-04-16 Alan Modra <amodra@gmail.com> 1252 1253 * Makefile.am: Remove i370 support. 1254 * archures.c: Likewise. 1255 * config.bfd: Likewise. 1256 * configure.ac: Likewise. 1257 * targets.c: Likewise. 1258 * cpu-i370.c: Delete. 1259 * elf32-i370.c: Delete. 1260 * Makefile.in: Regenerate. 1261 * bfd-in2.h: Regenerate. 1262 * configure: Regenerate. 1263 * po/SRC-POTFILES.in: Regenerate. 1264 12652018-04-16 Alan Modra <amodra@gmail.com> 1266 1267 * Makefile.am: Remove h8500 support. 1268 * archures.c: Likewise. 1269 * coffcode.h: Likewise. 1270 * config.bfd: Likewise. 1271 * configure.ac: Likewise. 1272 * targets.c: Likewise. 1273 * coff-h8500.c: Delete. 1274 * cpu-h8500.c: Delete. 1275 * Makefile.in: Regenerate. 1276 * bfd-in2.h: Regenerate. 1277 * configure: Regenerate. 1278 * po/SRC-POTFILES.in: Regenerate. 1279 12802018-04-16 Alan Modra <amodra@gmail.com> 1281 1282 * Makefile.am: Remove h8300-coff support. 1283 * coffcode.h: Likewise. 1284 * config.bfd: Likewise. 1285 * configure.ac: Likewise. 1286 * reloc16.c: Likewise. 1287 * targets.c: Likewise. 1288 * coff-h8300.c: Delete. 1289 * Makefile.in: Regenerate. 1290 * configure: Regenerate. 1291 * po/SRC-POTFILES.in: Regenerate. 1292 12932018-04-16 Alan Modra <amodra@gmail.com> 1294 1295 * Makefile.am: Remove IEEE 695 support. 1296 * archures.c: Likewise. 1297 * bfd.c: Likewise. 1298 * config.bfd: Likewise. 1299 * configure.ac: Likewise. 1300 * doc/bfd.texinfo: Likewise. 1301 * doc/bfdint.texi: Likewise. 1302 * doc/bfdsumm.texi: Likewise. 1303 * section.c: Likewise. 1304 * targets.c: Likewise. 1305 * ieee.c: Delete. 1306 * libieee.h: Delete. 1307 * Makefile.in: Regenerate. 1308 * bfd-in2.h: Regenerate. 1309 * configure: Regenerate. 1310 * po/SRC-POTFILES.in: Regenerate. 1311 13122018-04-16 Alan Modra <amodra@gmail.com> 1313 1314 * config.bfd: Remove tandem support. 1315 13162018-04-16 Alan Modra <amodra@gmail.com> 1317 1318 * Makefile.am: Remove newsos3 support. 1319 * aoutx.h: Likewise. 1320 * config.bfd: Likewise. 1321 * configure.ac: Likewise. 1322 * targets.c: Likewise. 1323 * newsos3.c: Delete. 1324 * Makefile.in: Regenerate. 1325 * configure: Regenerate. 1326 * po/SRC-POTFILES.in: Regenerate. 1327 13282018-04-16 Alan Modra <amodra@gmail.com> 1329 1330 * Makefile.am: Remove netware support. 1331 * bfd-in.h: Likewise. 1332 * bfd.c: Likewise. 1333 * config.bfd: Likewise. 1334 * configure.ac: Likewise. 1335 * doc/bfdint.texi: Likewise. 1336 * ecoff.c: Likewise. 1337 * targets.c: Likewise. 1338 * libnlm.h: Delete. 1339 * nlm-target.h: Delete. 1340 * nlm.c: Delete. 1341 * nlm32-alpha.c: Delete. 1342 * nlm32-i386.c: Delete. 1343 * nlm32-ppc.c: Delete. 1344 * nlm32-sparc.c: Delete. 1345 * nlm32.c: Delete. 1346 * nlm64.c: Delete. 1347 * nlmcode.h: Delete. 1348 * nlmswap.h: Delete. 1349 * Makefile.in: Regenerate. 1350 * bfd-in2.h: Regenerate. 1351 * configure: Regenerate. 1352 * po/SRC-POTFILES.in: Regenerate. 1353 13542018-04-16 Alan Modra <amodra@gmail.com> 1355 1356 * archures.c: Remove tahoe support. 1357 * config.bfd: Likewise. 1358 * configure.ac: Likewise. 1359 * hosts/tahoe.h: Delete. 1360 * bfd-in2.h: Regenerate. 1361 * configure: Regenerate. 1362 13632018-04-14 Alan Modra <amodra@gmail.com> 1364 1365 * elf-bfd.h (struct elf_backend_data): Add relropagesize. 1366 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and 1367 sanity test. 1368 (elfNN_bed): Init relropagesize. 1369 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to 1370 select relropagesize. 1371 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000. 1372 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE. 1373 (ELF_MINPAGESIZE): Don't define. 1374 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000. 1375 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE. 1376 * bfd-in2.h: Regenerate. 1377 13782018-04-14 Alan Modra <amodra@gmail.com> 1379 1380 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend 1381 on __QNXTARGET__ define. 1382 13832018-04-14 Alan Modra <amodra@gmail.com> 1384 1385 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss* 1386 to obsolete list. 1387 13882018-04-11 Alan Modra <amodra@gmail.com> 1389 1390 * aout-adobe.c: Delete. 1391 * bout.c: Delete. 1392 * coff-i860.c: Delete. 1393 * coff-i960.c: Delete. 1394 * cpu-i860.c: Delete. 1395 * cpu-i960.c: Delete. 1396 * elf32-i860.c: Delete. 1397 * elf32-i960.c: Delete. 1398 * hosts/i860mach3.h: Delete. 1399 * Makefile.am: Remove i860, i960, bout, and adobe support. 1400 * archures.c: Remove i860 and i960 support. 1401 * coffcode.h: Likewise. 1402 * reloc.c: Likewise. 1403 * aoutx.h: Comment updates. 1404 * archive.c: Remove BOUT and i960 support. 1405 * bfd.c: Remove BOUT support. 1406 * coffswap.h: Remove i960 support. 1407 * config.bfd: Remove i860, i960 and adobe targets. 1408 * configure.ac: Remove adode, bout, i860, i960, icoff targets. 1409 * targets.c: Likewise. 1410 * ieee.c: Remove i960 support. 1411 * mach-o.c: Remove i860 support. 1412 * Makefile.in: Regenerate. 1413 * bfd-in2.h: Regenerate. 1414 * configure: Regenerate. 1415 * libbfd.h: Regenerate. 1416 * po/SRC-POTFILES.in: Regenerate. 1417 14182018-04-09 Maciej W. Rozycki <macro@mips.com> 1419 1420 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer 1421 in the BFD symbol referred by the relocation. 1422 (mips_elf64_write_rela): Likewise. 1423 14242018-04-09 Maciej W. Rozycki <macro@mips.com> 1425 1426 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an 1427 error for out-of-range `r_sym' values. 1428 14292018-04-09 Alan Modra <amodra@gmail.com> 1430 1431 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field. 1432 (struct ppc_link_hash_table): Add can_convert_all_inline_plt. 1433 (ppc64_elf_check_relocs): Set has_pltcall. 1434 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries. 1435 (ppc64_elf_inline_plt): New function. 1436 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals. 1437 * elf64-ppc.h (ppc64_elf_inline_plt): Declare. 1438 * elf32-ppc.c (has_pltcall): Define. 1439 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt. 1440 (ppc_elf_check_relocs): Set has_pltcall. 1441 (ppc_elf_inline_plt): New function. 1442 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries. 1443 (ppc_elf_size_dynamic_sections): Likewise. 1444 * elf32-ppc.h (ppc_elf_inline_plt): Declare. 1445 14462018-04-09 Alan Modra <amodra@gmail.com> 1447 1448 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos. 1449 (is_plt_seq_reloc): New function. 1450 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs. 1451 (ppc_elf_tls_optimize): Handle inline plt call sequence. 1452 (ppc_elf_relax_section): Handle PLTCALL reloc. 1453 (ppc_elf_relocate_section): Nop out inline plt call sequence when 1454 resolving locally. 1455 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and 1456 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE. 1457 (has_tls_get_addr_call): Correct comment. 1458 (is_branch_reloc): Add PLTCALL. 1459 (is_plt_seq_reloc): New function. 1460 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set 1461 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt 1462 entry for R_PPC64_PLTCALL. 1463 (ppc64_elf_tls_optimize): Handle inline plt call sequence. 1464 (ppc_type_of_stub): Handle PLTCALL reloc. 1465 (toc_adjusting_stub_needed): Likewise. 1466 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL 1467 reloc insn. Nop out inline plt call sequence when resolving 1468 locally. Handle __tls_get_addr inline plt call optimization. 1469 14702018-04-09 Alan Modra <amodra@gmail.com> 1471 1472 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define. 1473 (struct ppc_stub_hash_entry): Add symtype field. 1474 (PLT_KEEP): Define. 1475 (struct ppc_link_hash_table): Add pltlocal and relpltlocal. 1476 (create_linkage_sections): Create pltlocal and relpltlocal. 1477 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols. 1478 Set PLT_KEEP. 1479 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls. 1480 (allocate_dynrelocs): Allocate pltlocal and relpltlocal. 1481 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal. 1482 Keep PLT entries for inline calls against locals. 1483 (ppc_build_one_stub): Use pltlocal as appropriate. 1484 (ppc_size_one_stub): Likewise. 1485 (ppc64_elf_size_stubs): Set symtype. 1486 (build_global_entry_stubs_and_plt): Init pltlocal and write 1487 relpltlocal for globals. 1488 (write_plt_relocs_for_local_syms): Likewise for local syms. 1489 (ppc64_elf_relocate_section): Support PLT for local syms. 1490 * elf32-ppc.c (PLT_KEEP): Define. 1491 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal. 1492 (ppc_elf_create_glink): Create pltlocal and relpltlocal. 1493 (ppc_elf_check_relocs): Allow PLT relocs on local symbols. 1494 Set PLT_KEEP. Adjust update_local_sym_info call. 1495 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls. 1496 (allocate_dynrelocs): Allocate pltlocal and relpltlocal. 1497 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal. 1498 (ppc_elf_relocate_section): Support PLT16 relocs for local syms. 1499 (write_global_sym_plt): Init pltlocal and write relpltlocal. 1500 (ppc_finish_symbols): Likewise for locals. 1501 15022018-04-09 Alan Modra <amodra@gmail.com> 1503 1504 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs 1505 for local symbols to.. 1506 (write_plt_relocs_for_local_syms): ..here. New function. 1507 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for 1508 global symbols to.. 1509 (build_global_entry_stubs_and_plt): ..here. Rename from 1510 build_global_entry_stubs. 1511 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt. 1512 Call write_plt_relocs_for_local_syms. 1513 * elf32-ppc.c (get_sym_h): New function. 1514 (ppc_elf_relax_section): Use get_sym_h. 1515 (ppc_elf_relocate_section): Move output of PLT relocs and glink 1516 stubs for local symbols to.. 1517 (ppc_finish_symbols): ..here. New function. 1518 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for 1519 global syms to.. 1520 (write_global_sym_plt): ..here. New function. 1521 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute. 1522 (ppc_finish_symbols): Declare. 1523 15242018-04-09 Alan Modra <amodra@gmail.com> 1525 1526 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs. 1527 (ppc_elf_relocate_section): Likewise. 1528 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS. 1529 (ppc64_elf_relocate_section): Likewise. Correct PLT16 1530 resolution to plt entry relative to toc pointer. 1531 15322018-04-09 Alan Modra <amodra@gmail.com> 1533 1534 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL, 1535 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout 1536 file when other TLS flags are tested in a mask. 1537 (TLS_MARK, NON_GOT): Define. 1538 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well. 1539 (update_local_sym_info): Don't create got entry when NON_GOT. 1540 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC. 1541 Set TLS_MARK. 1542 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK. 1543 (ppc64_elf_relocate_section): Likewise. 1544 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect 1545 __tls_get_addr calls lacking a marker reloc. 1546 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL, 1547 TLS_TPRELGD): Renumber. Update comment. 1548 (TLS_MARK, NON_GOT): Define. 1549 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well. 1550 (update_local_sym_info): Don't create got entry when NON_GOT. 1551 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC. 1552 Set TLS_MARK. 1553 (ppc_elf_tls_optimize): Don't attempt to optimize indirect 1554 __tls_get_addr calls lacking a marker reloc. 1555 15562018-04-06 H.J. Lu <hongjiu.lu@intel.com> 1557 1558 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out 1559 R_X86_64_converted_reloc_bit. 1560 15612018-04-05 H.J. Lu <hongjiu.lu@intel.com> 1562 1563 PR gas/22318 1564 * configure: Regenerated. 1565 15662018-04-05 Alan Modra <amodra@gmail.com> 1567 1568 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL. 1569 (elf_hppa_info_to_howto_rel): Likewise. 1570 15712018-04-04 Maciej W. Rozycki <macro@mips.com> 1572 1573 * elf-hppa.h (elf_hppa_info_to_howto): Also return 1574 unsuccessfully for unimplemented relocations. 1575 (elf_hppa_info_to_howto_rel): Likewise. 1576 15772018-04-04 Maciej W. Rozycki <macro@mips.com> 1578 1579 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the 1580 `bfd_error_bad_value' error and call `_bfd_error_handler' on a 1581 howto lookup failure. 1582 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call 1583 accordingly. 1584 (elf32_i860_info_to_howto_rela): Likewise. 1585 (elf32_i860_relocate_splitn): Likewise. 1586 (elf32_i860_relocate_pc16): Likewise. 1587 (elf32_i860_relocate_pc26): Likewise. 1588 (elf32_i860_relocate_section): Likewise. 1589 15902018-04-04 Maciej W. Rozycki <macro@mips.com> 1591 1592 * elf32-visium.c (visium_info_to_howto_rela): Correct the range 1593 check for `visium_elf_howto_table' table access. 1594 15952018-04-04 Maciej W. Rozycki <macro@mips.com> 1596 1597 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range 1598 check for `iq2000_elf_howto_table' table access. 1599 16002018-04-04 Maciej W. Rozycki <macro@mips.com> 1601 1602 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check 1603 for `elf32_frv_howto_table' table access. 1604 16052018-04-04 Maciej W. Rozycki <macro@mips.com> 1606 1607 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return 1608 unsuccessfully for placeholder howtos. 1609 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise. 1610 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise. 1611 16122018-03-29 Maciej W. Rozycki <macro@mips.com> 1613 1614 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to 1615 `_bfd_error_handler' and to set the `bfd_error_bad_value' error. 1616 16172018-03-28 Maciej W. Rozycki <macro@mips.com> 1618 1619 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove 1620 ATTRIBUTE_UNUSED from `abfd'. 1621 16222018-03-28 Maciej W. Rozycki <macro@mips.com> 1623 1624 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct 1625 `_bfd_error_handler' call formatting. 1626 16272018-03-28 Maciej W. Rozycki <macro@mips.com> 1628 1629 * elf32-mips.c (mips_info_to_howto_rel): Call 1630 `mips_elf32_rtype_to_howto' directly rather than via 1631 `->elf_backend_mips_rtype_to_howto'. 1632 16332018-03-28 Renlin Li <renlin.li@arm.com> 1634 1635 PR ld/22970 1636 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for 1637 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12, 1638 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC, 1639 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12, 1640 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC, 1641 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12, 1642 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC, 1643 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12, 1644 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC. 1645 (elfNN_aarch64_final_link_relocate): Support new relocations. 1646 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new 1647 relocations. 1648 (_bfd_aarch64_elf_resolve_relocation): Support new relocations. 1649 16502018-03-28 Renlin Li <renlin.li@arm.com> 1651 1652 PR ld/22970 1653 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12 1654 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC, 1655 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12, 1656 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC, 1657 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12, 1658 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC, 1659 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12, 1660 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC, 1661 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12, 1662 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC. 1663 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for 1664 TLSLE_LDST16_TPREL_LO12, 1665 TLSLE_LDST16_TPREL_LO12_NC, 1666 TLSLE_LDST32_TPREL_LO12, 1667 TLSLE_LDST32_TPREL_LO12_NC, 1668 TLSLE_LDST64_TPREL_LO12, 1669 TLSLE_LDST64_TPREL_LO12_NC, 1670 TLSLE_LDST8_TPREL_LO12, 1671 TLSLE_LDST8_TPREL_LO12_NC. 1672 * bfd-in2.h: Regenerated. 1673 * libbfd.h: Regenerated. 1674 16752018-03-28 Eric Botcazou <ebotcazou@adacore.com> 1676 1677 PR ld/22972 1678 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag 1679 has_old_style_got_reloc. 1680 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style 1681 relocations. Fix a couple of long lines. 1682 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate 1683 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style 1684 GOT relocations. 1685 16862018-03-25 H.J. Lu <hongjiu.lu@intel.com> 1687 1688 PR ld/23000 1689 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add 1690 ENDBR64 to the TLSDESC PLT entry. 1691 16922018-03-21 Alan Modra <amodra@gmail.com> 1693 1694 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting 1695 symbols. Use size_t counts. Delete redundant opd test. 1696 16972018-03-21 Alan Modra <amodra@gmail.com> 1698 1699 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms. 1700 17012018-03-21 Alan Modra <amodra@gmail.com> 1702 1703 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask 1704 field unsigned. 1705 (update_local_sym_info): Likewise for local_got_tls_masks. 1706 (ppc_elf_tls_optimize): Likewise for lgot_masks. 1707 17082018-03-21 Alan Modra <amodra@gmail.com> 1709 1710 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo. 1711 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we 1712 do in size_dynamic_sections. 1713 17142018-03-21 Alan Modra <amodra@gmail.com> 1715 1716 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1] 1717 without first checking array bounds. 1718 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 1719 17202018-03-20 H.J. Lu <hongjiu.lu@intel.com> 1721 1722 PR ld/22983 1723 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set 1724 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list. 1725 17262018-03-19 Nick Clifton <nickc@redhat.com> 1727 1728 * po/es.po: Updated Spanish translation. 1729 17302018-03-15 Max Filippov <jcmvbkbc@gmail.com> 1731 1732 * elf32-xtensa.c (xlate_map_entry): Change types of address 1733 fields from 'unsigned' to 'bfd_vma'. 1734 (xlate_offset_with_removed_text): Use struct xlate_map_entry as 1735 the key argument to bsearch. Allow offsets past the end of a 1736 section, use the last map entry for translation of such offsets. 1737 17382018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com> 1739 1740 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed. 1741 Not support the target feature. 1742 (nds32_elf_ex9_itb_base): Likewise. 1743 (nds32_elf_ex9_import_table): Likewise. 1744 (nds32_elf_ex9_finish): Likewise. 1745 (nds32_elf_ex9_reloc_jmp): Likewise. 1746 (nds32_elf_get_insn_with_reg): Likewise. 1747 (nds32_get_local_syms): Likewise. 1748 (nds32_elf_ex9_replace_instruction): Likewise. 1749 (nds32_elf_ifc_calc): Likewise. 1750 (nds32_elf_ifc_finish): Likewise. 1751 (nds32_elf_ifc_replace): Likewise. 1752 (nds32_elf_ifc_reloc): Likewise. 1753 17542018-03-14 Alan Modra <amodra@gmail.com> 1755 1756 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having 1757 sfpr size added before defining alias symbols. 1758 (ppc64_elf_build_stubs): Add stub section padding before 1759 copying sfpr contents and defining save/restore alias symbols. 1760 17612018-03-14 H.J. Lu <hongjiu.lu@intel.com> 1762 1763 PR ld/20882 1764 * elflink.c (elf_gc_mark_debug_section): Also check the local 1765 debug definition section. 1766 17672018-03-13 Nick Clifton <nickc@redhat.com> 1768 1769 PR 22113 1770 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean 1771 function. Add an end address parameter. Check access of the data 1772 pointer to make sure that they do not extend beyond the end 1773 address. Return FALSE if any check fails. Add the end address 1774 pointer to the ui structure. 1775 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind 1776 codes to make sure that they do not extend beyond the end address 1777 pointer. Print an error message and return immediately if any 1778 check fails. 1779 17802018-03-09 Nick Clifton <nickc@redhat.com> 1781 1782 * elf64-s390.c (elf_s390_relocate_section): Move check for 1783 relocations against non-allocated sections to before the code that 1784 handles ifunc relocations. 1785 * elf32-s390.c (elf_s390_relocate_section): Likewise. 1786 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat 1787 relocs against IFUNC symbols in non-allocated sections as relocs 1788 against FUNC symbols. 1789 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. 1790 17912018-03-08 H.J. Lu <hongjiu.lu@intel.com> 1792 1793 PR ld/22929 1794 * elf32-i386.c (elf_i386_relocate_section): Treat relocation 1795 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as 1796 relocation against FUNC symbol. 1797 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. 1798 17992018-03-07 Renlin Li <renlin.li@arm.com> 1800 1801 PR ld/20402 1802 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute 1803 symbol, and don't emit relocation in specific case. 1804 18052018-03-07 Alan Modra <amodra@gmail.com> 1806 1807 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error. 1808 (mips_elf64_slurp_one_reloc_table): Pass on error. 1809 18102018-03-03 James Cowgill <james.cowgill@mips.com> 1811 Maciej W. Rozycki <macro@mips.com> 1812 1813 PR ld/21900 1814 * elfxx-mips.c (mips_elf_calculate_relocation): Only return 1815 after calling `undefined_symbol' hook if this is an error 1816 condition. Assume the value of 0 for the symbol requested 1817 otherwise. 1818 18192018-03-02 Jim Wilson <jimw@sifive.com> 1820 1821 PR 22903 1822 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch 1823 and nop instead of 4. 1824 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by 1825 8 instead of 4. 1826 18272018-03-01 Jim Wilson <jimw@sifive.com> 1828 1829 PR 22756 1830 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use 1831 else if instead of if. 1832 18332018-03-01 Alan Modra <amodra@gmail.com> 1834 1835 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test. 1836 18372018-02-28 Alan Modra <amodra@gmail.com> 1838 1839 PR 22887 1840 * aoutx.h (swap_std_reloc_in): Correct r_index bound check. 1841 18422018-02-28 Nick Clifton <nickc@redhat.com> 1843 1844 PR 22895 1845 PR 22893 1846 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block 1847 pointer. Drop unused abfd parameter. Check the size of the block 1848 before initialising the data field. Return the end pointer if the 1849 size is invalid. 1850 (read_attribute_value): Adjust invocations of read_n_bytes. 1851 1852 PR 22894 1853 * dwarf1.c (parse_die): Check the length of form blocks before 1854 advancing the data pointer. 1855 18562018-02-28 Alan Modra <amodra@gmail.com> 1857 1858 PR 22887 1859 * aoutx.h (translate_symbol_table): Print an error message and set 1860 bfd_error on finding an invalid name string offset. 1861 18622018-02-27 H.J. Lu <hongjiu.lu@intel.com> 1863 1864 * config.in: Regenerated. 1865 * configure: Likewise. 1866 * configure.ac: Add --enable-separate-code. 1867 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default 1868 to 1 for Linux/x86 targets, 1869 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if 1870 DEFAULT_LD_Z_SEPARATE_CODE is 1. 1871 18722018-02-27 Nick Clifton <nickc@redhat.com> 1873 1874 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning 1875 message. 1876 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise. 1877 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise. 1878 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise. 1879 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise. 1880 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise. 1881 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise. 1882 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise. 1883 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise. 1884 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise. 1885 1886 PR 22875 1887 * elf-bfd.h (struct elf_backend_data): Change the return type of 1888 the elf_info_to_howto and elf_info_to_howto_rel function pointers 1889 to bfd_boolean. 1890 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return 1891 value from the info_to_howto function and fail if that function 1892 failed. 1893 * elf32-h8300.c (elf32_h8_relocate_section): Check return value 1894 from the info_to_howto function. 1895 (elf32_h8_relax_section): Likewise. 1896 * elf32-lm32.c (lm32_elf_relocate_section): Likewise. 1897 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise. 1898 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise. 1899 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. 1900 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise. 1901 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise. 1902 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise. 1903 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise. 1904 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise. 1905 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise. 1906 (riscv_elf_relocate_section): Likewise. 1907 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to 1908 bfd_boolean. Issue an error message, set an error value and 1909 return FALSE if the reloc is not recognized. 1910 (elf_hppa_info_to_howto_rel): Likewise. 1911 * elf-m10200.c (mn10200_info_to_howto): Likewise. 1912 * elf-m10300.c (mn10300_info_to_howto): Likewise. 1913 * elf.c (_bfd_elf_no_info_to_howto): Likewise. 1914 * elf32-arc.c (arc_info_to_howto_rel): Likewise. 1915 * elf32-arm.c (elf32_arm_info_to_howto): Likewise. 1916 * elf32-avr.c (avr_info_to_howto_rela): Likewise. 1917 * elf32-bfin.c (bfin_info_to_howto): Likewise. 1918 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise. 1919 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise. 1920 * elf32-cris.c (elf_cr16c_info_to_howto_rel) 1921 (cris_info_to_howto_rela): Likewise. 1922 * elf32-crx.c (elf_crx_info_to_howto): Likewise. 1923 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise. 1924 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela): 1925 Likewise. 1926 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto) 1927 (elf32_dlx_info_to_howto_rel): Likewise. 1928 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise. 1929 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise. 1930 * elf32-frv.c (frv_info_to_howto_rela) 1931 (frvfdpic_info_to_howto_rel): Likewise. 1932 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise. 1933 * elf32-gen.c (elf_generic_info_to_howto) 1934 (elf_generic_info_to_howto_rel): Likewise. 1935 * elf32-h8300.c (elf32_h8_info_to_howto) 1936 (elf32_h8_info_to_howto_rel): Likewise. 1937 * elf32-i370.c (i370_elf_info_to_howto): Likewise. 1938 * elf32-i386.c (elf_i386_reloc_type_lookup) 1939 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise. 1940 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela): 1941 Likewise. 1942 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise. 1943 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise. 1944 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise. 1945 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise. 1946 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise. 1947 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto): 1948 Likewise. 1949 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise. 1950 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise. 1951 * elf32-m68k.c (rtype_to_howto): Likewise. 1952 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise. 1953 * elf32-mep.c (mep_info_to_howto_rela): Likewise. 1954 * elf32-metag.c (metag_info_to_howto_rela): Likewise. 1955 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise. 1956 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela): 1957 Likewise. 1958 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise. 1959 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise. 1960 * elf32-mt.c (mt_info_to_howto_rela): Likewise. 1961 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto): 1962 Likewise. 1963 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise. 1964 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise. 1965 * elf32-pj.c (pj_elf_info_to_howto): Likewise. 1966 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise. 1967 * elf32-pru.c (pru_elf32_info_to_howto): Likewise. 1968 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise. 1969 * elf32-rx.c (rx_info_to_howto_rela): Likewise. 1970 * elf32-s390.c (elf_s390_info_to_howto): Likewise. 1971 * elf32-score.c (s3_bfd_score_info_to_howto) 1972 (_bfd_score_info_to_howto): Likewise. 1973 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise. 1974 * elf32-sh.c (sh_elf_info_to_howto): Likewise. 1975 * elf32-spu.c (spu_elf_info_to_howto): Likewise. 1976 * elf32-tic6x.c (elf32_tic6x_info_to_howto) 1977 (elf32_tic6x_info_to_howto_rel): Likewise. 1978 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise. 1979 * elf32-v850.c (v850_elf_info_to_howto_rel) 1980 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise. 1981 * elf32-vax.c (rtype_to_howto): Likewise. 1982 * elf32-visium.c (visium_info_to_howto_rela): Likewise. 1983 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto) 1984 (elf32_wasm32_info_to_howto_rela): Likewise. 1985 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise. 1986 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise. 1987 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise. 1988 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise. 1989 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise. 1990 * elf64-gen.c (elf_generic_info_to_howto) 1991 (elf_generic_info_to_howto_rel): Likewise. 1992 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise. 1993 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise. 1994 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise. 1995 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise. 1996 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise. 1997 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto): 1998 Likewise. 1999 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise. 2000 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela): 2001 Likewise. 2002 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise. 2003 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise. 2004 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise. 2005 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise. 2006 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise. 2007 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise. 2008 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype. 2009 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype. 2010 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype. 2011 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel): 2012 Default to NULL. 2013 20142018-02-26 Jim Wilson <jimw@sifive.com> 2015 Stephan Schreiber <info@fs-driver.org> 2016 2017 PR 15904 2018 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl 2019 call, set changed_contents and changed_relocs. Likewise after 2020 successful ia64_elf_relax_br call. 2021 20222018-02-26 Alan Modra <amodra@gmail.com> 2023 2024 * elf.c (assign_file_positions_except_relocs): Don't segfault 2025 when actual number of phdrs is less than allocated. Delete 2026 outdated comment. Formatting. 2027 20282018-02-26 Alan Modra <amodra@gmail.com> 2029 2030 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c, 2031 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c, 2032 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c, 2033 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c, 2034 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c, 2035 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c, 2036 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c, 2037 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c, 2038 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c, 2039 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize 2040 error/warning messages. 2041 20422018-02-26 Alan Modra <amodra@gmail.com> 2043 2044 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c, 2045 * syms.c: Standardize error/warning messages. 2046 20472018-02-26 Alan Modra <amodra@gmail.com> 2048 2049 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c, 2050 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c, 2051 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c, 2052 * peXXigen.c, * peicode.h: Standardize error/warning messages. 2053 20542018-02-26 Alan Modra <amodra@gmail.com> 2055 2056 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages. 2057 20582018-02-26 Alan Modra <amodra@gmail.com> 2059 2060 * elfxx-mips.c: Standardize error/warning messages. 2061 20622018-02-26 Alan Modra <amodra@gmail.com> 2063 2064 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c, 2065 * elflink.c: Standardize error/warning messages. Replace use of 2066 linker callback einfo with _bfd_error_handler when possible. 2067 20682018-02-26 Alan Modra <amodra@gmail.com> 2069 2070 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c, 2071 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c, 2072 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c, 2073 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c, 2074 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c, 2075 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c, 2076 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c, 2077 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, 2078 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, 2079 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c, 2080 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c, 2081 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c, 2082 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c, 2083 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c, 2084 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c, 2085 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c, 2086 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c, 2087 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c, 2088 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c, 2089 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h, 2090 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize 2091 unrecognized/unsupported reloc message. 2092 20932018-02-26 Alan Modra <amodra@gmail.com> 2094 2095 * elf32-ppc.c: Standardize error/warning messages. Use 2096 _bfd_error_handler rather than einfo when einfo features not used. 2097 * elf64-ppc.c: Likewise. 2098 20992018-02-23 Alan Modra <amodra@gmail.com> 2100 2101 PR 22881 2102 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO 2103 segment if no matching LOAD segment. 2104 21052018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com> 2106 2107 * elf32-nds32.h: Define mask for ict_model. 2108 21092018-02-20 Jason Duerstock <jason.duerstock@gmail.com> 2110 2111 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable. 2112 21132018-02-19 Maciej W. Rozycki <macro@mips.com> 2114 2115 Revert 2116 2018-01-12 Vlad Ivanov <vlad@ivanov.email> 2117 2118 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when 2119 .reginfo section has wrong size. 2120 21212018-02-19 Maciej W. Rozycki <macro@mips.com> 2122 2123 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set 2124 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and 2125 `.MIPS.abiflags' sections. 2126 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo' 2127 section's end. 2128 21292018-02-19 Maciej W. Rozycki <macro@mips.com> 2130 2131 * section.c (SEC_FIXED_SIZE): New macro. 2132 * bfd-in2.h: Regenerate. 2133 21342018-02-19 Maciej W. Rozycki <macro@mips.com> 2135 2136 * section.c (SEC_HAS_GOT_REF): Remove macro. 2137 * bfd-in2.h: Regenerate. 2138 21392018-02-19 Alan Modra <amodra@gmail.com> 2140 2141 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler 2142 arguments. 2143 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise. 2144 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise. 2145 (_bfd_riscv_relax_pc): Likewise and fix typos. 2146 * libbfd-in.h (_bfd_error_handler): Add attribute printf. 2147 * libbfd.h: Regenerate. 2148 21492018-02-19 Alan Modra <amodra@gmail.com> 2150 2151 * dwarf2.c (read_section): Don't use 'll' format modifier. 2152 (find_abstract_instance): Likewise. 2153 * elfcore.h (elf_core_file_p): Likewise. 2154 21552018-02-19 Alan Modra <amodra@gmail.com> 2156 2157 * bfd-in.h: Include inttypes.h or if not available define 2158 PRId64, PRIu64 and PRIx64. 2159 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L 2160 modifier to print bfd_vma. 2161 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, 2162 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c, 2163 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c, 2164 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c, 2165 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c, 2166 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c, 2167 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c, 2168 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c, 2169 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c, 2170 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c, 2171 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c, 2172 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c, 2173 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c, 2174 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c, 2175 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64, 2176 and cast input to uint64_t, and similarly for Ld and Lu. 2177 * bfd-in2.h: Regenerate. 2178 21792018-02-19 Alan Modra <amodra@gmail.com> 2180 2181 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c, 2182 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c, 2183 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c, 2184 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c, 2185 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c, 2186 * reloc.c: Replace use of %R and %T in format strings passed to 2187 einfo and friends by %pR and %pT. 2188 21892018-02-19 Alan Modra <amodra@gmail.com> 2190 2191 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place 2192 of %A and %B. 2193 * aout-adobe.c: Update all messages using %A and %B. 2194 * aout-cris.c: Likewise. 2195 * aoutx.h: Likewise. 2196 * archive.c: Likewise. 2197 * binary.c: Likewise. 2198 * cache.c: Likewise. 2199 * coff-alpha.c: Likewise. 2200 * coff-arm.c: Likewise. 2201 * coff-i860.c: Likewise. 2202 * coff-mcore.c: Likewise. 2203 * coff-ppc.c: Likewise. 2204 * coff-rs6000.c: Likewise. 2205 * coff-sh.c: Likewise. 2206 * coff-tic4x.c: Likewise. 2207 * coff-tic54x.c: Likewise. 2208 * coff-tic80.c: Likewise. 2209 * coff64-rs6000.c: Likewise. 2210 * coffcode.h: Likewise. 2211 * coffgen.c: Likewise. 2212 * cofflink.c: Likewise. 2213 * coffswap.h: Likewise. 2214 * compress.c: Likewise. 2215 * cpu-arm.c: Likewise. 2216 * ecoff.c: Likewise. 2217 * elf-attrs.c: Likewise. 2218 * elf-eh-frame.c: Likewise. 2219 * elf-ifunc.c: Likewise. 2220 * elf-m10300.c: Likewise. 2221 * elf-properties.c: Likewise. 2222 * elf-s390-common.c: Likewise. 2223 * elf.c: Likewise. 2224 * elf32-arc.c: Likewise. 2225 * elf32-arm.c: Likewise. 2226 * elf32-avr.c: Likewise. 2227 * elf32-bfin.c: Likewise. 2228 * elf32-cr16.c: Likewise. 2229 * elf32-cr16c.c: Likewise. 2230 * elf32-cris.c: Likewise. 2231 * elf32-crx.c: Likewise. 2232 * elf32-d10v.c: Likewise. 2233 * elf32-d30v.c: Likewise. 2234 * elf32-epiphany.c: Likewise. 2235 * elf32-fr30.c: Likewise. 2236 * elf32-frv.c: Likewise. 2237 * elf32-gen.c: Likewise. 2238 * elf32-hppa.c: Likewise. 2239 * elf32-i370.c: Likewise. 2240 * elf32-i386.c: Likewise. 2241 * elf32-i960.c: Likewise. 2242 * elf32-ip2k.c: Likewise. 2243 * elf32-iq2000.c: Likewise. 2244 * elf32-lm32.c: Likewise. 2245 * elf32-m32c.c: Likewise. 2246 * elf32-m32r.c: Likewise. 2247 * elf32-m68hc11.c: Likewise. 2248 * elf32-m68hc12.c: Likewise. 2249 * elf32-m68hc1x.c: Likewise. 2250 * elf32-m68k.c: Likewise. 2251 * elf32-mcore.c: Likewise. 2252 * elf32-mep.c: Likewise. 2253 * elf32-metag.c: Likewise. 2254 * elf32-microblaze.c: Likewise. 2255 * elf32-moxie.c: Likewise. 2256 * elf32-msp430.c: Likewise. 2257 * elf32-mt.c: Likewise. 2258 * elf32-nds32.c: Likewise. 2259 * elf32-nios2.c: Likewise. 2260 * elf32-or1k.c: Likewise. 2261 * elf32-pj.c: Likewise. 2262 * elf32-ppc.c: Likewise. 2263 * elf32-rl78.c: Likewise. 2264 * elf32-rx.c: Likewise. 2265 * elf32-s390.c: Likewise. 2266 * elf32-score.c: Likewise. 2267 * elf32-score7.c: Likewise. 2268 * elf32-sh-symbian.c: Likewise. 2269 * elf32-sh.c: Likewise. 2270 * elf32-sh64.c: Likewise. 2271 * elf32-sparc.c: Likewise. 2272 * elf32-spu.c: Likewise. 2273 * elf32-tic6x.c: Likewise. 2274 * elf32-tilepro.c: Likewise. 2275 * elf32-v850.c: Likewise. 2276 * elf32-vax.c: Likewise. 2277 * elf32-visium.c: Likewise. 2278 * elf32-wasm32.c: Likewise. 2279 * elf32-xgate.c: Likewise. 2280 * elf32-xtensa.c: Likewise. 2281 * elf64-alpha.c: Likewise. 2282 * elf64-gen.c: Likewise. 2283 * elf64-hppa.c: Likewise. 2284 * elf64-ia64-vms.c: Likewise. 2285 * elf64-mmix.c: Likewise. 2286 * elf64-ppc.c: Likewise. 2287 * elf64-s390.c: Likewise. 2288 * elf64-sh64.c: Likewise. 2289 * elf64-sparc.c: Likewise. 2290 * elf64-x86-64.c: Likewise. 2291 * elfcode.h: Likewise. 2292 * elfcore.h: Likewise. 2293 * elflink.c: Likewise. 2294 * elfnn-aarch64.c: Likewise. 2295 * elfnn-ia64.c: Likewise. 2296 * elfnn-riscv.c: Likewise. 2297 * elfxx-mips.c: Likewise. 2298 * elfxx-sparc.c: Likewise. 2299 * elfxx-tilegx.c: Likewise. 2300 * elfxx-x86.c: Likewise. 2301 * hpux-core.c: Likewise. 2302 * ieee.c: Likewise. 2303 * ihex.c: Likewise. 2304 * libbfd.c: Likewise. 2305 * linker.c: Likewise. 2306 * mach-o.c: Likewise. 2307 * merge.c: Likewise. 2308 * mmo.c: Likewise. 2309 * oasys.c: Likewise. 2310 * pdp11.c: Likewise. 2311 * pe-mips.c: Likewise. 2312 * peXXigen.c: Likewise. 2313 * peicode.h: Likewise. 2314 * reloc.c: Likewise. 2315 * rs6000-core.c: Likewise. 2316 * srec.c: Likewise. 2317 * stabs.c: Likewise. 2318 * vms-alpha.c: Likewise. 2319 * xcofflink.c: Likewise. 2320 23212018-02-19 Alan Modra <amodra@gmail.com> 2322 2323 PR 22845 2324 * elf.c (IS_TBSS): Define. 2325 (_bfd_elf_map_sections_to_segments): Use IS_TBSS. 2326 (assign_file_positions_for_non_load_sections): Revert last change. 2327 Properly calculate load segment limits to compare against relro limits. 2328 23292018-02-17 Alan Modra <amodra@gmail.com> 2330 2331 PR 22845 2332 * elf.c (assign_file_positions_for_non_load_sections): Ignore 2333 degenerate zero size PT_LOAD segments when finding one overlapping 2334 the PT_GNU_RELRO segment. 2335 23362018-02-16 Alan Modra <amodra@gmail.com> 2337 2338 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false. 2339 (_bfd_bool_bfd_true): Rename from bfd_true. 2340 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr. 2341 (_bfd_int_bfd_0): Rename from bfd_0. 2342 (_bfd_uint_bfd_0): Rename from bfd_0u. 2343 (_bfd_long_bfd_0): Rename from bfd_0l. 2344 (_bfd_long_bfd_n1_error): Rename from _bfd_n1. 2345 (_bfd_void_bfd): Rename from bfd_void. 2346 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false), 2347 (_bfd_bool_bfd_link_false_error), 2348 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true), 2349 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true), 2350 (_bfd_bool_bfd_asection_bfd_asection_true), 2351 (_bfd_bool_bfd_asymbol_bfd_asymbol_true), 2352 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions. 2353 * archive.c (_bfd_noarchive_get_elt_at_index), 2354 (_bfd_noarchive_openr_next_archived_file), 2355 (_bfd_noarchive_construct_extended_name_table), 2356 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname), 2357 (_bfd_noarchive_write_armap): New functions. 2358 * archures.c (_bfd_nowrite_set_arch_mach): New function. 2359 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in), 2360 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in), 2361 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out), 2362 (alpha_ecoff_swap_coff_lineno_out), 2363 (alpha_ecoff_swap_coff_reloc_out): New functions. 2364 * coff-mips.c (mips_ecoff_swap_coff_aux_in), 2365 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in), 2366 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out), 2367 (mips_ecoff_swap_coff_lineno_out), 2368 (mips_ecoff_swap_coff_reloc_out): New functions. 2369 * coffcode.h (coff_set_alignment_hook): Replace define with 2370 new function. 2371 (symname_in_debug_hook): Likewise. 2372 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function. 2373 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0. 2374 * elf.c (assign_file_positions_except_relocs): Test 2375 elf_backend_allow_non_load_phdr for NULL. 2376 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from 2377 _bfd_elf_link_omit_section_dynsym. Update uses. 2378 (_bfd_elf_omit_section_dynsym_all): New function. 2379 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete. 2380 (_bfd_elf_omit_section_dynsym_default): Declare. 2381 (_bfd_elf_omit_section_dynsym_all): Declare. 2382 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section), 2383 (_bfd_nolink_bfd_get_relocated_section_contents), 2384 (_bfd_nolink_bfd_lookup_section_flags), 2385 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group), 2386 (_bfd_nolink_bfd_link_hash_table_create), 2387 (_bfd_nolink_bfd_link_just_syms), 2388 (_bfd_nolink_bfd_copy_link_hash_symbol_type), 2389 (_bfd_nolink_bfd_link_split_section), 2390 (_bfd_nolink_section_already_linked), 2391 (_bfd_nolink_bfd_define_common_symbol), 2392 (_bfd_nolink_bfd_define_start_stop): New functions. 2393 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup), 2394 (_bfd_norelocs_bfd_reloc_name_lookup), 2395 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions. 2396 * section.c (_bfd_nowrite_set_section_contents): New function. 2397 * syms.c (_bfd_nosymbols_canonicalize_symtab), 2398 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info), 2399 (_bfd_nosymbols_get_symbol_version_string), 2400 (_bfd_nosymbols_bfd_is_local_label_name), 2401 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line), 2402 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info), 2403 (_bfd_nosymbols_bfd_make_debug_symbol), 2404 ( _bfd_nosymbols_read_minisymbols), 2405 ( _bfd_nosymbols_minisymbol_to_symbol), 2406 (_bfd_nodynamic_get_synthetic_symtab): New functions. 2407 * libbfd-in.h: Declare new functions. Update existing defines, 2408 removing casts. 2409 * aix386-core.c: Update to use new hooks. Formatting. 2410 * aout-adobe.c: Likewise. 2411 * aout-arm.c: Likewise. 2412 * aout-target.h: Likewise. 2413 * aout-tic30.c: Likewise. 2414 * aoutf1.h: Likewise. 2415 * binary.c: Likewise. 2416 * bout.c: Likewise. 2417 * cisco-core.c: Likewise. 2418 * coff-alpha.c: Likewise. 2419 * coff-i386.c: Likewise. 2420 * coff-i860.c: Likewise. 2421 * coff-i960.c: Likewise. 2422 * coff-ia64.c: Likewise. 2423 * coff-mips.c: Likewise. 2424 * coff-ppc.c: Likewise. 2425 * coff-rs6000.c: Likewise. 2426 * coff-sh.c: Likewise. 2427 * coff-tic30.c: Likewise. 2428 * coff-tic54x.c: Likewise. 2429 * coff-x86_64.c: Likewise. 2430 * coff64-rs6000.c: Likewise. 2431 * coffcode.h: Likewise. 2432 * elf-m10300.c: Likewise. 2433 * elf32-cr16.c: Likewise. 2434 * elf32-lm32.c: Likewise. 2435 * elf32-m32r.c: Likewise. 2436 * elf32-metag.c: Likewise. 2437 * elf32-score.c: Likewise. 2438 * elf32-score7.c: Likewise. 2439 * elf32-tilepro.c: Likewise. 2440 * elf32-xstormy16.c: Likewise. 2441 * elf32-xtensa.c: Likewise. 2442 * elf64-alpha.c: Likewise. 2443 * elf64-hppa.c: Likewise. 2444 * elf64-ia64-vms.c: Likewise. 2445 * elf64-mmix.c: Likewise. 2446 * elf64-sh64.c: Likewise. 2447 * elfnn-ia64.c: Likewise. 2448 * elfxx-sparc.c: Likewise. 2449 * elfxx-target.h: Likewise. 2450 * elfxx-tilegx.c: Likewise. 2451 * elfxx-x86.h: Likewise. 2452 * hp300hpux.c: Likewise. 2453 * hppabsd-core.c: Likewise. 2454 * hpux-core.c: Likewise. 2455 * i386msdos.c: Likewise. 2456 * i386os9k.c: Likewise. 2457 * ieee.c: Likewise. 2458 * ihex.c: Likewise. 2459 * irix-core.c: Likewise. 2460 * libaout.h: Likewise. 2461 * libecoff.h: Likewise. 2462 * mach-o-target.c: Likewise. 2463 * mach-o.c: Likewise. 2464 * mipsbsd.c: Likewise. 2465 * mmo.c: Likewise. 2466 * netbsd-core.c: Likewise. 2467 * nlm-target.h: Likewise. 2468 * oasys.c: Likewise. 2469 * osf-core.c: Likewise. 2470 * pdp11.c: Likewise. 2471 * pe-mips.c: Likewise. 2472 * pe-x86_64.c: Likewise. 2473 * pef.c: Likewise. 2474 * plugin.c: Likewise. 2475 * ppcboot.c: Likewise. 2476 * ptrace-core.c: Likewise. 2477 * sco5-core.c: Likewise. 2478 * som.c: Likewise. 2479 * sparclynx.c: Likewise. 2480 * srec.c: Likewise. 2481 * tekhex.c: Likewise. 2482 * trad-core.c: Likewise. 2483 * verilog.c: Likewise. 2484 * versados.c: Likewise. 2485 * vms-alpha.c: Likewise. 2486 * vms-lib.c: Likewise. 2487 * wasm-module.c: Likewise. 2488 * xsym.c: Likewise. 2489 * libbfd.h: Regenerate. 2490 24912018-02-15 Jim Wilson <jimw@sifive.com> 2492 2493 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore 2494 symbols whose section address is zero. 2495 2496 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous 2497 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for 2498 bfd_reloc_dangerous. Use einfo instead of warning callback for errors. 2499 Add %X%P to error messages. 2500 25012018-02-15 Eric Botcazou <ebotcazou@adacore.com> 2502 2503 PR ld/22832 2504 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: 2505 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup 2506 and assert that the result of the call is not NULL. 2507 25082018-02-14 Nick Clifton <nickc@redhat.com> 2509 2510 PR 22823 2511 Revert previous delta. Add extra casts to avoid compile time 2512 warnings instead. 2513 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra 2514 cast to avoid warning from gcc v8 compiler. 2515 (_bfd_generic_bfd_merge_private_bfd_data): Likewise. 2516 (_bfd_generic_bfd_set_private_flags): Likewise. 2517 (_bfd_generic_bfd_copy_private_section_data): Likewise. 2518 (_bfd_generic_bfd_copy_private_symbol_data): Likewise. 2519 (_bfd_generic_bfd_copy_private_header_data): Likewise. 2520 (_bfd_generic_bfd_print_private_bfd_data): Likewise. 2521 (_bfd_noarchive_construct_extended_name_table): Likewise. 2522 (_bfd_noarchive_truncate_arname): Likewise. 2523 (_bfd_noarchive_write_ar_hdr): Likewise. 2524 (_bfd_noarchive_get_elt_at_index): Likewise. 2525 (_bfd_nosymbols_canonicalize_symtab): Likewise. 2526 (_bfd_nosymbols_print_symbol): Likewise. 2527 (_bfd_nosymbols_get_symbol_info): Likewise. 2528 (_bfd_nosymbols_get_symbol_version_string): Likewise. 2529 (_bfd_nosymbols_bfd_is_local_label_name): Likewise. 2530 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise. 2531 (_bfd_nosymbols_get_lineno): Likewise. 2532 (_bfd_nosymbols_find_nearest_line): Likewise. 2533 (_bfd_nosymbols_find_line): Likewise. 2534 (_bfd_nosymbols_find_inliner_info): Likewise. 2535 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise. 2536 (_bfd_nosymbols_read_minisymbols): Likewise. 2537 (_bfd_nosymbols_minisymbol_to_symbol): Likewise. 2538 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise. 2539 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise. 2540 (_bfd_nowrite_set_arch_mach): Likewise. 2541 (_bfd_nowrite_set_section_contents): Likewise. 2542 (_bfd_nolink_sizeof_headers): Likewise. 2543 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise. 2544 (_bfd_nolink_bfd_relax_section): Likewise. 2545 (_bfd_nolink_bfd_gc_sections): Likewise. 2546 (_bfd_nolink_bfd_lookup_section_flags): Likewise. 2547 (_bfd_nolink_bfd_merge_sections): Likewise. 2548 (_bfd_nolink_bfd_is_group_section): Likewise. 2549 (_bfd_nolink_bfd_discard_group): Likewise. 2550 (_bfd_nolink_bfd_link_hash_table_create): Likewise. 2551 (_bfd_nolink_bfd_link_add_symbols): Likewise. 2552 (_bfd_nolink_bfd_link_just_syms): Likewise. 2553 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise. 2554 (_bfd_nolink_bfd_final_link): Likewise. 2555 (_bfd_nolink_bfd_link_split_section): Likewise. 2556 (_bfd_nolink_section_already_linked): Likewise. 2557 (_bfd_nolink_bfd_define_common_symbol): Likewise. 2558 (_bfd_nolink_bfd_define_start_stop): Likewise. 2559 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise. 2560 (_bfd_nodynamic_get_synthetic_symtab): Likewise. 2561 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise. 2562 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise. 2563 * libbfd.c (bfd_false_any): Delete. 2564 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete. 2565 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete. 2566 * libbfd.h (extern): Regenerate 2567 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra 2568 cast to avoid warning from gcc v8 compiler. 2569 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise. 2570 * binary.c (binary_get_symbol_info): Likewise. 2571 * coff-alpha.c (alpha_ecoff_backend_data): Likewise. 2572 * coff-mips.c (mips_ecoff_backend_data): Likewise. 2573 * coffcode.h (coff_set_alignment_hook): Likewise. 2574 (symname_in_debug_hook): Likewise. 2575 (bfd_coff_backend_data bigobj_swap_table): Likewise. 2576 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise. 2577 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise. 2578 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise. 2579 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise. 2580 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise. 2581 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise. 2582 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise. 2583 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise. 2584 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise. 2585 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise. 2586 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise. 2587 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise. 2588 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise. 2589 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise. 2590 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise. 2591 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise. 2592 (bfd_elfNN_bfd_make_debug_symbol): Likewise. 2593 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise. 2594 (bfd_elfNN_bfd_set_private_flags): Likewise. 2595 (bfd_elfNN_bfd_is_target_special_symbol): Likewise. 2596 (elf_backend_init_index_section): Likewise. 2597 (elf_backend_allow_non_load_phdr): Likewise. 2598 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise. 2599 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise. 2600 * ieee.c (ieee_construct_extended_name_table): Likewise. 2601 (ieee_write_armap): Likewise. 2602 (ieee_write_ar_hdr): Likewise. 2603 (ieee_bfd_is_target_special_symbol): Likewise. 2604 * ihex.c (ihex_canonicalize_symtab): Likewise. 2605 (ihex_bfd_is_target_special_symbol): Likewise. 2606 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise. 2607 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise. 2608 (_bfd_ecoff_set_alignment_hook): Likewise. 2609 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise. 2610 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise. 2611 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise. 2612 * oasys.c (oasys_construct_extended_name_table): Likewise. 2613 (oasys_write_armap): Likewise. 2614 (oasys_write_ar_hdr): Likewise. 2615 (oasys_bfd_is_target_special_symbol): Likewise. 2616 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise. 2617 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise. 2618 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise. 2619 * som.c (som_bfd_is_target_special_symbol): Likewise. 2620 * srec.c (srec_bfd_is_target_special_symbol): Likewise. 2621 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise. 2622 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise. 2623 * versados.c (versados_bfd_is_target_special_symbol): Likewise. 2624 (versados_bfd_reloc_name_lookup): Likewise. 2625 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise. 2626 (vms_bfd_define_start_stop): Likewise. 2627 (alpha_vms_bfd_is_target_special_symbol): Likewise. 2628 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise. 2629 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise. 2630 26312018-02-14 H.J. Lu <hongjiu.lu@intel.com> 2632 2633 PR ld/22842 2634 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non 2635 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P. 2636 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for 2637 R_X86_64_PC32 reloc against dynamic function in data section. 2638 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P. 2639 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc 2640 against dynamic function in data section. 2641 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as 2642 function address only if pcrel_plt is true. 2643 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt. 2644 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for 2645 PC-relative PLT. If PLT is PC-relative, don't generate dynamic 2646 PC-relative relocation against a function definition in data 2647 secton in PIE. Remove the obsolete comments. 2648 (elf_x86_link_hash_table): Add pcrel_plt. 2649 26502018-02-13 H.J. Lu <hongjiu.lu@intel.com> 2651 2652 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll, 2653 instead of bfd_link_pic, for building shared library. 2654 26552018-02-13 H.J. Lu <hongjiu.lu@intel.com> 2656 2657 PR gas/22791 2658 * elf64-x86-64.c (is_32bit_relative_branch): Removed. 2659 (elf_x86_64_relocate_section): Check PIC relocations in PIE. 2660 Remove is_32bit_relative_branch usage. Disallow PC32 reloc 2661 against protected function in shared object. 2662 26632018-02-13 Sergei Trofimovich <slyfox@inbox.ru> 2664 2665 PR 22828 2666 * po/ru.po: Fix typo in Russian translation. 2667 26682018-02-13 Maciej W. Rozycki <macro@mips.com> 2669 2670 * wasm-module.c (wasm_scan_name_function_section): Rename 2671 `index' local variable to `idx'. 2672 26732018-02-13 Nick Clifton <nickc@redhat.com> 2674 2675 PR 22823 2676 Fix compile time warnings generated by gcc version 8. 2677 * libbfd-in.h: Remove extraneous text from prototypes. 2678 Add prototypes for bfd_false_any, bfd_true_any, 2679 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any, 2680 bfd_n1_any, bfd_void_any. 2681 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy 2682 function. 2683 (_bfd_generic_bfd_merge_private_bfd_data): Likewise. 2684 (_bfd_generic_bfd_set_private_flags): Likewise. 2685 (_bfd_generic_bfd_copy_private_section_data): Likewise. 2686 (_bfd_generic_bfd_copy_private_symbol_data): Likewise. 2687 (_bfd_generic_bfd_copy_private_header_data): Likewise. 2688 (_bfd_generic_bfd_print_private_bfd_data): Likewise. 2689 (_bfd_noarchive_construct_extended_name_table): Likewise. 2690 (_bfd_noarchive_truncate_arname): Likewise. 2691 (_bfd_noarchive_write_ar_hdr): Likewise. 2692 (_bfd_noarchive_get_elt_at_index): Likewise. 2693 (_bfd_nosymbols_canonicalize_symtab): Likewise. 2694 (_bfd_nosymbols_print_symbol): Likewise. 2695 (_bfd_nosymbols_get_symbol_info): Likewise. 2696 (_bfd_nosymbols_get_symbol_version_string): Likewise. 2697 (_bfd_nosymbols_bfd_is_local_label_name): Likewise. 2698 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise. 2699 (_bfd_nosymbols_get_lineno): Likewise. 2700 (_bfd_nosymbols_find_nearest_line): Likewise. 2701 (_bfd_nosymbols_find_line): Likewise. 2702 (_bfd_nosymbols_find_inliner_info): Likewise. 2703 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise. 2704 (_bfd_nosymbols_read_minisymbols): Likewise. 2705 (_bfd_nosymbols_minisymbol_to_symbol): Likewise. 2706 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise. 2707 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise. 2708 (_bfd_nowrite_set_arch_mach): Likewise. 2709 (_bfd_nowrite_set_section_contents): Likewise. 2710 (_bfd_nolink_sizeof_headers): Likewise. 2711 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise. 2712 (_bfd_nolink_bfd_relax_section): Likewise. 2713 (_bfd_nolink_bfd_gc_sections): Likewise. 2714 (_bfd_nolink_bfd_lookup_section_flags): Likewise. 2715 (_bfd_nolink_bfd_merge_sections): Likewise. 2716 (_bfd_nolink_bfd_is_group_section): Likewise. 2717 (_bfd_nolink_bfd_discard_group): Likewise. 2718 (_bfd_nolink_bfd_link_hash_table_create): Likewise. 2719 (_bfd_nolink_bfd_link_add_symbols): Likewise. 2720 (_bfd_nolink_bfd_link_just_syms): Likewise. 2721 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise. 2722 (_bfd_nolink_bfd_final_link): Likewise. 2723 (_bfd_nolink_bfd_link_split_section): Likewise. 2724 (_bfd_nolink_section_already_linked): Likewise. 2725 (_bfd_nolink_bfd_define_common_symbol): Likewise. 2726 (_bfd_nolink_bfd_define_start_stop): Likewise. 2727 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise. 2728 (_bfd_nodynamic_get_synthetic_symtab): Likewise. 2729 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise. 2730 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise. 2731 * libbfd.c (bfd_false_any): New function. Like bfd_false but 2732 accepts one or more arguments. 2733 (bfd_true_any): Likewise. 2734 (bfd_nullvoidptr_any): Likewise. 2735 (bfd_0_any): Likewise. 2736 (bfd_0u_any): Likewise. 2737 (bfd_0l_any): Likewise. 2738 (_bfd_n1_any): Likewise. 2739 (bfd_void_any): Likewise. 2740 * libbfd.h (extern): Regenerate 2741 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg 2742 based dummy function. 2743 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise. 2744 * binary.c (binary_get_symbol_info): Likewise. 2745 * coff-alpha.c (alpha_ecoff_backend_data): Likewise. 2746 * coff-mips.c (mips_ecoff_backend_data): Likewise. 2747 * coffcode.h (coff_set_alignment_hook): Likewise. 2748 (symname_in_debug_hook): Likewise. 2749 (bfd_coff_backend_data bigobj_swap_table): Likewise. 2750 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise. 2751 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise. 2752 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise. 2753 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise. 2754 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise. 2755 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise. 2756 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise. 2757 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise. 2758 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise. 2759 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise. 2760 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise. 2761 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise. 2762 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise. 2763 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise. 2764 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise. 2765 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise. 2766 (bfd_elfNN_bfd_make_debug_symbol): Likewise. 2767 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise. 2768 (bfd_elfNN_bfd_set_private_flags): Likewise. 2769 (bfd_elfNN_bfd_is_target_special_symbol): Likewise. 2770 (elf_backend_init_index_section): Likewise. 2771 (elf_backend_allow_non_load_phdr): Likewise. 2772 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise. 2773 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise. 2774 * ieee.c (ieee_construct_extended_name_table): Likewise. 2775 (ieee_write_armap): Likewise. 2776 (ieee_write_ar_hdr): Likewise. 2777 (ieee_bfd_is_target_special_symbol): Likewise. 2778 * ihex.c (ihex_canonicalize_symtab): Likewise. 2779 (ihex_bfd_is_target_special_symbol): Likewise. 2780 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise. 2781 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise. 2782 (_bfd_ecoff_set_alignment_hook): Likewise. 2783 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise. 2784 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise. 2785 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise. 2786 * oasys.c (oasys_construct_extended_name_table): Likewise. 2787 (oasys_write_armap): Likewise. 2788 (oasys_write_ar_hdr): Likewise. 2789 (oasys_bfd_is_target_special_symbol): Likewise. 2790 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise. 2791 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise. 2792 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise. 2793 * som.c (som_bfd_is_target_special_symbol): Likewise. 2794 * srec.c (srec_bfd_is_target_special_symbol): Likewise. 2795 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise. 2796 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise. 2797 * versados.c (versados_bfd_is_target_special_symbol): Likewise. 2798 (versados_bfd_reloc_name_lookup): Likewise. 2799 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise. 2800 (vms_bfd_define_start_stop): Likewise. 2801 (alpha_vms_bfd_is_target_special_symbol): Likewise. 2802 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise. 2803 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise. 2804 * elf32-arc.c (get_replace_function): Assign replacement function 2805 to func pointer. 2806 * elf32-i370.c (i370_noop): Update prototype. 2807 28082018-02-13 Alan Modra <amodra@gmail.com> 2809 2810 PR 22836 2811 * elf.c (_bfd_elf_fixup_group_sections): Account for removed 2812 relocation sections. If size reduces to just the flag word, 2813 remove that too and mark with SEC_EXCLUDE. 2814 * elflink.c (bfd_elf_final_link): Strip empty group sections. 2815 28162018-02-13 Alan Modra <amodra@gmail.com> 2817 2818 PR 22829 2819 * elf.c (assign_file_positions_for_non_load_sections): Rewrite 2820 PT_GNU_RELRO setup. 2821 28222018-02-12 Zebediah Figura <z.figura12@gmail.com> 2823 2824 * i386msdos.c (msdos_mkobject); New function. 2825 (msdos_object_p): New function. 2826 (i386_msdos_vec): Use msdos_object_p as the check_format 2827 function. 2828 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and 2829 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and 2830 IMAGE_NT_SIGNATURE. 2831 * peXXigen.c: Likewise. 2832 * coff-ia64.c: Likewise. 2833 28342018-02-12 Nick Clifton <nickc@redhat.com> 2835 2836 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant 2837 assignment. 2838 * elf32-arc.c (elf_arc_relocate_section): Likewise. 2839 28402018-02-09 Eric Botcazou <ebotcazou@adacore.com> 2841 2842 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions. 2843 (sparc_elf_append_rela): Assert that there is enough room in section. 2844 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting. 2845 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak. 2846 (allocate_dynrelocs): Remove outdated comments and reorder conditions. 2847 For a symbol subject to a GOT relocation, reserve a slot in the 2848 relocation section if the symbol isn't dynamic and we are in PIC mode. 2849 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation 2850 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation. 2851 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments. 2852 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion. 2853 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into 2854 resolved_to_zero. Do not generate a dynamic GOT relocation for an 2855 undefined weak symbol with non-default visibility. Remove superfluous 2856 'else' and fix formatting. 2857 28582018-02-09 H.J. Lu <hongjiu.lu@intel.com> 2859 2860 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle 2861 is_solaris. 2862 (i386_elf32_sol2_vec): Don't declare. 2863 (elf_i386_link_setup_gnu_properties): Also handle is_solaris. 2864 Don't set need_global_offset_table. 2865 (elf_i386_solaris_arch_bed): New. 2866 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for 2867 Solaris. 2868 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check 2869 target_os != is_nacl instead of target_os == is_normal. 2870 (x86_64_elf64_sol2_vec): Don't declare. 2871 (elf_x86_64_link_setup_gnu_properties): Check target_os != 2872 is_nacl instead of target_os == is_normal. Don't set 2873 need_global_offset_table. 2874 (elf_x86_64_solaris_arch_bed): New. 2875 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for 2876 Solaris. 2877 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep 2878 _GLOBAL_OFFSET_TABLE_ for Solaris. 2879 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy 2880 need_global_offset_table. 2881 * elfxx-x86.h (elf_x86_target_os): Add is_solaris. 2882 (elf_x86_link_hash_table): Remove need_global_offset_table. 2883 (elf_x86_init_table): Likewise. 2884 28852018-02-08 H.J. Lu <hongjiu.lu@intel.com> 2886 2887 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields): 2888 Remove prototype. 2889 (i386_elf32_sol2_vec): Declared. 2890 (elf_i386_link_setup_gnu_properties): Set 2891 need_global_offset_table with info->output_bfd->xvec. 2892 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields): 2893 Remove prototype. 2894 (x86_64_elf64_sol2_vec): Declared. 2895 (elf_x86_64_link_setup_gnu_properties): Set 2896 need_global_offset_table with info->output_bfd->xvec. 2897 28982018-02-08 H.J. Lu <hongjiu.lu@intel.com> 2899 2900 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields): 2901 New prototype. 2902 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table 2903 for Solaris. 2904 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields): 2905 New prototype. 2906 (elf_x86_64_link_setup_gnu_properties): Set 2907 need_global_offset_table for Solaris. 2908 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the 2909 unused _GLOBAL_OFFSET_TABLE_ for Solaris. 2910 (_bfd_x86_elf_link_setup_gnu_properties): Copy 2911 need_global_offset_table. 2912 * elfxx-x86.h (elf_x86_link_hash_table): Add 2913 need_global_offset_table. 2914 (elf_x86_init_table): Likewise. 2915 29162018-02-08 Jim Wilson <jimw@sifive.com> 2917 2918 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous 2919 change. 2920 29212018-02-08 Nick Clifton <nickc@redhat.com> 2922 2923 PR 22788 2924 * elf.c (elf_parse_notes): Reject notes with excessuively large 2925 alignments. 2926 29272018-02-07 Alan Modra <amodra@gmail.com> 2928 2929 Revert 2018-01-17 Alan Modra <amodra@gmail.com> 2930 * elf32-ppc.c: Remove speculation barrier support. 2931 * elf32-ppc.h: Likewise. 2932 * elf64-ppc.c: Likewise. 2933 * elf64-ppc.h: Likewise. 2934 29352018-02-06 Jim Wilson <jimw@sifive.com> 2936 2937 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used 2938 callback to report an error. 2939 29402018-02-06 Eric Botcazou <ebotcazou@adacore.com> 2941 2942 PR ld/22263 2943 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic 2944 into call to !bfd_link_executable and tidy up. 2945 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up. 2946 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to 2947 !bfd_link_executable. 2948 <R_SPARC_TLS_IE_HI22>: Likewise. 2949 <GOT relocations>: Remove useless code, tidy and merge related blocks. 2950 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to 2951 !bfd_link_executable. 2952 <R_SPARC_WPLT30>: Tidy up. 2953 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to 2954 !bfd_link_executable. 2955 (allocate_dynrelocs): Likewise. 2956 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up. 2957 <R_SPARC_TLS_GD_HI22>: Merge into... 2958 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to 2959 sparc_elf_tls_transition and remove redundant code. 2960 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to 2961 !bfd_link_executable. 2962 <R_SPARC_TLS_LDO_HIX22>: Likewise. 2963 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up. 2964 <R_SPARC_TLS_LDM_CALL>: Likewise. 2965 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up. 2966 <R_SPARC_TLS_GD_ADD>: Likewise. 2967 <R_SPARC_TLS_LDM_ADD>: Likewise. 2968 <R_SPARC_TLS_LDO_ADD>: Likewise. 2969 <R_SPARC_TLS_IE_LD>: Likewise. 2970 29712018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com> 2972 2973 PR 22789 2974 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf 2975 functions failed to find the function name, try the generic elf 2976 find function instead. 2977 29782018-02-06 Sergio Durigan Junior <sergiodj@redhat.com> 2979 2980 * coff-rs6000.c (xcoff_write_archive_contents_old): Use 2981 'memcpy' instead of 'strncpy' when writing the magic number. 2982 29832018-02-06 Nick Clifton <nickc@redhat.com> 2984 2985 PR 22794 2986 * opncls.c (bfd_get_debug_link_info_1): Check the size of the 2987 section before attempting to read it in. 2988 (bfd_get_alt_debug_link_info): Likewise. 2989 29902018-02-06 Paul Carroll <pcarroll@codesourcery.com> 2991 2992 * bfd/dwarf2.c (find_abstract_name): Modified to return file and 2993 line information in addition to name, if they can be found. 2994 29952018-02-05 Renlin Li <renlin.li@arm.com> 2996 2997 PR ld/22764 2998 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the 2999 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the 3000 check for writeable section as well. 3001 30022018-02-05 H.J. Lu <hongjiu.lu@intel.com> 3003 3004 PR ld/22782 3005 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if 3006 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve 3007 undefined weak symbol to 0. 3008 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced 3009 if _GLOBAL_OFFSET_TABLE_ is referenced. 3010 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check 3011 got_referenced instead of ref_regular_nonweak. Remove the 3012 unused _GLOBAL_OFFSET_TABLE_ from symbol table. 3013 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced. 3014 30152018-02-05 Maciej W. Rozycki <macro@mips.com> 3016 3017 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to 3018 initialize `hi_reloc'. 3019 30202018-02-05 Maciej W. Rozycki <macro@mips.com> 3021 3022 * elfxx-mips.c (_bfd_mips_elf_section_processing): For 3023 SHT_MIPS_REGINFO sections don't assert the correct size and 3024 report an error instead. 3025 30262018-02-05 Maciej W. Rozycki <macro@mips.com> 3027 3028 * elf.c (_bfd_elf_write_object_contents): Propagate a failure 3029 status from `->elf_backend_section_processing'. 3030 30312018-02-02 Jim Wilson <jimw@sifive.com> 3032 3033 PR ld/22756 3034 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info. 3035 If link_info->wrap_hash, check for a duplicate symbol and ignore. 3036 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le): 3037 Pass new argument to riscv_relax_delete_bytes. 3038 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove 3039 ATTRIBUTE_UNUSED from link_info parameter. 3040 30412018-02-02 Alan Modra <amodra@gmail.com> 3042 3043 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops 3044 emitted for toc sequence optimization. Set and use "howto" later. 3045 30462018-02-01 Simon Marchi <simon.marchi@ericsson.com> 3047 3048 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer 3049 arithmetic on NULL pointer. 3050 * elflink.c (_bfd_elf_archive_symbol_lookup, 3051 elf_link_add_archive_symbols): Likewise. 3052 30532018-01-31 Michael Matz <matz@suse.de> 3054 3055 * elflink.c (bfd_elf_define_start_stop): Fix check of 3056 def_dynamic. 3057 30582018-01-31 H.J. Lu <hongjiu.lu@intel.com> 3059 3060 PR ld/21964 3061 * elflink.c (bfd_elf_define_start_stop): Check if __start and 3062 __stop symbols are referenced by shared objects. 3063 30642018-01-30 Alan Modra <amodra@gmail.com> 3065 3066 PR 22758 3067 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new 3068 segment when demand paged with lma on the same page. Test this 3069 before load/non-load, executable/non-executable, 3070 writable/non-writable tests and simplify. Delete bogus relro 3071 condition in writable/non-writable test. Delete outdated 3072 comment. Formatting. 3073 30742018-01-30 Alan Modra <amodra@gmail.com> 3075 3076 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop 3077 symbols dynamic. 3078 30792018-01-29 Alan Modra <amodra@gmail.com> 3080 3081 PR 22741 3082 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in 3083 range before converting to a symbol table pointer. 3084 30852018-01-27 Nick Clifton <nickc@redhat.com> 3086 3087 * po/ru.po: Updated Russian translation. 3088 30892018-01-26 Alan Modra <amodra@gmail.com> 3090 3091 * elflink.c (bfd_elf_define_start_stop): Override symbols when 3092 they are defined dynamically. 3093 30942018-01-26 Alan Modra <amodra@gmail.com> 3095 3096 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when 3097 .branch_lt changes size. 3098 30992018-01-25 Alan Modra <amodra@gmail.com> 3100 3101 PR 22746 3102 * elfcode.h (elf_object_p): Avoid integer overflow. 3103 31042018-01-25 Eric Botcazou <ebotcazou@adacore.com> 3105 3106 PR ld/22727 3107 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: 3108 Do a mere lookup of the __tls_get_addr symbol instead of adding it. 3109 3110 Revert 3111 2017-10-19 H.J. Lu <hongjiu.lu@intel.com> 3112 3113 PR ld/22263 3114 * elfxx-sparc.c (sparc_elf_tls_transition): Replace 3115 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with 3116 bfd_link_executable for TLS check. 3117 (_bfd_sparc_elf_check_relocs): Likewise. 3118 (allocate_dynrelocs): Likewise. 3119 (_bfd_sparc_elf_relocate_section): Likewise. 3120 31212018-01-24 Renlin Li <renlin.li@arm.com> 3122 3123 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for 3124 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, 3125 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, 3126 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, 3127 BFD_RELOC_AARCH64_MOVW_PREL_G3. 3128 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. 3129 (_bfd_aarch64_elf_resolve_relocation): Likewise. 3130 31312018-01-24 Renlin Li <renlin.li@arm.com> 3132 3133 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0, 3134 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1, 3135 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2, 3136 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3. 3137 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for 3138 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, 3139 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, 3140 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, 3141 BFD_RELOC_AARCH64_MOVW_PREL_G3. 3142 * bfd-in2.h: Regenerate. 3143 * libbfd.h: Regenerate. 3144 31452018-01-23 Maciej W. Rozycki <macro@mips.com> 3146 3147 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale 3148 `mips_elf32_section_processing' comment reference. 3149 31502018-01-20 H.J. Lu <hongjiu.lu@intel.com> 3151 3152 PR ld/22721 3153 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the 3154 versioned __tls_get_addr symbol. 3155 31562018-01-19 Nick Clifton <nickc@redhat.com> 3157 3158 * po/fr.po: Updated French translation. 3159 31602018-01-18 Alan Modra <amodra@gmail.com> 3161 3162 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink. 3163 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align. 3164 (ppc64_elf_build_stubs): Likewise. 3165 31662018-01-17 Nick Clifton <nickc@redhat.com> 3167 3168 * po/ru.po: Updated Russian translation. 3169 * po/uk/po: Updated Ukranian translation. 3170 31712018-01-17 Alan Modra <amodra@gmail.com> 3172 3173 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning. 3174 31752018-01-17 Alan Modra <amodra@gmail.com> 3176 3177 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier. 3178 (CRSETEQ, BEQCTRM): Define. 3179 (is_nonpic_glink_stub): Don't check bctr. 3180 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. 3181 (ppc_elf_relax_section): Size speculation barrier. 3182 (output_bctr): New function. 3183 (write_glink_stub): Use output_bctr. 3184 (ppc_elf_relocate_section): Use output_bctr for long branch stub. 3185 (ppc_elf_finish_dynamic_symbol): Likewise. 3186 (ppc_elf_finish_dynamic_sections): Use output_bctr. 3187 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps. 3188 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define. 3189 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier. 3190 (size_global_entry_stubs): Handle speculation barrier sizing. 3191 (plt_stub_size): Likewise. 3192 (output_bctr): New function. 3193 (build_plt_stub, build_tls_get_addr_stub): Output speculation 3194 barrier. 3195 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch. 3196 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch. 3197 (build_global_entry_stubs): Output speculation barrier. 3198 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub. 3199 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps. 3200 32012018-01-17 Alan Modra <amodra@gmail.com> 3202 3203 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle 3204 __tls_get_addr_opt, and alignment sizing. 3205 (TLS_GET_ADDR_GLINK_SIZE): Delete. 3206 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE. 3207 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6, 3208 or 8 insns. 3209 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. 3210 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE. 3211 (ppc_elf_size_dynamic_sections): Likewise. Size branch table 3212 by PLT reloc count. 3213 (write_glink_stub): Handle __tls_get_addr_opt stub. 3214 Pad out to size given by GLINK_ENTRY_SIZE. 3215 (ppc_elf_relocate_section): Adjust write_glink_stub call. 3216 (ppc_elf_finish_dynamic_symbol): Likewise. 3217 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using 3218 insn array since so many need rewriting. 3219 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align. 3220 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from 3221 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without 3222 nops. Adjust all uses. 3223 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE 3224 in glink_vma calculation. 3225 (struct ppc_link_hash_table): Add global_entry section pointer. 3226 (create_linkage_sections): Create separate section for global 3227 entry stubs. 3228 (PPC_LO, PPC_HI, PPC_HA): Move earlier. 3229 (size_global_entry_stubs): Handle sizing for aligned stubs. 3230 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc, 3231 and don't stash end of glink branch table in rawsize. 3232 (ppc_build_one_stub): Rewrite stub size calculations. 3233 (build_global_entry_stubs): Use new section. 3234 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops. 3235 Build lazy link stubs out to end of section. Build global entry 3236 stubs in new section. 3237 32382018-01-15 Nick Clifton <nickc@redhat.com> 3239 3240 * po/uk.po: Updated Ukranian translation. 3241 32422018-01-13 Nick Clifton <nickc@redhat.com> 3243 3244 * po/bfd.pot: Regenerated. 3245 32462018-01-13 Nick Clifton <nickc@redhat.com> 3247 3248 * version.m4: Bump version to 2.30.51 3249 * configure: Regenerate. 3250 32512018-01-13 Nick Clifton <nickc@redhat.com> 3252 3253 2.30 branch created. 3254 32552018-01-12 Jens Widell <jl@opera.com> 3256 3257 * elf.c (setup_group): Optimize search for group by remembering 3258 last found group and restarting search at that index. 3259 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field. 3260 32612018-01-12 Gunther Nikl <gnikl@users.sourceforge.net> 3262 3263 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle 3264 bfd_link_common_skip_none in switch. 3265 32662018-01-12 Alan Modra <amodra@gmail.com> 3267 3268 PR ld/22649 3269 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic 3270 references on forced local symbols. 3271 32722018-01-12 Vlad Ivanov <vlad@ivanov.email> 3273 3274 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when 3275 .reginfo section has wrong size. 3276 32772018-01-11 H.J. Lu <hongjiu.lu@intel.com> 3278 3279 PR ld/22393 3280 * elf.c (_bfd_elf_map_sections_to_segments): When generating 3281 separate code and read-only data LOAD segments, create a new 3282 LOAD segment if the previous section contains text and the 3283 current section doesn't or vice versa. Don't put a writable 3284 section in a read-only segment if there is a RELRO segment. 3285 32862018-01-11 H.J. Lu <hongjiu.lu@intel.com> 3287 3288 PR ld/22649 3289 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic 3290 references on forced local symbols. 3291 32922018-01-11 H.J. Lu <hongjiu.lu@intel.com> 3293 3294 PR ld/22677 3295 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY, 3296 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section. 3297 32982018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com> 3299 3300 PR 22662 3301 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error. 3302 33032018-01-03 John Baldwin <jhb@FreeBSD.org> 3304 3305 * elf.c (elfcore_grok_freebsd_note): Handle 3306 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and 3307 NT_FREEBSD_PROCSTAT_VMMAP. 3308 33092018-01-03 Alan Modra <amodra@gmail.com> 3310 3311 Update year range in copyright notice of all files. 3312 3313For older changes see ChangeLog-2017 3314 3315Copyright (C) 2018 Free Software Foundation, Inc. 3316 3317Copying and distribution of this file, with or without modification, 3318are permitted in any medium without royalty provided the copyright 3319notice and this notice are preserved. 3320 3321Local Variables: 3322mode: change-log 3323left-margin: 8 3324fill-column: 74 3325version-control: never 3326End: 3327