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