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