| 1 | 2017-10-23 Nick Clifton <nickc@redhat.com> |
| 2 | |
| 3 | PR 22319 |
| 4 | * elflink.c (elf_link_output_extsym): Keep global undefined |
| 5 | symbols if they have been marked as needed. |
| 6 | |
| 7 | 2017-10-23 Maciej W. Rozycki <macro@imgtec.com> |
| 8 | |
| 9 | * elfn32-mips.c (mips_elf_n32_mkobject): New prototype and |
| 10 | function. |
| 11 | (bfd_elf32_mkobject): Use `mips_elf_n32_mkobject' rather than |
| 12 | `_bfd_mips_elf_mkobject'. |
| 13 | |
| 14 | 2017-10-22 Hans-Peter Nilsson <hp@axis.com> |
| 15 | |
| 16 | PR gas/22304 |
| 17 | * config.bfd (cris-*-* | crisv32-*-*): Require a 64-bit BFD. |
| 18 | |
| 19 | 2017-10-19 Palmer Dabbelt <palmer@dabbelt.com> |
| 20 | |
| 21 | * elfnn-riscv.c (riscv_pcgp_hi_reloc): New structure. |
| 22 | (riscv_pcgp_lo_reloc): Likewise. |
| 23 | (riscv_pcgp_relocs): Likewise. |
| 24 | (riscv_init_pcgp_relocs): New function. |
| 25 | (riscv_free_pcgp_relocs): Likewise. |
| 26 | (riscv_record_pcgp_hi_reloc): Likewise. |
| 27 | (riscv_record_pcgp_lo_reloc): Likewise. |
| 28 | (riscv_delete_pcgp_hi_reloc): Likewise. |
| 29 | (riscv_use_pcgp_hi_reloc): Likewise. |
| 30 | (riscv_record_pcgp_lo_reloc): Likewise. |
| 31 | (riscv_find_pcgp_lo_reloc): Likewise. |
| 32 | (riscv_delete_pcgp_lo_reloc): Likewise. |
| 33 | (_bfd_riscv_relax_pc): Likewise. |
| 34 | (_bfd_riscv_relax_section): Handle R_RISCV_PCREL_* relocations |
| 35 | via the new functions above. |
| 36 | |
| 37 | 2017-10-19 Palmer Dabbelt <palmer@dabbelt.com> |
| 38 | |
| 39 | * elfnn-riscv.c (R_RISCV_DELETE): New define. |
| 40 | (_bfd_riscv_relax_delete): New function. |
| 41 | (perform_relocation): Handle R_RISCV_DELETE. |
| 42 | (_bfd_riscv_relax_section): Likewise. |
| 43 | |
| 44 | 2017-10-19 H.J. Lu <hongjiu.lu@intel.com> |
| 45 | |
| 46 | PR ld/22263 |
| 47 | * elfxx-tilegx.c (tilegx_elf_tls_transition): Replace |
| 48 | bfd_link_pic with !bfd_link_executable, !bfd_link_pic with |
| 49 | bfd_link_executable for TLS check. |
| 50 | (tilegx_elf_check_relocs): Likewise. |
| 51 | (allocate_dynrelocs): Likewise. |
| 52 | (tilegx_elf_relocate_section): Likewise. |
| 53 | |
| 54 | 2017-10-19 H.J. Lu <hongjiu.lu@intel.com> |
| 55 | |
| 56 | PR ld/22263 |
| 57 | * elf32-tilepro.c (tilepro_elf_tls_transition): Replace |
| 58 | bfd_link_pic with !bfd_link_executable, !bfd_link_pic with |
| 59 | bfd_link_executable for TLS check. |
| 60 | (tilepro_elf_check_relocs): Likewise. |
| 61 | (allocate_dynrelocs): Likewise. |
| 62 | (tilepro_elf_relocate_section): Likewise. |
| 63 | |
| 64 | 2017-10-19 H.J. Lu <hongjiu.lu@intel.com> |
| 65 | |
| 66 | PR ld/22263 |
| 67 | * elfxx-sparc.c (sparc_elf_tls_transition): Replace |
| 68 | bfd_link_pic with !bfd_link_executable, !bfd_link_pic with |
| 69 | bfd_link_executable for TLS check. |
| 70 | (_bfd_sparc_elf_check_relocs): Likewise. |
| 71 | (allocate_dynrelocs): Likewise. |
| 72 | (_bfd_sparc_elf_relocate_section): Likewise. |
| 73 | |
| 74 | 2017-10-18 H.J. Lu <hongjiu.lu@intel.com> |
| 75 | |
| 76 | * elf32-tilepro.c (tilepro_elf_gc_mark_hook): Call |
| 77 | _bfd_generic_link_add_one_symbol to mark __tls_get_addr. |
| 78 | * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): Likewise. |
| 79 | |
| 80 | 2017-10-17 H.J. Lu <hongjiu.lu@intel.com> |
| 81 | |
| 82 | * elf32-microblaze.c (microblaze_elf_check_relocs): Check for |
| 83 | indirect and warning symbols. |
| 84 | |
| 85 | 2017-10-17 Alan Modra <amodra@gmail.com> |
| 86 | |
| 87 | PR 22307 |
| 88 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Compare datasz |
| 89 | against size left rather than comparing pointers. Reorganise loop. |
| 90 | |
| 91 | 2017-10-17 Alan Modra <amodra@gmail.com> |
| 92 | |
| 93 | PR 22306 |
| 94 | * aoutx.h (aout_get_external_symbols): Handle stringsize of zero, |
| 95 | and error for any other size that doesn't cover the header word. |
| 96 | |
| 97 | 2017-10-16 H.J. Lu <hongjiu.lu@intel.com> |
| 98 | |
| 99 | * elf-bfd.h (elf_backend_data): Remove gc_sweep_hook. |
| 100 | * elf32-arm.c (elf32_arm_gc_sweep_hook): Removed. |
| 101 | (elf_backend_gc_sweep_hook): Likewise. |
| 102 | * elf32-bfin.c (bfin_gc_sweep_hook): Likewise. |
| 103 | (bfinfdpic_gc_sweep_hook): Likewise. |
| 104 | (elf_backend_gc_sweep_hook): Likewise. |
| 105 | * elf32-cr16.c (elf32_cr16_gc_sweep_hook): Likewise. |
| 106 | (elf_backend_gc_sweep_hook): Likewise. |
| 107 | * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise. |
| 108 | (elf_backend_gc_sweep_hook): Likewise. |
| 109 | * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise. |
| 110 | (elf_backend_gc_sweep_hook): Likewise. |
| 111 | * elf32-lm32.c (lm32_elf_gc_sweep_hook): Likewise. |
| 112 | (elf_backend_gc_sweep_hook): Likewise. |
| 113 | * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise. |
| 114 | (elf_backend_gc_sweep_hook): Likewise. |
| 115 | * elf32-m68k.c (elf_m68k_got_entry): Remove elf_m68k_gc_sweep_hook |
| 116 | from comments. |
| 117 | (elf_m68k_remove_got_entry_type): Removed. |
| 118 | (elf_m68k_find_got_entry_ptr): Likewise. |
| 119 | (elf_m68k_remove_got_entry): Likewise. |
| 120 | (elf_m68k_gc_sweep_hook): Likewise. |
| 121 | (elf_backend_gc_sweep_hook): Likewise. |
| 122 | * elf32-mcore.c (mcore_elf_gc_sweep_hook): Likewise. |
| 123 | (elf_backend_gc_sweep_hook): Likewise. |
| 124 | * elf32-metag.c (elf_metag_gc_sweep_hook): Likewise. |
| 125 | (elf_backend_gc_sweep_hook): Likewise. |
| 126 | * elf32-microblaze.c (elf_backend_gc_sweep_hook): Likewise. |
| 127 | (elf_backend_gc_sweep_hook): Likewise. |
| 128 | * elf32-mips.c (elf_backend_gc_sweep_hook): Likewise. |
| 129 | (elf_backend_gc_sweep_hook): Likewise. |
| 130 | * elf32-nds32.c (nds32_elf_gc_sweep_hook): Likewise. |
| 131 | (elf_backend_gc_sweep_hook): Likewise. |
| 132 | * elf32-nios2.c (nios2_elf32_gc_sweep_hook): Likewise. |
| 133 | (elf_backend_gc_sweep_hook): Likewise. |
| 134 | * elf32-or1k.c (or1k_elf_gc_sweep_hook): Likewise. |
| 135 | (elf_backend_gc_sweep_hook): Likewise. |
| 136 | * elf32-ppc.c (ppc_elf_gc_sweep_hook): Likewise. |
| 137 | (elf_backend_gc_sweep_hook): Likewise. |
| 138 | * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise. |
| 139 | (elf_backend_gc_sweep_hook): Likewise. |
| 140 | * elf32-sparc.c (elf_backend_gc_sweep_hook): Likewise. |
| 141 | * elf32-tic6x.c (elf32_tic6x_gc_sweep_hook): Likewise. |
| 142 | (elf_backend_gc_sweep_hook): Likewise. |
| 143 | * elf32-tilegx.c (elf_backend_gc_sweep_hook): Likewise. |
| 144 | * elf32-tilepro.c (tilepro_elf_gc_sweep_hook): Likewise. |
| 145 | (elf_backend_gc_sweep_hook): Likewise. |
| 146 | * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise. |
| 147 | (elf_backend_gc_sweep_hook): Likewise. |
| 148 | * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise. |
| 149 | (elf_backend_gc_sweep_hook): Likewise. |
| 150 | * elf64-alpha.c (elf64_alpha_gc_sweep_hook): Likewise. |
| 151 | (elf_backend_gc_sweep_hook): Likewise. |
| 152 | * elf64-mips.c (elf_backend_gc_sweep_hook): Likewise. |
| 153 | * elf64-mmix.c (mmix_elf_gc_sweep_hook): Likewise. |
| 154 | (elf_backend_gc_sweep_hook): Likewise. |
| 155 | * elf64-ppc.c (elf_backend_gc_sweep_hook): Likewise. |
| 156 | (ppc64_elf_gc_sweep_hook): Likewise. |
| 157 | * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise. |
| 158 | (elf_backend_gc_sweep_hook): Likewise. |
| 159 | * elf64-sparc.c (elf_backend_gc_sweep_hook): Likewise. |
| 160 | * elf64-tilegx.c (elf_backend_gc_sweep_hook): Likewise. |
| 161 | * elflink.c (elf_link_add_object_symbols): Don't call |
| 162 | _bfd_elf_link_check_relocs here. |
| 163 | (gc_sweep_hook_fn): Removed. |
| 164 | (elf_gc_sweep): Remove gc_sweep_hook. |
| 165 | * elfnn-aarch64.c (elfNN_aarch64_gc_sweep_hook): Removed. |
| 166 | (elf_backend_gc_sweep_hook): Likewise. |
| 167 | * elfnn-riscv.c (riscv_elf_gc_sweep_hook): Likewise. |
| 168 | (elf_backend_gc_sweep_hook): Likewise. |
| 169 | * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise. |
| 170 | * elfxx-mips.h (_bfd_mips_elf_gc_sweep_hook): Likewise. |
| 171 | (elf_backend_gc_sweep_hook): Likewise. |
| 172 | * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise. |
| 173 | * elfxx-sparc.h (_bfd_sparc_elf_gc_sweep_hook): Likewise. |
| 174 | * elfxx-target.h (elf_backend_gc_sweep_hook): Likewise. |
| 175 | (elfNN_bed): Remove elf_backend_gc_sweep_hook. |
| 176 | * elfxx-tilegx.c (tilegx_elf_gc_sweep_hook): Removed. |
| 177 | * elfxx-tilegx.h (tilegx_elf_gc_sweep_hook): Likewise. |
| 178 | |
| 179 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 180 | |
| 181 | * elf32-i386.c (elf_i386_backend_data): Removed. |
| 182 | (get_elf_i386_backend_data): Likewise. |
| 183 | (elf_i386_arch_bed): Replace elf_i386_backend_data with |
| 184 | elf_x86_backend_data. |
| 185 | (elf_i386_get_synthetic_symtab): Likewise. |
| 186 | (elf_i386_nacl_arch_bed): Likewise. |
| 187 | (elf_i386_vxworks_arch_bed): Likewise. |
| 188 | (elf_i386_relocate_section): Check target_os instead of |
| 189 | is_vxworks. |
| 190 | (elf_i386_finish_dynamic_symbol): Likewise. |
| 191 | (elf_i386_finish_dynamic_sections): Use htab->plt0_pad_byte. |
| 192 | Check target_os instead of is_vxworks. |
| 193 | (elf_i386_link_setup_gnu_properties): Remove normal_target and |
| 194 | is_vxworks. Initialize plt0_pad_byte. |
| 195 | * elf64-x86-64.c (elf_x86_64_backend_data); Removed. |
| 196 | (get_elf_x86_64_arch_data): Likewise. |
| 197 | (get_elf_x86_64_backend_data): Likewise. |
| 198 | (elf_x86_64_arch_bed): Replace elf_x86_64_backend_data with |
| 199 | elf_x86_backend_data. |
| 200 | (elf_x86_64_get_synthetic_symtab): Likewise. |
| 201 | (elf_x86_64_nacl_arch_bed): Likewise. |
| 202 | (elf_x86_64_link_setup_gnu_properties): Remove is_vxworks and |
| 203 | normal_target. Initialize plt0_pad_byte. |
| 204 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check target_os |
| 205 | instead of is_vxworks. |
| 206 | (_bfd_x86_elf_size_dynamic_sections): Likewise. |
| 207 | (_bfd_x86_elf_finish_dynamic_sections): Likewise. |
| 208 | (_bfd_x86_elf_adjust_dynamic_symbol): Likewise. |
| 209 | (_bfd_x86_elf_link_hash_table_create): Initialize target_os. |
| 210 | (_bfd_x86_elf_link_setup_gnu_properties): Remove is_vxworks. |
| 211 | Update normal_target. Set up plt0_pad_byte. Check target_os |
| 212 | instead of is_vxworks. |
| 213 | * elfxx-x86.h (elf_x86_target_os): New. |
| 214 | (elf_x86_backend_data): Likewise. |
| 215 | (get_elf_x86_backend_data): Likewise. |
| 216 | (elf_x86_link_hash_table): Remove is_vxworks. Add plt0_pad_byte |
| 217 | and target_os. |
| 218 | (elf_x86_init_table): Remove normal_target and is_vxworks. Add |
| 219 | plt0_pad_byte. |
| 220 | |
| 221 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 222 | |
| 223 | * elf32-i386.c (elf_i386_finish_dynamic_sections): Call |
| 224 | _bfd_x86_elf_finish_dynamic_sections. |
| 225 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Likewise. |
| 226 | * elfxx-x86.c (_bfd_x86_elf_finish_dynamic_sections): New |
| 227 | function. |
| 228 | * elfxx-x86.h (_bfd_x86_elf_finish_dynamic_sections): New |
| 229 | prototype. |
| 230 | |
| 231 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 232 | |
| 233 | PR ld/21384 |
| 234 | * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't |
| 235 | hide symbol which was forced to be dynamic. |
| 236 | |
| 237 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 238 | |
| 239 | PR ld/22269 |
| 240 | * elf32-cris.c (cris_elf_relocate_section): Don't generate |
| 241 | dynamic relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 242 | (cris_elf_check_relocs): Don't allocate dynamic relocation |
| 243 | if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 244 | |
| 245 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 246 | |
| 247 | PR ld/22269 |
| 248 | * elf32-sh.c (allocate_dynrelocs): Discard dynamic relocations |
| 249 | if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 250 | (sh_elf_relocate_section): Don't generate dynamic relocation if |
| 251 | UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 252 | |
| 253 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 254 | |
| 255 | PR ld/22269 |
| 256 | * elf32-s390.c (allocate_dynrelocs): Discard dynamic |
| 257 | relocations if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 258 | (elf_s390_relocate_section): Don't generate dynamic relocation |
| 259 | if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 260 | * elf64-s390.c (allocate_dynrelocs): Discard dynamic |
| 261 | relocations if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 262 | (elf_s390_relocate_section): Don't generate dynamic relocation |
| 263 | if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 264 | |
| 265 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 266 | |
| 267 | PR ld/22269 |
| 268 | * elf32-nios2.c (nios2_elf32_relocate_section): Don't generate |
| 269 | dynamic relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 270 | (allocate_dynrelocs): Discard dynamic relocations if |
| 271 | UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 272 | |
| 273 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 274 | |
| 275 | PR ld/22269 |
| 276 | * elf32-microblaze.c (microblaze_elf_relocate_section): Don't |
| 277 | generate dynamic relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is |
| 278 | true. |
| 279 | (allocate_dynrelocs): Discard dynamic relocations if |
| 280 | UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 281 | |
| 282 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 283 | |
| 284 | PR ld/22269 |
| 285 | * elf32-m68k.c (elf_m68k_check_relocs): Don't allocate dynamic |
| 286 | relocations if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 287 | (elf_m68k_adjust_dynamic_symbol): Don't make symbol dynamic if |
| 288 | UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 289 | (elf_m68k_relocate_section): Don't generate dynamic relocation |
| 290 | if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 291 | |
| 292 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 293 | |
| 294 | PR ld/22269 |
| 295 | * elf32-hppa.c (ensure_undef_dynamic): Don't make undefined |
| 296 | symbol dynamic if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 297 | (allocate_dynrelocs): Discard dynamic relocations if |
| 298 | UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 299 | (elf32_hppa_relocate_section): Don't generate dynamic |
| 300 | relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 301 | |
| 302 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 303 | |
| 304 | PR ld/22269 |
| 305 | * elfnn-ia64.c (elfNN_ia64_check_relocs): Don't allocate |
| 306 | dynamic relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 307 | (allocate_fptr): Don't allocate function pointer if |
| 308 | UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 309 | (allocate_dynrel_entries): Don't allocate dynamic relocation |
| 310 | if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 311 | (set_got_entry): Don't set GOT entry if |
| 312 | UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 313 | (set_pltoff_entry): Don't set PLTOFF entry if |
| 314 | UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 315 | (elfNN_ia64_relocate_section): Don't install dynamic relocation |
| 316 | UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 317 | |
| 318 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 319 | |
| 320 | PR ld/22269 |
| 321 | * elfxx-mips.c (mips_elf_calculate_relocation): Don't generate |
| 322 | dynamic relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 323 | (allocate_dynrelocs): Don't allocate dynamic relocations if |
| 324 | UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 325 | |
| 326 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 327 | |
| 328 | PR ld/22269 |
| 329 | * elf32-arm.c (elf32_arm_final_link_relocate): Don't generate |
| 330 | dynamic relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 331 | (allocate_dynrelocs_for_symbol): Discard dynamic relocations |
| 332 | if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 333 | |
| 334 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 335 | |
| 336 | PR ld/22269 |
| 337 | * elf32-tilepro.c (allocate_dynrelocs): Discard dynamic |
| 338 | relocations if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 339 | (tilepro_elf_relocate_section): Don't generate dynamic |
| 340 | relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 341 | * elfxx-tilegx.c (allocate_dynrelocs): Discard dynamic |
| 342 | relocations if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 343 | (tilegx_elf_relocate_section): Don't generate dynamic |
| 344 | relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 345 | |
| 346 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 347 | |
| 348 | PR ld/22269 |
| 349 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Don't |
| 350 | generate dynamic relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is |
| 351 | true. |
| 352 | (elfNN_aarch64_allocate_dynrelocs): Discard dynamic relocations |
| 353 | if UNDEFWEAK_NO_DYNAMIC_RELOC is true. |
| 354 | |
| 355 | 2017-10-14 H.J. Lu <hongjiu.lu@intel.com> |
| 356 | |
| 357 | * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Moved to ... |
| 358 | * elf-bfd.h (UNDEFWEAK_NO_DYNAMIC_RELOC): Here. |
| 359 | * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Removed. |
| 360 | |
| 361 | 2017-10-12 James Bowman <james.bowman@ftdichip.com> |
| 362 | |
| 363 | * bfd-in2.h: Regenerate. |
| 364 | * libbfd.h: Regenerate. |
| 365 | * elf32-ft32.c: Add HOWTO R_FT32_15. |
| 366 | * reloc.c: Add BFD_RELOC_FT32_15. |
| 367 | |
| 368 | 2017-10-12 Nick Clifton <nickc@redhat.com> |
| 369 | |
| 370 | * reloc.c (enum bfd_reloc_status): Start values at 2. |
| 371 | * bfd-in2.h: Regenerate. |
| 372 | * elfnn-aarch64.c (aarch64_relocate): Invert sense of function, so |
| 373 | that a TRUE return indicates success. Compare the result of |
| 374 | calling _bfd_aarch64_elf_put_addend against bfd_reloc_ok. |
| 375 | (build_one_stub): Change sense of tests against aarch64_relocate |
| 376 | return value. |
| 377 | (elfNN_aarch64_tls_relax): Return bfd_reloc_notsupported, rather |
| 378 | than FALSE, when an error is detected. |
| 379 | (elfNN_aarch64_final_link_relocate): Likewise. |
| 380 | |
| 381 | 2017-10-12 H.J. Lu <hongjiu.lu@intel.com> |
| 382 | |
| 383 | * elf32-i386.c (elf_backend_hide_symbol): New. |
| 384 | * elf64-x86-64.c (elf_backend_hide_symbol): Likewise. |
| 385 | * elfxx-x86.c (_bfd_x86_elf_hide_symbol): Likewise. |
| 386 | * elfxx-x86.h (_bfd_x86_elf_hide_symbol): Likewise. |
| 387 | |
| 388 | 2017-10-12 Alan Modra <amodra@gmail.com> |
| 389 | |
| 390 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Call |
| 391 | elf_backend_hide_symbol, not _bfd_elf_link_hash_hide_symbol. |
| 392 | (bfd_elf_define_start_stop): Likewise. |
| 393 | |
| 394 | 2017-10-12 Alan Modra <amodra@gmail.com> |
| 395 | |
| 396 | * elf32-nds32.c (nds32_elf_size_dynamic_sections): Set .interp |
| 397 | when executable rather than non-PIC. |
| 398 | * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise. |
| 399 | * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise. |
| 400 | |
| 401 | 2017-10-11 Maciej W. Rozycki <macro@imgtec.com> |
| 402 | |
| 403 | * elf-bfd.h (elf_backend_data): Add `linux_prpsinfo64_ugid16' |
| 404 | member. |
| 405 | * elf-linux-core.h (elf_external_linux_prpsinfo64): Rename to... |
| 406 | (elf_external_linux_prpsinfo64_ugid32): ... this. |
| 407 | (swap_linux_prpsinfo32_out): Rename to... |
| 408 | (swap_linux_prpsinfo32_ugid32_out): ... this. |
| 409 | (elf_external_linux_prpsinfo64_ugid16): New structure. |
| 410 | (swap_linux_prpsinfo64_ugid16_out): New function. |
| 411 | * elfxx-target.h [!elf_backend_linux_prpsinfo64_ugid16] |
| 412 | (elf_backend_linux_prpsinfo64_ugid16): Define. |
| 413 | (elfNN_bed): Initialize `linux_prpsinfo64_ugid16' member. |
| 414 | * elf.c (elfcore_write_linux_prpsinfo64): Handle both variants |
| 415 | of the 64-bit Linux core PRPSINFO note. |
| 416 | * elf64-sh64.c (elf_backend_linux_prpsinfo64_ugid16): Define. |
| 417 | |
| 418 | 2017-10-11 Maciej W. Rozycki <macro@imgtec.com> |
| 419 | |
| 420 | * elf-bfd.h (elf_backend_data): Add `linux_prpsinfo32_ugid16' |
| 421 | member. |
| 422 | (elfcore_write_ppc_linux_prpsinfo32): Remove prototype. |
| 423 | * elf32-ppc.c (elfcore_write_ppc_linux_prpsinfo32): Remove. |
| 424 | (elf_external_ppc_linux_prpsinfo32) |
| 425 | (swap_ppc_linux_prpsinfo32_out): Move to... |
| 426 | * elf-linux-core.h (elf_external_linux_prpsinfo32_ugid32) |
| 427 | (swap_linux_prpsinfo32_ugid32_out): ... these. |
| 428 | (elf_external_linux_prpsinfo32): Rename to... |
| 429 | (elf_external_linux_prpsinfo32_ugid16): ... this. |
| 430 | (swap_linux_prpsinfo32_out): Rename to... |
| 431 | (swap_linux_prpsinfo32_ugid16_out): ... this. |
| 432 | * elfxx-target.h [!elf_backend_linux_prpsinfo32_ugid16] |
| 433 | (elf_backend_linux_prpsinfo32_ugid16): Define. |
| 434 | (elfNN_bed): Initialize `linux_prpsinfo32_ugid16' member. |
| 435 | * elf.c (elfcore_write_linux_prpsinfo32): Handle both variants |
| 436 | of the 32-bit Linux core PRPSINFO note. |
| 437 | * elf32-am33lin.c (elf_backend_linux_prpsinfo32_ugid16): Define. |
| 438 | * elf32-arm.c (elf_backend_linux_prpsinfo32_ugid16): Define. |
| 439 | * elf32-cris.c (elf_backend_linux_prpsinfo32_ugid16): Define. |
| 440 | * elf32-frv.c (elf_backend_linux_prpsinfo32_ugid16): Define. |
| 441 | * elf32-i386.c (elf_backend_linux_prpsinfo32_ugid16): Define. |
| 442 | * elf32-m32r.c (elf_backend_linux_prpsinfo32_ugid16): Define. |
| 443 | * elf32-m68k.c (elf_backend_linux_prpsinfo32_ugid16): Define. |
| 444 | * elf32-s390.c (elf_backend_linux_prpsinfo32_ugid16): Define. |
| 445 | * elf32-sh.c (elf_backend_linux_prpsinfo32_ugid16): Define. |
| 446 | * elf32-sparc.c (elf_backend_linux_prpsinfo32_ugid16): Define. |
| 447 | |
| 448 | 2017-10-11 Maciej W. Rozycki <macro@imgtec.com> |
| 449 | |
| 450 | * elf-linux-core.h (elf_external_linux_prpsinfo64): Move the |
| 451 | `gap' member ahead of `pr_flag'. |
| 452 | |
| 453 | 2017-10-11 Pedro Alves <palves@redhat.com> |
| 454 | |
| 455 | * bfd.c (_doprnt): Rename to ... |
| 456 | (_bfd_doprnt): ... this. |
| 457 | (error_handler_internal): Adjust. |
| 458 | |
| 459 | 2017-10-10 H.J. Lu <hongjiu.lu@intel.com> |
| 460 | |
| 461 | * elf32-i386.c (elf_i386_check_relocs): Set GOT refcount to 1 |
| 462 | instead of incrementing it. |
| 463 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. |
| 464 | |
| 465 | 2017-10-10 Renlin Li <renlin.li@arm.com> |
| 466 | |
| 467 | PR ld/21402 |
| 468 | * elf32-arm.c (allocate_dynrelocs_for_symbol): Only make undefined weak |
| 469 | symbols into dynamic. |
| 470 | |
| 471 | 2017-10-09 H.J. Lu <hongjiu.lu@intel.com> |
| 472 | |
| 473 | PR ld/22274 |
| 474 | * elfnn-riscv.c (riscv_elf_link_hash_table): Add max_alignment. |
| 475 | (riscv_elf_link_hash_table_create): Initialize max_alignment to |
| 476 | (bfd_vma) -1. |
| 477 | (_bfd_riscv_relax_section): Cache the max alignment of output |
| 478 | sections if possible. |
| 479 | |
| 480 | 2017-10-10 Alan Modra <amodra@gmail.com> |
| 481 | |
| 482 | * elf64-ppc.c (ppc64_elf_before_check_relocs): Set sec_type for |
| 483 | .opd whenever .opd is present and non-zero size. Move code |
| 484 | setting abiversion to/from output file earlier. Only set |
| 485 | u.opd.func_sec when --gc-sections. Read relocs and set up |
| 486 | u.opd.func_sec values here.. |
| 487 | (ppc64_elf_check_relocs): ..rather than here. Simplify opd |
| 488 | section tests. |
| 489 | (ppc64_elf_edit_opd): Don't set sec_type for .opd here. |
| 490 | |
| 491 | 2017-10-09 H.J. Lu <hongjiu.lu@intel.com> |
| 492 | |
| 493 | * elf-m10300.c (mn10300_elf_check_relocs): Don't free cached |
| 494 | isymbuf. |
| 495 | |
| 496 | 2017-10-09 H.J. Lu <hongjiu.lu@intel.com> |
| 497 | |
| 498 | * elf32-bfin.c (bfin_size_dynamic_sections): Don't create the |
| 499 | .interp section with "ld --no-dynamic-linker". |
| 500 | |
| 501 | 2017-10-09 Alan Modra <amodra@gmail.com> |
| 502 | |
| 503 | PR 22212 |
| 504 | * dwarf2.c (_bfd_dwarf2_cleanup_debug_info): Free |
| 505 | funcinfo_hash_table and varinfo_hash_table. |
| 506 | |
| 507 | 2017-10-08 H.J. Lu <hongjiu.lu@intel.com> |
| 508 | |
| 509 | * elf32-sh.c (readonly_dynrelocs): Dump dynamic relocation |
| 510 | in read-only section with minfo. |
| 511 | (sh_elf_size_dynamic_sections): Likewise. |
| 512 | |
| 513 | 2017-10-08 H.J. Lu <hongjiu.lu@intel.com> |
| 514 | |
| 515 | * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Remove |
| 516 | a strayed comment. |
| 517 | |
| 518 | 2017-10-08 H.J. Lu <hongjiu.lu@intel.com> |
| 519 | |
| 520 | * elfxx-tilegx.c (tilegx_elf_finish_dynamic_sections): Set |
| 521 | this_hdr.sh_entsize only if section size > 0. |
| 522 | |
| 523 | 2017-10-08 H.J. Lu <hongjiu.lu@intel.com> |
| 524 | |
| 525 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Reformat. |
| 526 | |
| 527 | 2017-10-07 H.J. Lu <hongjiu.lu@intel.com> |
| 528 | |
| 529 | * elfxx-sparc.c (readonly_dynrelocs): Dump dynamic relocation |
| 530 | in read-only section with minfo. |
| 531 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. |
| 532 | |
| 533 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
| 534 | |
| 535 | * elfxx-x86.h (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Update |
| 536 | comments. |
| 537 | |
| 538 | 2017-10-06 John Baldwin <jhb@FreeBSD.org> |
| 539 | |
| 540 | * elf-bfd.h (struct elf_backend_data): Add |
| 541 | `elf_backend_grok_freebsd_prstatus'. |
| 542 | * elf.c (elfcore_grok_freebsd_note): Call |
| 543 | `elf_backend_grok_freebsd_prstatus' to handle NT_PRSTATUS if |
| 544 | present. |
| 545 | * elfn32-mips.c (elf_n32_mips_grok_freebsd_prstatus): New |
| 546 | function. |
| 547 | (elf_backend_grok_freebsd_prstatus): Define. |
| 548 | * elfxx-target.h (elf_backend_grok_freebsd_prstatus): Define. |
| 549 | (elfNN_bed): Initialize `elf_backend_grok_freebsd_prstatus'. |
| 550 | |
| 551 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
| 552 | |
| 553 | * elf32-i386.c (elf_i386_check_relocs): Replace has_got_reloc |
| 554 | and has_non_got_reloc with zero_undefweak. |
| 555 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. |
| 556 | * elfxx-x86.c (_bfd_x86_elf_link_hash_newfunc): Initialize |
| 557 | zero_undefweak to 1. |
| 558 | (_bfd_x86_elf_copy_indirect_symbol): Replace has_got_reloc and |
| 559 | has_non_got_reloc with zero_undefweak. |
| 560 | * elfxx-x86.h (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Replace |
| 561 | has_got_reloc and has_non_got_reloc with zero_undefweak. |
| 562 | (elf_x86_link_hash_entry): Likewise. |
| 563 | |
| 564 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
| 565 | |
| 566 | * elfxx-x86.h (COPY_INPUT_RELOC_P): Add "do/while(0);". |
| 567 | (VERIFY_COPY_RELOC): Likewise. |
| 568 | |
| 569 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
| 570 | |
| 571 | * elfxx-x86.h (VERIFY_COPY_RELOC): New. |
| 572 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Use it. |
| 573 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. |
| 574 | |
| 575 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
| 576 | |
| 577 | * elfxx-x86.h (VERIFY_PLT_ENTRY): New. |
| 578 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Use it. |
| 579 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. |
| 580 | |
| 581 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
| 582 | |
| 583 | * elfxx-x86.h (COPY_INPUT_RELOC_P): New. |
| 584 | * elf32-i386.c (elf_i386_relocate_section): Use it. |
| 585 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. |
| 586 | |
| 587 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
| 588 | |
| 589 | * elf32-i386.c (X86_SIZE_TYPE_P): New. |
| 590 | (elf_i386_relocate_section): Use GENERATE_DYNAMIC_RELOCATION_P. |
| 591 | * elf64-x86-64.c (X86_SIZE_TYPE_P): New. |
| 592 | (elf_x86_64_relocate_section): Use GENERATE_DYNAMIC_RELOCATION_P. |
| 593 | * elfxx-x86.h (GENERATE_DYNAMIC_RELOCATION_P): New. |
| 594 | |
| 595 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
| 596 | |
| 597 | * elfxx-x86.h (POINTER_LOCAL_IFUNC_P): New. |
| 598 | (PLT_LOCAL_IFUNC_P): Likewise. |
| 599 | * elf32-i386.c (elf_i386_relocate_section): Use them. |
| 600 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. |
| 601 | |
| 602 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
| 603 | |
| 604 | * elfxx-x86.h (GENERATE_RELATIVE_RELOC_P): New. |
| 605 | * elf32-i386.c (elf_i386_relocate_section): Use it. |
| 606 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. |
| 607 | |
| 608 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
| 609 | |
| 610 | * elfxx-x86.h (RESOLVED_LOCALLY_P): New. |
| 611 | * elf32-i386.c (elf_i386_relocate_section): Use it. |
| 612 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. |
| 613 | |
| 614 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
| 615 | |
| 616 | * elf32-i386.c (X86_PCREL_TYPE_P): New. |
| 617 | (elf_i386_check_relocs): Use NEED_DYNAMIC_RELOCATION_P. |
| 618 | * elf64-x86-64.c (IS_X86_64_PCREL_TYPE): Renamed to ... |
| 619 | (X86_PCREL_TYPE_P): This. |
| 620 | (elf_x86_64_check_relocs): Use NEED_DYNAMIC_RELOCATION_P. |
| 621 | Replace IS_X86_64_PCREL_TYPE with X86_PCREL_TYPE_P. |
| 622 | (elf_x86_64_relocate_section): Replace IS_X86_64_PCREL_TYPE with |
| 623 | X86_PCREL_TYPE_P. |
| 624 | * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): New. |
| 625 | |
| 626 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
| 627 | |
| 628 | * elfxx-x86.h (TLS_TRANSITION_IE_TO_LE_P): New. |
| 629 | * elf32-i386.c (elf_i386_tls_transition): Use it. |
| 630 | * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise. |
| 631 | |
| 632 | 2017-10-05 H.J. Lu <hongjiu.lu@intel.com> |
| 633 | |
| 634 | * elf32-ppc.c (readonly_dynrelocs): Add a link_info argument. |
| 635 | Dump dynamic relocation in read-only section with minfo if |
| 636 | needed. |
| 637 | (ppc_elf_adjust_dynamic_symbol): Pass NULL to readonly_dynrelocs. |
| 638 | (maybe_set_textrel): Likewise. |
| 639 | (ppc_elf_size_dynamic_sections): Dump dynamic relocation in |
| 640 | read-only section with minfo. |
| 641 | |
| 642 | 2017-10-05 John Baldwin <jhb@FreeBSD.org> |
| 643 | |
| 644 | * elf.c (elfcore_grok_freebsd_note): Handle NT_ARM_VFP. |
| 645 | |
| 646 | 2017-10-05 H.J. Lu <hongjiu.lu@intel.com> |
| 647 | |
| 648 | * elf32-tilepro.c (readonly_dynrelocs): Dump dynamic relocation |
| 649 | in read-only section with minfo. |
| 650 | (tilepro_elf_size_dynamic_sections): Likewise. |
| 651 | * elfxx-tilegx.c (readonly_dynrelocs): Likewise. |
| 652 | (tilegx_elf_size_dynamic_sections): Likewise. |
| 653 | |
| 654 | 2017-10-05 Pedro Alves <palves@redhat.com> |
| 655 | |
| 656 | PR 22245 |
| 657 | * bfd.c (bfd_set_error): Revert 2017-10-04 change. Remove |
| 658 | ellipsis parameter. Split out bfd_error_on_input code to.. |
| 659 | (bfd_set_input_error): .. New function. |
| 660 | * archive.c (_bfd_write_archive_contents): Use bfd_set_input_error. |
| 661 | * vms-lib.c (_bfd_vms_lib_write_archive_contents): Likewise. |
| 662 | * bfd-in2.h: Regenerate. |
| 663 | |
| 664 | 2017-10-05 Alan Modra <amodra@gmail.com> |
| 665 | |
| 666 | * elflink.c (elf_link_input_bfd): Correct ctor/dtor in init_array/ |
| 667 | fini_array error value. |
| 668 | |
| 669 | 2017-10-05 Alan Modra <amodra@gmail.com> |
| 670 | |
| 671 | PR 21167 |
| 672 | * elf.c (_bfd_elf_setup_sections): Don't trim reloc sections from |
| 673 | groups. |
| 674 | (_bfd_elf_init_reloc_shdr): Pass sec_hdr, use it to copy SHF_GROUP |
| 675 | flag from section. |
| 676 | (elf_fake_sections): Adjust calls. Exit immediately on failure. |
| 677 | (bfd_elf_set_group_contents): Add associated reloc section indices |
| 678 | to group contents. |
| 679 | |
| 680 | 2017-10-04 Alan Modra <amodra@gmail.com> |
| 681 | |
| 682 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't sort or |
| 683 | classify symbols for ELFv2. |
| 684 | |
| 685 | 2017-10-04 Pavel I. Kryukov <kryukov@frtk.ru> |
| 686 | |
| 687 | PR 22245 |
| 688 | * bfd.c (bfd_set_error): Avoid UB on passing arg to va_start that |
| 689 | undergoes default promotion. |
| 690 | * bfd-in2.h: Regenerate. |
| 691 | |
| 692 | 2017-10-02 Alan Modra <amodra@gmail.com> |
| 693 | |
| 694 | * elf32-ppc.c (ppc_elf_relocate_section): Fix comment typo. |
| 695 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. |
| 696 | |
| 697 | 2017-10-01 Alan Modra <amodra@gmail.com> |
| 698 | |
| 699 | PR 21957 |
| 700 | * dwarf2.c (new_line_sorts_after): Remove end_sequence comparison. |
| 701 | (add_line_info): Always put end_sequence last. |
| 702 | |
| 703 | 2017-10-01 Alan Modra <amodra@gmail.com> |
| 704 | |
| 705 | PR 22047 |
| 706 | * dwarf2.c (read_section): Allocate buffer with extra byte for |
| 707 | bfd_simple_get_relocated_section_contents rather than copying |
| 708 | afterwards. |
| 709 | |
| 710 | 2017-09-29 Alan Modra <amodra@gmail.com> |
| 711 | |
| 712 | * merge.c (merge_strings): Return FALSE on malloc failure. |
| 713 | (_bfd_merge_sections): Return failures from record_section and |
| 714 | merge_strings. |
| 715 | |
| 716 | 2017-09-28 Alan Modra <amodra@gmail.com> |
| 717 | |
| 718 | PR 22220 |
| 719 | * elflink.c (_bfd_elf_merge_symbol): Set non_ir_ref_dynamic in |
| 720 | a case where plugin_notice isn't called. |
| 721 | |
| 722 | 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
| 723 | |
| 724 | * elf32-nds32.c (nds32_elf_relax_section): Fix a tautological |
| 725 | comparison. |
| 726 | |
| 727 | 2017-09-26 H.J. Lu <hongjiu.lu@intel.com> |
| 728 | |
| 729 | PR ld/22199 |
| 730 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't pass |
| 731 | output_bfd to info->callbacks->minfo. |
| 732 | |
| 733 | 2017-09-26 Nick Clifton <nickc@redhat.com> |
| 734 | |
| 735 | PR 22172 |
| 736 | * elf64-x86-64.c (elf_x86_64_info_to_howto): Do not trigger an |
| 737 | assertion failure if elf_x86_64_rtype_to_howto has already issued |
| 738 | an error message. |
| 739 | |
| 740 | 2017-09-26 Alan Modra <amodra@gmail.com> |
| 741 | |
| 742 | PR 22210 |
| 743 | * dwarf2.c (read_formatted_entries): Use read_attribute_value to |
| 744 | read data. |
| 745 | |
| 746 | 2017-09-26 Nick Clifton <nickc@redhat.com> |
| 747 | |
| 748 | PR 22210 |
| 749 | * dwarf2.c (read_formatted_entries): Fail early if we know that |
| 750 | the loop parsing data entries will overflow the end of the |
| 751 | section. |
| 752 | |
| 753 | 2017-09-26 Alan Modra <amodra@gmail.com> |
| 754 | |
| 755 | PR 22209 |
| 756 | * dwarf2.c (struct comp_unit): Delete sec_info_ptr field. |
| 757 | (find_abstract_instance_name): Calculate DW_FORM_ref_addr relative |
| 758 | to stash->info_ptr_memory, and check die_ref is within that memory. |
| 759 | Set info_ptr_end correctly when another CU is refd. Check die_ref |
| 760 | for DW_FORM_ref4 etc. is within CU. |
| 761 | |
| 762 | 2017-09-26 Alan Modra <amodra@gmail.com> |
| 763 | |
| 764 | PR 22205 |
| 765 | * dwarf2.c (concat_filename): Return "<unknown>" on NULL filename. |
| 766 | (read_formatted_entries): Init "fe". |
| 767 | (decode_line_info <DW_LNE_define_file>): Use line_info_add_file_name. |
| 768 | |
| 769 | 2017-09-26 Alan Modra <amodra@gmail.com> |
| 770 | |
| 771 | PR 22204 |
| 772 | * dwarf2.c (decode_line_info): Ensure line_ptr stays within |
| 773 | bounds in inner loop. |
| 774 | |
| 775 | 2017-09-25 Alan Modra <amodra@gmail.com> |
| 776 | |
| 777 | PR 22202 |
| 778 | * dwarf1.c (parse_die): Sanity check pointer against section limit |
| 779 | before dereferencing. |
| 780 | (parse_line_table): Likewise. |
| 781 | |
| 782 | 2017-09-25 Alan Modra <amodra@gmail.com> |
| 783 | |
| 784 | PR 22201 |
| 785 | * dwarf2.c (scan_unit_for_symbols): Ignore DW_AT_name unless it |
| 786 | has string form. |
| 787 | (parse_comp_unit): Likewise. |
| 788 | |
| 789 | 2017-09-25 Alan Modra <amodra@gmail.com> |
| 790 | |
| 791 | PR 22200 |
| 792 | * dwarf2.c (read_formatted_entries): Error on format_count zero. |
| 793 | |
| 794 | 2017-09-24 Alan Modra <amodra@gmail.com> |
| 795 | |
| 796 | PR 22197 |
| 797 | * opncls.c (bfd_get_debug_link_info_1): Properly check that crc is |
| 798 | within section bounds. |
| 799 | |
| 800 | 2017-09-24 Alan Modra <amodra@gmail.com> |
| 801 | |
| 802 | PR 22191 |
| 803 | * dwarf2.c (decode_line_info): Properly free line sequences on error. |
| 804 | |
| 805 | 2017-09-24 Alan Modra <amodra@gmail.com> |
| 806 | |
| 807 | PR 22187 |
| 808 | * dwarf2.c (find_abstract_instance_name): Add orig_info_ptr and |
| 809 | pname param. Return status. Make name const. Don't abort, |
| 810 | return an error. Formatting. Exit if current info_ptr matches |
| 811 | orig_info_ptr. Update callers. |
| 812 | (scan_unit_for_symbols): Start at nesting_level of zero. Make |
| 813 | nested_funcs an array of structs for extensibility. Formatting. |
| 814 | |
| 815 | 2017-09-24 Alan Modra <amodra@gmail.com> |
| 816 | |
| 817 | PR 22186 |
| 818 | * dwarf2.c (decode_line_info): Fail on lh.line_range of zero |
| 819 | rather than dividing by zero. |
| 820 | |
| 821 | 2017-09-24 Alan Modra <amodra@gmail.com> |
| 822 | |
| 823 | PR 22169 |
| 824 | * dwarf2.c (decode_line_info): Correct .debug_line unit_length check. |
| 825 | |
| 826 | 2017-09-24 Alan Modra <amodra@gmail.com> |
| 827 | |
| 828 | PR 22167 |
| 829 | * dwarf2.c (scan_unit_for_symbols): Check u.blk->data is non-NULL. |
| 830 | |
| 831 | 2017-09-24 Alan Modra <amodra@gmail.com> |
| 832 | |
| 833 | PR 22166 |
| 834 | * elf.c (_bfd_elf_slurp_version_tables): Test sh_info on |
| 835 | SHT_GNU_verneed section for sanity. Don't zalloc memory for |
| 836 | verref. |
| 837 | |
| 838 | 2017-09-22 H.J. Lu <hongjiu.lu@intel.com> |
| 839 | |
| 840 | PR binutils/22170 |
| 841 | * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Guard against |
| 842 | corrupted PLT. |
| 843 | |
| 844 | 2017-09-22 H.J. Lu <hongjiu.lu@intel.com> |
| 845 | |
| 846 | PR binutils/22163 |
| 847 | * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Also return |
| 848 | -1 if bfd_canonicalize_dynamic_reloc returns 0. |
| 849 | |
| 850 | 2017-09-22 Pedro Alves <palves@redhat.com> |
| 851 | Alan Modra <amodra@gmail.com> |
| 852 | |
| 853 | * version.h: Add comment. |
| 854 | |
| 855 | 2017-09-21 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 856 | |
| 857 | * elf.c (elfcore_grok_note): For the cases NT_S390_GS_CB and |
| 858 | NT_S390_GS_BC, correct the previously swapped invocations of |
| 859 | elfcore_grok_s390_gs_bc and elfcore_grok_s390_gs_cb. |
| 860 | |
| 861 | 2017-09-19 Alan Modra <amodra@gmail.com> |
| 862 | |
| 863 | PR 21441 |
| 864 | * elf64-ppc.c (ppc64_elf_build_stubs): Don't check glink_eh_frame |
| 865 | size. |
| 866 | |
| 867 | 2017-09-19 Alan Modra <amodra@gmail.com> |
| 868 | |
| 869 | PR 22150 |
| 870 | * elflink.c (bfd_elf_size_dynamic_sections): Garbage collect |
| 871 | symbols before calculating verrefs. Don't renumber dynsyms |
| 872 | after gc. Exclude .gnu.version when zero or one dynsym. |
| 873 | Localize some vars and reindent. |
| 874 | |
| 875 | 2017-09-18 H.J. Lu <hongjiu.lu@intel.com> |
| 876 | |
| 877 | PR ld/22148 |
| 878 | * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Check error |
| 879 | return from bfd_canonicalize_dynamic_reloc. |
| 880 | |
| 881 | 2017-09-15 Alan Modra <amodra@gmail.com> |
| 882 | |
| 883 | PR 22116 |
| 884 | * archive.c (bfd_ar_hdr_from_filesystem): Detect when status.st_size |
| 885 | overflows bfd_size_type. |
| 886 | |
| 887 | 2017-09-14 H.J. Lu <hongjiu.lu@intel.com> |
| 888 | |
| 889 | PR ld/22135 |
| 890 | * elf32-i386.c (elf_i386_convert_load_reloc): Add an argument |
| 891 | to indicate if conversion is performed. |
| 892 | (elf_i386_check_relocs): Cache section contents and relocations |
| 893 | if conversion is performed. |
| 894 | * elf64-x86-64.c (elf_x86_64_check_relocs): Cache section |
| 895 | contents and relocations if conversion is performed. |
| 896 | |
| 897 | 2017-09-14 Nick Clifton <nickc@redhat.com> |
| 898 | |
| 899 | PR binutils/22113 |
| 900 | * peXXigen.c (pe_print_idata): Extend check for HintName vector |
| 901 | entries. |
| 902 | |
| 903 | 2017-09-13 H.J. Lu <hongjiu.lu@intel.com> |
| 904 | |
| 905 | * elfxx-x86.h: Fix a typo in comments. |
| 906 | |
| 907 | 2017-09-09 Kamil Rytarowski <n54@gmx.com> |
| 908 | |
| 909 | * elf32-nds32.c: Rename __BIT() to N32_BIT(). |
| 910 | |
| 911 | 2017-09-09 Alan Modra <amodra@gmail.com> |
| 912 | |
| 913 | * elf64-ppp.c (plt_stub_pad): Handle positive and negative |
| 914 | plt_stub_align. |
| 915 | |
| 916 | 2017-09-09 H.J. Lu <hongjiu.lu@intel.com> |
| 917 | |
| 918 | * elf32-i386.c (elf_i386_relocate_section): Update usage of |
| 919 | UNDEFINED_WEAK_RESOLVED_TO_ZERO. |
| 920 | (elf_i386_finish_dynamic_symbol): Likewise. |
| 921 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. |
| 922 | (elf_x86_64_finish_dynamic_symbol): Likewise. |
| 923 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Likewise. |
| 924 | (_bfd_x86_elf_fixup_symbol): Likewise. |
| 925 | |
| 926 | 2017-09-09 H.J. Lu <hongjiu.lu@intel.com> |
| 927 | |
| 928 | * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't |
| 929 | check has_non_got_reloc. |
| 930 | |
| 931 | 2017-09-09 H.J. Lu <hongjiu.lu@intel.com> |
| 932 | |
| 933 | PR ld/22115 |
| 934 | * elf32-i386.c (elf_i386_convert_load_reloc): Check linker_def. |
| 935 | Don't use UNDEFINED_WEAK_RESOLVED_TO_ZERO. |
| 936 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Check |
| 937 | linker_def. Don't use UNDEFINED_WEAK_RESOLVED_TO_ZERO. |
| 938 | * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Set local_ref |
| 939 | and linker_def on __ehdr_start if it is referenced and not |
| 940 | defined. |
| 941 | (_bfd_x86_elf_link_symbol_references_local): Also set local_ref |
| 942 | and return TRUE when building executable, if a symbol has |
| 943 | non-GOT/non-PLT relocations in text section or there is no |
| 944 | dynamic linker. |
| 945 | * elfxx-x86.h (elf_x86_link_hash_entry): Add linker_def. |
| 946 | |
| 947 | 2017-09-08 H.J. Lu <hongjiu.lu@intel.com> |
| 948 | |
| 949 | * elfxx-x86.h: Update comments. |
| 950 | |
| 951 | 2017-09-08 H.J. Lu <hongjiu.lu@intel.com> |
| 952 | |
| 953 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): Replace |
| 954 | elf_x86_plt_layout_table with elf_x86_init_table. |
| 955 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): |
| 956 | Likewise. |
| 957 | * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): |
| 958 | Likewise. |
| 959 | * elfxx-x86.h (elf_x86_plt_layout_table): Renamed to ... |
| 960 | (elf_x86_init_table): This. |
| 961 | (_bfd_x86_elf_link_setup_gnu_properties): Replace |
| 962 | elf_x86_plt_layout_table with elf_x86_init_table. |
| 963 | |
| 964 | 2017-09-07 H.J. Lu <hongjiu.lu@intel.com> |
| 965 | |
| 966 | * configure.ac (bfd_backends): Don't add elf64-x86-64.lo nor |
| 967 | elf64.lo together with elfxx-x86.lo for 64-bit BFD. |
| 968 | * configure: Regenerated. |
| 969 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): Set r_info |
| 970 | and r_sym fields of plt_layout. |
| 971 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): |
| 972 | Likewise. |
| 973 | * elfxx-x86.c (elf_x86_64_is_reloc_section): Remove BFD64 check. |
| 974 | (_bfd_x86_elf_link_hash_table_create): Likewise. Don't set |
| 975 | r_info nor r_sym fields. |
| 976 | (_bfd_x86_elf_link_setup_gnu_properties): Set r_info and r_sym |
| 977 | fields of htab. |
| 978 | * elfxx-x86.h (elf_x86_plt_layout_table): Add r_info and r_sym. |
| 979 | |
| 980 | 2017-09-07 Palmer Dabbelt <palmer@dabbelt.com> |
| 981 | |
| 982 | * (_bfd_riscv_relax_align): Call bfd_set_error and |
| 983 | print an error message when unable to relax a .align directive. |
| 984 | |
| 985 | 2017-09-07 Palmer Dabbelt <palmer@dabbelt.com> |
| 986 | |
| 987 | * elfnn-riscv.c (riscv_zero_pcrel_hi_reloc): New function. |
| 988 | (riscv_record_pcrel_hi_reloc): Add absolute argument. |
| 989 | (riscv_elf_relocate_section): Call riscv_zero_pcrel_hi_reloc for |
| 990 | R_RISCV_PCREL_HI20 relocs, and pass the result to |
| 991 | riscv_record_pcrel_hi_reloc. |
| 992 | |
| 993 | 2017-09-07 H.J. Lu <hongjiu.lu@intel.com> |
| 994 | |
| 995 | * elf32-i386.c (elf_i386_convert_load_reloc): Add an argument, |
| 996 | r_type_p. Remove the converted argument. Replace |
| 997 | SYMBOL_REFERENCES_LOCAL with SYMBOL_REFERENCES_LOCAL_P. Return |
| 998 | the new relocation type via r_type_p. |
| 999 | (elf_i386_relocate_section): Likewise. |
| 1000 | (elf_i386_finish_dynamic_symbol): Likewise. |
| 1001 | (need_convert_load): Removed. |
| 1002 | (check_relocs_failed): Updated. |
| 1003 | (elf_i386_check_relocs): Call elf_i386_convert_load_reloc, |
| 1004 | instead of setting need_convert_load. |
| 1005 | (_bfd_i386_elf_convert_load): Removed. |
| 1006 | * elf64-x86-64.c (need_convert_load): Removed. |
| 1007 | (check_relocs_failed): Updated. |
| 1008 | (elf_x86_64_convert_load_reloc): Add an argument, r_type_p. |
| 1009 | Replace SYMBOL_REFERENCES_LOCAL with SYMBOL_REFERENCES_LOCAL_P. |
| 1010 | Return the new relocation type via r_type_p. |
| 1011 | (elf_x86_64_check_relocs): Call elf_x86_64_convert_load_reloc, |
| 1012 | instead of setting need_convert_load. |
| 1013 | (elf_x86_64_check_relocs): Don't check PIC if relocation has |
| 1014 | been converted. |
| 1015 | (_bfd_x86_64_elf_convert_load): Removed. |
| 1016 | (elf_x86_64_relocate_section): Replace SYMBOL_REFERENCES_LOCAL |
| 1017 | with SYMBOL_REFERENCES_LOCAL_P. |
| 1018 | (elf_x86_64_finish_dynamic_symbol): Likewise. |
| 1019 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Don't |
| 1020 | set convert_load. |
| 1021 | (_bfd_x86_elf_size_dynamic_sections): Don't call convert_load. |
| 1022 | (_bfd_x86_elf_link_symbol_references_local): New function. |
| 1023 | * elfxx-x86.h (SYMBOL_REFERENCES_LOCAL_P): New. |
| 1024 | (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Replace elf.forced_local with |
| 1025 | SYMBOL_REFERENCES_LOCAL_P. |
| 1026 | (elf_x86_link_hash_entry): Add local_ref. |
| 1027 | (elf_x86_link_hash_table): Remove convert_load. |
| 1028 | (_bfd_i386_elf_convert_load): Removed. |
| 1029 | (_bfd_x86_64_elf_convert_load): Likewise. |
| 1030 | (_bfd_x86_elf_link_symbol_references_local): New. |
| 1031 | |
| 1032 | 2017-09-06 H.J. Lu <hongjiu.lu@intel.com> |
| 1033 | |
| 1034 | * elf64-x86-64.c (R_X86_64_converted_reloc_bit): New. |
| 1035 | (elf_x86_64_info_to_howto): Get the real relocation type by |
| 1036 | masking out R_X86_64_converted_reloc_bit. |
| 1037 | (elf_x86_64_check_tls_transition): Get the real relocation type |
| 1038 | by masking out R_X86_64_converted_reloc_bit. |
| 1039 | (elf_x86_64_convert_load_reloc): Set R_X86_64_converted_reloc_bit |
| 1040 | instead of setting converted_reloc. |
| 1041 | (elf_x86_64_relocate_section): Check R_X86_64_converted_reloc_bit |
| 1042 | instead of converted_reloc. Get the real relocation type by |
| 1043 | masking out R_X86_64_converted_reloc_bit. |
| 1044 | (elf_x86_64_link_setup_gnu_properties): Verify that the value of |
| 1045 | R_X86_64_converted_reloc_bit is valid. |
| 1046 | * elfxx-x86.h (converted_reloc): Removed. |
| 1047 | |
| 1048 | 2017-09-06 H.J. Lu <hongjiu.lu@intel.com> |
| 1049 | |
| 1050 | * elf32-i386.c (elf_i386_relocate_section): Don't change r_type |
| 1051 | when calling elf_i386_tls_transition. Don't use ELF32_R_TYPE |
| 1052 | to get the relocation type again. |
| 1053 | * elf64-x86-64.c (elf_x86_64_relocate_section): Don't change |
| 1054 | r_type when calling elf_x86_64_tls_transition. Don't use |
| 1055 | ELF32_R_TYPE to get the relocation type again. |
| 1056 | |
| 1057 | 2017-09-05 H.J. Lu <hongjiu.lu@intel.com> |
| 1058 | |
| 1059 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Properly set |
| 1060 | converted_reloc. |
| 1061 | |
| 1062 | 2017-09-05 H.J. Lu <hongjiu.lu@intel.com> |
| 1063 | |
| 1064 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Remove the sec |
| 1065 | argument. Don't check relocation overflow. Avoid relocation |
| 1066 | overflow if --no-relax is used. Set converted_reloc on symbol |
| 1067 | if a GOTPCREL relocation is converted. |
| 1068 | (elf_x86_64_relocate_section): Issue a fatal error and suggest |
| 1069 | --no-relax if GOTPCREL relocation conversion leads to relocation |
| 1070 | overflow. |
| 1071 | * elfxx-x86.h (elf_x86_link_hash_entry): Add converted_reloc. |
| 1072 | |
| 1073 | 2017-09-05 Alexander Fedotov <alexander.fedotov@nxp.com> |
| 1074 | Edmar Wienskoski <edmar.wienskoski@nxp.com |
| 1075 | |
| 1076 | * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_VLE_ADDR20. |
| 1077 | (ppc_elf_check_relocs): Handle it. |
| 1078 | (ppc_elf_vle_split20): New function. |
| 1079 | (ppc_elf_relocate_section): Handle R_PPC_VLE_ADDR20. |
| 1080 | |
| 1081 | 2017-09-03 H.J. Lu <hongjiu.lu@intel.com> |
| 1082 | |
| 1083 | PR ld/22071 |
| 1084 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Set tlsdesc_plt |
| 1085 | for x86-64 if GOT_TLS_GDESC_P is true. |
| 1086 | |
| 1087 | 2017-09-03 Alan Modra <amodra@gmail.com> |
| 1088 | |
| 1089 | PR 22067 |
| 1090 | * elfxx-x86.h (elf_x86_hash_table): Check is_elf_hash_table first. |
| 1091 | |
| 1092 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1093 | |
| 1094 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize |
| 1095 | tls_get_addr for x86-64 in one place. |
| 1096 | |
| 1097 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1098 | |
| 1099 | * configure.ac (bfd_backends): Add elf64-x86-64.lo together |
| 1100 | with elfxx-x86.lo for 64-bit BFD. |
| 1101 | * configure: Regenerated. |
| 1102 | |
| 1103 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1104 | |
| 1105 | * elf32-i386.c (elf_i386_convert_load): Renamed to ... |
| 1106 | (_bfd_i386_elf_convert_load): This. Remove static. |
| 1107 | (elf_i386_size_dynamic_sections): Removed. |
| 1108 | (elf_backend_size_dynamic_sections): Likewise. |
| 1109 | * elf64-x86-64.c (elf_x86_64_convert_load): Renamed to ... |
| 1110 | (_bfd_x86_64_elf_convert_load): This. Remove static. |
| 1111 | (elf_x86_64_size_dynamic_sections): Removed. |
| 1112 | (elf_backend_size_dynamic_sections): Likewise. |
| 1113 | * elfxx-x86.c (_bfd_x86_elf_allocate_dynrelocs): Renamed to ... |
| 1114 | (elf_x86_allocate_dynrelocs): This. Make it static. |
| 1115 | (_bfd_x86_elf_allocate_local_dynrelocs): Renamed to ... |
| 1116 | (elf_x86_allocate_local_dynreloc): This. Make it static. |
| 1117 | (elf_i386_is_reloc_section): New function. |
| 1118 | (elf_x86_64_is_reloc_section): Likewise. |
| 1119 | (_bfd_x86_elf_link_hash_table_create): Initialize convert_load, |
| 1120 | is_reloc_section, dt_reloc, dt_reloc_sz and dt_reloc_ent. |
| 1121 | Rearrange got_entry_size initialization. |
| 1122 | (_bfd_x86_elf_size_dynamic_sections): New function. |
| 1123 | * elfxx-x86.h (elf_x86_link_hash_table): Add convert_load, |
| 1124 | is_reloc_section, dt_reloc, dt_reloc_sz and dt_reloc_ent. |
| 1125 | (_bfd_i386_elf_convert_load): New. |
| 1126 | (_bfd_x86_64_elf_convert_load): Likewise. |
| 1127 | (_bfd_x86_elf_size_dynamic_sections): Likewise. |
| 1128 | (elf_backend_size_dynamic_sections): Likewise. |
| 1129 | (_bfd_x86_elf_allocate_dynrelocs): Removed. |
| 1130 | (_bfd_x86_elf_allocate_local_dynrelocs): Likewise. |
| 1131 | |
| 1132 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1133 | |
| 1134 | * elfxx-x86.h (elf_x86_link_hash_table): Rearrange fields and |
| 1135 | update comments. |
| 1136 | |
| 1137 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1138 | |
| 1139 | * elf32-i386.c (elf_i386_size_dynamic_sections): Set |
| 1140 | sgotplt_jump_table_size with elf_x86_compute_jump_table_size. |
| 1141 | |
| 1142 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1143 | |
| 1144 | * elf32-i386.c (PLT_CIE_LENGTH, PLT_FDE_LENGTH, |
| 1145 | PLT_FDE_START_OFFSET, PLT_FDE_LEN_OFFSET): Moved to ... |
| 1146 | * elfxx-x86.h (PLT_CIE_LENGTH, PLT_FDE_LENGTH, |
| 1147 | PLT_FDE_START_OFFSET, PLT_FDE_LEN_OFFSET): Here. |
| 1148 | * elf64-x86-64.c (PLT_CIE_LENGTH, PLT_FDE_LENGTH, |
| 1149 | PLT_FDE_START_OFFSET, PLT_FDE_LEN_OFFSET): Removed. |
| 1150 | |
| 1151 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1152 | |
| 1153 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Removed. |
| 1154 | (elf_i386_allocate_local_dynrelocs): Likewise. |
| 1155 | (elf_i386_size_dynamic_sections): Replace |
| 1156 | elf_i386_allocate_dynrelocs/elf_i386_allocate_local_dynrelocs |
| 1157 | with _bfd_x86_elf_allocate_dynrelocs and |
| 1158 | _bfd_x86_elf_allocate_local_dynrelocs. |
| 1159 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Removed. |
| 1160 | (elf_x86_64_allocate_local_dynrelocs): Likewise. |
| 1161 | (elf_x86_64_size_dynamic_sections): Replace |
| 1162 | elf_x86_64_allocate_dynrelocs/elf_x86_64_allocate_local_dynrelocs |
| 1163 | with _bfd_x86_elf_allocate_dynrelocs and |
| 1164 | _bfd_x86_elf_allocate_local_dynrelocs. |
| 1165 | * elfxx-x86.c (_bfd_x86_elf_allocate_dynrelocs): New function. |
| 1166 | (_bfd_x86_elf_allocate_local_dynrelocs): Likewise. |
| 1167 | * elfxx-x86.h (_bfd_x86_elf_allocate_dynrelocs): New prototype. |
| 1168 | (_bfd_x86_elf_allocate_local_dynrelocs): Likewise. |
| 1169 | |
| 1170 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1171 | |
| 1172 | * elf32-i386.c (is_i386_elf): Removed. |
| 1173 | (elf_i386_check_relocs): Replace is_i386_elf with is_x86_elf. |
| 1174 | (elf_i386_size_dynamic_sections): Likewise. |
| 1175 | (elf_i386_relocate_section): Likewise. |
| 1176 | * elf64-x86-64.c (is_x86_64_elf): Removed. |
| 1177 | (elf_x86_64_check_relocs): Replace is_x86_64_elf with |
| 1178 | is_x86_elf. |
| 1179 | (elf_x86_64_size_dynamic_sections): Likewise. |
| 1180 | (elf_x86_64_relocate_section): Likewise. |
| 1181 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize |
| 1182 | target_id. |
| 1183 | * elfxx-x86.h (elf_x86_link_hash_table): Add target_id. |
| 1184 | (is_x86_elf): New. |
| 1185 | |
| 1186 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1187 | |
| 1188 | * elf32-i386.c (elf_i386_compute_jump_table_size): Removed. |
| 1189 | (elf_i386_allocate_dynrelocs): Replace |
| 1190 | elf_i386_compute_jump_table_size with |
| 1191 | elf_x86_compute_jump_table_size. |
| 1192 | (elf_i386_size_dynamic_sections): Likewise. |
| 1193 | * elf64-x86-64.c (elf_x86_64_compute_jump_table_size): Removed. |
| 1194 | (elf_x86_64_allocate_dynrelocs): Replace |
| 1195 | elf_x86_64_compute_jump_table_size with |
| 1196 | elf_x86_compute_jump_table_size. |
| 1197 | (elf_x86_64_size_dynamic_sections): Likewise. |
| 1198 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize |
| 1199 | got_entry_size. |
| 1200 | * elfxx-x86.h (elf_x86_link_hash_table): Add got_entry_size. |
| 1201 | (elf_x86_compute_jump_table_size): New. |
| 1202 | |
| 1203 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1204 | |
| 1205 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize |
| 1206 | sizeof_reloc. |
| 1207 | (_bfd_x86_elf_adjust_dynamic_symbol): Use sizeof_reloc. |
| 1208 | * elfxx-x86.h (elf_x86_link_hash_table): Add sizeof_reloc. |
| 1209 | |
| 1210 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1211 | |
| 1212 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Check VxWorks |
| 1213 | with htab->is_vxworks. |
| 1214 | (elf_i386_size_dynamic_sections): Likewise. |
| 1215 | (elf_i386_relocate_section): Likewise. |
| 1216 | (elf_i386_finish_dynamic_symbol): Likewise. |
| 1217 | (elf_i386_finish_dynamic_sections): Likewise. |
| 1218 | |
| 1219 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1220 | |
| 1221 | * elf32-i386.c (GOT_TLS_IE, GOT_TLS_IE_POS, GOT_TLS_IE_NEG, |
| 1222 | GOT_TLS_IE_BOTH, GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P, |
| 1223 | GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): Moved to ... |
| 1224 | * elfxx-x86.h (GOT_TLS_IE, GOT_TLS_IE_POS, GOT_TLS_IE_NEG, |
| 1225 | GOT_TLS_IE_BOTH, GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P, |
| 1226 | GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): Here. |
| 1227 | * elf64-x86-64.c (GOT_TLS_IE, GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P, |
| 1228 | GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): Removed. |
| 1229 | |
| 1230 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
| 1231 | |
| 1232 | PR ld/22064 |
| 1233 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Check |
| 1234 | ELF_COMMON_DEF_P for common symbols. |
| 1235 | |
| 1236 | 2017-09-02 Alan Modra <amodra@gmail.com> |
| 1237 | |
| 1238 | * elf-eh-frame.c (offset_adjust): Avoid false positive gcc warning. |
| 1239 | * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Likewise. |
| 1240 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise. |
| 1241 | |
| 1242 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
| 1243 | |
| 1244 | * elf32-i386.c (elf_i386_gc_mark_hook): Removed. |
| 1245 | (elf_backend_gc_mark_hook): Likewise. |
| 1246 | * elf64-x86-64.c (elf_x86_64_gc_mark_hook): Likewise. |
| 1247 | (elf_backend_gc_mark_hook): Likewise. |
| 1248 | * elfxx-x86.c (_bfd_x86_elf_gc_mark_hook): New function. |
| 1249 | * elfxx-x86.h (_bfd_x86_elf_gc_mark_hook): New. |
| 1250 | (elf_backend_gc_mark_hook): Likewise. |
| 1251 | |
| 1252 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
| 1253 | |
| 1254 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Removed. |
| 1255 | (elf_backend_adjust_dynamic_symbol): Likewise. |
| 1256 | * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise. |
| 1257 | (elf_backend_adjust_dynamic_symbol): Likewise. |
| 1258 | * elfxx-x86.c (_bfd_x86_elf_adjust_dynamic_symbol): New function. |
| 1259 | (_bfd_x86_elf_link_setup_gnu_properties): Copy is_vxworks. |
| 1260 | * elfxx-x86.h (elf_x86_link_hash_table): Add is_vxworks. |
| 1261 | (_bfd_x86_elf_adjust_dynamic_symbol): New. |
| 1262 | (elf_backend_adjust_dynamic_symbol): Likewise. |
| 1263 | |
| 1264 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
| 1265 | |
| 1266 | * elfxx-x86.h (elf_x86_plt_layout_table): Fix a typo in |
| 1267 | comments. |
| 1268 | |
| 1269 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
| 1270 | |
| 1271 | * elf32-i386.c (elf_i386_mkobject): Removed. |
| 1272 | (bfd_elf32_mkobject): Likewise. |
| 1273 | * elf64-x86-64.c (elf_x86_64_mkobject): Likewise. |
| 1274 | (bfd_elf64_mkobject): Likewise. |
| 1275 | (bfd_elf32_mkobject): Likewise. |
| 1276 | * elfxx-x86.c (_bfd_x86_elf_mkobject): New function. |
| 1277 | * elfxx-x86.h (_bfd_x86_elf_mkobject): New. |
| 1278 | (bfd_elf64_mkobject): Likewise. |
| 1279 | (bfd_elf32_mkobject): Likewise. |
| 1280 | |
| 1281 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
| 1282 | |
| 1283 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): Updated. |
| 1284 | Call _bfd_x86_elf_link_setup_gnu_properties. |
| 1285 | * elf64-x86-64.c (elf_x86_lazy_plt_layout): Initialize |
| 1286 | pic_plt0_entry and pic_plt_entry fields with the non-PIC PLT |
| 1287 | entries. |
| 1288 | (elf_x86_64_non_lazy_plt): Likewise. |
| 1289 | (elf_x86_64_lazy_bnd_plt): Likewise. |
| 1290 | (elf_x86_64_non_lazy_bnd_plt): Likewise. |
| 1291 | (elf_x86_64_lazy_ibt_plt): Likewise. |
| 1292 | (elf_x32_lazy_ibt_plt): Likewise. |
| 1293 | (elf_x86_64_non_lazy_ibt_plt): Likewise. |
| 1294 | (elf_x32_non_lazy_ibt_plt): Likewise. |
| 1295 | (elf_x86_64_nacl_plt): Likewise. |
| 1296 | (elf_x86_64_link_setup_gnu_properties): Updated. Call |
| 1297 | _bfd_x86_elf_link_setup_gnu_properties. |
| 1298 | * elfxx-x86.c: Include elf-vxworks.h". |
| 1299 | (_bfd_x86_elf_link_setup_gnu_properties): New function. |
| 1300 | * elfxx-x86.h (elf_x86_lazy_plt_layout): Remove "for i386 only" |
| 1301 | comments for pic_plt0_entry and pic_plt_entry. |
| 1302 | (elf_x86_non_lazy_plt_layout): Likewise. |
| 1303 | (elf_x86_plt_layout_table): New. |
| 1304 | (_bfd_x86_elf_link_setup_gnu_properties): Likewise. |
| 1305 | |
| 1306 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
| 1307 | |
| 1308 | PR ld/22061 |
| 1309 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): Create |
| 1310 | .eh_frame section for the second PLT. |
| 1311 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Correct |
| 1312 | alignment of .eh_frame section for the second PLT. |
| 1313 | |
| 1314 | 2017-09-01 Nick Clifton <nickc@redhat.com> |
| 1315 | |
| 1316 | PR 22059 |
| 1317 | * dwarf2.c (decode_line_info): Fix test for an overlong line info |
| 1318 | structure. |
| 1319 | |
| 1320 | 2017-09-01 Nick Clifton <nickc@redhat.com> |
| 1321 | |
| 1322 | PR 22058 |
| 1323 | * elf-attrs.c (_bfd_elf_parse_attributes): Ensure that the |
| 1324 | attribute buffer is NUL terminated. |
| 1325 | |
| 1326 | 2017-08-31 Nick Clifton <nickc@redhat.com> |
| 1327 | |
| 1328 | PR 22047 |
| 1329 | * dwarf2.c (read_section): If necessary add a terminating NUL byte |
| 1330 | to dwarf string sections. |
| 1331 | |
| 1332 | 2017-08-31 Alan Modra <amodra@gmail.com> |
| 1333 | |
| 1334 | * po/SRC-POTFILES.in: Regenerate. |
| 1335 | |
| 1336 | 2017-08-31 Alan Modra <amodra@gmail.com> |
| 1337 | |
| 1338 | * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Don't exit early |
| 1339 | for a section containing just a terminator. Allow multiple |
| 1340 | terminators at end of section. |
| 1341 | * elflink.c (bfd_elf_discard_info): Iterate over .eh_frame |
| 1342 | sections when not adding alignment. Assert on terminator in |
| 1343 | the middle of FDEs. |
| 1344 | |
| 1345 | 2017-08-31 Alan Modra <amodra@gmail.com> |
| 1346 | |
| 1347 | PR 21441 |
| 1348 | PR 22048 |
| 1349 | * elflink.c (bfd_elf_discard_info): Don't pad embedded zero |
| 1350 | terminators. |
| 1351 | |
| 1352 | 2017-08-30 H.J. Lu <hongjiu.lu@intel.com> |
| 1353 | |
| 1354 | * configure.ac (bfd_backends): Add elf64.lo together with |
| 1355 | elfxx-x86.lo for 64-bit BFD. |
| 1356 | * configure: Regenerated. |
| 1357 | |
| 1358 | 2017-08-31 James Bowman <james.bowman@ftdichip.com> |
| 1359 | |
| 1360 | * elf32-ft32.c (ft32_elf_howto_table): Use complain_overflow_dont |
| 1361 | for R_FT32_18. |
| 1362 | |
| 1363 | 2017-08-31 Alan Modra <amodra@gmail.com> |
| 1364 | |
| 1365 | PR binutils/22032 |
| 1366 | * opncls.c (bfd_close_all_done): Don't call bfd_cache_close |
| 1367 | before _close_and_cleanup. Call iovec->bclose after. |
| 1368 | (bfd_close): Remove code common to, and call, bfd_close_all_done. |
| 1369 | |
| 1370 | 2017-08-30 H.J. Lu <hongjiu.lu@intel.com> |
| 1371 | |
| 1372 | * elf32-i386.c (elf_i386_plt_type): Removed. |
| 1373 | (elf_i386_plt): Likewise. |
| 1374 | (elf_i386_get_synthetic_symtab): Updated. Call |
| 1375 | _bfd_x86_elf_get_synthetic_symtab. |
| 1376 | * elf64-x86-64.c (elf_x86_64_plt_type): Removed. |
| 1377 | (elf_x86_64_plt): Likewise. |
| 1378 | (elf_x86_64_get_synthetic_symtab): Updated. Call |
| 1379 | _bfd_x86_elf_get_synthetic_symtab. |
| 1380 | * elfxx-x86.c (elf_i386_get_plt_got_vma): New function. |
| 1381 | (elf_x86_64_get_plt_got_vma): Likewise. |
| 1382 | (elf_i386_valid_plt_reloc_p): Likewise. |
| 1383 | (elf_x86_64_valid_plt_reloc_p): Likewise. |
| 1384 | (_bfd_x86_elf_get_synthetic_symtab): Likewise. |
| 1385 | * elfxx-x86.h (elf_x86_plt_type): New. |
| 1386 | (elf_x86_plt): Likewise. |
| 1387 | (_bfd_x86_elf_get_synthetic_symtab): Likewise. |
| 1388 | |
| 1389 | 2017-08-30 H.J. Lu <hongjiu.lu@intel.com> |
| 1390 | |
| 1391 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Check |
| 1392 | target_id instead of elf_machine_code. |
| 1393 | |
| 1394 | 2017-08-30 H.J. Lu <hongjiu.lu@intel.com> |
| 1395 | |
| 1396 | * elf32-i386.c (ELF_DYNAMIC_INTERPRETER): Removed. |
| 1397 | (elf_i386_lazy_plt_layout): Likewise. |
| 1398 | (elf_i386_non_lazy_plt_layout): Likewise. |
| 1399 | (elf_i386_plt_layout): Likewise. |
| 1400 | (elf_i386_link_hash_table): Likewise. |
| 1401 | (elf_i386_next_tls_desc_index): Likewise. |
| 1402 | (elf_i386_srelplt2): Likewise. |
| 1403 | (elf_i386_plt): Likewise. |
| 1404 | (elf_i386_lazy_plt): Likewise. |
| 1405 | (elf_i386_non_lazy_plt): Likewise. |
| 1406 | (elf_i386_link_hash_table_create): Likewise. |
| 1407 | (bfd_elf32_bfd_link_hash_table_create): Likewise. |
| 1408 | (elf_i386_lazy_plt): Updated. |
| 1409 | (elf_i386_non_lazy_plt): Likewise. |
| 1410 | (elf_i386_lazy_ibt_plt): Likewise. |
| 1411 | (elf_i386_non_lazy_ibt_plt): Likewise. |
| 1412 | (elf_i386_allocate_dynrelocs): Likewise. |
| 1413 | (elf_i386_size_dynamic_sections): Likewise. |
| 1414 | (elf_i386_relocate_section): Likewise. |
| 1415 | (elf_i386_finish_dynamic_symbol): Likewise. |
| 1416 | (elf_i386_finish_dynamic_sections): Likewise. |
| 1417 | (elf_i386_get_synthetic_symtab): Likewise. |
| 1418 | (elf_i386_link_setup_gnu_properties): Likewise. |
| 1419 | (elf_i386_nacl_plt): Likewise. |
| 1420 | * elf64-x86-64.c (ABI_64_P): Removed. |
| 1421 | (ELF64_DYNAMIC_INTERPRETER): Likewise. |
| 1422 | (ELF32_DYNAMIC_INTERPRETER): Likewise. |
| 1423 | (elf_x86_64_lazy_plt_layout): Likewise. |
| 1424 | (elf_x86_64_non_lazy_plt_layout): Likewise. |
| 1425 | (elf_x86_64_plt_layout): Likewise. |
| 1426 | (elf_x86_64_link_hash_table): Likewise. |
| 1427 | (elf_x86_64_plt): Likewise. |
| 1428 | (elf_x86_64_lazy_plt): Likewise. |
| 1429 | (elf_x86_64_non_lazy_plt): Likewise. |
| 1430 | (elf_x86_64_link_hash_table_create): Likewise. |
| 1431 | (bfd_elf64_bfd_link_hash_table_create): Likewise. |
| 1432 | (bfd_elf32_bfd_link_hash_table_create): Likewise. |
| 1433 | (elf_x86_64_lazy_plt): Updated. |
| 1434 | (elf_x86_64_non_lazy_plt): Likewise. |
| 1435 | (elf_x86_64_lazy_bnd_plt): Likewise. |
| 1436 | (elf_x86_64_non_lazy_bnd_plt): Likewise. |
| 1437 | (elf_x86_64_lazy_ibt_plt): Likewise. |
| 1438 | (elf_x32_lazy_ibt_plt): Likewise. |
| 1439 | (elf_x86_64_non_lazy_ibt_plt): Likewise. |
| 1440 | (elf_x32_non_lazy_ibt_plt): Likewise. |
| 1441 | (elf_x86_64_allocate_dynrelocs): Likewise. |
| 1442 | (elf_x86_64_size_dynamic_sections): Likewise. |
| 1443 | (elf_x86_64_relocate_section): Likewise. |
| 1444 | (elf_x86_64_finish_dynamic_symbol): Likewise. |
| 1445 | (elf_x86_64_finish_dynamic_sections): Likewise. |
| 1446 | (elf_x86_64_get_synthetic_symtab): Likewise. |
| 1447 | (elf_x86_64_link_setup_gnu_properties): Likewise. |
| 1448 | (elf_x86_64_nacl_plt): Likewise. |
| 1449 | * elfxx-x86.c: Include "objalloc.h", "elf/i386.h" and |
| 1450 | "elf/x86-64.h". |
| 1451 | (ELF32_DYNAMIC_INTERPRETER): New. |
| 1452 | (ELF64_DYNAMIC_INTERPRETER): Likewise. |
| 1453 | (ELFX32_DYNAMIC_INTERPRETER): Likewise. |
| 1454 | (_bfd_x86_elf_link_hash_table_create): Likewise. |
| 1455 | (_bfd_x86_elf_link_hash_table_free): Renamed to ... |
| 1456 | (elf_x86_link_hash_table_free): This. Make it static. |
| 1457 | * elfxx-x86.h: Don't include "objalloc.h". |
| 1458 | (ABI_64_P): New. |
| 1459 | (elf_x86_lazy_plt_layout): Likewise. |
| 1460 | (elf_x86_non_lazy_plt_layout): Likewise. |
| 1461 | (elf_x86_plt_layout): Likewise. |
| 1462 | (_bfd_x86_elf_link_hash_table_create): Likewise. |
| 1463 | (bfd_elf64_bfd_link_hash_table_create): Likewise. |
| 1464 | (bfd_elf32_bfd_link_hash_table_create): Likewise. |
| 1465 | (elf_x86_link_hash_table): Add plt, lazy_plt, non_lazy_plt, |
| 1466 | srelplt2 and next_tls_desc_index. |
| 1467 | (_bfd_x86_elf_link_hash_table_free): Removed. |
| 1468 | |
| 1469 | 2017-08-30 Maciej W. Rozycki <macro@imgtec.com> |
| 1470 | |
| 1471 | * elfxx-mips.c (mips_elf_perform_relocation): Correct microMIPS |
| 1472 | branch offset interpretation. |
| 1473 | |
| 1474 | 2017-08-30 H.J. Lu <hongjiu.lu@intel.com> |
| 1475 | |
| 1476 | PR binutils/22032 |
| 1477 | * opncls.c (bfd_close_all_done): Call _close_and_cleanup. |
| 1478 | |
| 1479 | 2017-08-30 H.J. Lu <hongjiu.lu@intel.com> |
| 1480 | |
| 1481 | * elf64-x86-64.c (elf_x86_64_next_tls_desc_index): Removed. |
| 1482 | (elf_x86_64_srelplt2): Likewise. |
| 1483 | |
| 1484 | 2017-08-30 Alan Modra <amodra@gmail.com> |
| 1485 | |
| 1486 | * elf64-ppc.c (struct ppc_link_hash_table): Add do_tls_opt. |
| 1487 | (ppc64_elf_tls_optimize): Set it. |
| 1488 | (ppc64_elf_relocate_section): Nop addis on TPREL16_HA, and convert |
| 1489 | insn on TPREL16_LO and TPREL16_LO_DS relocs to use r13 when |
| 1490 | addis would add zero. |
| 1491 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add do_tls_opt. |
| 1492 | (ppc_elf_tls_optimize): Set it. |
| 1493 | (ppc_elf_relocate_section): Nop addis on TPREL16_HA, and convert |
| 1494 | insn on TPREL16_LO relocs to use r2 when addis would add zero. |
| 1495 | |
| 1496 | 2017-08-30 Alan Modra <amodra@gmail.com> |
| 1497 | |
| 1498 | * elf64-ppc.c (ppc64_elf_relocate_section): When optimizing |
| 1499 | __tls_get_addr call sequences to LE, don't move the addi down |
| 1500 | to the nop. Replace the bl with addi and leave the nop alone. |
| 1501 | |
| 1502 | 2017-08-29 H.J. Lu <hongjiu.lu@intel.com> |
| 1503 | |
| 1504 | * elf32-i386.c (elf_i386_pie_finish_undefweak_symbol): |
| 1505 | Re-indent. |
| 1506 | * elf64-x86-64.c (elf_x86_64_finish_local_dynamic_symbol): |
| 1507 | Likewise. |
| 1508 | (elf_x86_64_pie_finish_undefweak_symbol): Likewise. |
| 1509 | |
| 1510 | 2017-08-29 H.J. Lu <hongjiu.lu@intel.com> |
| 1511 | |
| 1512 | * Makefile.am (BFD32_BACKENDS): Add elfxx-x86.lo. |
| 1513 | (BFD64_BACKENDS): Likewise. |
| 1514 | (BFD32_BACKENDS_CFILES): Add elfxx-x86.c. |
| 1515 | (BFD64_BACKENDS_CFILES): Likewise. |
| 1516 | * Makefile.in: Regenerated. |
| 1517 | * configure.ac (bfd_backends): Add elfxx-x86.lo together with |
| 1518 | elf32-i386.lo and elf64-x86-64.lo. |
| 1519 | * configure: Regenerated. |
| 1520 | * elf32-i386.c: Include "elfxx-x86.h" instead of "sysdep.h", |
| 1521 | "bfd.h", "bfdlink.h", "libbfd.h", "elf-bfd.h", "bfd_stdint.h", |
| 1522 | "objalloc.h" and "hashtab.h". |
| 1523 | (ELIMINATE_COPY_RELOCS): Removed. |
| 1524 | (UNDEFINED_WEAK_RESOLVED_TO_ZERO):Likewise. |
| 1525 | (SYMBOL_NO_COPYRELOC): Likewise. |
| 1526 | (elf_i386_link_hash_entry): Likewise. |
| 1527 | (GOT_UNKNOWN): Likewise. |
| 1528 | (GOT_NORMAL): Likewise. |
| 1529 | (GOT_TLS_GD): Likewise. |
| 1530 | (elf_i386_hash_entry): Likewise. |
| 1531 | (elf_i386_obj_tdata): Likewise. |
| 1532 | (elf_i386_tdata): Likewise. |
| 1533 | (elf_i386_local_got_tls_type): Likewise. |
| 1534 | (elf_i386_local_tlsdesc_gotent): Likewise. |
| 1535 | (elf_i386_hash_table): Likewise. |
| 1536 | (elf_i386_link_hash_newfunc): Likewise. |
| 1537 | (elf_i386_local_htab_hash): Likewise. |
| 1538 | (elf_i386_local_htab_eq): Likewise. |
| 1539 | (elf_i386_get_local_sym_hash): Likewise. |
| 1540 | (elf_i386_link_hash_table_free): Likewise. |
| 1541 | (elf_i386_copy_indirect_symbol): Likewise. |
| 1542 | (elf_i386_fixup_symbol): Likewise. |
| 1543 | (elf_i386_readonly_dynrelocs): Likewise. |
| 1544 | (elf_i386_always_size_sections): Likewise. |
| 1545 | (elf_i386_set_tls_module_base): Likewise. |
| 1546 | (elf_i386_dtpoff_base): Likewise. |
| 1547 | (compare_relocs): Likewise. |
| 1548 | (elf_i386_hash_symbol): Likewise. |
| 1549 | (elf_i386_parse_gnu_properties): Likewise. |
| 1550 | (elf_i386_merge_gnu_properties): Likewise. |
| 1551 | (elf_i386_link_check_relocs): Likewise. |
| 1552 | (elf_i386_merge_symbol_attribute): Likewise. |
| 1553 | (bfd_elf32_bfd_link_check_relocs): Likewise. |
| 1554 | (elf_backend_copy_indirect_symbol): Likewise. |
| 1555 | (elf_backend_always_size_sections): Likewise. |
| 1556 | (elf_backend_omit_section_dynsym): Likewise. |
| 1557 | (elf_backend_hash_symbol): Likewise. |
| 1558 | (elf_backend_fixup_symbol): Likewise. |
| 1559 | (elf_backend_parse_gnu_properties): Likewise. |
| 1560 | (elf_backend_merge_gnu_properties): Likewise. |
| 1561 | (elf_backend_merge_symbol_attribute): Likewise. |
| 1562 | (elf_i386_mkobject): Updated. |
| 1563 | (elf_i386_link_hash_table_create): Likewise. |
| 1564 | (elf_i386_check_tls_transition): Likewise. |
| 1565 | (elf_i386_tls_transition): Likewise. |
| 1566 | (elf_i386_convert_load_reloc): Likewise. |
| 1567 | (elf_i386_check_relocs): Likewise. |
| 1568 | (elf_i386_adjust_dynamic_symbol): Likewise. |
| 1569 | (elf_i386_allocate_dynrelocs): Likewise. |
| 1570 | (elf_i386_convert_load): Likewise. |
| 1571 | (elf_i386_size_dynamic_sections): Likewise. |
| 1572 | (elf_i386_relocate_section): Likewise. |
| 1573 | (elf_i386_finish_dynamic_symbol ): Likewise. |
| 1574 | (elf_i386_finish_dynamic_sections): Likewise. |
| 1575 | (elf_i386_output_arch_local_syms): Likewise. |
| 1576 | (elf_i386_get_synthetic_symtab): Likewise. |
| 1577 | (elf_i386_link_setup_gnu_properties): Likewise. |
| 1578 | (elf_i386_link_hash_table): Use elf_x86_link_hash_table, instead |
| 1579 | of elf_link_hash_table, as base. |
| 1580 | (elf_i386_next_tls_desc_index): New. |
| 1581 | (elf_i386_srelplt2): Likewise. |
| 1582 | (elf_i386_plt): Likewise. |
| 1583 | (elf_i386_lazy_plt): Likewise. |
| 1584 | (elf_i386_non_lazy_plt): Likewise. |
| 1585 | * elf32-x86-64.c: Include "elfxx-x86.h" instead of "sysdep.h", |
| 1586 | "bfd.h", "bfdlink.h", "libbfd.h", "elf-bfd.h", "bfd_stdint.h", |
| 1587 | "objalloc.h" and "hashtab.h". |
| 1588 | (ELIMINATE_COPY_RELOCS): Removed. |
| 1589 | (UNDEFINED_WEAK_RESOLVED_TO_ZERO):Likewise. |
| 1590 | (SYMBOL_NO_COPYRELOC): Likewise. |
| 1591 | (elf_x86_64_link_hash_entry): Likewise. |
| 1592 | (GOT_UNKNOWN): Likewise. |
| 1593 | (GOT_NORMAL): Likewise. |
| 1594 | (GOT_TLS_GD): Likewise. |
| 1595 | (elf_x86_64_hash_entry): Likewise. |
| 1596 | (elf_x86_64_obj_tdata): Likewise. |
| 1597 | (elf_x86_64_tdata): Likewise. |
| 1598 | (elf_x86_64_local_got_tls_type): Likewise. |
| 1599 | (elf_x86_64_local_tlsdesc_gotent): Likewise. |
| 1600 | (elf_x86_64_hash_table): Likewise. |
| 1601 | (elf_x86_64_link_hash_newfunc): Likewise. |
| 1602 | (elf_x86_64_local_htab_hash): Likewise. |
| 1603 | (elf_x86_64_local_htab_eq): Likewise. |
| 1604 | (elf_x86_64_get_local_sym_hash): Likewise. |
| 1605 | (elf_x86_64_link_hash_table_free): Likewise. |
| 1606 | (elf_x86_64_copy_indirect_symbol): Likewise. |
| 1607 | (elf_x86_64_fixup_symbol): Likewise. |
| 1608 | (elf_x86_64_readonly_dynrelocs): Likewise. |
| 1609 | (elf_x86_64_always_size_sections): Likewise. |
| 1610 | (elf_x86_64_set_tls_module_base): Likewise. |
| 1611 | (elf_x86_64_dtpoff_base): Likewise. |
| 1612 | (compare_relocs): Likewise. |
| 1613 | (elf_x86_64_merge_symbol_attribute): Likewise. |
| 1614 | (elf_x86_64_hash_symbol): Likewise. |
| 1615 | (elf_x86_64_parse_gnu_properties): Likewise. |
| 1616 | (elf_x86_64_merge_gnu_properties): Likewise. |
| 1617 | (elf_x86_64_link_check_relocs): Likewise. |
| 1618 | (elf_backend_copy_indirect_symbol): Likewise. |
| 1619 | (elf_backend_always_size_sections): Likewise. |
| 1620 | (bfd_elf64_bfd_link_check_relocs): Likewise. |
| 1621 | (elf_backend_merge_symbol_attribute): Likewise. |
| 1622 | (elf_backend_hash_symbol): Likewise. |
| 1623 | (elf_backend_omit_section_dynsym): Likewise. |
| 1624 | (elf_backend_fixup_symbol): Likewise. |
| 1625 | (elf_backend_parse_gnu_properties): Likewise. |
| 1626 | (elf_backend_merge_gnu_properties): Likewise. |
| 1627 | (bfd_elf32_bfd_link_check_relocs): Likewise. |
| 1628 | (elf_x86_64_mkobject): Updated. |
| 1629 | (elf_x86_64_link_hash_table_create): Likewise. |
| 1630 | (elf_x86_64_check_tls_transition): Likewise. |
| 1631 | (elf_x86_64_tls_transition): Likewise. |
| 1632 | (elf_x86_64_convert_load_reloc): Likewise. |
| 1633 | (elf_x86_64_check_relocs): Likewise. |
| 1634 | (elf_x86_64_adjust_dynamic_symbol): Likewise. |
| 1635 | (elf_x86_64_allocate_dynrelocs): Likewise. |
| 1636 | (elf_x86_64_convert_load): Likewise. |
| 1637 | (elf_x86_64_size_dynamic_sections): Likewise. |
| 1638 | (elf_x86_64_relocate_section): Likewise. |
| 1639 | (elf_x86_64_finish_dynamic_symbol ): Likewise. |
| 1640 | (elf_x86_64_finish_dynamic_sections): Likewise. |
| 1641 | (elf_x86_64_output_arch_local_syms): Likewise. |
| 1642 | (elf_x86_64_get_synthetic_symtab): Likewise. |
| 1643 | (elf_x86_64_link_setup_gnu_properties): Likewise. |
| 1644 | (elf_x86_64_link_hash_table): Use elf_x86_link_hash_table, |
| 1645 | instead of elf_link_hash_table, as base. |
| 1646 | (elf_x86_64_next_tls_desc_index): New. |
| 1647 | (elf_x86_64_srelplt2): Likewise. |
| 1648 | (elf_x86_64_plt): Likewise. |
| 1649 | (elf_x86_64_lazy_plt): Likewise. |
| 1650 | (elf_x86_64_non_lazy_plt): Likewise. |
| 1651 | * elfxx-x86.c: New file. |
| 1652 | * elfxx-x86.h: Likewise. |
| 1653 | |
| 1654 | 2017-08-29 H.J. Lu <hongjiu.lu@intel.com> |
| 1655 | |
| 1656 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Simplify bad |
| 1657 | return. |
| 1658 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. |
| 1659 | |
| 1660 | 2017-08-29 H.J. Lu <hongjiu.lu@intel.com> |
| 1661 | |
| 1662 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Check valid PLT |
| 1663 | sections before checking dynamic relocations and free invalid |
| 1664 | PLT section contents. |
| 1665 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. |
| 1666 | |
| 1667 | 2017-08-28 H.J. Lu <hongjiu.lu@intel.com> |
| 1668 | |
| 1669 | * elf-bfd.h (_bfd_elf_ifunc_get_synthetic_symtab): Removed. |
| 1670 | * elf-ifunc.c (_bfd_elf_ifunc_get_synthetic_symtab): Likewise. |
| 1671 | |
| 1672 | 2017-08-28 H.J. Lu <hongjiu.lu@intel.com> |
| 1673 | |
| 1674 | PR binutils/22018 |
| 1675 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Check for valid |
| 1676 | PLT section size. |
| 1677 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. |
| 1678 | |
| 1679 | 2017-08-27 H.J. Lu <hongjiu.lu@intel.com> |
| 1680 | |
| 1681 | * elf32-i386.c (elf_i386_link_hash_newfunc): Initialize |
| 1682 | def_protected. |
| 1683 | * elf64-x86-64.c (elf_x86_64_link_hash_newfunc): Likewise. |
| 1684 | |
| 1685 | 2017-08-26 H.J. Lu <hongjiu.lu@intel.com> |
| 1686 | |
| 1687 | PR ld/21997 |
| 1688 | * elf-bfd.h (elf_obj_tdata): Use ENUM_BITFIELD on object_id, |
| 1689 | dyn_lib_class and has_gnu_symbols. Change bad_symtab to bitfield. |
| 1690 | Add a has_no_copy_on_protected bitfield. |
| 1691 | (elf_has_no_copy_on_protected): New. |
| 1692 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Set |
| 1693 | elf_has_no_copy_on_protected for GNU_PROPERTY_NO_COPY_ON_PROTECTED. |
| 1694 | (elf_merge_gnu_property_list): Likewise. |
| 1695 | (_bfd_elf_link_setup_gnu_properties): Set extern_protected_data |
| 1696 | to FALSE for elf_has_no_copy_on_protected. |
| 1697 | * elf32-i386.c (SYMBOL_NO_COPYRELOC): New. |
| 1698 | (elf_i386_link_hash_entry): Add def_protected. |
| 1699 | (elf_i386_adjust_dynamic_symbol): Also check SYMBOL_NO_COPYRELOC |
| 1700 | when checking info->nocopyreloc. |
| 1701 | (elf_i386_link_setup_gnu_properties): Don't set |
| 1702 | extern_protected_data here. |
| 1703 | (elf_i386_merge_symbol_attribute): New function. |
| 1704 | (elf_backend_merge_symbol_attribute): New. |
| 1705 | * elf64-x86-64.c (SYMBOL_NO_COPYRELOC): New. |
| 1706 | (elf_x86_64_link_hash_entry): Add def_protected. |
| 1707 | (elf_x86_64_need_pic): Report protected symbol for def_protected. |
| 1708 | (elf_x86_64_adjust_dynamic_symbol): Also check SYMBOL_NO_COPYRELOC |
| 1709 | when checking info->nocopyreloc. |
| 1710 | (elf_x86_64_relocate_section): Also check for R_X86_64_PC32 |
| 1711 | relocation run-time overflow and unresolvable R_X86_64_32S |
| 1712 | relocation against protected data symbol defined in shared object |
| 1713 | with GNU_PROPERTY_NO_COPY_ON_PROTECTED. |
| 1714 | (elf_x86_64_link_setup_gnu_properties): Don't set |
| 1715 | extern_protected_data here. |
| 1716 | (elf_x86_64_merge_symbol_attribute): New function. |
| 1717 | (elf_backend_merge_symbol_attribute): New. |
| 1718 | |
| 1719 | 2017-08-26 Alan Modra <amodra@gmail.com> |
| 1720 | |
| 1721 | * elf32-ppc.c (must_be_dyn_reloc): Use bfd_link_dll. Comment. |
| 1722 | (ppc_elf_check_relocs): Only set DF_STATIC_TLS in shared libs. |
| 1723 | (ppc_elf_relocate_section): Comment fix. |
| 1724 | * elf64-ppc.c (must_be_dyn_reloc): Use bfd_link_dll. Comment. |
| 1725 | (ppc64_elf_check_relocs): Only set DF_STATIC_TLS in shared libs. |
| 1726 | Support dynamic relocs for TPREL16 when non-pic too. |
| 1727 | (dec_dynrel_count): Adjust TPREL16 handling as per check_relocs. |
| 1728 | (ppc64_elf_relocate_section): Support dynamic relocs for TPREL16 |
| 1729 | when non-pic too. |
| 1730 | |
| 1731 | 2017-08-25 H.J. Lu <hongjiu.lu@intel.com> |
| 1732 | |
| 1733 | * elf32-i386.c (elf_i386_link_hash_entry): Remove redundant |
| 1734 | "symbol" in comments. |
| 1735 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Likewise. |
| 1736 | |
| 1737 | 2017-08-24 H.J. Lu <hongjiu.lu@intel.com> |
| 1738 | |
| 1739 | PR ld/22001 |
| 1740 | * elf64-x86-64.c (elf_x86_64_relocate_section): Check for |
| 1741 | R_X86_64_PC32 relocation run-time overflow and unresolvable |
| 1742 | R_X86_64_32S relocation with -z nocopyreloc. |
| 1743 | |
| 1744 | 2017-08-24 H.J. Lu <hongjiu.lu@intel.com> |
| 1745 | |
| 1746 | * elf32-i386.c (elf_i386_check_relocs): Revert the last change. |
| 1747 | Undefined symbols may not have a type. |
| 1748 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. |
| 1749 | |
| 1750 | 2017-08-23 H.J. Lu <hongjiu.lu@intel.com> |
| 1751 | |
| 1752 | * elf64-x86-64.c (elf_x86_64_need_pic): Add an argument for |
| 1753 | bfd_link_info. Report shared, PIE or PDE object based on |
| 1754 | bfd_link_info. |
| 1755 | (elf_x86_64_check_relocs): Update elf_x86_64_need_pic call. |
| 1756 | (elf_x86_64_relocate_section): Likewise. |
| 1757 | |
| 1758 | 2017-08-23 H.J. Lu <hongjiu.lu@intel.com> |
| 1759 | |
| 1760 | * elf32-i386.c (elf_i386_check_relocs): Increment PLT count only |
| 1761 | for function symbols. |
| 1762 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. |
| 1763 | |
| 1764 | 2017-08-23 H.J. Lu <hongjiu.lu@intel.com> |
| 1765 | |
| 1766 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): Set |
| 1767 | extern_protected_data to FALSE if GNU_PROPERTY_NO_COPY_ON_PROTECTED |
| 1768 | is set on any input relocatable file. |
| 1769 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Likewise. |
| 1770 | |
| 1771 | 2017-08-23 Alan Modra <amodra@gmail.com> |
| 1772 | |
| 1773 | PR 21988 |
| 1774 | * elf64-ppc.c (ensure_undef_dynamic): Rename from |
| 1775 | ensure_undefweak_dynamic. Handle undefined too. |
| 1776 | * elf32-ppc.c (ensure_undef_dynamic): Likewise. |
| 1777 | * elf32-hppa.c (ensure_undef_dynamic): Likewise. |
| 1778 | (allocate_dynrelocs): Discard undefined non-default visibility |
| 1779 | relocs first. Make undefined syms dynamic. Tidy goto. |
| 1780 | |
| 1781 | 2017-08-21 Alan Modra <amodra@gmail.com> |
| 1782 | H.J. Lu <hongjiu.lu@intel.com> |
| 1783 | |
| 1784 | PR ld/21964 |
| 1785 | * elf-bfd.h (SYMBOLIC_BIND): Return TRUE for __start/__stop symbols. |
| 1786 | * elflink.c (bfd_elf_define_start_stop): Rewrite. |
| 1787 | |
| 1788 | 2017-08-21 Hans-Peter Nilsson <hp@bitrange.com> |
| 1789 | |
| 1790 | PR ld/20125 |
| 1791 | * elf64-mmix.c (mmix_elf_relax_section): Correct handling of |
| 1792 | undefined weak symbols. |
| 1793 | |
| 1794 | 2017-08-18 Nick Clifton <nickc@redhat.com> |
| 1795 | |
| 1796 | PR binutils/21962 |
| 1797 | * tekhex.c (getsym): Fix check for source pointer walking off the |
| 1798 | end of the input buffer. |
| 1799 | |
| 1800 | 2017-08-17 Szabolcs Nagy <szabolcs.nagy@arm.com> |
| 1801 | |
| 1802 | PR ld/18808 |
| 1803 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Skip IFUNC |
| 1804 | relocations in debug sections, change abort to _bfd_error_handler. |
| 1805 | |
| 1806 | 2017-08-14 Nick Clifton <nickc@redhat.com> |
| 1807 | |
| 1808 | PR 21957 |
| 1809 | * elf.c (setup_group): Check for an empty or very small group |
| 1810 | section. |
| 1811 | * po/bfd.pot: Regenerate. |
| 1812 | |
| 1813 | 2017-08-14 Alan Modra <amodra@gmail.com> |
| 1814 | |
| 1815 | PR 21441 |
| 1816 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't add |
| 1817 | alignment padding here. |
| 1818 | * elflink.c (bfd_elf_discard_info): Add .eh_frame padding here |
| 1819 | in a reverse pass over sections. |
| 1820 | |
| 1821 | 2017-08-11 H.J. Lu <hongjiu.lu@intel.com> |
| 1822 | |
| 1823 | PR binutils/21943 |
| 1824 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Allocate space |
| 1825 | for @plt suffixes first. |
| 1826 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. |
| 1827 | |
| 1828 | 2017-08-08 Nick Clifton <nickc@redhat.com> |
| 1829 | |
| 1830 | PR 21916 |
| 1831 | * elf-attrs.c (_bfd_elf_parse_attributes): Complain about very |
| 1832 | small section lengths. |
| 1833 | * elf.c (_bfd_elf_setup_sections): Skip empty entries in the group |
| 1834 | table. |
| 1835 | (elfcore_grok_freebsd_prstatus): Add checks to make sure that |
| 1836 | there is enough data present in the note. |
| 1837 | |
| 1838 | 2017-08-08 Alan Modra <amodra@gmail.com> |
| 1839 | |
| 1840 | PR 21017 |
| 1841 | * elf32-microblaze.c (microblaze_elf_check_relocs): Don't bump |
| 1842 | got.refcount for GOTOFF relocs, just create .got section. |
| 1843 | |
| 1844 | 2017-08-07 H.J. Lu <hongjiu.lu@intel.com> |
| 1845 | |
| 1846 | * elflink.c (elf_link_add_object_symbols): Move common symbol |
| 1847 | check after bed->common_definition. |
| 1848 | |
| 1849 | 2017-08-07 Alan Modra <amodra@gmail.com> |
| 1850 | |
| 1851 | PR 21910 |
| 1852 | * elflink.c (bfd_elf_final_link): Don't segfault when sections |
| 1853 | needed to define various dynamic tags have been discarded. |
| 1854 | |
| 1855 | 2017-08-07 Nick Clifton <nickc@redhat.com> |
| 1856 | |
| 1857 | PR 21884 |
| 1858 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): If the dynobj |
| 1859 | has not been set then use the bfd returned by |
| 1860 | _bfd_elf_link_setup_gnu_properties. If that is null then search |
| 1861 | through all the input bfds selecting the first normal, ELF format |
| 1862 | one. |
| 1863 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Likewise. |
| 1864 | |
| 1865 | 2017-08-06 H.J. Lu <hongjiu.lu@intel.com> |
| 1866 | |
| 1867 | * elf32-i386.c (elf_i386_link_hash_entry): Change tls_get_addr |
| 1868 | to 1 bit. |
| 1869 | (elf_i386_link_hash_newfunc): Initialize tls_get_addr to 0. |
| 1870 | (elf_i386_check_tls_transition): Check tls_get_addr directly. |
| 1871 | (elf_i386_convert_load_reloc): Update tls_get_addr check. |
| 1872 | (elf_i386_link_check_relocs): New function. |
| 1873 | (bfd_elf32_bfd_link_check_relocs): New. |
| 1874 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Change tls_get_addr |
| 1875 | to 1 bit. |
| 1876 | (elf_x86_64_link_hash_newfunc): Initialize tls_get_addr to 0. |
| 1877 | (elf_x86_64_check_tls_transition): Check tls_get_addr directly. |
| 1878 | (elf_x86_64_convert_load_reloc): Update tls_get_addr check. |
| 1879 | (elf_x86_64_link_check_relocs): New function. |
| 1880 | (bfd_elf64_bfd_link_check_relocs): New. |
| 1881 | (bfd_elf32_bfd_link_check_relocs): Likewise. |
| 1882 | |
| 1883 | 2017-08-06 H.J. Lu <hongjiu.lu@intel.com> |
| 1884 | |
| 1885 | PR ld/21903: |
| 1886 | * elflink.c (elf_link_add_object_symbols): Treat common symbol |
| 1887 | as undefined for --no-define-common. |
| 1888 | |
| 1889 | 2017-08-05 Alan Modra <amodra@gmail.com> |
| 1890 | |
| 1891 | * elf32-hppa.c (elf32_hppa_set_gp): Don't require an |
| 1892 | hppa_link_hash_table. |
| 1893 | |
| 1894 | 2017-08-02 Max Filippov <jcmvbkbc@gmail.com> |
| 1895 | |
| 1896 | * xtensa-isa.c (xtensa_isa_init): Don't update lookup table |
| 1897 | entries for sysregs with negative indices. |
| 1898 | |
| 1899 | 2017-08-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
| 1900 | |
| 1901 | * elf32-s390.c (elf_s390_finish_dynamic_sections): Skip if it |
| 1902 | isn't the S/390 specific elf data. |
| 1903 | * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise. |
| 1904 | |
| 1905 | 2017-07-31 Kuan-Lin Chen <rufus@andestech.com> |
| 1906 | |
| 1907 | * elfxx-riscv.c (riscv_elf_add_sub_reloc): New function. |
| 1908 | * (howto_table) [R_RISCV_ADD8]: Use riscv_elf_add_sub_reloc. |
| 1909 | [R_RISCV_ADD16]: Likewise. |
| 1910 | [R_RISCV_ADD32]: Likewise. |
| 1911 | [R_RISCV_ADD64]: Likewise. |
| 1912 | [R_RISCV_SUB6]: Likewise. |
| 1913 | [R_RISCV_SUB8]: Likewise. |
| 1914 | [R_RISCV_SUB16]: Likewise. |
| 1915 | [R_RISCV_SUB32]: Likewise. |
| 1916 | [R_RISCV_SUB64]: Likewise. |
| 1917 | |
| 1918 | 2017-07-31 Alan Modra <amodra@gmail.com> |
| 1919 | |
| 1920 | * elf64-ppc.c (ppc64_elf_tls_setup): Warn on --plt-localentry |
| 1921 | without ld.so checks. |
| 1922 | |
| 1923 | 2017-07-29 Alan Modra <amodra@gmail.com> |
| 1924 | |
| 1925 | PR 21847 |
| 1926 | * elf64-ppc.c (struct ppc_link_hash_entry): Add non_zero_localentry. |
| 1927 | (ppc64_elf_merge_symbol): Set non_zero_localentry. |
| 1928 | (is_elfv2_localentry0): Test non_zero_localentry. |
| 1929 | (ppc64_elf_tls_setup): Default to --no-plt-localentry. |
| 1930 | |
| 1931 | 2017-07-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
| 1932 | |
| 1933 | * elf32-s390.c (elf_s390_finish_dynamic_sections): Add NULL |
| 1934 | pointer check for htab->elf.irelplt. |
| 1935 | * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise. |
| 1936 | |
| 1937 | 2017-07-27 Nick Clifton <nickc@redhat.com> |
| 1938 | |
| 1939 | PR 21840 |
| 1940 | * mach-o.c (bfd_mach_o_read_symtab_strtab): Fail if the symtab |
| 1941 | size is -1. |
| 1942 | * nlmcode.h (nlm_swap_auxiliary_headers_in): Replace assertion |
| 1943 | with error return. |
| 1944 | * section.c (bfd_make_section_with_flags): Fail if the name or bfd |
| 1945 | are NULL. |
| 1946 | * vms-alpha.c (bfd_make_section_with_flags): Correct computation |
| 1947 | of end pointer. |
| 1948 | (evax_bfd_print_emh): Check for invalid string lengths. |
| 1949 | |
| 1950 | 2017-07-25 Nick Clifton <nickc@redhat.com> |
| 1951 | |
| 1952 | * po/fr.po: Updated French translation. |
| 1953 | |
| 1954 | 2017-07-25 Benjamin Green <bengreen5mx@gmail.com> |
| 1955 | |
| 1956 | PR 21824 |
| 1957 | * elf32-msp430.c (msp430_elf_relax_section): Allow conversion of |
| 1958 | 16-bit absolute branches into 10-bit pc-relative branches on the |
| 1959 | MSP430 as well as the MSP430X. |
| 1960 | |
| 1961 | 2017-07-25 Alan Modra <amodra@gmail.com> |
| 1962 | |
| 1963 | * elf64-ppc.c (struct map_stub): Add tls_get_addr_opt_bctrl. |
| 1964 | (stub_eh_frame_size): New function. |
| 1965 | (ppc_size_one_stub): Set group tls_get_addr_opt_bctrl. |
| 1966 | (group_sections): Init group tls_get_addr_opt_bctrl. |
| 1967 | (ppc64_elf_size_stubs): Update sizing and initialization of |
| 1968 | .eh_frame. Iteration over stubs via group list. |
| 1969 | (ppc64_elf_build_stubs): Iterate over stubs via group list. |
| 1970 | (ppc64_elf_finish_dynamic_sections): Update finalization of |
| 1971 | .eh_frame. |
| 1972 | |
| 1973 | 2017-07-24 Nick Clifton <nickc@redhat.com> |
| 1974 | |
| 1975 | PR 21813 |
| 1976 | * mach-o.c (bfd_mach_o_canonicalize_relocs): Pass the base address |
| 1977 | of the relocs to the canonicalize_one_reloc routine. |
| 1978 | * mach-o.h (struct bfd_mach_o_backend_data): Update the prototype |
| 1979 | for the _bfd_mach_o_canonicalize_one_reloc field. |
| 1980 | * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add |
| 1981 | res_base parameter. Use to check for corrupt pair relocs. |
| 1982 | * mach-o-aarch64.c (bfd_mach_o_arm64_canonicalize_one_reloc): |
| 1983 | Likewise. |
| 1984 | * mach-o-i386.c (bfd_mach_o_i386_canonicalize_one_reloc): |
| 1985 | Likewise. |
| 1986 | * mach-o-x86-64.c (bfd_mach_o_x86_64_canonicalize_one_reloc): |
| 1987 | Likewise. |
| 1988 | |
| 1989 | * vms-alpha.c (_bfd_vms_slurp_eihd): Make sure that there is |
| 1990 | enough data in the record before attempting to parse it. |
| 1991 | (_bfd_vms_slurp_eeom): Likewise. |
| 1992 | |
| 1993 | (_bfd_vms_slurp_egsd): Check for an invalid section index. |
| 1994 | (image_set_ptr): Likewise. |
| 1995 | (alpha_vms_slurp_relocs): Likewise. |
| 1996 | |
| 1997 | (alpha_vms_object_p): Check for a truncated record. |
| 1998 | |
| 1999 | 2017-07-24 Nick Clifton <nickc@redhat.com> |
| 2000 | |
| 2001 | PR 21803 |
| 2002 | * reloc.c (_bfd_unrecognized_reloc): New function. Reports |
| 2003 | an unrecognized reloc and sets the bfd_error value. |
| 2004 | * libbfd.h: Regenerate. |
| 2005 | * elf32-arm.c (elf32_arm_final_link_relocate): Use the new |
| 2006 | function. |
| 2007 | * elf32-i386.c (elf_i386_relocate_section): Likewise. |
| 2008 | * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise. |
| 2009 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. |
| 2010 | * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise. |
| 2011 | * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise. |
| 2012 | |
| 2013 | 2017-07-23 Alan Modra <amodra@gmail.com> |
| 2014 | |
| 2015 | * elf64-ppc.c (ppc64_elf_size_stubs): Correct advance to |
| 2016 | restore of LR. |
| 2017 | |
| 2018 | 2017-07-19 Szabolcs Nagy <szabolcs.nagy@arm.com> |
| 2019 | |
| 2020 | PR ld/18841 |
| 2021 | * elfnn-aarch64.c (elfNN_aarch64_reloc_type_class): Return |
| 2022 | reloc_class_ifunc for ifunc symbols. |
| 2023 | |
| 2024 | 2017-07-19 Nick Clifton <nickc@redhat.com> |
| 2025 | |
| 2026 | PR 21787 |
| 2027 | * archive.c (bfd_generic_archive_p): If the bfd does not have the |
| 2028 | correct magic bytes at the start, set the error to wrong format |
| 2029 | and clear the format selector before returning NULL. |
| 2030 | |
| 2031 | 2017-07-19 Nick Clifton <nickc@redhat.com> |
| 2032 | |
| 2033 | PR 21786 |
| 2034 | * coff-rs6000.c (_bfd_strntol): New function. |
| 2035 | (_bfd_strntoll): New function. |
| 2036 | (GET_VALUE_IN_FIELD): New macro. |
| 2037 | (EQ_VALUE_IN_FIELD): new macro. |
| 2038 | (_bfd_xcoff_slurp_armap): Use new macros. |
| 2039 | (_bfd_xcoff_archive_p): Likewise. |
| 2040 | (_bfd_xcoff_read_ar_hdr): Likewise. |
| 2041 | (_bfd_xcoff_openr_next_archived_file): Likewise. |
| 2042 | (_bfd_xcoff_stat_arch_elt): Likewise. |
| 2043 | * coff64-rs6000.c (_bfd_strntol): New function. |
| 2044 | (_bfd_strntoll): New function. |
| 2045 | (GET_VALUE_IN_FIELD): New macro. |
| 2046 | (xcoff64_slurp_armap): Use new macros. |
| 2047 | |
| 2048 | 2017-07-19 Claudiu Zissulescu <claziss@synopsys.com> |
| 2049 | John Eric Martin <John.Martin@emmicro-us.com> |
| 2050 | |
| 2051 | * bfd-in2.h: Regenerate. |
| 2052 | * libbfd.h: Regenerate. |
| 2053 | * elf32-arc.c (JLI): Define. |
| 2054 | * reloc.c: Add JLI relocations. |
| 2055 | |
| 2056 | 2017-07-18 Nick Clifton <nickc@redhat.com> |
| 2057 | |
| 2058 | PR 21775 |
| 2059 | * coff-sh.c: Fix spelling typos. |
| 2060 | * compress.c: Likewise. |
| 2061 | * cpu-pdp11.c: Likewise. |
| 2062 | * ecofflink.c: Likewise. |
| 2063 | * elf-m10300.c: Likewise. |
| 2064 | * elf.c: Likewise. |
| 2065 | * elf32-arm.c: Likewise. |
| 2066 | * elf32-m68k.c: Likewise. |
| 2067 | * elf32-nds32.c: Likewise. |
| 2068 | * elf32-ppc.c: Likewise. |
| 2069 | * elf32-sh.c: Likewise. |
| 2070 | * elf32-v850.c: Likewise. |
| 2071 | * elf64-ppc.c: Likewise. |
| 2072 | * elf64-x86-64.c: Likewise. |
| 2073 | * elflink.c: Likewise. |
| 2074 | * elfnn-aarch64.c: Likewise. |
| 2075 | * elfxx-mips.c: Likewise. |
| 2076 | * som.c: Likewise. |
| 2077 | * sunos.c: Likewise. |
| 2078 | * vms-alpha.c: Likewise. |
| 2079 | * xcofflink.c: Likewise. |
| 2080 | |
| 2081 | 2017-07-18 Nick Clifton <nickc@redhat.com> |
| 2082 | |
| 2083 | PR binutils/21781 |
| 2084 | * coffcode.h (handle_COMDAT): Replace abort with an error message |
| 2085 | and return. |
| 2086 | |
| 2087 | 2017-07-17 H.J. Lu <hongjiu.lu@intel.com> |
| 2088 | |
| 2089 | PR ld/21782 |
| 2090 | * elf64-x86-64.c (elf_x86_64_relocate_section): Limit PIC check |
| 2091 | to shared library. |
| 2092 | |
| 2093 | 2017-07-17 H.J. Lu <hongjiu.lu@intel.com> |
| 2094 | |
| 2095 | * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent. |
| 2096 | |
| 2097 | 2017-07-16 Alan Modra <amodra@gmail.com> |
| 2098 | |
| 2099 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimize |
| 2100 | __tls_index GOT entries when using __tls_get_addr_opt stub. |
| 2101 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. |
| 2102 | |
| 2103 | 2017-07-12 Alan Modra <amodra@gmail.com> |
| 2104 | |
| 2105 | * po/es.po: Update from translationproject.org/latest/bfd/. |
| 2106 | * po/fi.po: Likewise. |
| 2107 | * po/fr.po: Likewise. |
| 2108 | * po/id.po: Likewise. |
| 2109 | * po/ja.po: Likewise. |
| 2110 | * po/ro.po: Likewise. |
| 2111 | * po/ru.po: Likewise. |
| 2112 | * po/sr.po: Likewise. |
| 2113 | * po/sv.po: Likewise. |
| 2114 | * po/tr.po: Likewise. |
| 2115 | * po/uk.po: Likewise. |
| 2116 | * po/vi.po: Likewise. |
| 2117 | * po/zh_CN.po: Likewise. |
| 2118 | * po/hr.po: New file from translationproject.org. |
| 2119 | * configure.ac (ALL_LINGUAS): Add hr. Sort. |
| 2120 | * configure: Regenerate. |
| 2121 | |
| 2122 | 2017-07-12 Nick Clifton <nickc@redhat.com> |
| 2123 | |
| 2124 | Fix compile time warnings using gcc 7.1.1. |
| 2125 | * elf32-xtensa.c (elf_xtensa_get_plt_section): Increase length of |
| 2126 | plt_name buffer. |
| 2127 | (elf_xtensa_get_gotplt_section): Increase length of got_name |
| 2128 | buffer. |
| 2129 | * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add a |
| 2130 | default return of FALSE. |
| 2131 | * mach-o-i386.c (bfd_mach_o_i386_canonicalize_one_reloc): Add a |
| 2132 | default return of FALSE. |
| 2133 | |
| 2134 | 2017-07-12 Alan Modra <amodra@gmail.com> |
| 2135 | |
| 2136 | * binary.c (binary_set_section_contents): Don't print filepos in |
| 2137 | error message. |
| 2138 | (coff_write_object_contents): Cast size_t for error message. |
| 2139 | (coff_slurp_line_table): Don't use bfd_vma symndx. |
| 2140 | (coff_slurp_reloc_table): Remove unneeded cast. |
| 2141 | * dwarf2.c (read_section): Cast bfd_int64_t to long long for |
| 2142 | error message. |
| 2143 | (find_abstract_instance_name): Likewise. |
| 2144 | * elf32-arm.c (arm_type_of_stub): Correct error arg order. |
| 2145 | (bfd_elf32_arm_stm32l4xx_erratum_scan): Don't cast error arg. |
| 2146 | (elf32_arm_check_relocs): Make r_symndx an int. |
| 2147 | * elf32-cris.c (cris_elf_check_relocs): Delete extraneous %s in |
| 2148 | format string. |
| 2149 | * elf32-metag.c (elf_metag_relocate_section): Delete extra error |
| 2150 | message arg. |
| 2151 | * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Rewrite bogus |
| 2152 | error message. |
| 2153 | * elf32-i386.c (elf_i386_check_relocs): Make r_symndx an int. |
| 2154 | * elf32-s390.c (elf_s390_check_relocs): Likewise. |
| 2155 | * elf32-tic6x.c (elf32_tic6x_check_relocs): Likewise. |
| 2156 | * elf32-tilepro.c (tilepro_elf_check_relocs): Likewise. |
| 2157 | * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise. |
| 2158 | * elf64-s390.c (elf_s390_check_relocs): Likewise. |
| 2159 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. |
| 2160 | * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Likewise. |
| 2161 | * elfnn-riscv.c (riscv_elf_check_relocs): Likewise. |
| 2162 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise. |
| 2163 | * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise. |
| 2164 | * elf64-mmix.c (_bfd_mmix_after_linker_allocation): Cast size_t args |
| 2165 | and use %lu for error message. |
| 2166 | * elflink.c (elf_link_adjust_relocs): Delete extra error message arg. |
| 2167 | * mmo.c (mmo_scan): Make stab_loc a file_ptr. Cast expression for |
| 2168 | error message. |
| 2169 | |
| 2170 | * elf32-arm.c (elf32_arm_tls_relax): Correct format string and args |
| 2171 | in error message. |
| 2172 | (elf32_arm_final_link_relocate): Likewise. |
| 2173 | * coff-arm.c (bfd_arm_process_before_allocation): Likewise. |
| 2174 | * coffcode.h (styp_to_sec_flags): Likewise. |
| 2175 | * cofflink.c (_bfd_coff_write_global_sym): Likewise. |
| 2176 | * ecoff.c (_bfd_ecoff_slurp_symbol_table): Likewise. |
| 2177 | * elf32-arc.c (arc_elf_merge_private_bfd_data): Likewise. |
| 2178 | * elf32-bfin.c (bfinfdpic_check_relocs): Likewise. |
| 2179 | (elf32_bfin_merge_private_bfd_data): Likewise. |
| 2180 | * elf32-cris.c (cris_elf_relocate_section): Likewise. |
| 2181 | * elf32-frv.c (frv_elf_merge_private_bfd_data): Likewise. |
| 2182 | * elf32-i370.c (i370_elf_merge_private_bfd_data): Likewise. |
| 2183 | (i370_elf_relocate_section): Likewise. |
| 2184 | * elf32-iq2000.c (iq2000_elf_merge_private_bfd_data): Likewise. |
| 2185 | * elf32-m32c.c (m32c_elf_merge_private_bfd_data): Likewise. |
| 2186 | * elf32-m68hc1x.c (_bfd_m68hc11_elf_merge_private_bfd_data): Likewise. |
| 2187 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. |
| 2188 | * elf32-mep.c (mep_elf_merge_private_bfd_data): Likewise. |
| 2189 | * elf32-mt.c (mt_elf_merge_private_bfd_data): Likewise. |
| 2190 | * elf64-sparc.c (elf64_sparc_merge_private_bfd_data): Likewise. |
| 2191 | * elfxx-mips.c (mips_elf_merge_obj_e_flags): Likewise. |
| 2192 | (_bfd_mips_elf_merge_private_bfd_data): Likewise. |
| 2193 | * ieee.c (ieee_write_id, read_id): Likewise. |
| 2194 | * mach-o.c (bfd_mach_o_write_contents): Likewise. |
| 2195 | (bfd_mach_o_layout_commands, bfd_mach_o_read_section_32): Likewise. |
| 2196 | (bfd_mach_o_read_section_64, bfd_mach_o_read_symtab_symbol): Likewise. |
| 2197 | (bfd_mach_o_read_command, bfd_mach_o_header_p): Likewise. |
| 2198 | * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Likewise. |
| 2199 | * stabs.c (_bfd_link_section_stabs): Likewise. |
| 2200 | |
| 2201 | * coff-arm.c (coff_arm_relocate_section): Use L modifier in error |
| 2202 | format. |
| 2203 | * coff-mcore.c (coff_mcore_relocate_section): Likewise. |
| 2204 | * coff-ppc.c (coff_ppc_relocate_section): Likewise. |
| 2205 | * coff-rs6000.c (xcoff_reloc_type_toc): Likewise. |
| 2206 | * coff-sh.c (sh_relax_section): Likewise. |
| 2207 | (sh_relax_delete_bytes, sh_swap_insns): Likewise. |
| 2208 | * coff-tic80.c (coff_tic80_relocate_section): Likewise. |
| 2209 | * coffcode.h (coff_slurp_reloc_table): Likewise. |
| 2210 | * coffgen.c (_bfd_coff_get_external_symbols): Likewise. |
| 2211 | (_bfd_coff_read_string_table): Likewise. |
| 2212 | * cofflink.c (_bfd_coff_generic_relocate_section): Likewise. |
| 2213 | * compress.c (bfd_get_full_section_contents): Likewise. |
| 2214 | * dwarf2.c (read_formatted_entries, decode_line_info): Likewise. |
| 2215 | * elf-m10300.c (mn10300_elf_relocate_section): Likewise. |
| 2216 | * elf.c (bfd_elf_string_from_elf_section): Likewise. |
| 2217 | * elf32-arc.c (arc_special_overflow_checks): Likewise. |
| 2218 | * elf32-arm.c (elf32_arm_tls_relax): Likewise. |
| 2219 | (elf32_arm_final_link_relocate, elf32_arm_relocate_section): Likewise. |
| 2220 | (elf32_arm_write_section): Likewise. |
| 2221 | * elf32-bfin.c (bfin_relocate_section): Likewise. |
| 2222 | (bfinfdpic_relocate_section): Likewise. |
| 2223 | * elf32-hppa.c (hppa_build_one_stub): Likewise. |
| 2224 | (final_link_relocate, elf32_hppa_relocate_section): Likewise. |
| 2225 | * elf32-i386.c (elf_i386_tls_transition): Likewise. |
| 2226 | (elf_i386_relocate_section): Likewise. |
| 2227 | * elf32-ip2k.c (ip2k_final_link_relocate): Likewise. |
| 2228 | * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Likewise. |
| 2229 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. |
| 2230 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. |
| 2231 | * elf32-metag.c (elf_metag_relocate_section): Likewise. |
| 2232 | * elf32-nds32.c (unrecognized_reloc_msg): Likewise. |
| 2233 | (nds32_elf_relax_longcall1, nds32_elf_relax_longcall2): Likewise. |
| 2234 | (nds32_elf_relax_longcall3, nds32_elf_relax_longjump1): Likewise. |
| 2235 | (nds32_elf_relax_longjump2, nds32_elf_relax_longjump3): Likewise. |
| 2236 | (nds32_elf_relax_longcall4, nds32_elf_relax_longcall5): Likewise. |
| 2237 | (nds32_elf_relax_longcall6, nds32_elf_relax_longjump4): Likewise. |
| 2238 | (nds32_elf_relax_longjump5, nds32_elf_relax_longjump6): Likewise. |
| 2239 | (nds32_elf_relax_longjump7, nds32_elf_relax_loadstore): Likewise. |
| 2240 | (nds32_elf_relax_ptr, nds32_elf_ex9_build_hash_table): Likewise. |
| 2241 | * elf32-nios2.c (nios2_elf32_relocate_section): Likewise. |
| 2242 | * elf32-rx.c (UNSAFE_FOR_PID): Likewise. |
| 2243 | * elf32-s390.c (invalid_tls_insn, elf_s390_relocate_section): Likewise. |
| 2244 | * elf32-score.c (s3_bfd_score_elf_check_relocs): Likewise. |
| 2245 | * elf32-score7.c (s7_bfd_score_elf_check_relocs): Likewise. |
| 2246 | * elf32-sh.c (sh_elf_relax_section): Likewise. |
| 2247 | (sh_elf_relax_delete_bytes, sh_elf_swap_insns): Likewise. |
| 2248 | (sh_elf_relocate_section): Likewise. |
| 2249 | * elf32-sh64.c (shmedia_prepare_reloc): Likewise. |
| 2250 | * elf32-spu.c (spu_elf_relocate_section): Likewise. |
| 2251 | * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise. |
| 2252 | * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise. |
| 2253 | * elf32-v850.c (v850_elf_relax_section): Likewise. |
| 2254 | * elf32-vax.c (elf_vax_check_relocs): Likewise. |
| 2255 | (elf_vax_relocate_section): Likewise. |
| 2256 | * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. |
| 2257 | (extend_ebb_bounds_forward, extend_ebb_bounds_backward): Likewise. |
| 2258 | (compute_text_actions, compute_ebb_proposed_actions): Likewise. |
| 2259 | (do_fix_for_relocatable_link): Likewise. |
| 2260 | * elf64-alpha.c (elf64_alpha_relax_got_load): Likewise. |
| 2261 | (elf64_alpha_relax_with_lituse): Likewise. |
| 2262 | * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Likewise. |
| 2263 | (elf_hppa_final_link_relocate): Likewise. |
| 2264 | * elf64-ia64-vms.c (elf64_ia64_relax_section): Likewise. |
| 2265 | (elf64_ia64_choose_gp, elf64_ia64_relocate_section): Likewise. |
| 2266 | (elf64_vms_link_add_object_symbols): Likewise. |
| 2267 | * elf64-mmix.c (mmix_elf_perform_relocation): Likewise. |
| 2268 | (mmix_final_link_relocate): Likewise. |
| 2269 | * elf64-s390.c (invalid_tls_insn): Likewise. |
| 2270 | (elf_s390_relocate_section): Likewise. |
| 2271 | * elf64-sh64.c (sh_elf64_relocate_section): Likewise. |
| 2272 | * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise. |
| 2273 | (elf_x86_64_relocate_section): Likewise. |
| 2274 | * elfcode.h (elf_slurp_symbol_table): Likewise. |
| 2275 | * elfcore.h (elf_core_file_p): Likewise. |
| 2276 | * elflink.c (elf_link_read_relocs_from_section): Likewise. |
| 2277 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise. |
| 2278 | (elfNN_aarch64_relocate_section): Likewise. |
| 2279 | * elfnn-ia64.c (elfNN_ia64_relax_section): Likewise. |
| 2280 | (elfNN_ia64_choose_gp, elfNN_ia64_relocate_section): Likewise. |
| 2281 | * elfnn-riscv.c (riscv_elf_relocate_section): Likewise. |
| 2282 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. |
| 2283 | (_bfd_mips_elf_relocate_section): Likewise. |
| 2284 | (_bfd_mips_elf_finish_dynamic_symbol, mips_finish_exec_plt): Likewise. |
| 2285 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. |
| 2286 | * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise. |
| 2287 | * ieee.c (ieee_slurp_external_symbols): Likewise. |
| 2288 | * ihex.c (ihex_write_object_content): Likewise. |
| 2289 | * mach-o.c (bfd_mach_o_build_exec_seg_command): Likewise. |
| 2290 | * merge.c (_bfd_merged_section_offset): Likewise. |
| 2291 | * mmo.c (mmo_write_loc_chunk): Likewise. |
| 2292 | (mmo_write_object_contents): Likewise. |
| 2293 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Likewise. |
| 2294 | * stabs.c (_bfd_link_section_stabs): Likewise. |
| 2295 | * xcofflink.c (xcoff_link_add_symbols, xcoff_find_tc0): Likewise. |
| 2296 | |
| 2297 | 2017-07-11 Alan Modra <amodra@gmail.com> |
| 2298 | |
| 2299 | * elf32-ppc.c (ppc_elf_relocate_section): Fix typo. |
| 2300 | |
| 2301 | 2017-07-11 Alan Modra <amodra@gmail.com> |
| 2302 | |
| 2303 | * elf32-ppc.c (ppc_elf_relocate_section): Emit "unexpected |
| 2304 | instruction" error using _bfd_error_handler, not einfo. |
| 2305 | |
| 2306 | 2017-07-10 Nick Clifton <nickc@redhat.com> |
| 2307 | |
| 2308 | * coffcode.h (coff_slurp_symbol_table): Do not include an entry |
| 2309 | for C_AIX_WEAKEXT if it has the same value as C_WEAKEXT. |
| 2310 | |
| 2311 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
| 2312 | |
| 2313 | * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO. |
| 2314 | |
| 2315 | 2017-07-07 Alan Modra <amodra@gmail.com> |
| 2316 | |
| 2317 | * coffcode.h (coff_slurp_symbol_table): Handle C_AIX_WEAKEXT. |
| 2318 | |
| 2319 | 2017-07-07 Alan Modra <amodra@gmail.com> |
| 2320 | |
| 2321 | * bfd.c (_doprnt): Replace "L" with "ll" when printing bfd_vma |
| 2322 | as long long. Move code replacing "ll" with "I64", and simplify. |
| 2323 | |
| 2324 | 2017-07-06 H.J. Lu <hongjiu.lu@intel.com> |
| 2325 | |
| 2326 | * bfd.c (_doprnt): Convert 'L' to 'l' when setting wide_width |
| 2327 | to 1. |
| 2328 | |
| 2329 | 2017-07-05 H.J. Lu <hongjiu.lu@intel.com> |
| 2330 | |
| 2331 | * dwarf2.c (line_info_add_include_dir_stub): Replace time with |
| 2332 | xtime. |
| 2333 | (line_info_add_file_name): Likewise. |
| 2334 | (decode_line_info): Likewise. |
| 2335 | |
| 2336 | 2017-07-04 Tristan Gingold <gingold@adacore.com> |
| 2337 | |
| 2338 | * version.m4: Bump version to 2.29.51 |
| 2339 | * configure: Regenerate. |
| 2340 | |
| 2341 | 2017-07-04 Jiong Wang <jiong.wang@arm.com> |
| 2342 | |
| 2343 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Remove the |
| 2344 | sanity check at the head of this function. |
| 2345 | |
| 2346 | 2017-07-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 2347 | |
| 2348 | * dwarf2.c (struct dwarf2_debug): Add fields dwarf_line_str_buffer and |
| 2349 | dwarf_line_str_size. |
| 2350 | (struct attr_abbrev): Add field implicit_const. |
| 2351 | (dwarf_debug_sections): Add .debug_line_str. |
| 2352 | (enum dwarf_debug_section_enum): Add debug_line_str and debug_max. |
| 2353 | (dwarf_debug_section_assert): Add static assertion. |
| 2354 | (read_indirect_line_string): New. |
| 2355 | (read_abbrevs): Support DW_FORM_implicit_const. |
| 2356 | (is_str_attr): Support DW_FORM_line_strp. |
| 2357 | (read_attribute_value): Support DW_FORM_line_strp and |
| 2358 | DW_FORM_implicit_const. |
| 2359 | (read_attribute): Support DW_FORM_implicit_const. |
| 2360 | (line_info_add_include_dir, line_info_add_include_dir_stub): |
| 2361 | (line_info_add_file_name, read_formatted_entries): New. |
| 2362 | (decode_line_info, parse_comp_unit): Support DWARF 5. |
| 2363 | (_bfd_dwarf2_cleanup_debug_info): Free dwarf_line_str_buffer. |
| 2364 | |
| 2365 | 2017-07-03 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> |
| 2366 | |
| 2367 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove the |
| 2368 | abort statement that was put for symbols that are not dynamic. |
| 2369 | |
| 2370 | 2017-07-03 Tristan Gingold <gingold@adacore.com> |
| 2371 | |
| 2372 | * po/bfd.pot: Regenerate |
| 2373 | |
| 2374 | 2017-07-03 Alan Modra <amodra@gmail.com> |
| 2375 | |
| 2376 | * bfd.c (_doprnt): Rewrite "ll" and "L" modifiers to "I64" for |
| 2377 | __MSVCRT__. Support "L" modifier for bfd_vma. Formatting. |
| 2378 | * elf.c (setup_group): Use "Lx" to print sh_size. |
| 2379 | (_bfd_elf_setup_sections): Remove unnecessary cast and print |
| 2380 | unknown section type in hex. |
| 2381 | (copy_special_section_fields): Style fix. |
| 2382 | (bfd_section_from_shdr): Correct format for sh_link. Use a |
| 2383 | common error message for all the variants of unrecognized |
| 2384 | section types. |
| 2385 | (assign_file_positions_for_load_sections): Use "Lx" for lma |
| 2386 | adjust error message. |
| 2387 | (assign_file_positions_for_non_load_sections): Formatting. |
| 2388 | (rewrite_elf_program_header): Formatting. Use "Lx" for |
| 2389 | bfd_vma values in error messages. |
| 2390 | * elfcode.h (elf_slurp_reloc_table_from_section): Cast |
| 2391 | ELF_R_SYM value to type expected by format. |
| 2392 | * elflink.c (elf_link_read_relocs_from_section): Use "Lx" |
| 2393 | in error messages. |
| 2394 | (elf_link_add_object_symbols): Use "Lu" for symbol sizes. |
| 2395 | (elf_link_input_bfd): Use "Lx" for r_info. |
| 2396 | (bfd_elf_gc_record_vtinherit): Use "Lx" for offset. |
| 2397 | |
| 2398 | 2017-07-03 Alan Modra <amodra@gmail.com> |
| 2399 | |
| 2400 | * bfd.c (bfd_scan_vma): Don't use long long unless HAVE_LONG_LONG. |
| 2401 | * coff-rs6000.c (FMT20): Handle hosts with 64-bit long and |
| 2402 | Microsoft C library variant of long long format specifier. |
| 2403 | (PRINT20): Cast value to bfd_uint64_t not long long. |
| 2404 | * coffcode.h (coff_print_aux): Use BFD_VMA_FMT. |
| 2405 | * coff-x86_64.c (coff_amd64_reloc): Use bfd_uint64_t rather than |
| 2406 | long long. Don't cast to bfd_vma. |
| 2407 | * elf32-score.c (score3_bfd_getl48): Likewise. |
| 2408 | * vms-alpha.c (_bfd_vms_slurp_eisd): Likewise. |
| 2409 | |
| 2410 | 2017-07-03 Alan Modra <amodra@gmail.com> |
| 2411 | |
| 2412 | * elf.c (_bfd_elf_print_private_bfd_data): Use BFD_VMA_FMT to |
| 2413 | print d_tag. |
| 2414 | (bfd_elf_print_symbol): Don't cast symbol->flags. |
| 2415 | (_bfd_elf_symbol_from_bfd_symbol): Likewise. |
| 2416 | * elf32-ppc.c (ppc_elf_begin_write_processing): Correct |
| 2417 | _bfd_error_handler argument order. |
| 2418 | (ppc_elf_merge_private_bfd_data): Don't cast flags. |
| 2419 | |
| 2420 | 2017-07-03 Alan Modra <amodra@gmail.com> |
| 2421 | |
| 2422 | * configure.ac: Invoke AC_CHECK_TYPES for long long. Invoke |
| 2423 | AC_TYPE_LONG_DOUBLE. |
| 2424 | * configure: Regenerate. |
| 2425 | * config.in: Regenerate. |
| 2426 | |
| 2427 | 2017-06-29 Andrew Waterman <andrew@sifive.com> |
| 2428 | |
| 2429 | * elfnn-riscv.c (riscv_elf_adjust_dynamic_symbol): Fix TLS copy |
| 2430 | relocs. |
| 2431 | |
| 2432 | 2017-06-29 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> |
| 2433 | |
| 2434 | * elfxx-sparc.c (allocate_dynrelocs): Don't make a symbol dynamic |
| 2435 | unless it is undefined weak. |
| 2436 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Set the flag |
| 2437 | relative_reloc to direct non-dynamic symbols to R_SPARC_RELATIVE |
| 2438 | relocation. |
| 2439 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): If symbol |
| 2440 | is not dynamic in PIC, abort. |
| 2441 | |
| 2442 | 2017-06-29 Jiong Wang <jiong.wang@arm.com> |
| 2443 | |
| 2444 | PR ld/21402 |
| 2445 | * elfnn-aarch64.c (elfNN_aarch64_allocate_dynrelocs): Only make |
| 2446 | undefined weak symbols into dynamic. |
| 2447 | (elfNN_aarch64_final_link_relocate): Generate runtime RELATIVE |
| 2448 | relocation for non-dynamic symbols. |
| 2449 | (elfNN_aarch64_finish_dynamic_symbol): Add sanity check. |
| 2450 | |
| 2451 | 2017-06-29 Jiong Wang <jiong.wang@arm.com> |
| 2452 | |
| 2453 | * elfnn-aarch64.c (aarch64_relocation_aginst_gp_p): New function. |
| 2454 | (elfNN_aarch64_final_link_relocate): Delete duplicated code for |
| 2455 | BFD_RELOC_AARCH64_LD64_GOTOFF_LO15, BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC, |
| 2456 | BFD_RELOC_AARCH64_MOVW_GOTOFF_G1. |
| 2457 | * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Optimize the |
| 2458 | support for them. |
| 2459 | |
| 2460 | 2017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2461 | |
| 2462 | * elf-bfd.h (elfcore_write_s390_gs_cb): Add prototype. |
| 2463 | (elfcore_write_s390_gs_bc): Likewise. |
| 2464 | * elf.c (elfcore_grok_s390_gs_cb): New function. |
| 2465 | (elfcore_grok_s390_gs_bc): New function. |
| 2466 | (elfcore_grok_note): Call them. |
| 2467 | (elfcore_write_s390_gs_cb): New function. |
| 2468 | (elfcore_write_s390_gs_bc): New function. |
| 2469 | (elfcore_write_register_note): Call them. |
| 2470 | |
| 2471 | 2017-06-28 H.J. Lu <hongjiu.lu@intel.com> |
| 2472 | |
| 2473 | * libbfd.c (_bfd_generic_get_section_contents): Don't call |
| 2474 | bfd_get_file_size. Check archive element size. |
| 2475 | (_bfd_generic_get_section_contents_in_window): Likewise. |
| 2476 | |
| 2477 | 2017-06-28 H.J. Lu <hongjiu.lu@intel.com> |
| 2478 | |
| 2479 | * bfd-in2.h: Regenerated. |
| 2480 | * bfdio.c (bfd_get_size): Change return type to ufile_ptr. |
| 2481 | (bfd_get_file_size): Likewise. |
| 2482 | |
| 2483 | 2017-06-28 Maciej W. Rozycki <macro@imgtec.com> |
| 2484 | Matthew Fortune <matthew.fortune@imgtec.com> |
| 2485 | |
| 2486 | * archures.c (bfd_mach_mips_interaptiv_mr2): New macro. |
| 2487 | * cpu-mips.c (I_interaptiv_mr2): New enum value. |
| 2488 | (arch_info_struct): Add "mips:interaptiv-mr2" entry. |
| 2489 | * elfxx-mips.c (_bfd_elf_mips_mach) <E_MIPS_MACH_IAMR2>: New |
| 2490 | case. |
| 2491 | (mips_set_isa_flags) <bfd_mach_mips_interaptiv_mr2>: Likewise. |
| 2492 | (bfd_mips_isa_ext) <bfd_mach_mips_interaptiv_mr2>: Likewise. |
| 2493 | (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise. |
| 2494 | (mips_mach_extensions): Add `bfd_mach_mipsisa32r3' and |
| 2495 | `bfd_mach_mips_interaptiv_mr2' entries. |
| 2496 | * bfd-in2.h: Regenerate. |
| 2497 | |
| 2498 | 2017-06-27 Nick Clifton <nickc@redhat.com> |
| 2499 | |
| 2500 | * tekhex.c (pass_over): Revert accidental conversion of a local |
| 2501 | array to a static array. |
| 2502 | |
| 2503 | 2017-06-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
| 2504 | |
| 2505 | PR ld/13402 |
| 2506 | * elf32-avr.c (elf32_avr_adjust_diff_reloc_value): Adjust |
| 2507 | reloc addend if necessary. Adjust diff only if |
| 2508 | shrinked_insn_address < end_address. |
| 2509 | |
| 2510 | 2017-06-27 Alan Modra <amodra@gmail.com> |
| 2511 | |
| 2512 | PR binutils/21665 |
| 2513 | * libbfd.c (_bfd_generic_get_section_contents): Warning fix. |
| 2514 | (_bfd_generic_get_section_contents_in_window): Likewise. |
| 2515 | |
| 2516 | 2017-06-26 Kuan-Lin Chen <rufus@andestech.com> |
| 2517 | |
| 2518 | * elfnn-riscv.c (perform_relocation): Support the new |
| 2519 | R_RISCV_32_PCREL relocation. |
| 2520 | (riscv_elf_relocate_section): Likewise. |
| 2521 | * elfxx-riscv.c (howto_table): Likewise. |
| 2522 | (riscv_reloc_map): Likewise. |
| 2523 | * bfd-in2.h (BFD_RELOC_RISCV_32_PCREL): New relocation. |
| 2524 | * libbfd.h: Regenerate. |
| 2525 | |
| 2526 | 2017-06-27 Alan Modra <amodra@gmail.com> |
| 2527 | |
| 2528 | PR binutils/21665 |
| 2529 | * libbfd.c (_bfd_generic_get_section_contents): Delete abort. |
| 2530 | Use unsigned file pointer type, and remove cast. |
| 2531 | * libbfd.c (_bfd_generic_get_section_contents_in_window): Likewise. |
| 2532 | Add "count", not "sz". |
| 2533 | |
| 2534 | 2017-06-26 Pedro Alves <palves@redhat.com> |
| 2535 | |
| 2536 | PR binutils/21665 |
| 2537 | * libbfd.c (_bfd_generic_get_section_contents): Add "count", not |
| 2538 | "sz". |
| 2539 | |
| 2540 | 2017-06-26 H.J. Lu <hongjiu.lu@intel.com> |
| 2541 | |
| 2542 | PR binutils/21665 |
| 2543 | * libbfd.c (_bfd_generic_get_section_contents_in_window): Add |
| 2544 | a missing line. |
| 2545 | |
| 2546 | 2017-06-26 Maciej W. Rozycki <macro@imgtec.com> |
| 2547 | |
| 2548 | * cpu-mips.c (arch_info_struct): Mark the 4010 32-bit. |
| 2549 | * elfxx-mips.c (mips_set_isa_flags) <bfd_mach_mips4010>: Set |
| 2550 | E_MIPS_ARCH_2 rather than E_MIPS_ARCH_3 in `e_flags'. |
| 2551 | (mips_mach_extensions): Mark `bfd_mach_mips4010' as extending |
| 2552 | `bfd_mach_mips6000' rather than `bfd_mach_mips4000'. |
| 2553 | |
| 2554 | 2017-06-26 H.J. Lu <hongjiu.lu@intel.com> |
| 2555 | |
| 2556 | PR binutils/21665 |
| 2557 | * compress.c (bfd_get_full_section_contents): Don't check the |
| 2558 | file size here. |
| 2559 | * libbfd.c (_bfd_generic_get_section_contents): Check for and |
| 2560 | reject a section whose size + offset is greater than the size |
| 2561 | of the entire file. |
| 2562 | (_bfd_generic_get_section_contents_in_window): Likewise. |
| 2563 | |
| 2564 | 2017-06-26 Nick Clifton <nickc@redhat.com> |
| 2565 | |
| 2566 | PR binutils/21670 |
| 2567 | * tekhex.c (getvalue): Check for the source pointer exceeding the |
| 2568 | end pointer before the first byte is read. |
| 2569 | |
| 2570 | 2017-06-26 Nick Clifton <nickc@redhat.com> |
| 2571 | |
| 2572 | PR binutils/21665 |
| 2573 | * opncls.c (get_build_id): Check that the section is big enough |
| 2574 | to contain the whole note. |
| 2575 | * compress.c (bfd_get_full_section_contents): Check for and reject |
| 2576 | a section whose size is greater than the size of the entire file. |
| 2577 | * elf32-v850.c (v850_elf_copy_notes): Allow for the ouput to not |
| 2578 | contain a notes section. |
| 2579 | |
| 2580 | 2017-06-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
| 2581 | |
| 2582 | * elf64-s390.c (elf_s390_additional_program_headers): Add NULL |
| 2583 | pointer checks. |
| 2584 | (elf_s390_modify_segment_map): Likewise. |
| 2585 | (bfd_elf_s390_set_options): Lisewise. |
| 2586 | |
| 2587 | 2017-06-26 Alan Modra <amodra@gmail.com> |
| 2588 | |
| 2589 | * elflink.c (_bfd_elf_link_create_dynstrtab): Don't make dynobj |
| 2590 | a --just-syms bfd. |
| 2591 | (_bfd_elf_size_group_sections): Skip --just-syms bfds. |
| 2592 | (bfd_elf_size_dynamic_sections): Ignore .note.GNU-stack and |
| 2593 | .preinit_array on --just-syms bfds. |
| 2594 | (_bfd_elf_gc_mark_extra_sections): Skip --just-syms bfds. |
| 2595 | (elf_gc_sweep, bfd_elf_parse_eh_frame_entries): Likewise. |
| 2596 | (bfd_elf_gc_sections, bfd_elf_discard_info): Likewise. |
| 2597 | |
| 2598 | 2017-06-25 Sergei Trofimovich <slyfox@gentoo.org> |
| 2599 | |
| 2600 | * elf.c (find_link): Bounds check "hint". |
| 2601 | |
| 2602 | 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com> |
| 2603 | |
| 2604 | * elf32-arm.c (using_thumb_only): Update list of architectures in |
| 2605 | BFD_ASSERT for which the logic is valid. |
| 2606 | (using_thumb2_bl): Likewise. |
| 2607 | (using_thumb2): Likewise and return true for ARMv8-R. |
| 2608 | (arch_has_arm_nop): Likewise. |
| 2609 | (tag_cpu_arch_combine): New v8r table for ARMv8-R Tag_CPU_arch |
| 2610 | merging logic. Update commentis for value 15 of v8m_baseline, |
| 2611 | v8m_mainline and v4t_plus_v6_m arrays. Use v8r array to decide |
| 2612 | merging of value 15 of Tag_CPU_arch. |
| 2613 | |
| 2614 | 2017-06-23 Jiong Wang <jiong.wang@arm.com> |
| 2615 | |
| 2616 | * reloc.c (BFD_RELOC_AARCH64_ADR_GOTPAGE): Rename to |
| 2617 | BFD_RELOC_AARCH64_ADR_GOT_PAGE |
| 2618 | * bfd-in2.h: Regenerate. |
| 2619 | |
| 2620 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
| 2621 | |
| 2622 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Move |
| 2623 | the error_alignment label forward. Properly align program |
| 2624 | property note section. |
| 2625 | |
| 2626 | 2017-06-22 Eric Christopher <echristo@gmail.com> |
| 2627 | |
| 2628 | * elf32-arm.c (elf32_arm_final_link_relocate): Use labs rather than |
| 2629 | abs to fix a truncation warning. |
| 2630 | |
| 2631 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
| 2632 | |
| 2633 | * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Resolve |
| 2634 | local undefined weak symbol to 0. |
| 2635 | * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Likewise. |
| 2636 | |
| 2637 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
| 2638 | |
| 2639 | * elf32-i386.c (elf_i386_merge_gnu_properties): If info->shstk |
| 2640 | is set, turn on GNU_PROPERTY_X86_FEATURE_1_SHSTK. |
| 2641 | (elf_i386_link_setup_gnu_properties): If info->shstk is set, |
| 2642 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. |
| 2643 | * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): If |
| 2644 | info->shstk is set, turn on GNU_PROPERTY_X86_FEATURE_1_SHSTK. |
| 2645 | (elf_x86_64_link_setup_gnu_properties): If info->shstk is set, |
| 2646 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. |
| 2647 | |
| 2648 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
| 2649 | |
| 2650 | * elf32-i386.c (elf_i386_lazy_ibt_plt0_entry): New. |
| 2651 | (elf_i386_lazy_ibt_plt_entry): Likewise. |
| 2652 | (elf_i386_pic_lazy_ibt_plt0_entry): Likewise. |
| 2653 | (elf_i386_non_lazy_ibt_plt_entry): Likewise. |
| 2654 | (elf_i386_pic_non_lazy_ibt_plt_entry): Likewise. |
| 2655 | (elf_i386_eh_frame_lazy_ibt_plt): Likewise. |
| 2656 | (elf_i386_lazy_plt_layout): Likewise. |
| 2657 | (elf_i386_non_lazy_plt_layout): Likewise. |
| 2658 | (elf_i386_link_hash_entry): Add plt_second. |
| 2659 | (elf_i386_link_hash_table): Add plt_second and |
| 2660 | plt_second_eh_frame. |
| 2661 | (elf_i386_allocate_dynrelocs): Use the second PLT if needed. |
| 2662 | (elf_i386_size_dynamic_sections): Use .plt.got unwind info for |
| 2663 | the second PLT. Check the second PLT. |
| 2664 | (elf_i386_relocate_section): Use the second PLT to resolve |
| 2665 | PLT reference if needed. |
| 2666 | (elf_i386_finish_dynamic_symbol): Fill and use the second PLT if |
| 2667 | needed. |
| 2668 | (elf_i386_finish_dynamic_sections): Set sh_entsize on the |
| 2669 | second PLT. Generate unwind info for the second PLT. |
| 2670 | (elf_i386_plt_type): Add plt_second. |
| 2671 | (elf_i386_get_synthetic_symtab): Support the second PLT. |
| 2672 | (elf_i386_parse_gnu_properties): Support |
| 2673 | GNU_PROPERTY_X86_FEATURE_1_AND. |
| 2674 | (elf_i386_merge_gnu_properties): Support |
| 2675 | GNU_PROPERTY_X86_FEATURE_1_AND. If info->ibt is set, turn |
| 2676 | on GNU_PROPERTY_X86_FEATURE_1_IBT |
| 2677 | (elf_i386_link_setup_gnu_properties): If info->ibt is set, |
| 2678 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. Use IBT-enabled PLT |
| 2679 | for info->ibtplt, info->ibt or GNU_PROPERTY_X86_FEATURE_1_IBT |
| 2680 | is set on all relocatable inputs. |
| 2681 | * elf64-x86-64.c (elf_x86_64_lazy_ibt_plt_entry): New. |
| 2682 | (elf_x32_lazy_ibt_plt_entry): Likewise. |
| 2683 | (elf_x86_64_non_lazy_ibt_plt_entry): Likewise. |
| 2684 | (elf_x32_non_lazy_ibt_plt_entry): Likewise. |
| 2685 | (elf_x86_64_eh_frame_lazy_ibt_plt): Likewise. |
| 2686 | (elf_x32_eh_frame_lazy_ibt_plt): Likewise. |
| 2687 | (elf_x86_64_lazy_ibt_plt): Likewise. |
| 2688 | (elf_x32_lazy_ibt_plt): Likewise. |
| 2689 | (elf_x86_64_non_lazy_ibt_plt): Likewise. |
| 2690 | (elf_x32_non_lazy_ibt_plt): Likewise. |
| 2691 | (elf_x86_64_get_synthetic_symtab): Support the second PLT. |
| 2692 | (elf_x86_64_parse_gnu_properties): Support |
| 2693 | GNU_PROPERTY_X86_FEATURE_1_AND. |
| 2694 | (elf_x86_64_merge_gnu_properties): Support |
| 2695 | GNU_PROPERTY_X86_FEATURE_1_AND. If info->ibt is set, turn |
| 2696 | on GNU_PROPERTY_X86_FEATURE_1_IBT |
| 2697 | (elf_x86_64_link_setup_gnu_properties): If info->ibt is set, |
| 2698 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. Use IBT-enabled PLT |
| 2699 | for info->ibtplt, info->ibt or GNU_PROPERTY_X86_FEATURE_1_IBT |
| 2700 | is set on all relocatable inputs. |
| 2701 | |
| 2702 | 2017-06-22 Nick Clifton <nickc@redhat.com> |
| 2703 | |
| 2704 | PR binutils/21649 |
| 2705 | * som.c (setup_sections): NUL terminate the space_strings buffer. |
| 2706 | Check that the space.name field does not index beyond the end of |
| 2707 | the space_strings buffer. |
| 2708 | |
| 2709 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
| 2710 | |
| 2711 | PR binutils/21646 |
| 2712 | * coff-sh.c (sh_reloc): Check for an out of range reloc. |
| 2713 | |
| 2714 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
| 2715 | |
| 2716 | PR binutils/21639 |
| 2717 | * vms-misc.c (_bfd_vms_save_sized_string): Use unsigned int as |
| 2718 | type of the size parameter. |
| 2719 | (_bfd_vms_save_counted_string): Add second parameter - the maximum |
| 2720 | length of the counted string. |
| 2721 | * vms.h (_bfd_vms_save_sized_string): Update prototype. |
| 2722 | (_bfd_vms_save_counted_string): Likewise. |
| 2723 | * vms-alpha.c (_bfd_vms_slurp_eisd): Update calls to |
| 2724 | _bfd_vms_save_counted_string. |
| 2725 | (_bfd_vms_slurp_ehdr): Likewise. |
| 2726 | (_bfd_vms_slurp_egsd): Likewise. |
| 2727 | (Parse_module): Likewise. |
| 2728 | |
| 2729 | 2017-06-21 Alan Modra <amodra@gmail.com> |
| 2730 | |
| 2731 | * elf64-ppc.c (ppc64_elf_size_stubs): Test for localentry:0 plt |
| 2732 | calls before tocsave calls. |
| 2733 | (ppc64_elf_relocate_section): Allow localentry:0 plt calls without |
| 2734 | following nop. |
| 2735 | |
| 2736 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
| 2737 | |
| 2738 | PR binutils/21645 |
| 2739 | * reloc.c (bfd_generic_get_relocated_section_contents): Fail if |
| 2740 | bfd_get_full_section_contents returns no contents. |
| 2741 | |
| 2742 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
| 2743 | |
| 2744 | PR binutils/21638 |
| 2745 | * vms-alpha.c (_bfd_vms_slurp_egsd): Check for an undersized |
| 2746 | record. |
| 2747 | |
| 2748 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
| 2749 | |
| 2750 | PR binutils/21637 |
| 2751 | * vms-alpha.c (_bfd_vms_slurp_egsd): Check for an empty section |
| 2752 | list. |
| 2753 | (image_set_ptr): Likewise. |
| 2754 | (alpha_vms_fix_sec_rel): Likewise. |
| 2755 | (alpha_vms_slurp_relocs): Likewise. |
| 2756 | |
| 2757 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
| 2758 | |
| 2759 | PR binutils/21633 |
| 2760 | * ieee.c (ieee_slurp_sections): Check for a NULL return from |
| 2761 | read_id. |
| 2762 | (ieee_archive_p): Likewise. |
| 2763 | (ieee_object_p): Likewise. |
| 2764 | |
| 2765 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
| 2766 | |
| 2767 | PR binutils/21640 |
| 2768 | * elf.c (setup_group): Zero the group section pointer list after |
| 2769 | allocation so that loops can be caught. Check for NULL pointers |
| 2770 | when processing a group list. |
| 2771 | |
| 2772 | 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
| 2773 | |
| 2774 | * elf-s390.h: New file. |
| 2775 | * elf64-s390.c (struct elf_s390_link_hash_table): Add params |
| 2776 | field. |
| 2777 | (elf_s390_additional_program_headers): New function. |
| 2778 | (elf_s390_modify_segment_map): New function. |
| 2779 | (bfd_elf_s390_set_options): New function. |
| 2780 | (elf_backend_additional_program_headers) |
| 2781 | (elf_backend_modify_segment_map): Add macro definitions. |
| 2782 | |
| 2783 | 2017-06-19 H.J. Lu <hongjiu.lu@intel.com> |
| 2784 | |
| 2785 | PR ld/21626 |
| 2786 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Check |
| 2787 | the DYNAMIC bit instead of bfd_count_sections. |
| 2788 | |
| 2789 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
| 2790 | |
| 2791 | PR binutils/21618 |
| 2792 | * vms-alpha.c (evax_bfd_print_emh): Check for insufficient record |
| 2793 | length. |
| 2794 | (evax_bfd_print_eeom): Likewise. |
| 2795 | (evax_bfd_print_egsd): Check for an overlarge record length. |
| 2796 | (evax_bfd_print_etir): Likewise. |
| 2797 | |
| 2798 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
| 2799 | |
| 2800 | PR binutils/21612 |
| 2801 | * libieee.h (struct common_header_type): Add end_p field. |
| 2802 | * ieee.c (this_byte_and_next): Do not advance input_p beyond |
| 2803 | end_p. |
| 2804 | (read_id): Check for a length that exceeds the remaining bytes in |
| 2805 | the input buffer. |
| 2806 | (ieee_seek): Initialise end_p. |
| 2807 | (ieee_archive_p): Likewise. |
| 2808 | (ieee_object_p): Likewise. |
| 2809 | |
| 2810 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
| 2811 | |
| 2812 | PR binutils/21611 |
| 2813 | * vms-alpha.c (_bfd_vms_slurp_eihs): Check for invalid offset |
| 2814 | before reading the EIHS structure entries. |
| 2815 | |
| 2816 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
| 2817 | |
| 2818 | PR binutils/21615 |
| 2819 | * vms-alpha.c (_bfd_vms_slurp_egsd): Use unsigned int for |
| 2820 | gsd_size. Check that there are enough bytes remaining to read the |
| 2821 | type and size of the next egsd. Check that the size of the egsd |
| 2822 | does not exceed the size of the record. |
| 2823 | |
| 2824 | 2017-06-19 Alan Modra <amodra@gmail.com> |
| 2825 | |
| 2826 | * config.bfd: Correct targ_underscore for cris. |
| 2827 | |
| 2828 | 2017-06-18 Alan Modra <amodra@gmail.com> |
| 2829 | |
| 2830 | * config.bfd: Correct targ_underscore for epiphany, ip2k, |
| 2831 | m32c, mn10200, pru, rl78, rx, crisv32 and v850. |
| 2832 | |
| 2833 | 2017-06-16 Nick Clifton <nickc@redhat.com> |
| 2834 | |
| 2835 | * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Do not fail if the |
| 2836 | bucketlist is empty because there are no symbols to add to the |
| 2837 | list. |
| 2838 | |
| 2839 | 2017-06-16 Alan Modra <amodra@gmail.com> |
| 2840 | |
| 2841 | PR ld/20022 |
| 2842 | PR ld/21557 |
| 2843 | PR ld/21562 |
| 2844 | PR ld/21571 |
| 2845 | * targets.c (struct bfd_target): Add _bfd_define_start_stop. |
| 2846 | (BFD_JUMP_TABLE_LINK): Likewise. |
| 2847 | * elf-bfd.h (bfd_elf_define_start_stop): Declare. |
| 2848 | * elflink.c (_bfd_elf_gc_mark_rsec): Update comment. |
| 2849 | (bfd_elf_define_start_stop): New function. |
| 2850 | * linker.c (bfd_generic_define_start_stop): New function. |
| 2851 | * coff64-rs6000.c (rs6000_xcoff64_vec, rs6000_xcoff64_aix_vec): Init |
| 2852 | new field. |
| 2853 | * aout-adobe.c (aout_32_bfd_define_start_stop): Define. |
| 2854 | * aout-target.h (MY_bfd_define_start_stop): Define. |
| 2855 | * aout-tic30.c (MY_bfd_define_start_stop): Define. |
| 2856 | * binary.c (binary_bfd_define_start_stop): Define. |
| 2857 | * bout.c (b_out_bfd_define_start_stop): Define. |
| 2858 | * coff-alpha.c (_bfd_ecoff_bfd_define_start_stop): Define. |
| 2859 | * coff-mips.c (_bfd_ecoff_bfd_define_start_stop): Define. |
| 2860 | * coff-rs6000.c (_bfd_xcoff_bfd_define_start_stop): Define. |
| 2861 | * coffcode.h (coff_bfd_define_start_stop): Define. |
| 2862 | * elfxx-target.h (bfd_elfNN_bfd_define_start_stop): Define. |
| 2863 | * i386msdos.c (msdos_bfd_define_start_stop): Define. |
| 2864 | * i386os9k.c (os9k_bfd_define_start_stop): Define. |
| 2865 | * ieee.c (ieee_bfd_define_start_stop): Define. |
| 2866 | * ihex.c (ihex_bfd_define_start_stop): Define. |
| 2867 | * libbfd-in.h (_bfd_nolink_bfd_define_start_stop): Define. |
| 2868 | * mach-o-target.c (bfd_mach_o_bfd_define_start_stop): Define. |
| 2869 | * mmo.c (mmo_bfd_define_start_stop): Define. |
| 2870 | * nlm-target.h (nlm_bfd_define_start_stop): Define. |
| 2871 | * oasys.c (oasys_bfd_define_start_stop): Define. |
| 2872 | * pef.c (bfd_pef_bfd_define_start_stop): Define. |
| 2873 | * plugin.c (bfd_plugin_bfd_define_start_stop): Define. |
| 2874 | * ppcboot.c (ppcboot_bfd_define_start_stop): Define. |
| 2875 | * som.c (som_bfd_define_start_stop): Define. |
| 2876 | * srec.c (srec_bfd_define_start_stop): Define. |
| 2877 | * tekhex.c (tekhex_bfd_define_start_stop): Define. |
| 2878 | * versados.c (versados_bfd_define_start_stop): Define. |
| 2879 | * vms-alpha.c (vms_bfd_define_start_stop): Define. |
| 2880 | (alpha_vms_bfd_define_start_stop): Define. |
| 2881 | * xsym.c (bfd_sym_bfd_define_start_stop): Define. |
| 2882 | * bfd-in2.h: Regenerate. |
| 2883 | * libbfd.h: Regenerate. |
| 2884 | |
| 2885 | 2017-06-16 Jiong Wang <jiong.wang@arm.com> |
| 2886 | |
| 2887 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use |
| 2888 | SYMBOL_REFERENCES_LOCAL. |
| 2889 | |
| 2890 | 2017-06-15 Jiong Wang <jiong.wang@arm.com> |
| 2891 | |
| 2892 | PR ld/21532 |
| 2893 | * elfnn-aarch64.c (ELIMINATE_COPY_RELOCS): Set to 1. |
| 2894 | (elfNN_aarch64_final_link_relocate): Also propagate relocations to |
| 2895 | runtime for if there needs copy relocation elimination. |
| 2896 | (need_copy_relocation_p): New function. Return true for symbol with |
| 2897 | pc-relative references and if it's against read-only sections. |
| 2898 | (elfNN_aarch64_adjust_dynamic_symbol): Use need_copy_relocation_p. |
| 2899 | (elfNN_aarch64_check_relocs): Allocate dynrelocs for relocation types |
| 2900 | that are related with accessing external objects. |
| 2901 | (elfNN_aarch64_gc_sweep_hook): Sync the relocation types with the change |
| 2902 | in elfNN_aarch64_check_relocs. |
| 2903 | |
| 2904 | 2017-06-15 Nick Clifton <nickc@redhat.com> |
| 2905 | |
| 2906 | PR binutils/21582 |
| 2907 | * ieee.c (ieee_object_p): Use a static buffer to avoid compiler |
| 2908 | bugs. |
| 2909 | PR binutils/21581 |
| 2910 | (ieee_archive_p): Likewise. |
| 2911 | |
| 2912 | 2017-06-15 Nick Clifton <nickc@redhat.com> |
| 2913 | |
| 2914 | PR binutils/21579 |
| 2915 | * vms-alpha.c (_bfd_vms_slurp_etir): Extend check of cmd_length. |
| 2916 | |
| 2917 | 2017-06-14 Max Filippov <jcmvbkbc@gmail.com> |
| 2918 | |
| 2919 | * elf32-xtensa.c (elf_xtensa_be_plt_entry, |
| 2920 | elf_xtensa_le_plt_entry): Add dimension for the ABI to arrays, |
| 2921 | keep both windowed and call0 ABI PLT definitions. |
| 2922 | (elf_xtensa_create_plt_entry): Use selected ABI to choose upper |
| 2923 | elf_xtensa_*_plt_entry endex. |
| 2924 | (ELF_MAXPAGESIZE): Fix at minimal supported MMU page size. |
| 2925 | |
| 2926 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
| 2927 | |
| 2928 | PR binutils/21578 |
| 2929 | * elf32-sh.c (sh_elf_set_mach_from_flags): Fix check for invalid |
| 2930 | flag value. |
| 2931 | |
| 2932 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
| 2933 | |
| 2934 | PR binutils/21589 |
| 2935 | * vms-alpha.c (_bfd_vms_get_value): Add an extra parameter - the |
| 2936 | maximum value for the ascic pointer. Check that name processing |
| 2937 | does not read beyond this value. |
| 2938 | (_bfd_vms_slurp_etir): Add checks for attempts to read beyond the |
| 2939 | end of etir record. |
| 2940 | |
| 2941 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
| 2942 | |
| 2943 | PR binutils/21591 |
| 2944 | * versados.c (versados_mkobject): Zero the allocated tdata structure. |
| 2945 | (process_otr): Check for an invalid offset in the otr structure. |
| 2946 | |
| 2947 | 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de> |
| 2948 | |
| 2949 | * config.bfd (epiphany-*-elf): Accept epiphany-*-*. |
| 2950 | |
| 2951 | 2017-06-13 H.J. Lu <hongjiu.lu@intel.com> |
| 2952 | |
| 2953 | PR ld/20022 |
| 2954 | PR ld/21557 |
| 2955 | PR ld/21562 |
| 2956 | PR ld/21571 |
| 2957 | * elf-bfd.h (elf_link_hash_entry): Add start_stop. Change the |
| 2958 | vtable field to a union. |
| 2959 | (_bfd_elf_is_start_stop): Removed. |
| 2960 | * elf32-i386.c (elf_i386_convert_load_reloc): Also check for |
| 2961 | __start_SECNAME and __stop_SECNAME symbols. |
| 2962 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise. |
| 2963 | * elflink.c (_bfd_elf_is_start_stop): Removed. |
| 2964 | (_bfd_elf_gc_mark_rsec): Check start_stop instead of calling |
| 2965 | _bfd_elf_is_start_stop. |
| 2966 | (elf_gc_propagate_vtable_entries_used): Skip __start_SECNAME and |
| 2967 | __stop_SECNAME symbols. Updated. |
| 2968 | (elf_gc_smash_unused_vtentry_relocs): Likewise. |
| 2969 | (bfd_elf_gc_record_vtinherit): Likewise. |
| 2970 | (bfd_elf_gc_record_vtentry): Likewise. |
| 2971 | |
| 2972 | 2017-06-13 Nick Clifton <nickc@redhat.com> |
| 2973 | |
| 2974 | PR ld/21524 |
| 2975 | * elflink.c (elf_link_adjust_relocs): Generate an error when |
| 2976 | encountering a reloc against a symbol removed by garbage |
| 2977 | collection. |
| 2978 | |
| 2979 | 2017-06-12 H.J. Lu <hongjiu.lu@intel.com> |
| 2980 | |
| 2981 | * elf-bfd.h (elf_backend_data): Add struct bfd_link_info * |
| 2982 | to merge_gnu_properties. |
| 2983 | * elf-properties.c (elf_merge_gnu_properties): Add struct |
| 2984 | bfd_link_info * and pass it to merge_gnu_properties. |
| 2985 | (elf_merge_gnu_property_list): Add struct bfd_link_info * |
| 2986 | and pass it to elf_merge_gnu_properties. |
| 2987 | (_bfd_elf_link_setup_gnu_properties): Pass info to |
| 2988 | elf_merge_gnu_property_list. |
| 2989 | * elf32-i386.c (elf_i386_merge_gnu_properties): Add struct |
| 2990 | bfd_link_info *. |
| 2991 | * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): Likewise. |
| 2992 | |
| 2993 | 2017-06-11 Joe Zbiciak <joe.zbiciak@leftturnonly.info> |
| 2994 | |
| 2995 | PR 21564 |
| 2996 | * binary.c (binary_set_section_contents): Scale lma by octets |
| 2997 | per byte to set filepos. |
| 2998 | |
| 2999 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
| 3000 | |
| 3001 | * elf32-arc.c (elf_arc_check_relocs): Fixed conditions to generate |
| 3002 | dynamic sections. |
| 3003 | |
| 3004 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
| 3005 | |
| 3006 | * elf32-arc.c (elf_arc_size_dynamic_sections): Changed condition to |
| 3007 | require TEXTREL. |
| 3008 | |
| 3009 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
| 3010 | |
| 3011 | * arc-got.h (relocate_fix_got_relocs_for_got_info): Added TCB_SIZE to |
| 3012 | patched section contents for TLS IE reloc. |
| 3013 | * elf32-arc.c: Remove TCB_SIZE preprocessor macro. |
| 3014 | |
| 3015 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
| 3016 | |
| 3017 | * elf32-arc.c (elf_arc_relocate_section): Added "call" to |
| 3018 | RELOC_FOR_GLOBAL_SYMBOL macro. |
| 3019 | |
| 3020 | 2018-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
| 3021 | |
| 3022 | * elf32-arc.c (elf_arc_relocate_section): Small refactor and condition |
| 3023 | changes. |
| 3024 | |
| 3025 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
| 3026 | |
| 3027 | * config/tc-arc.c (md_undefined_symbol): Changed. |
| 3028 | * config/tc-arc.h (DYNAMIC_STRUCT_NAME): Removed. |
| 3029 | |
| 3030 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
| 3031 | |
| 3032 | * elf32-arc.c (elf_arc_relocate_section): Fixed reassign of indirect |
| 3033 | symbols. |
| 3034 | |
| 3035 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
| 3036 | |
| 3037 | * elf32-arc.c (elf_arc_check_relocs): Added condition to disable |
| 3038 | warning and "Bad value" for local symbols ARC_32 or ARC_32_ME relocs. |
| 3039 | |
| 3040 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
| 3041 | |
| 3042 | * elf32-arc.c (ADD_RELA): Changed to only work when dynamic |
| 3043 | object is created. |
| 3044 | |
| 3045 | 2017-06-08 Richard Earnshaw <rearnsha@arm.com> |
| 3046 | |
| 3047 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove assertion |
| 3048 | that the input bfd has Tag_FP_ARCH non-zero if Tag_ABI_HardFP_use |
| 3049 | is non-zero. Add clarifying comments. |
| 3050 | |
| 3051 | 2017-06-08 H.J. Lu <hongjiu.lu@intel.com> |
| 3052 | |
| 3053 | * elf32-i386.c (elf_i386_check_relocs): Set local IFUNC symbol |
| 3054 | name. Use local IFUNC symbol name string to report unsupported |
| 3055 | non-PIC call to IFUNC function. |
| 3056 | (elf_i386_relocate_section): Dump local IFUNC name with minfo |
| 3057 | when generating R_386_IRELATIVE relocation. |
| 3058 | (elf_i386_finish_dynamic_symbol): Likewise. |
| 3059 | * elf_x86_64_check_relocs (elf_x86_64_check_relocs): Set local |
| 3060 | IFUNC symbol name. |
| 3061 | (elf_x86_64_relocate_section): Dump local IFUNC name with minfo |
| 3062 | when generating R_X86_64_IRELATIVE relocation. |
| 3063 | (elf_x86_64_finish_dynamic_symbol): Likewise. |
| 3064 | |
| 3065 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
| 3066 | |
| 3067 | * elf.c (setup_group): Make sure BFD sections are created for all |
| 3068 | group sections in the input file when processing SHF_GROUP |
| 3069 | sections. |
| 3070 | (bfd_section_from_shdr): Avoid duplicating logic already |
| 3071 | implemented in `setup_group'. |
| 3072 | |
| 3073 | 2017-06-06 Daniel Bonniot de Ruisselet <bonniot@gmail.com> |
| 3074 | |
| 3075 | PR binutils/21546 |
| 3076 | * peXXigen.c (pe_print_idata): Use the address of the first thunk |
| 3077 | if the hint address is zero. |
| 3078 | |
| 3079 | 2017-06-06 James Clarke <jrtc27@jrtc27.com> |
| 3080 | |
| 3081 | PR ld/19579 |
| 3082 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Check |
| 3083 | ELF_COMMON_DEF_P for common symbols. |
| 3084 | |
| 3085 | 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3086 | |
| 3087 | * elf.c (_bfd_elf_make_section_from_shdr): Don't initially mark |
| 3088 | SEC_GROUP sections as SEC_EXCLUDE. |
| 3089 | (bfd_elf_set_group_contents): Replace use of abort with an assert. |
| 3090 | (assign_section_numbers): Use resolve_section_groups flag instead |
| 3091 | of relocatable link type. |
| 3092 | (_bfd_elf_init_private_section_data): Use resolve_section_groups |
| 3093 | flag instead of checking the final_link flag for part of the |
| 3094 | checks in here. Fix white space as a result. |
| 3095 | * elflink.c (elf_link_input_bfd): Use resolve_section_groups flag |
| 3096 | instead of relocatable link type. |
| 3097 | (bfd_elf_final_link): Likewise. |
| 3098 | |
| 3099 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
| 3100 | |
| 3101 | * elfxx-mips.c (_bfd_mips_elf_relocate_section): Remove unused |
| 3102 | variable `bed'. |
| 3103 | * elf32-score.c (score_elf_final_link_relocate): Likewise. |
| 3104 | (s3_bfd_score_elf_check_relocs): Likewise. |
| 3105 | * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. |
| 3106 | (score_elf_final_link_relocate): Likewise. |
| 3107 | (s7_bfd_score_elf_check_relocs): Likewise. |
| 3108 | |
| 3109 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
| 3110 | |
| 3111 | * elflink.c (init_reloc_cookie_rels): Remove unused variable |
| 3112 | `bed'. |
| 3113 | |
| 3114 | 2017-06-06 Maciej W. Rozycki <macro@imgtec.com> |
| 3115 | |
| 3116 | * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Subtract `count' |
| 3117 | from `reloc_count' rather than decrementing it. |
| 3118 | * elf.c (bfd_section_from_shdr): Multiply the adjustment to |
| 3119 | `reloc_count' by `int_rels_per_ext_rel'. |
| 3120 | * elf32-score.c (score_elf_final_link_relocate): Do not multiply |
| 3121 | `reloc_count' by `int_rels_per_ext_rel' for last relocation |
| 3122 | entry determination. |
| 3123 | (s3_bfd_score_elf_check_relocs): Likewise. |
| 3124 | * elf32-score7.c (score_elf_final_link_relocate): Likewise. |
| 3125 | (s7_bfd_score_elf_relocate_section): Likewise. |
| 3126 | (s7_bfd_score_elf_check_relocs): Likewise. |
| 3127 | * elf64-mips.c (mips_elf64_get_reloc_upper_bound): Remove |
| 3128 | prototype and function. |
| 3129 | (mips_elf64_slurp_one_reloc_table): Do not update `reloc_count'. |
| 3130 | (mips_elf64_slurp_reloc_table): Assert that `reloc_count' is |
| 3131 | triple rather than once the sum of REL and RELA relocation entry |
| 3132 | counts. |
| 3133 | (bfd_elf64_get_reloc_upper_bound): Remove macro. |
| 3134 | * elflink.c (_bfd_elf_link_read_relocs): Do not multiply |
| 3135 | `reloc_count' by `int_rels_per_ext_rel' for internal relocation |
| 3136 | storage allocation size determination. |
| 3137 | (elf_link_input_bfd): Multiply `.ctors' and `.dtors' section's |
| 3138 | size by `int_rels_per_ext_rel'. Do not multiply `reloc_count' |
| 3139 | by `int_rels_per_ext_rel' for last relocation entry |
| 3140 | determination. |
| 3141 | (bfd_elf_final_link): Do not multiply `reloc_count' by |
| 3142 | `int_rels_per_ext_rel' for internal relocation storage |
| 3143 | allocation size determination. |
| 3144 | (init_reloc_cookie_rels): Do not multiply `reloc_count' by |
| 3145 | `int_rels_per_ext_rel' for last relocation entry determination. |
| 3146 | (elf_gc_smash_unused_vtentry_relocs): Likewise. |
| 3147 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. |
| 3148 | (_bfd_mips_elf_relocate_section): Likewise. |
| 3149 | |
| 3150 | 2017-06-05 Alan Modra <amodra@gmail.com> |
| 3151 | |
| 3152 | PR 21529 |
| 3153 | * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE. |
| 3154 | |
| 3155 | 2017-06-01 John Baldwin <jhb@FreeBSD.org> |
| 3156 | |
| 3157 | * elf.c (elfcore_grok_freebsd_psinfo): Use ELF header class to |
| 3158 | determine structure sizes. |
| 3159 | (elfcore_grok_freebsd_prstatus): Likewise. |
| 3160 | |
| 3161 | 2017-06-01 Alan Modra <amodra@gmail.com> |
| 3162 | |
| 3163 | * elf64-ppc.c (struct ppc_link_hash_table): Add has_plt_localentry0. |
| 3164 | (ppc64_elf_merge_symbol_attribute): Merge localentry bits from |
| 3165 | dynamic objects. |
| 3166 | (is_elfv2_localentry0): New function. |
| 3167 | (ppc64_elf_tls_setup): Default params->plt_localentry0. |
| 3168 | (plt_stub_size): Adjust size for tls_get_addr_opt stub. |
| 3169 | (build_tls_get_addr_stub): Use a simpler stub when r2 is not saved. |
| 3170 | (ppc64_elf_size_stubs): Leave stub_type as ppc_stub_plt_call for |
| 3171 | optimized localentry:0 stubs. |
| 3172 | (ppc64_elf_build_stubs): Save r2 in ELFv2 __glink_PLTresolve. |
| 3173 | (ppc64_elf_relocate_section): Leave nop unchanged for optimized |
| 3174 | localentry:0 stubs. |
| 3175 | (ppc64_elf_finish_dynamic_sections): Set PPC64_OPT_LOCALENTRY in |
| 3176 | DT_PPC64_OPT. |
| 3177 | * elf64-ppc.h (struct ppc64_elf_params): Add plt_localentry0. |
| 3178 | |
| 3179 | 2017-05-30 Casey Smith <clegg89@gmail.com> |
| 3180 | |
| 3181 | PR ld/21523 |
| 3182 | * elf32-arm.c (elf32_arm_final_link_relocate): Install an absolute |
| 3183 | value when processing the R_ARM_THM_ALU_PREL_11_0 reloc. |
| 3184 | |
| 3185 | 2017-05-30 Anton Kolesov Anton.Kolesov@synopsys.com |
| 3186 | |
| 3187 | * cpu-arc.c (arc_compatible): New function. |
| 3188 | |
| 3189 | 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com> |
| 3190 | |
| 3191 | * cpu-arc.c (arch_info_struct): Remove duplicate ARC600 entry. |
| 3192 | |
| 3193 | 2017-05-30 H.J. Lu <hongjiu.lu@intel.com> |
| 3194 | |
| 3195 | PR binutils/21519 |
| 3196 | * bfdio.c (bfd_get_file_size): New function. |
| 3197 | * bfd-in2.h: Regenerated. |
| 3198 | |
| 3199 | 2017-05-23 Dilian Palauzov <git-dpa@aegee.org> |
| 3200 | |
| 3201 | * elf32-arc.c (arc_elf_merge_attributes): Add fall through |
| 3202 | comments. |
| 3203 | |
| 3204 | 2017-05-22 H.J. Lu <hongjiu.lu@intel.com> |
| 3205 | |
| 3206 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Use |
| 3207 | dynobj instead of htab->elf.dynobj. |
| 3208 | |
| 3209 | 2017-05-19 Maciej W. Rozycki <macro@imgtec.com> |
| 3210 | |
| 3211 | * elf64-mips.c (mips_elf64_canonicalize_reloc): Remove prototype |
| 3212 | and function. |
| 3213 | (mips_elf64_canonicalize_dynamic_reloc): Likewise. |
| 3214 | (mips_elf64_slurp_one_reloc_table): Set `reloc_count' to the |
| 3215 | actual number of internal relocations retrieved. Adjust |
| 3216 | function description. |
| 3217 | (bfd_elf64_canonicalize_reloc): Remove macro. |
| 3218 | (bfd_elf64_canonicalize_dynamic_reloc): Likewise. |
| 3219 | |
| 3220 | 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com> |
| 3221 | |
| 3222 | * archures.c (bfd_mach_sparc_v9m8): Define. |
| 3223 | (bfd_mach_sparc_v8plusm8): Likewise. |
| 3224 | (bfd_mach_sparc_v9_p): Adjust to M8. |
| 3225 | (bfd_mach_sparc_64bit_p): Likewise. |
| 3226 | * aoutx.h (machine_type): Handle bfd_mach_sparc_v9m8 and |
| 3227 | bfd_mach_sparc_v8plusm8. |
| 3228 | * bfd-in2.h: Regenerated. |
| 3229 | * cpu-sparc.c (arch_info_struct): Entries for sparc:v9m8 and |
| 3230 | sparc:v8plusm8. |
| 3231 | * elfxx-sparc.c (_bfd_sparc_elf_object_p): Handle |
| 3232 | bfd_mach_sparc_v8plusm8 and bfd_mach_sparc_v9m8 using the new hw |
| 3233 | capabilities ONADDSUB, ONMUL, ONDIV, DICTUNP, FPCPSHL, RLE and |
| 3234 | SHA3. |
| 3235 | * elf32-sparc.c (elf32_sparc_final_write_processing): Handle |
| 3236 | bfd_mach_sparc_v8plusm8. |
| 3237 | |
| 3238 | 2017-05-19 Alan Modra <amodra@gmail.com> |
| 3239 | |
| 3240 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't keep |
| 3241 | debug and special sections when no non-note alloc sections in an |
| 3242 | object are kept. |
| 3243 | |
| 3244 | 2017-05-18 Alan Modra <amodra@gmail.com> |
| 3245 | |
| 3246 | * arc-got.h: Don't compare boolean values against TRUE or FALSE. |
| 3247 | * elf-m10300.c: Likewise. |
| 3248 | * elf.c: Likewise. |
| 3249 | * elf32-arc.c: Likewise. |
| 3250 | * elf32-bfin.c: Likewise. |
| 3251 | * elf32-m68k.c: Likewise. |
| 3252 | * elf32-nds32.c: Likewise. |
| 3253 | * elf32-tilepro.c: Likewise. |
| 3254 | * elflink.c: Likewise. |
| 3255 | * elfnn-aarch64.c: Likewise. |
| 3256 | * elfnn-riscv.c: Likewise. |
| 3257 | * elfxx-tilegx.c: Likewise. |
| 3258 | * mach-o.c: Likewise. |
| 3259 | * peXXigen.c: Likewise. |
| 3260 | * vms-alpha.c: Likewise. |
| 3261 | * vms-lib.c: Likewise. |
| 3262 | |
| 3263 | 2017-05-17 H.J. Lu <hongjiu.lu@intel.com> |
| 3264 | |
| 3265 | PR ld/20882 |
| 3266 | * elflink.c (elf_gc_mark_debug_section): New function. |
| 3267 | (_bfd_elf_gc_mark_extra_sections): Mark any debug sections |
| 3268 | referenced by kept debug sections. |
| 3269 | |
| 3270 | 2017-05-16 Alan Modra <amodra@gmail.com> |
| 3271 | |
| 3272 | * elf-m10300.c: Rename occurrences of non_ir_ref. |
| 3273 | * elf32-arm.c: Likewise. |
| 3274 | * elf32-bfin.c: Likewise. |
| 3275 | * elf32-cr16.c: Likewise. |
| 3276 | * elf32-cris.c: Likewise. |
| 3277 | * elf32-d10v.c: Likewise. |
| 3278 | * elf32-dlx.c: Likewise. |
| 3279 | * elf32-fr30.c: Likewise. |
| 3280 | * elf32-frv.c: Likewise. |
| 3281 | * elf32-hppa.c: Likewise. |
| 3282 | * elf32-i370.c: Likewise. |
| 3283 | * elf32-i386.c: Likewise. |
| 3284 | * elf32-iq2000.c: Likewise. |
| 3285 | * elf32-lm32.c: Likewise. |
| 3286 | * elf32-m32c.c: Likewise. |
| 3287 | * elf32-m32r.c: Likewise. |
| 3288 | * elf32-m68hc1x.c: Likewise. |
| 3289 | * elf32-m68k.c: Likewise. |
| 3290 | * elf32-mcore.c: Likewise. |
| 3291 | * elf32-metag.c: Likewise. |
| 3292 | * elf32-microblaze.c: Likewise. |
| 3293 | * elf32-moxie.c: Likewise. |
| 3294 | * elf32-msp430.c: Likewise. |
| 3295 | * elf32-mt.c: Likewise. |
| 3296 | * elf32-nios2.c: Likewise. |
| 3297 | * elf32-or1k.c: Likewise. |
| 3298 | * elf32-ppc.c: Likewise. |
| 3299 | * elf32-rl78.c: Likewise. |
| 3300 | * elf32-s390.c: Likewise. |
| 3301 | * elf32-score.c: Likewise. |
| 3302 | * elf32-score7.c: Likewise. |
| 3303 | * elf32-sh.c: Likewise. |
| 3304 | * elf32-tic6x.c: Likewise. |
| 3305 | * elf32-tilepro.c: Likewise. |
| 3306 | * elf32-v850.c: Likewise. |
| 3307 | * elf32-vax.c: Likewise. |
| 3308 | * elf32-xstormy16.c: Likewise. |
| 3309 | * elf32-xtensa.c: Likewise. |
| 3310 | * elf64-alpha.c: Likewise. |
| 3311 | * elf64-hppa.c: Likewise. |
| 3312 | * elf64-ia64-vms.c: Likewise. |
| 3313 | * elf64-mmix.c: Likewise. |
| 3314 | * elf64-ppc.c: Likewise. |
| 3315 | * elf64-s390.c: Likewise. |
| 3316 | * elf64-sh64.c: Likewise. |
| 3317 | * elf64-x86-64.c: Likewise. |
| 3318 | * elflink.c: Likewise. |
| 3319 | * elfnn-aarch64.c: Likewise. |
| 3320 | * elfnn-ia64.c: Likewise. |
| 3321 | * elfnn-riscv.c: Likewise. |
| 3322 | * elfxx-mips.c: Likewise. |
| 3323 | * elfxx-sparc.c: Likewise. |
| 3324 | * elfxx-tilegx.c: Likewise. |
| 3325 | * linker.c: Likewise. |
| 3326 | |
| 3327 | 2017-05-16 Alan Modra <amodra@gmail.com> |
| 3328 | |
| 3329 | * elf64-ppc.c (add_symbol_adjust): Transfer non_ir_ref_dynamic. |
| 3330 | * elflink.c (elf_link_add_object_symbols): Update to use |
| 3331 | non_ir_ref_dynamic. |
| 3332 | (elf_link_input_bfd): Test non_ir_ref_dynamic in addition to |
| 3333 | non_ir_ref. |
| 3334 | * linker.c (_bfd_generic_link_add_one_symbol): Likewise. |
| 3335 | |
| 3336 | 2017-05-15 Maciej W. Rozycki <macro@imgtec.com> |
| 3337 | |
| 3338 | * elfxx-mips.c (print_mips_ases): Handle MIPS16e2 ASE. |
| 3339 | |
| 3340 | 2017-05-12 H.J. Lu <hongjiu.lu@intel.com> |
| 3341 | |
| 3342 | * elf32-i386.c (elf_i386_parse_gnu_properties): Merge |
| 3343 | GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED |
| 3344 | properties. |
| 3345 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. |
| 3346 | |
| 3347 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
| 3348 | |
| 3349 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Rename plt_bnd |
| 3350 | to plt_second. |
| 3351 | (elf_x86_64_link_hash_table): Rename plt_bnd/plt_bnd_eh_frame |
| 3352 | to plt_second/plt_second_eh_frame. |
| 3353 | (elf_x86_64_link_hash_newfunc): Updated. |
| 3354 | (elf_x86_64_allocate_dynrelocs): Likewise. |
| 3355 | (elf_x86_64_size_dynamic_sections): Likewise. |
| 3356 | (elf_x86_64_relocate_section): Likewise. |
| 3357 | (elf_x86_64_finish_dynamic_symbol): Likewise. |
| 3358 | (elf_x86_64_finish_dynamic_sections): Likewise. |
| 3359 | (elf_x86_64_plt_type): Rename plt_bnd to plt_second. |
| 3360 | (elf_x86_64_get_synthetic_symtab): Updated. Also scan the |
| 3361 | .plt.sec section. |
| 3362 | (elf_backend_setup_gnu_properties): Updated. Create the |
| 3363 | .plt.sec section instead of the .plt.sec section. |
| 3364 | |
| 3365 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
| 3366 | |
| 3367 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Partially revert |
| 3368 | commit 25070364b0ce33eed46aa5d78ebebbec6accec7e. |
| 3369 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewse. |
| 3370 | |
| 3371 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
| 3372 | |
| 3373 | * elf64-sparc.c (elf64_sparc_set_reloc): New function. |
| 3374 | (bfd_elf64_set_reloc): Define. |
| 3375 | (elf64_sparc_write_relocs): Use `canon_reloc_count'. |
| 3376 | |
| 3377 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
| 3378 | |
| 3379 | * targets.c (BFD_JUMP_TABLE_RELOCS): Add NAME##_set_reloc. |
| 3380 | (struct bfd_target): New field _bfd_set_reloc. |
| 3381 | * bfd.c (bfd_set_reloc): Call backend _set_bfd. |
| 3382 | * reloc.c (_bfd_generic_set_reloc): New function. |
| 3383 | * coffcode.h (coff_set_reloc): Define to _bfd_generic_set_reloc. |
| 3384 | * nlm-target.h (nlm_set_reloc): Likewise. |
| 3385 | * coff-rs6000.c (_bfd_xcoff_set_reloc): Likewise. |
| 3386 | * aout-tic30.c (MY_set_reloc): Likewise. |
| 3387 | * aout-target.h (MY_set_reloc): Likewise. |
| 3388 | * elfxx-target.h (bfd_elfNN_set_reloc): Likewise. |
| 3389 | * coff-alpha.c (_bfd_ecoff_set_reloc): Likewise. |
| 3390 | * mach-o-target.c (bfd_mach_o_set_reloc): Likewise. |
| 3391 | * vms-alpha.c (alpha_vms_set_reloc): Likewise. |
| 3392 | * aout-adobe.c (aout_32_set_reloc): Likewise. |
| 3393 | * bout.c (b_out_set_reloc): Likewise. |
| 3394 | * coff-mips.c (_bfd_ecoff_set_reloc): Likewise. |
| 3395 | * i386os9k.c (aout_32_set_reloc): Likewise. |
| 3396 | * ieee.c (ieee_set_reloc): Likewise. |
| 3397 | * oasys.c (oasys_set_reloc): Likewise. |
| 3398 | * som.c (som_set_reloc): Likewise. |
| 3399 | * versados.c (versados_set_reloc): Likewise. |
| 3400 | * coff64-rs6000.c (rs6000_xcoff64_vec): Add |
| 3401 | _bfd_generic_set_reloc. |
| 3402 | (rs6000_xcoff64_aix_vec): LIkewise. |
| 3403 | * libbfd.c (_bfd_norelocs_set_reloc): New function. |
| 3404 | * libbfd-in.h: Prototype for _bfd_norelocs_set_reloc. |
| 3405 | * i386msdos.c (msdos_set_reloc): Define to |
| 3406 | _bfd_norelocs_set_reloc. |
| 3407 | * elfcode.h (elf_set_reloc): Define. |
| 3408 | * bfd-in2.h: Regenerated. |
| 3409 | |
| 3410 | 2017-05-10 H.J. Lu <hongjiu.lu@intel.com> |
| 3411 | |
| 3412 | PR ld/21481 |
| 3413 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd |
| 3414 | for IFUNC function address. |
| 3415 | |
| 3416 | 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com> |
| 3417 | |
| 3418 | * elf32-arc.c (FEATURE_LIST_NAME): Define. |
| 3419 | (CONFLICT_LIST): Likewise. |
| 3420 | (opcode/arc-attrs.h): Include. |
| 3421 | (arc_elf_print_private_bfd_data): Print OSABI v4 flag. |
| 3422 | (arc_extract_features): New file. |
| 3423 | (arc_stralloc): Likewise. |
| 3424 | (arc_elf_merge_attributes): Likewise. |
| 3425 | (arc_elf_merge_private_bfd_data): Use object attributes. |
| 3426 | (bfd_arc_get_mach_from_attributes): New function. |
| 3427 | (arc_elf_object_p): Use object attributes. |
| 3428 | (arc_elf_final_write_processing): Likewise. |
| 3429 | (elf32_arc_obj_attrs_arg_type): New function. |
| 3430 | (elf32_arc_obj_attrs_handle_unknown): Likewise. |
| 3431 | (elf32_arc_section_from_shdr): Likewise. |
| 3432 | (elf_backend_obj_attrs_vendor): Define. |
| 3433 | (elf_backend_obj_attrs_section): Likewise. |
| 3434 | (elf_backend_obj_attrs_arg_type): Likewise. |
| 3435 | (elf_backend_obj_attrs_section_type): Likewise. |
| 3436 | (elf_backend_obj_attrs_handle_unknown): Likewise. |
| 3437 | (elf_backend_section_from_shdr): Likewise. |
| 3438 | |
| 3439 | 2017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za> |
| 3440 | |
| 3441 | PR ld/21458 |
| 3442 | * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit |
| 3443 | of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation |
| 3444 | and the destination is a Thumb symbol. |
| 3445 | |
| 3446 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
| 3447 | |
| 3448 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing |
| 3449 | initializer to silence GCC 4.2. |
| 3450 | * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. |
| 3451 | |
| 3452 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
| 3453 | |
| 3454 | * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ... |
| 3455 | (LAZY_PLT_ENTRY_SIZE): This. |
| 3456 | (NON_LAZY_PLT_ENTRY_SIZE): New. |
| 3457 | (elf_x86_64_plt0_entry): Renamed to ... |
| 3458 | (elf_x86_64_lazy_plt0_entry): This. |
| 3459 | (elf_x86_64_plt_entry): Renamed to ... |
| 3460 | (elf_x86_64_lazy_plt_entry): This. |
| 3461 | (elf_x86_64_bnd_plt0_entry): Renamed to ... |
| 3462 | (elf_x86_64_lazy_bnd_plt0_entry): This. |
| 3463 | (elf_x86_64_legacy_plt_entry): Removed. |
| 3464 | (elf_x86_64_bnd_plt_entry): Renamed to ... |
| 3465 | (elf_x86_64_lazy_bnd_plt_entry): This. |
| 3466 | (elf_x86_64_legacy_plt2_entry): Renamed to ... |
| 3467 | (elf_x86_64_non_lazy_plt_entry): This. |
| 3468 | (elf_x86_64_bnd_plt2_entry): Renamed to ... |
| 3469 | (elf_x86_64_non_lazy_bnd_plt_entry): This. |
| 3470 | (elf_x86_64_eh_frame_plt): Renamed to ... |
| 3471 | (elf_x86_64_eh_frame_lazy_plt): This. |
| 3472 | (elf_x86_64_eh_frame_bnd_plt): Renamed to ... |
| 3473 | (elf_x86_64_eh_frame_lazy_bnd_plt): This. |
| 3474 | (elf_x86_64_eh_frame_plt_got): Renamed to ... |
| 3475 | (elf_x86_64_eh_frame_non_lazy_plt): This. |
| 3476 | (elf_x86_64_lazy_plt_layout): New. |
| 3477 | (elf_x86_64_non_lazy_plt_layout): Likewise. |
| 3478 | (elf_x86_64_plt_layout): Likewise. |
| 3479 | (elf_x86_64_backend_data): Remove PLT layout information. Add |
| 3480 | os for target system. |
| 3481 | (GET_PLT_ENTRY_SIZE): Removed. |
| 3482 | (elf_x86_64_lazy_plt): New. |
| 3483 | (elf_x86_64_non_lazy_plt): Likewise. |
| 3484 | (elf_x86_64_lazy_bnd_plt): Likewise. |
| 3485 | (elf_x86_64_non_lazy_bnd_plt): Likewise. |
| 3486 | (elf_x86-64_arch_bed): Updated. |
| 3487 | (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt. |
| 3488 | (elf_x86_64_create_dynamic_sections): Removed. |
| 3489 | (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call |
| 3490 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. |
| 3491 | (elf_x86-64_adjust_dynamic_symbol): Updated. |
| 3492 | (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header |
| 3493 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate |
| 3494 | size for PLT0 if there is no PLT0. Get plt_entry_size from |
| 3495 | non_lazy_plt for non-lazy PLT entries. |
| 3496 | (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size |
| 3497 | from non_lazy_plt for non-lazy PLT entries. |
| 3498 | (elf_x86-64_relocate_section): Updated. Properly get PLT index |
| 3499 | if there is no PLT0. |
| 3500 | (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot |
| 3501 | in the PLT entry with generic PLT layout. Fill the non-lazy PLT |
| 3502 | entries with non-lazy PLT layout. Don't fill the second and third |
| 3503 | slots in the PLT entry if there is no PLT0. |
| 3504 | (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0 |
| 3505 | if there is no PLT0. Set sh_entsize on the .plt.got section. |
| 3506 | (compare_relocs): New. |
| 3507 | (elf_x86_64_plt_type): Likewise. |
| 3508 | (elf_x86_64_plt): Likewise. |
| 3509 | (elf_x86_64_nacl_plt): New. Forward declaration. |
| 3510 | (elf_x86_64_get_plt_sym_val): Removed. |
| 3511 | (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections |
| 3512 | against all dynamic relocations. |
| 3513 | (elf_x86_64_link_setup_gnu_properties): New function. |
| 3514 | (elf_backend_create_dynamic_sections): Updated. |
| 3515 | (elf_backend_setup_gnu_properties): New. |
| 3516 | (elf_x86_64_nacl_plt): New. |
| 3517 | (elf_x86_64_nacl_arch_bed): Updated. |
| 3518 | |
| 3519 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
| 3520 | |
| 3521 | * elf32-i386.c (PLT_ENTRY_SIZE): Renamed to ... |
| 3522 | (LAZY_PLT_ENTRY_SIZE): This. |
| 3523 | (NON_LAZY_PLT_ENTRY_SIZE): New. |
| 3524 | (elf_i386_plt0_entry): Renamed to ... |
| 3525 | (elf_i386_lazy_plt0_entry): This. |
| 3526 | (elf_i386_plt_entry): Renamed to ... |
| 3527 | (elf_i386_lazy_plt_entry): This. |
| 3528 | (elf_i386_pic_plt0_entry): Renamed to ... |
| 3529 | (elf_i386_pic_lazy_plt0_entry): This. |
| 3530 | (elf_i386_pic_plt_entry): Renamed to ... |
| 3531 | (elf_i386_pic_lazy_plt_entry): This. |
| 3532 | (elf_i386_got_plt_entry): Renamed to ... |
| 3533 | (elf_i386_non_lazy_plt_entry): This. |
| 3534 | (elf_i386_pic_got_plt_entry): Renamed to ... |
| 3535 | (elf_i386_pic_non_lazy_plt_entry): This. |
| 3536 | (elf_i386_eh_frame_plt): Renamed to ... |
| 3537 | (elf_i386_eh_frame_lazy_plt): This. |
| 3538 | (elf_i386_eh_frame_plt_got): Renamed to ... |
| 3539 | (elf_i386_eh_frame_non_lazy_plt): This. |
| 3540 | (elf_i386_plt_layout): Renamed to ... |
| 3541 | (elf_i386_lazy_plt_layout): This. Remove eh_frame_plt_got and |
| 3542 | eh_frame_plt_got_size. |
| 3543 | (elf_i386_non_lazy_plt_layout): New. |
| 3544 | (elf_i386_plt_layout): Likewise. |
| 3545 | (elf_i386_non_lazy_plt): Likewise. |
| 3546 | (GET_PLT_ENTRY_SIZE): Removed. |
| 3547 | (elf_i386_plt): Renamed to ... |
| 3548 | (elf_i386_lazy_plt): This. |
| 3549 | (elf_i386_backend_data): Remove plt. Rename is_vxworks to os. |
| 3550 | (elf_i386_arch_bed): Updated. |
| 3551 | (elf_i386_link_hash_table): Add plt, lazy_plt and non_lazy_plt. |
| 3552 | (elf_i386_create_dynamic_sections): Removed. |
| 3553 | (elf_i386_check_relocs): Don't check elf.dynobj. Don't call |
| 3554 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. |
| 3555 | (elf_i386_adjust_dynamic_symbol): Updated. |
| 3556 | (elf_i386_allocate_dynrelocs): Updated. Pass 0 as PLT header |
| 3557 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate |
| 3558 | size for PLT0 if there is no PLT0. |
| 3559 | (elf_i386_size_dynamic_sections): Updated. Check whether GOT |
| 3560 | output section is discarded only if GOT isn't empty. |
| 3561 | (elf_i386_relocate_section): Updated. Properly get PLT index |
| 3562 | if there is no PLT0. |
| 3563 | (elf_i386_finish_dynamic_symbol): Updated. Don't fill the |
| 3564 | second and third slots in the PLT entry if there is no PLT0. |
| 3565 | (elf_i386_finish_dynamic_sections): Updated. Don't fill PLT0 |
| 3566 | if there is no PLT0. Set sh_entsize on the .plt.got section. |
| 3567 | (elf_i386_nacl_plt): Forward declaration. |
| 3568 | (elf_i386_get_plt_sym_val): Removed. |
| 3569 | (elf_i386_get_synthetic_symtab): Rewrite to check PLT sections |
| 3570 | against all dynamic relocations. |
| 3571 | (elf_i386_link_setup_gnu_properties): New function. |
| 3572 | (elf_backend_create_dynamic_sections): Updated. |
| 3573 | (elf_backend_setup_gnu_properties): New. |
| 3574 | (elf_i386_nacl_plt): Updated. |
| 3575 | (elf_i386_nacl_arch_bed): Likewise. |
| 3576 | (elf_i386_vxworks_arch_bed): Likewise. |
| 3577 | |
| 3578 | 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com> |
| 3579 | |
| 3580 | * elflink.c (elf_output_implib): Remove executable flag from import |
| 3581 | library bfd. |
| 3582 | * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import |
| 3583 | library is a relocatable object file. |
| 3584 | |
| 3585 | 2017-05-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
| 3586 | |
| 3587 | PR ld/21404 |
| 3588 | * elf32-avr.c (avr_should_move_sym): New function. |
| 3589 | (avr_should_reduce_sym_size): Likewise. |
| 3590 | (avr_should_increase_sym_size): Likewise. |
| 3591 | (elf32_avr_relax_delete_bytes): Adjust symbol values |
| 3592 | and sizes by calling new functions. |
| 3593 | |
| 3594 | 2017-05-01 Palmer Dabbelt <palmer@dabbelt.com> |
| 3595 | |
| 3596 | * config.bfd (riscv32-*): Enable rv64. |
| 3597 | |
| 3598 | 2017-05-02 Alan Modra <amodra@gmail.com> |
| 3599 | |
| 3600 | PR 21384 |
| 3601 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Test h->non_elf |
| 3602 | rather than h->root.type == bfd_link_hash_new. |
| 3603 | (bfd_elf_record_link_assignment): Similarly, call |
| 3604 | bfd_elf_link_mark_dynamic_symbol when h->non_elf. |
| 3605 | |
| 3606 | 2017-04-29 Alan Modra <amodra@gmail.com> |
| 3607 | |
| 3608 | PR 21432 |
| 3609 | * reloc.c (reloc_offset_in_range): New function. |
| 3610 | (bfd_perform_relocation, bfd_install_relocation): Use it. |
| 3611 | (_bfd_final_link_relocate): Likewise. |
| 3612 | |
| 3613 | 2017-04-28 H.J. Lu <hongjiu.lu@intel.com> |
| 3614 | |
| 3615 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got |
| 3616 | before using .plt.got. |
| 3617 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. |
| 3618 | |
| 3619 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
| 3620 | |
| 3621 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "=" |
| 3622 | instead of "+=" to update 0. |
| 3623 | |
| 3624 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
| 3625 | |
| 3626 | * elf32-i386.c (elf_i386_create_dynamic_sections): Create the |
| 3627 | .plt.got section here. |
| 3628 | (elf_i386_check_relocs): Don't create the .plt.got section. |
| 3629 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Create |
| 3630 | the .plt.got and .plt.bnd sections here. |
| 3631 | (elf_x86_64_check_relocs): Don't create the .plt.got nor |
| 3632 | .plt.bnd sections. |
| 3633 | |
| 3634 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
| 3635 | |
| 3636 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Remove |
| 3637 | has_bnd_reloc. |
| 3638 | (elf_x86_64_link_hash_newfunc): Don't clear has_bnd_reloc. |
| 3639 | (elf_x86_64_copy_indirect_symbol): Don't copy has_bnd_reloc. |
| 3640 | (elf_x86_64_check_relocs): Don't set has_bnd_reloc. |
| 3641 | (elf_x86_64_finish_dynamic_symbol): Check bndplt instead of |
| 3642 | has_bnd_reloc. |
| 3643 | |
| 3644 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
| 3645 | |
| 3646 | * elf-bfd.h (elf_backend_data): Change setup_gnu_properties |
| 3647 | to return bfd *. |
| 3648 | (_bfd_elf_link_setup_gnu_properties): Return bfd *. |
| 3649 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return |
| 3650 | the first relocatable ELF input with GNU properties. |
| 3651 | |
| 3652 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
| 3653 | |
| 3654 | * elf32-i386.c (elf_i386_finish_dynamic_sections): Simplify |
| 3655 | VxWorks for non-PIC. |
| 3656 | |
| 3657 | 2017-04-27 Alan Modra <amodra@gmail.com> |
| 3658 | |
| 3659 | * elf-bfd.h (struct elf_backend_data): Make asection param of |
| 3660 | elf_backend_eh_frame_address_size const. |
| 3661 | (_bfd_elf_eh_frame_address_size): Likewise. |
| 3662 | * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise. |
| 3663 | * elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise. |
| 3664 | * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise. |
| 3665 | * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise. |
| 3666 | * elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise. |
| 3667 | (next_cie_fde_offset): Constify params. |
| 3668 | (offset_adjust, adjust_eh_frame_local_symbols): Likewise. |
| 3669 | |
| 3670 | 2017-04-27 Alan Modra <amodra@gmail.com> |
| 3671 | |
| 3672 | * elf-bfd.h (struct eh_cie_fde): Add aug_str_len and aug_data_len. |
| 3673 | (_bfd_elf_adjust_eh_frame_global_symbol): Declare. |
| 3674 | * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Set aug_str_len and |
| 3675 | aug_data_len. |
| 3676 | (offset_adjust): New function. |
| 3677 | (_bfd_elf_adjust_eh_frame_global_symbol): Likewise. |
| 3678 | (adjust_eh_frame_local_symbols): Likewise. |
| 3679 | (_bfd_elf_discard_section_eh_frame): Call adjust_eh_frame_local_symbols |
| 3680 | after changing anything. Return true if anything changed. |
| 3681 | * elflink.c (bfd_elf_discard_info): If .eh_frame changed, call |
| 3682 | _bfd_elf_adjust_eh_frame_global_symbol for globals. |
| 3683 | |
| 3684 | 2017-04-27 Alan Modra <amodra@gmail.com> |
| 3685 | |
| 3686 | * elflink.c (_bfd_elf_link_hash_hide_symbol): Clear dynstr_index |
| 3687 | when force_local. |
| 3688 | |
| 3689 | 2017-04-27 Alan Modra <amodra@gmail.com> |
| 3690 | |
| 3691 | * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. |
| 3692 | (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it. |
| 3693 | (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise. |
| 3694 | (ppc_elf_relocate_section): Likewise. Delete silly optimisation |
| 3695 | for undef and undefweak dyn_relocs. |
| 3696 | * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. |
| 3697 | (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it. |
| 3698 | (allocate_got, allocate_dynrelocs): Likewise. |
| 3699 | (ppc64_elf_relocate_section): Likewise. |
| 3700 | |
| 3701 | 2017-04-26 H.J. Lu <hongjiu.lu@intel.com> |
| 3702 | |
| 3703 | * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add |
| 3704 | DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section. |
| 3705 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys |
| 3706 | add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section. |
| 3707 | |
| 3708 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
| 3709 | |
| 3710 | PR binutils/21434 |
| 3711 | * reloc.c (bfd_perform_relocation): Check for a negative address |
| 3712 | in the reloc. |
| 3713 | |
| 3714 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
| 3715 | |
| 3716 | PR ld/21334 |
| 3717 | * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms' |
| 3718 | member. |
| 3719 | * elfxx-target.h [!elf_backend_always_renumber_dynsyms] |
| 3720 | (elf_backend_always_renumber_dynsyms): Define. |
| 3721 | (elfNN_bed): Initialize `always_renumber_dynsyms' member. |
| 3722 | * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define. |
| 3723 | * elflink.c (bfd_elf_size_dynamic_sections): Also call |
| 3724 | `_bfd_elf_link_renumber_dynsyms' if the backend has requested |
| 3725 | it. |
| 3726 | (bfd_elf_size_dynsym_hash_dynstr): Likewise. |
| 3727 | |
| 3728 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
| 3729 | |
| 3730 | * elflink.c (bfd_elf_size_dynamic_sections): Only call |
| 3731 | `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic |
| 3732 | sections have been created. |
| 3733 | |
| 3734 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
| 3735 | |
| 3736 | PR binutils/21431 |
| 3737 | * compress.c (bfd_init_section_compress_status): Check the return |
| 3738 | value from bfd_malloc. |
| 3739 | |
| 3740 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
| 3741 | |
| 3742 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add |
| 3743 | no_finish_dynamic_symbol. |
| 3744 | (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to |
| 3745 | 0. |
| 3746 | (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined |
| 3747 | weak symbol, don't make it dynamic. |
| 3748 | (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC, |
| 3749 | set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE |
| 3750 | relocation for GOT reference. |
| 3751 | (elf_x86_64_finish_dynamic_symbol): Abort if |
| 3752 | no_finish_dynamic_symbol isn't 0. |
| 3753 | |
| 3754 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
| 3755 | |
| 3756 | PR ld/21402 |
| 3757 | * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't |
| 3758 | undefined weak symbol, don't make it dynamic. |
| 3759 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIC, |
| 3760 | set no_finish_dynamic_symbol and generate R_386_RELATIVE |
| 3761 | relocation for R_386_GOT32. |
| 3762 | |
| 3763 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
| 3764 | |
| 3765 | PR ld/21425 |
| 3766 | * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks. |
| 3767 | |
| 3768 | 2017-04-23 Alan Modra <amodra@gmail.com> |
| 3769 | |
| 3770 | PR 21414 |
| 3771 | * section.c (GLOBAL_SYM_INIT): Make available in bfd.h. |
| 3772 | * elf.c (lcomm_sym): New. |
| 3773 | (_bfd_elf_large_com_section): Use lcomm_sym section symbol. |
| 3774 | * bfd-in2.h: Regenerate. |
| 3775 | |
| 3776 | 2017-04-23 Alan Modra <amodra@gmail.com> |
| 3777 | |
| 3778 | PR 21412 |
| 3779 | * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change |
| 3780 | parameters and comment. |
| 3781 | (_bfd_elf_get_reloc_section): Delete. |
| 3782 | (_bfd_elf_plt_get_reloc_section): Declare. |
| 3783 | * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section): |
| 3784 | New functions. Don't blindly skip over assumed .rel/.rela prefix. |
| 3785 | Extracted from.. |
| 3786 | (_bfd_elf_get_reloc_section): ..here. Delete. |
| 3787 | (assign_section_numbers): Call elf_get_reloc_section. |
| 3788 | * elf64-ppc.c (elf_backend_get_reloc_section): Define. |
| 3789 | * elfxx-target.h (elf_backend_get_reloc_section): Update. |
| 3790 | |
| 3791 | 2017-04-23 Alan Modra <amodra@gmail.com> |
| 3792 | |
| 3793 | PR 21409 |
| 3794 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when |
| 3795 | no symbols. |
| 3796 | |
| 3797 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
| 3798 | |
| 3799 | PR ld/21402 |
| 3800 | * elf32-i386.c (elf_i386_link_hash_entry): Add |
| 3801 | no_finish_dynamic_symbol. |
| 3802 | (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0. |
| 3803 | (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak |
| 3804 | symbol, don't make it dynamic in PIE. |
| 3805 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIE, |
| 3806 | set no_finish_dynamic_symbol and generate R_386_RELATIVE |
| 3807 | relocation for R_386_GOT32 |
| 3808 | (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol |
| 3809 | isn't 0. |
| 3810 | |
| 3811 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
| 3812 | |
| 3813 | PR ld/19617 |
| 3814 | PR ld/21086 |
| 3815 | * elflink.c (elf_link_add_object_symbols): Require |
| 3816 | --no-dynamic-linker with -E/--dynamic-list when creating |
| 3817 | dynamic sections. |
| 3818 | |
| 3819 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
| 3820 | |
| 3821 | * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE |
| 3822 | if forced local. |
| 3823 | |
| 3824 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
| 3825 | |
| 3826 | * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about |
| 3827 | dynamic symbol sorting. |
| 3828 | |
| 3829 | 2017-04-20 H.J. Lu <hongjiu.lu@intel.com> |
| 3830 | |
| 3831 | PR ld/21382 |
| 3832 | * elflink.c (elf_link_add_object_symbols): Preserve |
| 3833 | dynamic_ref_after_ir_def when restoring the symbol table for |
| 3834 | unneeded dynamic object. |
| 3835 | |
| 3836 | 2017-04-19 H.J. Lu <hongjiu.lu@intel.com> |
| 3837 | |
| 3838 | PR ld/21401 |
| 3839 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort |
| 3840 | on on undefined IFUNC symbol in the second PLT. |
| 3841 | |
| 3842 | 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com> |
| 3843 | |
| 3844 | * peXXigen.c (pe_print_reloc): Correct chunk_end. |
| 3845 | |
| 3846 | 2017-04-19 Alan Modra <amodra@gmail.com> |
| 3847 | |
| 3848 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak |
| 3849 | or make dynamic for info->dynamic_undefined_weak 0 and 1. |
| 3850 | * elf32-ppc.c:Formatting. |
| 3851 | (ensure_undefweak_dynamic): Don't make dynamic when |
| 3852 | info->dynamic_undefined_weak is zero. |
| 3853 | (allocate_dynrelocs): Discard undefweak dyn_relocs for |
| 3854 | info->dynamic_undefined_weak. Discard undef dyn_relocs when |
| 3855 | not default visibility. Discard undef and undefweak |
| 3856 | dyn_relocs earlier. |
| 3857 | (ppc_elf_relocate_section): Adjust to suit. |
| 3858 | * elf64-ppc.c: Formatting. |
| 3859 | (ensure_undefweak_dynamic): Don't make dynamic when |
| 3860 | info->dynamic_undefined_weak is zero. |
| 3861 | (allocate_dynrelocs): Discard undefweak dyn_relocs for |
| 3862 | info->dynamic_undefined_weak. Discard them earlier. |
| 3863 | |
| 3864 | 2017-04-17 H.J. Lu <hongjiu.lu@intel.com> |
| 3865 | |
| 3866 | PR ld/21389 |
| 3867 | * elflink.c (bfd_elf_size_dynamic_sections): Get soname index |
| 3868 | before generating the version definition section. |
| 3869 | |
| 3870 | 2017-04-17 Alan Modra <amodra@gmail.com> |
| 3871 | |
| 3872 | * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking |
| 3873 | state when a regular object file defines a symbol with |
| 3874 | incompatible type to that defined by an earlier shared lib. |
| 3875 | |
| 3876 | 2017-04-13 Alan Modra <amodra@gmail.com> |
| 3877 | |
| 3878 | * coffcode.h: Wrap some overly long _bfd_error_handler args. |
| 3879 | * elf.c: Likewise. |
| 3880 | * elf32-arm.c: Likewise. |
| 3881 | * elf32-i386.c: Likewise. |
| 3882 | * elf32-mep.c: Likewise. |
| 3883 | * elf64-ia64-vms.c: Likewise. |
| 3884 | * elf64-x86-64.c: Likewise. |
| 3885 | * elflink.c: Likewise. |
| 3886 | * elfnn-ia64.c: Likewise. |
| 3887 | * elfxx-mips.c: Likewise. |
| 3888 | |
| 3889 | 2017-04-13 Alan Modra <amodra@gmail.com> |
| 3890 | |
| 3891 | * aoutx.h: Use %B and %A in error messages throughout file. |
| 3892 | * aout-cris.c: Likewise. |
| 3893 | * archive.c: Likewise. |
| 3894 | * binary.c: Likewise. |
| 3895 | * coff-rs6000.c: Likewise. |
| 3896 | * coff-tic4x.c: Likewise. |
| 3897 | * coffcode.h: Likewise. |
| 3898 | * coffgen.c: Likewise. |
| 3899 | * cofflink.c: Likewise. |
| 3900 | * coffswap.h: Likewise. |
| 3901 | * cpu-arm.c: Likewise. |
| 3902 | * elf-eh-frame.c: Likewise. |
| 3903 | * elf-m10300.c: Likewise. |
| 3904 | * elf.c: Likewise. |
| 3905 | * elf32-arc.c: Likewise. |
| 3906 | * elf32-arm.c: Likewise. |
| 3907 | * elf32-bfin.c: Likewise. |
| 3908 | * elf32-frv.c: Likewise. |
| 3909 | * elf32-iq2000.c: Likewise. |
| 3910 | * elf32-m32c.c: Likewise. |
| 3911 | * elf32-microblaze.c: Likewise. |
| 3912 | * elf32-nds32.c: Likewise. |
| 3913 | * elf32-rl78.c: Likewise. |
| 3914 | * elf32-rx.c: Likewise. |
| 3915 | * elf32-score.c: Likewise. |
| 3916 | * elf32-score7.c: Likewise. |
| 3917 | * elf32-sh64.c: Likewise. |
| 3918 | * elf32-v850.c: Likewise. |
| 3919 | * elf32-vax.c: Likewise. |
| 3920 | * elf32-visium.c: Likewise. |
| 3921 | * elf64-ia64-vms.c: Likewise. |
| 3922 | * elf64-mmix.c: Likewise. |
| 3923 | * elf64-sh64.c: Likewise. |
| 3924 | * elfcode.h: Likewise. |
| 3925 | * elfnn-aarch64.c: Likewise. |
| 3926 | * elfnn-ia64.c: Likewise. |
| 3927 | * elfxx-mips.c: Likewise. |
| 3928 | * hpux-core.c: Likewise. |
| 3929 | * ieee.c: Likewise. |
| 3930 | * ihex.c: Likewise. |
| 3931 | * linker.c: Likewise. |
| 3932 | * merge.c: Likewise. |
| 3933 | * mmo.c: Likewise. |
| 3934 | * oasys.c: Likewise. |
| 3935 | * pdp11.c: Likewise. |
| 3936 | * peXXigen.c: Likewise. |
| 3937 | * rs6000-core.c: Likewise. |
| 3938 | * vms-alpha.c: Likewise. |
| 3939 | * xcofflink.c: Likewise. |
| 3940 | |
| 3941 | 2017-04-13 Alan Modra <amodra@gmail.com> |
| 3942 | |
| 3943 | * bfd.c (PRINT_TYPE): Define. |
| 3944 | (_doprnt): New function. |
| 3945 | (error_handler_internal): Use _doprnt. |
| 3946 | * coff-arm.c: Put %A and %B arguments to _bfd_error_handler |
| 3947 | calls in their natural order, throughout file. |
| 3948 | * coff-mcore.c: Likewise. |
| 3949 | * coff-ppc.c: Likewise. |
| 3950 | * coff-tic80.c: Likewise. |
| 3951 | * cofflink.c: Likewise. |
| 3952 | * elf-s390-common.c: Likewise. |
| 3953 | * elf.c: Likewise. |
| 3954 | * elf32-arm.c: Likewise. |
| 3955 | * elf32-i386.c: Likewise. |
| 3956 | * elf32-m32r.c: Likewise. |
| 3957 | * elf32-msp430.c: Likewise. |
| 3958 | * elf32-spu.c: Likewise. |
| 3959 | * elf64-ia64-vms.c: Likewise. |
| 3960 | * elf64-sparc.c: Likewise. |
| 3961 | * elf64-x86-64.c: Likewise. |
| 3962 | * elflink.c: Likewise. |
| 3963 | * elfnn-aarch64.c: Likewise. |
| 3964 | * elfnn-ia64.c: Likewise. |
| 3965 | * elfxx-mips.c: Likewise. |
| 3966 | |
| 3967 | 2017-04-13 Alan Modra <amodra@gmail.com> |
| 3968 | |
| 3969 | * elf32-arm.c (arm_type_of_stub): Supply missing args to "long |
| 3970 | branch veneers" error. Fix double space and format message. |
| 3971 | * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg. |
| 3972 | * elf64-ppc.c (tocsave_find): Supply missing %B arg. |
| 3973 | |
| 3974 | 2017-04-13 Alan Modra <amodra@gmail.com> |
| 3975 | |
| 3976 | * bfd-in2.h: Regenerate. |
| 3977 | |
| 3978 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
| 3979 | |
| 3980 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the |
| 3981 | extra `\n' in warning/error messages. |
| 3982 | * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise. |
| 3983 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. |
| 3984 | |
| 3985 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
| 3986 | |
| 3987 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore |
| 3988 | processor-specific properties with generic ELF target vector. |
| 3989 | |
| 3990 | 2017-04-10 Qing Zhao <qing.zhao@oracle.com> |
| 3991 | |
| 3992 | * elf32-sparc.c (elf_backend_fixup_symbol): New. |
| 3993 | * elf64-sparc.c (elf_backend_fixup_symbol): New. |
| 3994 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. |
| 3995 | (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and |
| 3996 | has_non_got_reloc. |
| 3997 | (link_hash_newfunc): Initialize has_got_reloc and |
| 3998 | has_non_got_reloc. |
| 3999 | (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp |
| 4000 | section. |
| 4001 | (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and |
| 4002 | has_non_got_reloc. |
| 4003 | (_bfd_sparc_elf_check_relocs): Set has_got_reloc and |
| 4004 | has_non_got_reloc. |
| 4005 | (_bfd_sparc_elf_fixup_symbol): New function. |
| 4006 | (allocate_dynrelocs): Don't allocate space for dynamic |
| 4007 | relocations and discard relocations against resolved undefined |
| 4008 | weak symbols in executable. Don't make resolved undefined weak |
| 4009 | symbols in executable dynamic. Keep dynamic non-GOT/non-PLT |
| 4010 | relocation against undefined weak symbols in PIE. |
| 4011 | (_bfd_sparc_elf_relocate_section): Don't generate dynamic |
| 4012 | relocations against resolved undefined weak symbols in PIE |
| 4013 | (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries |
| 4014 | without ynamic PLT/GOT relocations for resolved undefined weak |
| 4015 | symbols. |
| 4016 | Don't generate dynamic relocation against resolved undefined |
| 4017 | weak symbol in executable. |
| 4018 | (pie_finish_undefweak_symbol): New function. |
| 4019 | (_bfd_sparc_elf_finish_dynamic_sections): Call |
| 4020 | pie_finish_undefweak_symbol on all symbols in PIE. |
| 4021 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp. |
| 4022 | (_bfd_sparc_elf_fixup_symbol): New function. |
| 4023 | |
| 4024 | 2017-04-10 Nick Clifton <nickc@redhat.com> |
| 4025 | |
| 4026 | * config.bfd: Remove ns32k from obsolete list. |
| 4027 | |
| 4028 | 2017-04-10 Alan Modra <amodra@gmail.com> |
| 4029 | |
| 4030 | PR 21287 |
| 4031 | * elf.c (special_sections_f): Match .fini_array and .fini_array.*. |
| 4032 | (special_sections_i): Likewise for .init_array. |
| 4033 | (special_sections_p): Likewise for .preinit_array. |
| 4034 | |
| 4035 | 2017-04-07 H.J. Lu <hongjiu.lu@intel.com> |
| 4036 | |
| 4037 | PR ld/19579 |
| 4038 | PR ld/21306 |
| 4039 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check |
| 4040 | ELF_COMMON_DEF_P for common symbols. |
| 4041 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. |
| 4042 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. |
| 4043 | * elflink.c (_bfd_elf_merge_symbol): Revert commits |
| 4044 | 202ac193bbbecc96a4978d1ac3d17148253f9b01 and |
| 4045 | 07492f668d2173da7a2bda3707ff0985e0f460b6. |
| 4046 | |
| 4047 | 2017-04-07 Pedro Alves <palves@redhat.com> |
| 4048 | |
| 4049 | * opncls.c (bfd_get_debug_link_info): Rename to... |
| 4050 | (bfd_get_debug_link_info_1): ... this. Change type of second |
| 4051 | parameter to void pointer. Adjust. |
| 4052 | (bfd_get_debug_link_info): Reimplement on top of |
| 4053 | bfd_get_debug_link_info_1. |
| 4054 | (separate_debug_file_exists, separate_alt_debug_file_exists): |
| 4055 | Change type of second parameter to void pointer. Adjust. |
| 4056 | (get_func_type, check_func_type): Change type of second parameter |
| 4057 | to void pointer. |
| 4058 | (find_separate_debug_file): Add 'func_data' parameter. Pass it to |
| 4059 | the callback functions instead of passing the address of a local. |
| 4060 | (bfd_follow_gnu_debuglink): Pass address of unsigned long local to |
| 4061 | find_separate_debug_file. |
| 4062 | (get_alt_debug_link_info_shim): Change type of second parameter to |
| 4063 | void pointer. Adjust. |
| 4064 | (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to |
| 4065 | find_separate_debug_file. |
| 4066 | (get_build_id_name, bfd_boolean check_build_id_file): Change type |
| 4067 | of second parameter to void pointer. Adjust. |
| 4068 | (bfd_follow_build_id_debuglink): Pass address of bfd_build_id |
| 4069 | pointer local to find_separate_debug_file. |
| 4070 | |
| 4071 | 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510> |
| 4072 | |
| 4073 | * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak |
| 4074 | external symbols with a definition. |
| 4075 | (_bfd_coff_gc_mark_extra_sections): Fix typo. |
| 4076 | |
| 4077 | 2017-04-07 Alan Modra <amodra@gmail.com> |
| 4078 | |
| 4079 | * po/SRC-POTFILES.in: Regenerate. |
| 4080 | |
| 4081 | 2017-04-05 Alan Modra <amodra@gmail.com> |
| 4082 | |
| 4083 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT |
| 4084 | reference counting. |
| 4085 | |
| 4086 | 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk> |
| 4087 | |
| 4088 | (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than |
| 4089 | numbers for DataDirectory entry indicies passed to |
| 4090 | add_data_entry(). |
| 4091 | |
| 4092 | 2017-04-04 H.J. Lu <hongjiu.lu@intel.com> |
| 4093 | |
| 4094 | * elf.c (get_program_header_size): Add a GNU_MBIND segment for |
| 4095 | each GNU_MBIND section and align GNU_MBIND section to page size. |
| 4096 | (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND |
| 4097 | segment for each GNU_MBIND section. |
| 4098 | (_bfd_elf_init_private_section_data): Copy sh_info from input |
| 4099 | for GNU_MBIND section. |
| 4100 | |
| 4101 | 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com> |
| 4102 | |
| 4103 | * elfnn-riscv.c (GP_NAME): Delete. |
| 4104 | (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL. |
| 4105 | (_bfd_riscv_relax_lui): Likewise. |
| 4106 | |
| 4107 | 2017-04-04 Nick Clifton <nickc@redhat.com> |
| 4108 | |
| 4109 | PR binutils/21342 |
| 4110 | * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer |
| 4111 | dereference. |
| 4112 | (bfd_elf_final_link): Only initialize the extended symbol index |
| 4113 | section if there are extended symbol tables to list. |
| 4114 | |
| 4115 | 2017-04-03 H.J. Lu <hongjiu.lu@intel.com> |
| 4116 | |
| 4117 | * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo. |
| 4118 | (BFD32_BACKENDS_CFILES): Add elf-properties.c. |
| 4119 | * configure.ac (elf): Add elf-properties.lo. |
| 4120 | * Makefile.in: Regenerated. |
| 4121 | * configure: Likewise. |
| 4122 | * elf-bfd.h (elf_property_kind): New. |
| 4123 | (elf_property): Likewise. |
| 4124 | (elf_property_list): Likewise. |
| 4125 | (elf_properties): Likewise. |
| 4126 | (_bfd_elf_parse_gnu_properties): Likewise. |
| 4127 | (_bfd_elf_get_property): Likewise. |
| 4128 | (_bfd_elf_link_setup_gnu_properties): Likewise. |
| 4129 | (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties |
| 4130 | and setup_gnu_properties. |
| 4131 | (elf_obj_tdata): Add properties. |
| 4132 | * elf-properties.c: New file. |
| 4133 | * elf32-i386.c (elf_i386_parse_gnu_properties): New. |
| 4134 | (elf_i386_merge_gnu_properties): Likewise. |
| 4135 | (elf_backend_parse_gnu_properties): Likewise. |
| 4136 | (elf_backend_merge_gnu_properties): Likewise. |
| 4137 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. |
| 4138 | (elf_x86_64_merge_gnu_properties): Likewise. |
| 4139 | (elf_backend_parse_gnu_properties): Likewise. |
| 4140 | (elf_backend_merge_gnu_properties): Likewise. |
| 4141 | * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise. |
| 4142 | (elf_backend_parse_gnu_properties): Likewise. |
| 4143 | (elf_backend_setup_gnu_properties): Likewise. |
| 4144 | (elfNN_bed): Add elf_backend_parse_gnu_properties, |
| 4145 | elf_backend_merge_gnu_properties and |
| 4146 | elf_backend_setup_gnu_properties. |
| 4147 | |
| 4148 | 2017-03-30 Pip Cet <pipcet@gmail.com> |
| 4149 | |
| 4150 | * elf32-wasm32.c: Add relocation code, two relocs. |
| 4151 | * reloc.c: Add wasm32 relocations. |
| 4152 | * libbfd.h: Regenerate. |
| 4153 | * bfd-in2.h: Regenerate. |
| 4154 | * bfd/po/bfd.pot: Regenerate. |
| 4155 | |
| 4156 | 2017-03-29 Nick Clifton <nickc@redhat.com> |
| 4157 | |
| 4158 | PR binutils/18025 |
| 4159 | * coff-bfd.h (struct coff_section_data): Add new fields: |
| 4160 | saved_bias and bias. |
| 4161 | * coffgen.c (coff_find_nearest_line_with_names): Cache the bias |
| 4162 | computed for PE binaries. |
| 4163 | * dwarf2.c (scan_unit_for_symbols): Only warn once about each |
| 4164 | missing abbrev. |
| 4165 | |
| 4166 | 2017-03-28 Hans-Peter Nilsson <hp@axis.com> |
| 4167 | |
| 4168 | PR ld/16044 |
| 4169 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT |
| 4170 | to handle a local symbol with a hash-symbol-entry; without PLT. |
| 4171 | Add BFD_ASSERT for an incidental case with GOT entry present. |
| 4172 | (cris_elf_check_relocs): Increment PLT refcount only if the symbol |
| 4173 | isn't forced-or-set local. |
| 4174 | |
| 4175 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
| 4176 | |
| 4177 | * wasm-module.c: New file to support WebAssembly modules. |
| 4178 | * wasm-module.h: New file to support WebAssembly modules. |
| 4179 | * doc/webassembly.texi: Start documenting wasm-module.c. |
| 4180 | * config.bfd: Add wasm_vec. |
| 4181 | * targets.c: Likewise. |
| 4182 | * configure.ac: Likewise. |
| 4183 | * Makefile.am: Add entries for wasm-module.c. |
| 4184 | * Makefile.in: Regenerate. |
| 4185 | * configure: Regenerate. |
| 4186 | * po/SRC-POTFILES.in: Regenerate. |
| 4187 | |
| 4188 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
| 4189 | |
| 4190 | * cpu-wasm32.c: New file to support wasm32 architecture. |
| 4191 | * elf32-wasm32.c: New file to support wasm32 architecture. |
| 4192 | * Makefile.am: Add wasm32 architecture. |
| 4193 | * archures.c: Likewise. |
| 4194 | * config.bfd: Likewise. |
| 4195 | * configure.ac: Likewise. |
| 4196 | * targets.c: Likewise. |
| 4197 | * Makefile.in: Regenerate. |
| 4198 | * bfd-in2.h: Regenerate. |
| 4199 | * configure: Regenerate. |
| 4200 | * po/SRC-POTFILES.in: Regenerate. |
| 4201 | |
| 4202 | 2017-03-20 Alan Modra <amodra@gmail.com> |
| 4203 | |
| 4204 | PR 21266 |
| 4205 | * elf64-ppc.c (compare_symbols): Stabilize sort. |
| 4206 | |
| 4207 | 2017-03-18 Alan Modra <amodra@gmail.com> |
| 4208 | |
| 4209 | * elf64-ppc.c (struct ppc_link_hash_table): Add |
| 4210 | local_ifunc_resolver and maybe_local_ifunc_resolver. |
| 4211 | (ppc_build_one_stub): Set flags on emitting dynamic |
| 4212 | relocation to ifunc. |
| 4213 | (ppc64_elf_relocate_section): Likewise. |
| 4214 | (ppc64_elf_finish_dynamic_symbol): Likewise. |
| 4215 | (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with |
| 4216 | local dynamic relocs to ifuncs. |
| 4217 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add |
| 4218 | local_ifunc_resolver and maybe_local_ifunc_resolver. |
| 4219 | (ppc_elf_relocate_section): Set flag on emitting dynamic |
| 4220 | relocation to ifuncs. |
| 4221 | (ppc_elf_finish_dynamic_symbol): Likewise. |
| 4222 | (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local |
| 4223 | dynamic relocs to ifuncs. |
| 4224 | |
| 4225 | 2017-03-13 Nick Clifton <nickc@redhat.com> |
| 4226 | |
| 4227 | PR binutils/21202 |
| 4228 | * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to |
| 4229 | BFD_RELOC_AARCH64_TLSDESC_LD64_LO12. |
| 4230 | (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to |
| 4231 | BFD_RELOC_AARCH64_TLSDESC_ADD_LO12. |
| 4232 | * bfd-in2.h: Regenerate. |
| 4233 | * libbfd.h: Regenerate. |
| 4234 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc |
| 4235 | names. |
| 4236 | (IS_AARCH64_TLSDESC_RELOC): Likewise. |
| 4237 | (elfNN_aarch64_howto_table): Likewise. |
| 4238 | (aarch64_tls_transition_without_check): Likewise. |
| 4239 | (aarch64_reloc_got_type): Likewise. |
| 4240 | (elfNN_aarch64_final_link_relocate): Likewise. |
| 4241 | (elfNN_aarch64_tls_relax): Likewise. |
| 4242 | (elfNN_aarch64_relocate_section): Likewise. |
| 4243 | (elfNN_aarch64_gc_sweep_hook): Likewise. |
| 4244 | (elfNN_aarch64_check_relocs): Likewise. |
| 4245 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. |
| 4246 | (_bfd_aarch64_elf_resolve_relocation): Likewise. |
| 4247 | |
| 4248 | 2017-03-11 Alan Modra <amodra@gmail.com> |
| 4249 | |
| 4250 | * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function |
| 4251 | parameter is in fact used. Whitespace fixes. |
| 4252 | * elf64-ppc.c: Likewise. |
| 4253 | |
| 4254 | 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk> |
| 4255 | |
| 4256 | * rs6000-core.c (CORE_NEW): Simplify macro when |
| 4257 | AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning. |
| 4258 | |
| 4259 | 2017-03-07 Alan Modra <amodra@gmail.com> |
| 4260 | |
| 4261 | PR 21224 |
| 4262 | PR 20519 |
| 4263 | * elf64-ppc.c (ppc64_elf_relocate_section): Add missing |
| 4264 | dyn_relocs check. |
| 4265 | |
| 4266 | 2017-03-05 Alan Modra <amodra@gmail.com> |
| 4267 | |
| 4268 | * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8. |
| 4269 | * elf-eh-frame.c (size_of_output_cie_fde): Don't align here. |
| 4270 | (next_cie_fde_offset): New function. |
| 4271 | (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8. |
| 4272 | (_bfd_elf_discard_section_eh_frame): Align zero terminator to |
| 4273 | four bytes. Align CIEs to four or eight bytes depending on |
| 4274 | per_encoding_aligned8. Align FDEs according to their encoding. |
| 4275 | Pad last FDE to output section alignment. |
| 4276 | (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove |
| 4277 | assertion. |
| 4278 | * elf64-ppc.c (glink_eh_frame_cie): Delete padding. |
| 4279 | (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c. |
| 4280 | (ppc64_elf_finish_dynamic_sections): Adjust to suit. |
| 4281 | |
| 4282 | 2017-03-02 Martin Bickel <binutils@ineranves.de> |
| 4283 | |
| 4284 | PR ld/21212 |
| 4285 | * elf.c (rewrite_elf_program_header): Do not issue a warning for |
| 4286 | empty segments which have a zero filesz, but a non-zero memsz. |
| 4287 | |
| 4288 | 2017-03-02 Alan Modra <amodra@gmail.com> |
| 4289 | |
| 4290 | * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo. |
| 4291 | |
| 4292 | 2017-02-28 Alan Modra <amodra@gmail.com> |
| 4293 | |
| 4294 | * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change. |
| 4295 | (ppc64_elf_relocate_section): Likewise. |
| 4296 | |
| 4297 | 2017-02-28 Alan Modra <amodra@gmail.com> |
| 4298 | |
| 4299 | PR 20995 |
| 4300 | * elf32-nios2.c (nios2_elf32_relocate_section): Use htab |
| 4301 | rather than elf32_nios2_hash_table or elf_hash_table. |
| 4302 | (create_got_section): Likewise. |
| 4303 | (nios2_elf32_finish_dynamic_symbol): Likewise. |
| 4304 | (nios2_elf32_adjust_dynamic_symbol): Likewise. |
| 4305 | (nios2_elf32_size_dynamic_sections): Likewise. |
| 4306 | (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot |
| 4307 | vars. Use htab equivalents directly instead. Don't create |
| 4308 | all dynamic sections on needing just the GOT. Use a goto |
| 4309 | rather than a fall-through with reloc test. Ensure |
| 4310 | htab->dynobj is set when making dynamic sreloc section. |
| 4311 | (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab |
| 4312 | equivalent directly instead. Don't segfault on looking for |
| 4313 | .dynamic when dynamic sections have not been created. Don't |
| 4314 | segfault on .got.plt being discarded. |
| 4315 | (nios2_elf32_size_dynamic_sections): Delete plt and got vars. |
| 4316 | Don't set "relocs" on .rela.plt. Do handle .sbss. Delete |
| 4317 | fixme and another not so relevant comment. |
| 4318 | (nios2_elf_add_symbol_hook): Delete dynobj var. If not |
| 4319 | already set, set hash table dynobj on creating .sbss. |
| 4320 | |
| 4321 | 2017-02-28 Alan Modra <amodra@gmail.com> |
| 4322 | |
| 4323 | * reloc.c (BFD_RELOC_PPC_16DX_HA): New. |
| 4324 | * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto. |
| 4325 | (ppc64_elf_reloc_type_lookup): Translate new bfd reloc. |
| 4326 | (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA. |
| 4327 | (ppc64_elf_relocate_section): Likewise. |
| 4328 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto. |
| 4329 | (ppc_elf_reloc_type_lookup): Translate new bfd reloc. |
| 4330 | (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc. |
| 4331 | * libbfd.h: Regenerate. |
| 4332 | * bfd-in2.h: Regenerate. |
| 4333 | |
| 4334 | 2017-02-28 Alan Modra <amodra@gmail.com> |
| 4335 | |
| 4336 | * elflink.c (_bfd_elf_create_dynamic_sections): Don't make |
| 4337 | dynamic .data.rel.ro read-only. |
| 4338 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section |
| 4339 | rather than section flags when deciding where copy reloc goes. |
| 4340 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. |
| 4341 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. |
| 4342 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. |
| 4343 | * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise. |
| 4344 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise. |
| 4345 | * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise. |
| 4346 | * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise. |
| 4347 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise. |
| 4348 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. |
| 4349 | * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise. |
| 4350 | * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise. |
| 4351 | * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise. |
| 4352 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. |
| 4353 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. |
| 4354 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise. |
| 4355 | * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise. |
| 4356 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. |
| 4357 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. |
| 4358 | * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise. |
| 4359 | |
| 4360 | 2017-02-28 Maciej W. Rozycki <macro@imgtec.com> |
| 4361 | |
| 4362 | * elfxx-mips.c (mips_elf_perform_relocation): Also handle the |
| 4363 | `jalr $0, $25' instruction encoding. |
| 4364 | |
| 4365 | 2017-02-27 Nick Clifton <nickc@redhat.com> |
| 4366 | |
| 4367 | PR ld/21180 |
| 4368 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid |
| 4369 | generating a seg-fault when encountering a symbol that has been |
| 4370 | deleted by garbage collection. |
| 4371 | |
| 4372 | 2017-02-25 Alan Modra <amodra@gmail.com> |
| 4373 | |
| 4374 | * elf32-arc.c (struct dynamic_sections): Delete. |
| 4375 | (enum dyn_section_types): Delete. |
| 4376 | (dyn_section_names): Delete. |
| 4377 | (arc_create_dynamic_sections): Delete. |
| 4378 | (elf_arc_finish_dynamic_sections): Don't call the above. Don't |
| 4379 | segfault on discarded .rela.plt section. |
| 4380 | (elf_arc_size_dynamic_sections): Formatting. Don't call |
| 4381 | arc_create_dynamic_sections. Don't allocate memory for sections |
| 4382 | handled by the generic linker. Correct code finding relocs in |
| 4383 | read-only sections. Set SEC_EXCLUDE on zero size .got, |
| 4384 | .got.plt, and .dynbss sections. Do set .interp for pies. |
| 4385 | |
| 4386 | 2017-02-24 Andrew Waterman <andrew@sifive.com> |
| 4387 | |
| 4388 | * elfnn-riscv.c (GP_NAME): New macro. |
| 4389 | (riscv_global_pointer_value): Use it. |
| 4390 | (_bfd_riscv_relax_lui): If symbol and global pointer are in same |
| 4391 | output section, consider only that section's alignment. |
| 4392 | |
| 4393 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
| 4394 | |
| 4395 | * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype. |
| 4396 | * elfxx-mips.c (_bfd_mips_relax_section): Remove function. |
| 4397 | * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro. |
| 4398 | * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise. |
| 4399 | |
| 4400 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
| 4401 | |
| 4402 | * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR> |
| 4403 | <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p' |
| 4404 | or misaligned. |
| 4405 | |
| 4406 | 2017-02-23 Alan Modra <amodra@gmail.com> |
| 4407 | |
| 4408 | PR 20744 |
| 4409 | * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE |
| 4410 | 16D relocations. |
| 4411 | (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs. |
| 4412 | (ppc_elf_relocate_section): Correct calculation for VLE SDAREL |
| 4413 | relocs. |
| 4414 | |
| 4415 | 2017-02-22 Maciej W. Rozycki <macro@imgtec.com> |
| 4416 | |
| 4417 | PR ld/20828 |
| 4418 | * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version |
| 4419 | processing ahead of the call to `elf_gc_sweep_symbol'. |
| 4420 | |
| 4421 | 2017-02-22 Nick Clifton <nickc@redhat.com> |
| 4422 | |
| 4423 | PR binutils/21193 |
| 4424 | * opncls.c (bfd_create_gnu_debuglink_section): Give the newly |
| 4425 | created section 4-byte alignment. |
| 4426 | |
| 4427 | 2017-02-22 Alan Modra <amodra@gmail.com> |
| 4428 | |
| 4429 | * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault |
| 4430 | on .got or .plt output section being discarded by script. |
| 4431 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move |
| 4432 | vxworks splt temp. |
| 4433 | |
| 4434 | 2017-02-21 Alan Modra <amodra@gmail.com> |
| 4435 | |
| 4436 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit |
| 4437 | DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero. |
| 4438 | |
| 4439 | 2017-02-20 Alan Modra <amodra@gmail.com> |
| 4440 | |
| 4441 | PR 21181 |
| 4442 | * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero |
| 4443 | if DT_RELSZ/DT_RELASZ is zero. |
| 4444 | |
| 4445 | 2017-02-17 Nick Clifton <nickc@redhat.com> |
| 4446 | |
| 4447 | * compress.c (bfd_get_full_section_contents): Remember to reduce |
| 4448 | compressed size by the sizeof the compression header when |
| 4449 | decompressing the contents. |
| 4450 | |
| 4451 | 2017-02-17 Pedro Alves <palves@redhat.com> |
| 4452 | |
| 4453 | * srec.c (Chunk): Rename to ... |
| 4454 | (_bfd_srec_len): ... this. |
| 4455 | (S3Forced): Rename to ... |
| 4456 | (_bfd_srec_forceS3): ... this. |
| 4457 | * objcopy.c: Adjust all references. |
| 4458 | |
| 4459 | 2017-02-17 Pedro Alves <palves@redhat.com> |
| 4460 | |
| 4461 | * archive.c (bsd_write_armap): Rename to ... |
| 4462 | (_bfd_bsd_write_armap): ... this. |
| 4463 | (coff_write_armap): Rename to ... |
| 4464 | (_bfd_coff_write_armap): ... this. |
| 4465 | * libbfd-in.h (bsd_write_armap): Rename to ... |
| 4466 | (_bfd_bsd_write_armap): ... this. |
| 4467 | (coff_write_armap): Rename to ... |
| 4468 | (_bfd_coff_write_armap): ... this. |
| 4469 | * aout-target.h, aout-tic30.c: Adjust all users. |
| 4470 | * libbfd.h: Regenerate. |
| 4471 | |
| 4472 | 2017-02-17 Pedro Alves <palves@redhat.com> |
| 4473 | |
| 4474 | * bfd-in.h (bfd_read, bfd_write): Adjust to rename. |
| 4475 | (warn_deprecated): Rename to ... |
| 4476 | (_bfd_warn_deprecated): ... this. |
| 4477 | * libbfd.c (warn_deprecated): Rename to ... |
| 4478 | (_bfd_warn_deprecated): ... this. |
| 4479 | * bfd-in2.h: Regenerate. |
| 4480 | |
| 4481 | 2017-02-17 Pedro Alves <palves@redhat.com> |
| 4482 | |
| 4483 | * bfdio.c (real_ftell): Rename to ... |
| 4484 | (_bfd_real_ftell): ... this. |
| 4485 | (real_fseek): Rename to ... |
| 4486 | (_bfd_real_fseek): ... this. |
| 4487 | (real_fopen): Rename to ... |
| 4488 | (_bfd_real_fopen): ... this. |
| 4489 | * libbfd-in.h (real_ftell): Rename to ... |
| 4490 | (_bfd_real_ftell): ... this. |
| 4491 | (real_fseek): Rename to ... |
| 4492 | (_bfd_real_fseek): ... this. |
| 4493 | (real_fopen): Rename to ... |
| 4494 | (_bfd_real_fopen): ... this. |
| 4495 | * cache.c, dwarf2.c, opncls.c: Adjust all callers. |
| 4496 | * libbfd.h: Regenerate. |
| 4497 | |
| 4498 | 2017-02-17 Pedro Alves <palves@redhat.com> |
| 4499 | |
| 4500 | * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers. |
| 4501 | * libbfd.c (read_unsigned_leb128): Rename to ... |
| 4502 | (_bfd_read_unsigned_leb128): ... this. |
| 4503 | (read_signed_leb128): Rename to ... |
| 4504 | (_bfd_read_signed_leb128): ... this. |
| 4505 | (safe_read_leb128): Rename to ... |
| 4506 | (_bfd_safe_read_leb128): ... this. |
| 4507 | * libbfd-in.h (read_unsigned_leb128): Rename to ... |
| 4508 | (_bfd_read_unsigned_leb128): ... this. |
| 4509 | (read_signed_leb128): Rename to ... |
| 4510 | (_bfd_read_signed_leb128): ... this. |
| 4511 | (safe_read_leb128): Rename to ... |
| 4512 | (_bfd_safe_read_leb128): ... this. |
| 4513 | * libbfd.h: Renegerate. |
| 4514 | |
| 4515 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4516 | |
| 4517 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup |
| 4518 | before trying to fine matching file and line information. |
| 4519 | |
| 4520 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4521 | |
| 4522 | * dwarf2.c (struct dwarf2_debug): Add orig_bfd member. |
| 4523 | (_bfd_dwarf2_slurp_debug_info): If stashed debug information does |
| 4524 | not match current bfd, then reload debug information. Record bfd |
| 4525 | we're loading debug info for in the stash. If we have debug |
| 4526 | informatin in the cache then perform section placement before |
| 4527 | returning. |
| 4528 | |
| 4529 | 2017-02-16 Alan Modra <amodra@gmail.com> |
| 4530 | |
| 4531 | PR 21000 |
| 4532 | * elf-bfd.h (struct elf_backend_data): Add no_page_alias. |
| 4533 | * elfxx-target.h (elf_backend_no_page_alias): Define. |
| 4534 | (elfNN_bed): Init new field. |
| 4535 | * elf.c (assign_file_positions_for_load_sections): If no_page_alias |
| 4536 | ensure PT_LOAD segment starts on a new page. |
| 4537 | * elf32-hppa.c (elf_backend_no_page_alias): Define. |
| 4538 | |
| 4539 | 2017-02-16 Alan Modra <amodra@gmail.com> |
| 4540 | |
| 4541 | PR 21132 |
| 4542 | * elf32-hppa.c (allocate_plt_static): Allocate space for relocs |
| 4543 | if pic. |
| 4544 | |
| 4545 | 2017-02-16 Jiong Wang <jiong.wang@arm.com> |
| 4546 | |
| 4547 | * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED. |
| 4548 | * bfd-in2.h: Regenerated. |
| 4549 | |
| 4550 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
| 4551 | |
| 4552 | PR ld/21168 |
| 4553 | * elf32-i386.c (elf_i386_relocate_section): Allow |
| 4554 | "lea foo@GOT, %reg" in PIC. |
| 4555 | |
| 4556 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
| 4557 | |
| 4558 | PR ld/20244 |
| 4559 | * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC |
| 4560 | symbol name when reporting R_386_GOT32/R_386_GOT32X relocation |
| 4561 | error against local IFUNC symbol without a base register for |
| 4562 | PIC. |
| 4563 | |
| 4564 | 2017-02-15 Maciej W. Rozycki <macro@imgtec.com> |
| 4565 | |
| 4566 | * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than |
| 4567 | `%P: %H:' with `info->callbacks->einfo'. |
| 4568 | (ppc_elf_relocate_section): Likewise. |
| 4569 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. |
| 4570 | (ppc64_elf_edit_toc): Likewise. |
| 4571 | (ppc64_elf_relocate_section): Likewise. |
| 4572 | |
| 4573 | 2017-02-14 Alan Modra <amodra@gmail.com> |
| 4574 | |
| 4575 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support |
| 4576 | --gc-keep-exported, and test versioned field of sym rather than |
| 4577 | looking for @ in name. |
| 4578 | |
| 4579 | 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com> |
| 4580 | |
| 4581 | * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to |
| 4582 | __global_pointer$. |
| 4583 | |
| 4584 | 2017-02-13 Nick Clifton <nickc@redhat.com> |
| 4585 | |
| 4586 | PR binutils/21151 |
| 4587 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid |
| 4588 | unit length field. |
| 4589 | |
| 4590 | 2017-02-07 Andrew Waterman <andrew@sifive.com> |
| 4591 | |
| 4592 | * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT |
| 4593 | entry size if PLT header is written. |
| 4594 | |
| 4595 | 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com> |
| 4596 | |
| 4597 | Fix sparc64 dynamic relocation processing to use the dynamic |
| 4598 | symbol count. |
| 4599 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic' |
| 4600 | to determine if bfd_get_symcount() or bfd_get_dynamic_symcount() |
| 4601 | should be used. |
| 4602 | |
| 4603 | 2017-02-03 Nick Clifton <nickc@redhat.com> |
| 4604 | |
| 4605 | PR 21096 |
| 4606 | * coffcode.h (coff_write_object_contents): Enlarge size of |
| 4607 | s_name_buf in order to avoid compile time warning about possible |
| 4608 | integer truncation. |
| 4609 | * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower |
| 4610 | 32-bits of insn value before printing into buffer. |
| 4611 | |
| 4612 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
| 4613 | |
| 4614 | * elfxx-mips.c (mips_elf_hash_sort_data): Add |
| 4615 | `max_local_dynindx'. |
| 4616 | (mips_elf_sort_hash_table): Handle it. |
| 4617 | (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local |
| 4618 | symbols bump up `max_local_dynindx' rather than |
| 4619 | `max_non_got_dynindx'. |
| 4620 | |
| 4621 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
| 4622 | |
| 4623 | * elfxx-mips.c (mips_elf_hash_sort_data): Convert the |
| 4624 | `min_got_dynindx', `max_unref_got_dynindx' and |
| 4625 | `max_non_got_dynindx' members to the `bfd_size_type' data type. |
| 4626 | (mips_elf_sort_hash_table): Adjust accordingly. |
| 4627 | |
| 4628 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
| 4629 | |
| 4630 | * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout |
| 4631 | to access the hash table. |
| 4632 | |
| 4633 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
| 4634 | |
| 4635 | * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on |
| 4636 | non-NULL `htab' to the beginning. |
| 4637 | |
| 4638 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
| 4639 | |
| 4640 | * elflink.c (elf_gc_sweep): Wrap overlong line. |
| 4641 | |
| 4642 | 2017-01-30 Maciej W. Rozycki <macro@imgtec.com> |
| 4643 | |
| 4644 | * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to... |
| 4645 | (_bfd_mips_elf_linker_flags): ... this. Add another parameter. |
| 4646 | * elfxx-mips.c (mips_elf_link_hash_table): Add |
| 4647 | `ignore_branch_isa' member. |
| 4648 | (mips_elf_perform_relocation): Do not treat an ISA mode mismatch |
| 4649 | in branch relocation calculation as an error if |
| 4650 | `ignore_branch_isa' has been set. |
| 4651 | (_bfd_mips_elf_insn32): Rename to... |
| 4652 | (_bfd_mips_elf_linker_flags): ... this. Rename the `on' |
| 4653 | parameter to `insn32' and add an `ignore_branch_isa' parameter. |
| 4654 | Handle the new parameter. |
| 4655 | |
| 4656 | 2017-01-27 Hans-Peter Nilsson <hp@axis.com> |
| 4657 | |
| 4658 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused |
| 4659 | local variable dynobj. |
| 4660 | |
| 4661 | PR ld/20995 |
| 4662 | * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro. |
| 4663 | (elf_cris_adjust_dynamic_symbol): Place variables copied into the |
| 4664 | executable from read-only sections into sdynrelro. |
| 4665 | (elf_cris_finish_dynamic_symbol): Select sreldynrelro for |
| 4666 | dynamic relocs in sdynrelro. |
| 4667 | (elf_backend_want_dynrelro): Define. |
| 4668 | |
| 4669 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
| 4670 | |
| 4671 | * config.bfd (*-*-rtemsaout*): Mark as removed. |
| 4672 | |
| 4673 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
| 4674 | |
| 4675 | * config.bfd (powerpcle-*-rtems*): Do not mark as removed. |
| 4676 | (arm-*-rtems*): Move to (arm*-*-eabi*). |
| 4677 | (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*). |
| 4678 | (m68-*-rtems*): Move to (m68*-*-elf*). |
| 4679 | |
| 4680 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
| 4681 | |
| 4682 | * config.bfd (*-*-rtemscoff*): Mark as removed. |
| 4683 | |
| 4684 | 2017-01-24 Maciej W. Rozycki <macro@imgtec.com> |
| 4685 | |
| 4686 | PR ld/20828 |
| 4687 | * elflink.c (bfd_elf_record_link_assignment): Revert last |
| 4688 | change and don't ever clear `forced_local'. Set `mark' |
| 4689 | unconditionally. |
| 4690 | (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within |
| 4691 | file. |
| 4692 | (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'... |
| 4693 | (bfd_elf_size_dynamic_sections): ... here. |
| 4694 | * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local' |
| 4695 | and set `mark' instead in `__tls_get_addr_opt' processing. |
| 4696 | * elf64-ppc.c (ppc64_elf_tls_setup): Likewise. |
| 4697 | |
| 4698 | 2017-01-24 Alan Modra <amodra@gmail.com> |
| 4699 | |
| 4700 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases |
| 4701 | where dynamic relocs are preferable. Allow ifunc too. |
| 4702 | (ensure_undefweak_dynamic): New function. |
| 4703 | (allocate_dynrelocs): Use it here. Move plt handling last and |
| 4704 | don't make symbols dynamic, simplifying loop. Only make undef |
| 4705 | weak symbols with GOT entries dynamic. Correct condition |
| 4706 | for GOT relocs. Handle dynamic relocs on ifuncs. Correct |
| 4707 | comments. Remove goto. |
| 4708 | (ppc_elf_relocate_section): Correct test for using dynamic |
| 4709 | symbol on GOT relocs. Rearrange test for emitting GOT relocs |
| 4710 | to suit. Set up explicit tls_index entries and implicit GOT |
| 4711 | tls_index entries resolvable at link time for |
| 4712 | __tls_get_addr_opt. Simplify test to clear mem for prelink. |
| 4713 | * elf64-ppc.c (allocate_got): Correct condition for GOT relocs. |
| 4714 | (ensure_undefweak_dynamic): New function. |
| 4715 | (allocate_dynrelocs): Use it here. Only make undef weak symbols |
| 4716 | with GOT entries dynamic. Remove unnecessary test of |
| 4717 | WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling. |
| 4718 | (ppc64_elf_relocate_section): Correct test for using dynamic |
| 4719 | symbol on GOT relocs. Rearrange test for emitting GOT relocs |
| 4720 | to suit. Set up explicit tls_index entries and implicit GOT |
| 4721 | tls_index entries resolvable at link time for __tls_get_addr_opt. |
| 4722 | Simplify expression to clear mem for prelink. |
| 4723 | |
| 4724 | 2017-01-23 Yury Norov <ynorov@caviumnetworks.com> |
| 4725 | |
| 4726 | * elfnn-aarch64.c: Fix relaxations for ILP32 mode. |
| 4727 | |
| 4728 | 2017-01-20 Jiong Wang <jiong.wang@arm.com> |
| 4729 | |
| 4730 | * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function. |
| 4731 | (elf_backend_hash_symbol): Define. |
| 4732 | |
| 4733 | 2017-01-18 Maciej W. Rozycki <macro@imgtec.com> |
| 4734 | |
| 4735 | PR ld/20828 |
| 4736 | * elflink.c (bfd_elf_record_link_assignment): Clear any |
| 4737 | `forced_local' marking for DSO symbols that are not being |
| 4738 | provided. |
| 4739 | |
| 4740 | 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
| 4741 | |
| 4742 | * elfnn-riscv.c (riscv_elf_object_p): New function. |
| 4743 | |
| 4744 | 2017-01-12 H.J. Lu <hongjiu.lu@intel.com> |
| 4745 | |
| 4746 | PR ld/21038 |
| 4747 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add |
| 4748 | plt_bnd_eh_frame. |
| 4749 | (elf_x86_64_check_relocs): Create .eh_frame section for the |
| 4750 | .plt.bnd section. |
| 4751 | (elf_x86_64_size_dynamic_sections): Allocate and initialize |
| 4752 | .eh_frame section for the .plt.bnd section. |
| 4753 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section |
| 4754 | for the .plt.bnd section. |
| 4755 | |
| 4756 | 2017-01-12 Nick Clifton <nickc@redhat.com> |
| 4757 | |
| 4758 | PR binutils/20876 |
| 4759 | * opncls.c (find_separate_debug_file): Add include_dirs |
| 4760 | parameter. Only include the directory part of the bfd's filename |
| 4761 | in search paths if include_dirs is true. Add a couple of extra |
| 4762 | locations for looking for debug files. |
| 4763 | ( bfd_follow_gnu_debuglink): Update invocation of |
| 4764 | find_separate_debug_file. |
| 4765 | (bfd_follow_gnu_debugaltlink): Likewise. |
| 4766 | (get_build_id): New function: Finds the build-id of the given bfd. |
| 4767 | (get_build_id_name): New function: Computes the name of the |
| 4768 | separate debug info file for a bfd, based upon its build-id. |
| 4769 | (check_build_id_file): New function: Checks to see if a separate |
| 4770 | debug info file exists at the given location, and that its |
| 4771 | build-id matches that of the original bfd. |
| 4772 | (bfd_follow_build_id_debuglink): New function: Finds a separate |
| 4773 | debug info file for a given bfd by using the build-id method. |
| 4774 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id |
| 4775 | method of locating a separate debug info file before using the |
| 4776 | debuglink method. |
| 4777 | * bfd-in2.h: Regenerate. |
| 4778 | |
| 4779 | 2017-01-11 H.J. Lu <hongjiu.lu@intel.com> |
| 4780 | |
| 4781 | PR ld/21038 |
| 4782 | * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New. |
| 4783 | (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and |
| 4784 | elf_x86_64_eh_frame_plt_got. |
| 4785 | (elf_x86_64_size_dynamic_sections): Get unwind info from |
| 4786 | elf_x86_64_bnd_arch_bed for the BND PLT. |
| 4787 | |
| 4788 | 2017-01-11 Jeremy Soller <jackpot51@gmail.com> |
| 4789 | |
| 4790 | * config.bfd: Add entries for i686-redox and x86_64-redox. |
| 4791 | |
| 4792 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
| 4793 | |
| 4794 | * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section |
| 4795 | to 4 bytes. |
| 4796 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align |
| 4797 | .eh_frame section to 4 bytes for x32. |
| 4798 | (elf_x86_64_check_relocs): Likewise. |
| 4799 | |
| 4800 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
| 4801 | |
| 4802 | PR ld/20830 |
| 4803 | * elf32-i386.c (elf_i386_eh_frame_plt_got): New. |
| 4804 | (PLT_GOT_FDE_LENGTH): Likewise. |
| 4805 | (elf_i386_plt_layout): Add eh_frame_plt_got and |
| 4806 | eh_frame_plt_got_size. |
| 4807 | (elf_i386_plt): Updated. |
| 4808 | (elf_i386_link_hash_table): Add plt_got_eh_frame. |
| 4809 | (elf_i386_check_relocs): Create .eh_frame section for .plt.got. |
| 4810 | (elf_i386_size_dynamic_sections): Allocate and initialize |
| 4811 | .eh_frame section for .plt.got. |
| 4812 | (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for |
| 4813 | .plt.got. |
| 4814 | (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and |
| 4815 | eh_frame_plt_got_size. |
| 4816 | * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New. |
| 4817 | (PLT_GOT_FDE_LENGTH): Likewise. |
| 4818 | (elf_x86_64_backend_data): Add eh_frame_plt_got and |
| 4819 | eh_frame_plt_got_size. |
| 4820 | (elf_x86_64_arch_bed): Updated. |
| 4821 | (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and |
| 4822 | eh_frame_plt_got_size. |
| 4823 | (elf_x86_64_nacl_arch_bed): Likewise. |
| 4824 | (elf_x86_64_link_hash_table): Add plt_got_eh_frame. |
| 4825 | (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got. |
| 4826 | (elf_x86_64_size_dynamic_sections): Allocate and initialize |
| 4827 | .eh_frame section for .plt.got. |
| 4828 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section |
| 4829 | for .plt.got. |
| 4830 | |
| 4831 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
| 4832 | |
| 4833 | * elf32-i386.c (elf_i386_size_dynamic_sections): Set |
| 4834 | plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt. |
| 4835 | |
| 4836 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
| 4837 | |
| 4838 | * dwarf2.c (lookup_address_in_function_table): Return early if |
| 4839 | there are no functions in the given comp unit, or if the high |
| 4840 | address of the last function in the comp unit is less than the |
| 4841 | desired address. |
| 4842 | |
| 4843 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
| 4844 | |
| 4845 | PR binutils/21013 |
| 4846 | * coffgen.c (_bfd_coff_get_external_symbols): Generate an error |
| 4847 | message if there are too many symbols to load. |
| 4848 | |
| 4849 | 2017-01-04 James Clarke <jrtc27@jrtc27.com> |
| 4850 | |
| 4851 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free |
| 4852 | if relocs are cached. |
| 4853 | |
| 4854 | 2017-01-03 Rich Felker <bugdal@aerifal.cx> |
| 4855 | |
| 4856 | PR ld/21017 |
| 4857 | * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry |
| 4858 | for R_MICROBLAZE_GOTOFF_64. |
| 4859 | |
| 4860 | 2017-01-03 Nick Clifton <nickc@redhat.com> |
| 4861 | |
| 4862 | * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time |
| 4863 | warning about using a possibly uninitialised variable. |
| 4864 | |
| 4865 | 2017-01-02 Alan Modra <amodra@gmail.com> |
| 4866 | |
| 4867 | * elf32-hppa.c (ensure_undef_weak_dynamic): New function. |
| 4868 | (allocate_plt_static, allocate_dynrelocs): Use it. |
| 4869 | |
| 4870 | 2017-01-02 Alan Modra <amodra@gmail.com> |
| 4871 | |
| 4872 | * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for |
| 4873 | .PARISC.unwind section. |
| 4874 | |
| 4875 | 2017-01-02 Alan Modra <amodra@gmail.com> |
| 4876 | |
| 4877 | PR ld/20989 |
| 4878 | * elfxx-sparc.c (gdop_relative_offset_ok): New function. |
| 4879 | (_bfd_sparc_elf_relocate_section): Use it to validate GOT |
| 4880 | indirect to GOT pointer relative code edit. |
| 4881 | |
| 4882 | 2017-01-02 Alan Modra <amodra@gmail.com> |
| 4883 | |
| 4884 | Update year range in copyright notice of all files. |
| 4885 | |
| 4886 | For older changes see ChangeLog-2016 |
| 4887 | \f |
| 4888 | Copyright (C) 2017 Free Software Foundation, Inc. |
| 4889 | |
| 4890 | Copying and distribution of this file, with or without modification, |
| 4891 | are permitted in any medium without royalty provided the copyright |
| 4892 | notice and this notice are preserved. |
| 4893 | |
| 4894 | Local Variables: |
| 4895 | mode: change-log |
| 4896 | left-margin: 8 |
| 4897 | fill-column: 74 |
| 4898 | version-control: never |
| 4899 | End: |