| 1 |
2020-09-19 Nick Clifton <[email protected]> |
| 2 |
|
| 3 |
This is the 2.35.1 point release. |
| 4 |
|
| 5 |
* development.sh (development): Set to false. |
| 6 |
* version.m4: Set to 2.35.1. |
| 7 |
* configure: Regenerate. |
| 8 |
* po/bfd.pot: Regenerate. |
| 9 |
|
| 10 |
2020-09-15 Hans-Peter Nilsson <[email protected]> |
| 11 |
|
| 12 |
Backport from mainline: |
| 13 |
PR ld/26589 |
| 14 |
* elf32-cris.c (cris_elf_check_relocs): Add missing NULL check |
| 15 |
on argument before calling UNDEFWEAK_NO_DYNAMIC_RELOC. |
| 16 |
|
| 17 |
2020-09-10 Alan Modra <[email protected]> |
| 18 |
|
| 19 |
Apply from master |
| 20 |
2020-08-24 Alan Modra <[email protected]> |
| 21 |
* elf32-ppc.c (ppc_elf_check_relocs): Set has_tls_reloc for |
| 22 |
high part tprel16 relocs. |
| 23 |
(ppc_elf_tls_optimize): Sanity check high part tprel16 relocs. |
| 24 |
Clear do_tls_opt on odd instructions. |
| 25 |
(ppc_elf_relocate_section): Move TPREL16_HA/LO optimisation later. |
| 26 |
Don't sanity check them here. |
| 27 |
* elf64-ppc.c (ppc64_elf_check_relocs): Set has_tls_reloc for |
| 28 |
high part tprel16 relocs. |
| 29 |
(ppc64_elf_tls_optimize): Sanity check high part tprel16 relocs. |
| 30 |
Clear do_tls_opt on odd instructions. |
| 31 |
(ppc64_elf_relocate_section): Don't sanity check TPREL16_HA. |
| 32 |
|
| 33 |
2020-09-03 Nick Clifton <[email protected]> |
| 34 |
|
| 35 |
Backport from mainline: |
| 36 |
2020-08-20 Nick Clifton <[email protected]> |
| 37 |
|
| 38 |
PR 26406 |
| 39 |
* elf-bfd.h (struct bfd_elf_section_data): Add |
| 40 |
has_secondary_relocs field. |
| 41 |
* elf.c (_bfd_elf_copy_special_section_fields): Set the |
| 42 |
has_secondary_relocs field for sections which have associated |
| 43 |
secondary relocs. |
| 44 |
* elfcode.h (elf_write_relocs): Only call write_secondary_relocs |
| 45 |
on sections which have associated secondary relocs. |
| 46 |
|
| 47 |
2020-08-26 David Faust <[email protected]> |
| 48 |
|
| 49 |
* archures.c (bfd_mach_xbpf): Define. |
| 50 |
* bfd-in2.h: Regenerate. |
| 51 |
* cpu-bpf.c (bfd_xbpf_arch) New. |
| 52 |
(bfd_bpf_arch) Update next in list field to point to xbpf arch. |
| 53 |
|
| 54 |
2020-08-25 Nick Clifton <[email protected]> |
| 55 |
|
| 56 |
Backport from the mainline: |
| 57 |
2020-08-25 Mark Wielaard <[email protected]> |
| 58 |
|
| 59 |
* dwarf2.c (struct dwarf2_debug_file): Add dwarf_rnglists_buffer |
| 60 |
and dwarf_rnglists_size fields. |
| 61 |
(dwarf_debug_sections): Add debug_rnglists. |
| 62 |
(dwarf_debug_section_enum): Likewise. |
| 63 |
(read_debug_rnglists): New function. |
| 64 |
(read_rangelist): New function to call either read_ranges or |
| 65 |
read_rnglists. Rename original function to... |
| 66 |
(read_ranges): ...this. |
| 67 |
(read_rnglists): New function. |
| 68 |
|
| 69 |
2020-08-24 Mark Wielaard <[email protected]> |
| 70 |
|
| 71 |
* dwarf2.c (read_attribute_value): Handle DW_FORM_data16. |
| 72 |
(read_formatted_entries): Likewise. And skip zero entry. |
| 73 |
|
| 74 |
2020-08-15 Alan Modra <[email protected]> |
| 75 |
|
| 76 |
PR 26389 |
| 77 |
* syms.c (bfd_decode_symclass): Choose 'c' for commons only when |
| 78 |
SEC_SMALL_DATA. |
| 79 |
* elf32-m32r.c (_bfd_m32r_elf_symbol_processing): Set SEC_SMALL_DATA |
| 80 |
on small common section. |
| 81 |
* elf32-score.c (s3_bfd_score_elf_symbol_processing): Likewise. |
| 82 |
* elf32-score7.c (s7_bfd_score_elf_symbol_processing): Likewise. |
| 83 |
* elf32-tic6x.c (elf32_tic6x_symbol_processing): Likewise. |
| 84 |
* elf32-v850.c (v850_elf_symbol_processing): Likewise. |
| 85 |
* elfxx-mips.c (_bfd_mips_elf_symbol_processing): Likewise. |
| 86 |
* ecoff.c (ecoff_set_symbol_info, ecoff_link_add_externals): Likewise. |
| 87 |
|
| 88 |
2020-08-12 Nick Clifton <[email protected]> |
| 89 |
|
| 90 |
* po/ru.po: Updated Russian translation. |
| 91 |
* po/sr.po: Updated Serbian translation. |
| 92 |
|
| 93 |
2020-08-07 David Faust <[email protected]> |
| 94 |
|
| 95 |
* elf64-bpf.c (bpf_elf_relocate_section): Ensure signed division for |
| 96 |
DISP16 and DISP32 relocations. |
| 97 |
|
| 98 |
2020-08-05 David Faust <[email protected]> |
| 99 |
|
| 100 |
* elf64-bpf.c (bpf_elf_generic_reloc): New function. |
| 101 |
(bpf_elf_howto_table): Use it here. |
| 102 |
(bpf_elf_relocate_section): Use addends recorded in input_bfd for |
| 103 |
instruction and data relocations. |
| 104 |
|
| 105 |
2020-07-30 Szabolcs Nagy <[email protected]> |
| 106 |
|
| 107 |
PR ld/26312 |
| 108 |
* elfnn-aarch64.c (elfNN_aarch64_init_small_plt0_entry): Set sh_entsize |
| 109 |
to 0. |
| 110 |
(elfNN_aarch64_finish_dynamic_sections): Remove sh_entsize setting. |
| 111 |
|
| 112 |
2020-07-24 Nick Clifton <[email protected]> |
| 113 |
|
| 114 |
* version.m4: Set to 2.35.0 |
| 115 |
* development.sh (development): Set to true. |
| 116 |
* configure: Regenerate. |
| 117 |
|
| 118 |
2020-07-24 Nick Clifton <[email protected]> |
| 119 |
|
| 120 |
2.35 Release: |
| 121 |
* version.m4: Set to 2.35 |
| 122 |
* development.sh (development): Set to false. |
| 123 |
(experimental): Set to false. |
| 124 |
* configure: Regenerate. |
| 125 |
* po/bfd/pot: Regenerate. |
| 126 |
|
| 127 |
2020-07-19 Alan Modra <[email protected]> |
| 128 |
|
| 129 |
* elf64-ppc.c (struct ppc_link_hash_table): Add has_power10_relocs. |
| 130 |
(select_alt_stub): New function. |
| 131 |
(ppc_get_stub_entry): Use it here. |
| 132 |
(ppc64_elf_check_relocs): Set had_power10_relocs rather than |
| 133 |
power10_stubs. |
| 134 |
(ppc64_elf_size_stubs): Clear power10_stubs here instead. Don't |
| 135 |
merge notoc stubs with other varieties when power10_stubs is "auto". |
| 136 |
Instead dup the stub hash table entry. |
| 137 |
(plt_stub_size, ppc_build_one_stub, ppc_size_one_stub): Adjust |
| 138 |
tests of power10_stubs. |
| 139 |
|
| 140 |
2020-07-15 Hans-Peter Nilsson <[email protected]> |
| 141 |
|
| 142 |
* elf64-mmix.c (mmix_elf_relax_section): Improve accounting for |
| 143 |
R_MMIX_PUSHJ_STUBBABLE relocs against undefined symbols. |
| 144 |
|
| 145 |
2020-07-15 Nick Clifton <[email protected]> |
| 146 |
|
| 147 |
PR26240 |
| 148 |
* coffgen.c (coff_get_normalized_symtab): Fix off-by-one error in |
| 149 |
check for aux entries that overflow the buufer. |
| 150 |
|
| 151 |
2020-07-10 Alan Modra <[email protected]> |
| 152 |
|
| 153 |
* elf64-ppc.h (struct ppc64_elf_params): Add power10_stubs. |
| 154 |
* elf64-ppc.c (struct ppc_link_hash_table): Delete |
| 155 |
power10_stubs. |
| 156 |
(ppc64_elf_check_relocs): Adjust setting of power10_stubs. |
| 157 |
(plt_stub_size, ppc_build_one_stub, ppc_size_one_stub): Adjust |
| 158 |
uses of power10_stubs. |
| 159 |
|
| 160 |
2020-07-09 Nick Clifton <[email protected]> |
| 161 |
|
| 162 |
* po/fr.po: Updated French translation. |
| 163 |
|
| 164 |
2020-07-06 Nick Clifton <[email protected]> |
| 165 |
|
| 166 |
* po/pt.po: Updated Portuguese translation. |
| 167 |
* po/uk.po: Updated Ukranian translation. |
| 168 |
|
| 169 |
2020-07-04 Nick Clifton <[email protected]> |
| 170 |
|
| 171 |
* version.m4: Set version to 2.34.90. |
| 172 |
* configure: Regenerate. |
| 173 |
* po/bfd.pot: Regenerate. |
| 174 |
|
| 175 |
22020-07-04 Nick Clifton <[email protected]> |
| 176 |
|
| 177 |
Binutils 2.35 branch created. |
| 178 |
|
| 179 |
2020-07-01 Alan Modra <[email protected]> |
| 180 |
|
| 181 |
PR 26188 |
| 182 |
* coffgen.c (coff_find_nearest_line_with_names): Sanity check |
| 183 |
raw syment index before dereferencing. |
| 184 |
|
| 185 |
2020-07-01 Alan Modra <[email protected]> |
| 186 |
|
| 187 |
* elf32-i386.c (elf_backend_object_p): Undef for vxworks. |
| 188 |
|
| 189 |
2020-07-01 Alan Modra <[email protected]> |
| 190 |
|
| 191 |
* config.bfd: Obsolete xc16x. |
| 192 |
|
| 193 |
2020-06-30 H.J. Lu <[email protected]> |
| 194 |
|
| 195 |
* archures.c (bfd_mach_i386_nacl): Removed. |
| 196 |
(bfd_mach_i386_i386_nacl): Likewise. |
| 197 |
(bfd_mach_x86_64_nacl): Likewise. |
| 198 |
(bfd_mach_x64_32_nacl): Likewise. |
| 199 |
* config.bfd: Remove *-*-nacl* targets. |
| 200 |
* configure.ac: Remove x86 NaCl target vectors. |
| 201 |
* cpu-i386.c (bfd_arch_i386_onebyte_nop_fill): Removed. |
| 202 |
(bfd_x64_32_nacl_arch): Likewise. |
| 203 |
(bfd_x86_64_nacl_arch): Likewise. |
| 204 |
(bfd_i386_nacl_arch): Likewise. |
| 205 |
(bfd_x64_32_arch_intel_syntax): Updated. |
| 206 |
* elf32-i386.c: Don't include "elf-nacl.h". |
| 207 |
(elf_i386_nacl_plt): Removed. |
| 208 |
(elf_i386_nacl_plt0_entry): Likewise. |
| 209 |
(elf_i386_nacl_plt_entry): Likewise. |
| 210 |
(elf_i386_nacl_pic_plt0_entry): Likewise. |
| 211 |
(elf_i386_nacl_pic_plt_entry): Likewise. |
| 212 |
(elf_i386_nacl_eh_frame_plt): Likewise. |
| 213 |
(elf_i386_nacl_plt): Likewise. |
| 214 |
(elf32_i386_nacl_elf_object_p): Likewise. |
| 215 |
(elf_i386_get_synthetic_symtab): Updated. |
| 216 |
(elf_i386_link_setup_gnu_properties): Likewise. |
| 217 |
* elf64-x86-64.c: Don't include "elf-nacl.h". |
| 218 |
(elf_x86_64_nacl_plt): Removed. |
| 219 |
(elf64_x86_64_nacl_elf_object_p): Likewise. |
| 220 |
(elf_x86_64_nacl_plt0_entry): Likewise. |
| 221 |
(elf_x86_64_nacl_plt_entry): Likewise. |
| 222 |
(elf_x86_64_nacl_eh_frame_plt): Likewise. |
| 223 |
(elf_x86_64_nacl_plt): Likewise. |
| 224 |
(elf32_x86_64_nacl_elf_object_p): Likewise. |
| 225 |
(elf_x86_64_get_synthetic_symtab): Updated. |
| 226 |
(elf_x86_64_link_setup_gnu_properties): Likewise. |
| 227 |
* elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Likewise. |
| 228 |
* targets.c: Remove x86 NaCl target vectors. |
| 229 |
* bfd-in2.h: Regenerated. |
| 230 |
* configure: Likewise. |
| 231 |
|
| 232 |
2020-06-29 H.J. Lu <[email protected]> |
| 233 |
|
| 234 |
* elf32-tic6x.c (elf32_tic6x_size_dynamic_sections): Call |
| 235 |
_bfd_elf_add_dynamic_tags. |
| 236 |
|
| 237 |
2020-06-29 Alan Modra <[email protected]> |
| 238 |
|
| 239 |
* peXXigen.c (_bfd_XXi_slurp_codeview_record): Properly check |
| 240 |
return value of bfd_bread. Don't read more than requested length. |
| 241 |
Sanity check length. Properly terminate file name. |
| 242 |
|
| 243 |
2020-06-29 Alan Modra <[email protected]> |
| 244 |
|
| 245 |
* arc-got.h: Use C style comments. |
| 246 |
* coff-z80.c: Likewise. |
| 247 |
* elf32-csky.c: Likewise. |
| 248 |
* peXXigen.c: Likewise. |
| 249 |
* elf32-m32c.c (m32c_elf_relax_delete_bytes): Remove commented out |
| 250 |
code. |
| 251 |
|
| 252 |
2020-06-26 Pat Bernardi <[email protected]> |
| 253 |
|
| 254 |
* elf32-m68k.c (m68k_elf_merge_obj_attributes): New function. |
| 255 |
(elf32_m68k_merge_private_bfd_data): Merge GNU attributes. |
| 256 |
|
| 257 |
2020-06-26 Alan Modra <[email protected]> |
| 258 |
|
| 259 |
* elfxx-riscv.c (struct priv_spec_t, priv_specs), |
| 260 |
(riscv_get_priv_spec_class, riscv_get_priv_spec_class_from_numbers), |
| 261 |
(riscv_get_priv_spec_name): Move to.. |
| 262 |
* cpu-riscv.c: ..here. |
| 263 |
(riscv_get_priv_spec_class_from_numbers): Don't xmalloc temp buffer. |
| 264 |
Use %u to print unsigned numbers. |
| 265 |
|
| 266 |
2020-06-24 Andrew Burgess <[email protected]> |
| 267 |
|
| 268 |
* cpu-riscv.c (riscv_scan): Don't allow shorter matches using the |
| 269 |
default architecture. |
| 270 |
|
| 271 |
2020-06-24 H.J. Lu <[email protected]> |
| 272 |
|
| 273 |
PR ld/26083 |
| 274 |
* elf32-csky.c (csky_elf_size_dynamic_sections): Call |
| 275 |
_bfd_elf_add_dynamic_tags. |
| 276 |
|
| 277 |
2020-06-24 H.J. Lu <[email protected]> |
| 278 |
|
| 279 |
PR ld/26083 |
| 280 |
* elf32-cris.c (elf_cris_size_dynamic_sections): Call |
| 281 |
_bfd_elf_add_dynamic_tags. |
| 282 |
|
| 283 |
2020-06-24 Alan Modra <[email protected]> |
| 284 |
|
| 285 |
* vms-alpha.c (_bfd_vms_slurp_etir <ETIR__C_OPR_ASH>): Implement |
| 286 |
shifts without undefined behaviour. |
| 287 |
|
| 288 |
2020-06-23 H.J. Lu <[email protected]> |
| 289 |
|
| 290 |
* elf-bfd.h (elf_link_hash_table): Add dt_pltgot_required and |
| 291 |
dt_jmprel_required. |
| 292 |
(_bfd_elf_add_dynamic_tags): New. |
| 293 |
* elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Call |
| 294 |
_bfd_elf_add_dynamic_tags. |
| 295 |
* elf32-arc.c (elf_arc_size_dynamic_sections): Likewise. |
| 296 |
* elf32-bfin.c (elf32_bfinfdpic_size_dynamic_sections): Likewise. |
| 297 |
* elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise. |
| 298 |
* elf32-frv.c (elf32_frvfdpic_size_dynamic_sections): Likewise. |
| 299 |
* elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise. |
| 300 |
* elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise. |
| 301 |
* elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. |
| 302 |
* elf32-microblaze.c (microblaze_elf_size_dynamic_sections): |
| 303 |
Likewise. |
| 304 |
* elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise. |
| 305 |
* elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise. |
| 306 |
* elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise. |
| 307 |
* elf32-s390.c (elf_s390_size_dynamic_sections): Likewise. |
| 308 |
* elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise. |
| 309 |
* elf32-vax.c (elf_vax_size_dynamic_sections): Likewise. |
| 310 |
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. |
| 311 |
* elf64-s390.c (elf_s390_size_dynamic_sections): Likewise. |
| 312 |
* elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): |
| 313 |
Likewise. |
| 314 |
* elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise. |
| 315 |
* elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise. |
| 316 |
* elf32-arm.c (elf32_arm_size_dynamic_sections): Call |
| 317 |
_bfd_elf_maybe_vxworks_add_dynamic_tags. |
| 318 |
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. |
| 319 |
* elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): |
| 320 |
Likewise. |
| 321 |
* elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Likewise. |
| 322 |
(_bfd_x86_elf_size_dynamic_sections): Likewise. |
| 323 |
* elfxx-x86.h (elf_x86_link_hash_table): Remove dt_reloc, |
| 324 |
dt_reloc_sz and dt_reloc_ent. |
| 325 |
* elf-vxworks.c (_bfd_elf_maybe_vxworks_add_dynamic_tags): New. |
| 326 |
* elf-vxworks.h (_bfd_elf_maybe_vxworks_add_dynamic_tags): |
| 327 |
Likewise. |
| 328 |
* elf32-hppa.c (elf32_hppa_link_hash_table_create): Set |
| 329 |
etab.dt_pltgot_required. |
| 330 |
(elf32_hppa_size_dynamic_sections): Call |
| 331 |
_bfd_elf_add_dynamic_tags. |
| 332 |
* elf32-metag.c (elf_metag_link_hash_table_create): Set |
| 333 |
etab.dt_pltgot_required. |
| 334 |
(elf_metag_size_dynamic_sections): Call _bfd_elf_add_dynamic_tags. |
| 335 |
* elf32-sh.c (sh_elf_link_hash_table_create): Set |
| 336 |
root.dt_pltgot_required for FDPIC output. |
| 337 |
(sh_elf_size_dynamic_sections): Call |
| 338 |
_bfd_elf_maybe_vxworks_add_dynamic_tags. |
| 339 |
* elf32-xtensa.c (elf_xtensa_link_hash_table_create): Set |
| 340 |
elf.dt_pltgot_required. |
| 341 |
(elf_xtensa_size_dynamic_sections): Call |
| 342 |
_bfd_elf_add_dynamic_tags. |
| 343 |
* elf64-hppa.c (elf64_hppa_hash_table_create): Set |
| 344 |
root.dt_pltgot_required. |
| 345 |
(elf64_hppa_size_dynamic_sections): Call |
| 346 |
_bfd_elf_add_dynamic_tags. |
| 347 |
* elfnn-ia64.c (elfNN_ia64_hash_table_create): Set |
| 348 |
root.dt_pltgot_required. |
| 349 |
(elfNN_ia64_size_dynamic_sections): Set root.dt_jmprel_required |
| 350 |
for rel_pltoff_sec. Call _bfd_elf_add_dynamic_tags. |
| 351 |
* elflink.c (_bfd_elf_add_dynamic_tags): New. |
| 352 |
|
| 353 |
2020-06-22 Saagar Jha <[email protected]> |
| 354 |
|
| 355 |
* mach-o.c: Support the new load commands by reading a linkedit |
| 356 |
data command for them. |
| 357 |
|
| 358 |
2020-06-22 Nelson Chu <[email protected]> |
| 359 |
|
| 360 |
* elfxx-riscv.c (struct priv_spec_t priv_specs[]): Move them from |
| 361 |
opcodes/riscv-opc.c to bfd/elfxx-riscv.c, since we need it in linker. |
| 362 |
(riscv_get_priv_spec_class): Likewise. |
| 363 |
(riscv_get_priv_spec_name): Likewise. |
| 364 |
(riscv_get_priv_spec_class_from_numbers): New function, convert |
| 365 |
the version numbers into string, then call riscv_get_priv_spec_class |
| 366 |
to get the priv spec class. |
| 367 |
* elfxx-riscv.h (riscv_get_priv_spec_class): Move forward declaration |
| 368 |
from include/opcode/riscv.h to bfd/elfxx-riscv.h. |
| 369 |
(riscv_get_priv_spec_name): Likewise. |
| 370 |
(riscv_get_priv_spec_class_from_numbers): New forward declaration. |
| 371 |
(opcode/riscv.h): Include it in the header rather than elfxx-riscv.c. |
| 372 |
* elfnn-riscv.c (riscv_merge_attributes): Get the priv spec classes |
| 373 |
of input and output objects form their priv spec attributes by |
| 374 |
riscv_get_priv_spec_class_from_numbers. Report warning rather than |
| 375 |
errors when linking objects with differnet priv spec versions. We do |
| 376 |
know v1.9.1 may have conflicts to other versions, so report the |
| 377 |
warning, too. After that, update the output priv spec version to the |
| 378 |
newest one so far. |
| 379 |
|
| 380 |
2020-06-22 Nelson Chu <[email protected]> |
| 381 |
|
| 382 |
* elfnn-riscv.c (riscv_merge_attributes): Once we meet one of the |
| 383 |
priv attributes, we will check the conflicts for all of them (major, |
| 384 |
minor and revision), and then set the priv_attrs_merged to TRUE to |
| 385 |
indicate that we have handled all of the priv attributes. Remove |
| 386 |
the unused boolean priv_may_conflict, in_priv_zero and out_priv_zero. |
| 387 |
|
| 388 |
2020-06-21 Alan Modra <[email protected]> |
| 389 |
|
| 390 |
PR 26132 |
| 391 |
* configure.ac: Disable plugins by default for some targets. |
| 392 |
* plugin.c: Comment typo fix. |
| 393 |
* configure: Regenerate. |
| 394 |
|
| 395 |
2020-06-19 Nick Clifton <[email protected]> |
| 396 |
|
| 397 |
* plugin.c (try_load_plugin): Suppress the error message about |
| 398 |
being unable to open a plugin if creating a list of viable |
| 399 |
plugins. |
| 400 |
|
| 401 |
2020-06-16 Alan Modra <[email protected]> |
| 402 |
|
| 403 |
* aout-tic30.c: Delete file. |
| 404 |
* Makefile.am (BFD32_BACKENDS): Remove aout-tic30.lo. |
| 405 |
(BFD32_BACKENDS_CFILES): Remove aout-tic30.c. |
| 406 |
* config.bfd (c30-*-*aout*, tic30-*-*aout*): Remove entry. |
| 407 |
(xc16x-*-elf): Sort properly. |
| 408 |
* configure.ac: Remove tic30_aout_vec. |
| 409 |
* targets.c: Likewise. |
| 410 |
* Makefile.in: Regenerate. |
| 411 |
* configure: Regenerate. |
| 412 |
* po/SRC-POTFILES.in: Regenerate. |
| 413 |
|
| 414 |
2020-06-15 Max Filippov <[email protected]> |
| 415 |
|
| 416 |
* elf32-xtensa.c (XSHAL_ABI, XTHAL_ABI_UNDEFINED) |
| 417 |
(XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New macros. |
| 418 |
(elf32xtensa_abi): New global variable. |
| 419 |
(xtensa_abi_choice): New function. |
| 420 |
(elf_xtensa_create_plt_entry): Use xtensa_abi_choice instead of |
| 421 |
XSHAL_ABI to select PLT code. |
| 422 |
|
| 423 |
2020-06-15 Roland McGrath <[email protected]> |
| 424 |
|
| 425 |
* elflink.c (bfd_elf_define_start_stop): Use start_stop_visibility |
| 426 |
field of bfd_link_info. |
| 427 |
|
| 428 |
2020-06-15 Alan Modra <[email protected]> |
| 429 |
|
| 430 |
* config.bfd: Obsolete powerpcle-*-pe targets. |
| 431 |
|
| 432 |
2020-06-15 Alan Modra <[email protected]> |
| 433 |
|
| 434 |
PR 26103 |
| 435 |
* elflink.c (elf_link_add_archive_symbols): Exclude undefined |
| 436 |
symbols that were defined in discarded sections. |
| 437 |
* cofflink.c (coff_link_check_archive_element): Likewise. |
| 438 |
(coff_link_add_symbols): Set indx to -3 for symbols defined in |
| 439 |
discarded sections. |
| 440 |
(_bfd_coff_write_global_sym): Don't emit such symbols. |
| 441 |
libcoff-in.h (struct coff_link_hash_entry): Update indx comment. |
| 442 |
libcoff.h: Regenerate. |
| 443 |
|
| 444 |
2020-06-11 Alan Modra <[email protected]> |
| 445 |
|
| 446 |
PR 26107 |
| 447 |
* pdp11.c (is_stab): Replace legacy "index" function with "strchr". |
| 448 |
|
| 449 |
2020-06-10 H.J. Lu <[email protected]> |
| 450 |
|
| 451 |
* elfnn-ia64.c (elfNN_ia64_link_hash_table): Remove reltext. |
| 452 |
(allocate_dynrel_entries): Set DF_TEXTREL instead of reltext. |
| 453 |
(elfNN_ia64_size_dynamic_sections): Check DF_TEXTREL instead |
| 454 |
of reltext. |
| 455 |
|
| 456 |
2020-06-10 H.J. Lu <[email protected]> |
| 457 |
|
| 458 |
PR ld/26094 |
| 459 |
* elflink.c (bfd_elf_define_start_stop): Handle common symbols. |
| 460 |
Clear verinfo.verdef. |
| 461 |
|
| 462 |
2020-06-09 H.J. Lu <[email protected]> |
| 463 |
|
| 464 |
PR ld/18801 |
| 465 |
* elf-bfd.h (elf_link_hash_table): Add ifunc_resolvers. |
| 466 |
(_bfd_elf_allocate_ifunc_dyn_relocs): Remove the |
| 467 |
bfd_boolean * argument. Set ifunc_resolvers if there are IFUNC |
| 468 |
resolvers. |
| 469 |
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated. |
| 470 |
Set ifunc_resolvers if there are FUNC resolvers. |
| 471 |
* elf64-ppc.c (ppc_link_hash_table): Remove local_ifunc_resolver. |
| 472 |
(build_global_entry_stubs_and_plt): Replace local_ifunc_resolver |
| 473 |
with elf.ifunc_resolvers. |
| 474 |
(write_plt_relocs_for_local_syms): Likewise. |
| 475 |
(ppc64_elf_relocate_section): Likewise. |
| 476 |
(ppc64_elf_finish_dynamic_sections): Likewise. |
| 477 |
* elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs): |
| 478 |
Updated. |
| 479 |
* elfxx-x86.c (elf_x86_allocate_dynrelocs): Likewise. |
| 480 |
(_bfd_x86_elf_size_dynamic_sections): Check elf.ifunc_resolvers |
| 481 |
instead of readonly_dynrelocs_against_ifunc. |
| 482 |
* elfxx-x86.h (elf_x86_link_hash_table): Remove |
| 483 |
readonly_dynrelocs_against_ifunc. |
| 484 |
|
| 485 |
2020-06-09 Alan Modra <[email protected]> |
| 486 |
|
| 487 |
* elf64-ppc.c (struct ppc_link_hash_table): Delete |
| 488 |
maybe_local_ifunc_resolver field. |
| 489 |
(build_global_entry_stubs_and_plt): Set local_ifunc_resolver in |
| 490 |
cases where maybe_local_ifunc_resolver was set. |
| 491 |
(ppc64_elf_relocate_section): Likewise. |
| 492 |
(ppc64_elf_finish_dynamic_sections): Downgrade ifunc with textrel |
| 493 |
error to a warning. |
| 494 |
|
| 495 |
2020-06-08 H.J. Lu <[email protected]> |
| 496 |
|
| 497 |
* elf-bfd.h (elf_link_hash_entry): Add tlsdesc_plt and |
| 498 |
tlsdesc_got. |
| 499 |
* elf32-arm.c (elf32_arm_link_hash_table): Remove tlsdesc_plt |
| 500 |
and dt_tlsdesc_got. |
| 501 |
(elf32_arm_size_dynamic_sections): Updated. Clear |
| 502 |
root.tlsdesc_plt for DF_BIND_NOW. |
| 503 |
(elf32_arm_finish_dynamic_sections): Updated. |
| 504 |
(elf32_arm_output_arch_local_syms): Likewise. |
| 505 |
* elf32-nds32.c (nds32_elf_size_dynamic_sections): Updated. |
| 506 |
Clear root.tlsdesc_plt for DF_BIND_NOW. |
| 507 |
(nds32_elf_finish_dynamic_sections): Updated. |
| 508 |
* elf32-nds32.h (elf_nds32_link_hash_table): Remove |
| 509 |
dt_tlsdesc_plt and dt_tlsdesc_got. |
| 510 |
* elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Updated. |
| 511 |
* elfnn-aarch64.c (elf_aarch64_link_hash_table): Remove |
| 512 |
tlsdesc_plt and dt_tlsdesc_got. |
| 513 |
(elfNN_aarch64_allocate_dynrelocs): Updated. |
| 514 |
(elfNN_aarch64_finish_dynamic_sections): Likewise. |
| 515 |
(elfNN_aarch64_size_dynamic_sections): Updated. Clear |
| 516 |
root.tlsdesc_plt for DF_BIND_NOW. Don't check DF_BIND_NOW |
| 517 |
twice. |
| 518 |
* elfxx-x86.c (elf_x86_allocate_dynrelocs): Updated. |
| 519 |
(_bfd_x86_elf_size_dynamic_sections): Likewise. |
| 520 |
(_bfd_x86_elf_finish_dynamic_sections): Likewise. |
| 521 |
* elfxx-x86.h (elf_x86_link_hash_table): Remove tlsdesc_plt and |
| 522 |
tlsdesc_got. |
| 523 |
|
| 524 |
2020-06-07 H.J. Lu <[email protected]> |
| 525 |
|
| 526 |
* elf32-tic6x.c (elf32_bed): Defined the default to |
| 527 |
elf32_tic6x_bed. |
| 528 |
|
| 529 |
2020-06-07 H.J. Lu <[email protected]> |
| 530 |
|
| 531 |
* elf64-hppa.c (elf64_hppa_link_hash_table): Remove plt_sec and |
| 532 |
plt_rel_sec. |
| 533 |
(elf64_hppa_check_relocs): Replace plt_sec/plt_rel_sec with |
| 534 |
root.splt/root.srelplt. |
| 535 |
(elf64_hppa_create_dynamic_sections): Likewise. |
| 536 |
(elf64_hppa_size_dynamic_sections): Likewise. |
| 537 |
(elf64_hppa_finish_dynamic_symbol): Likewise. |
| 538 |
(elf_hppa_final_link): Likewise. |
| 539 |
(elf_hppa_final_link_relocate): Likewise. |
| 540 |
|
| 541 |
2020-06-06 H.J. Lu <[email protected]> |
| 542 |
|
| 543 |
* elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Updated. |
| 544 |
* elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove |
| 545 |
is_vxworks. |
| 546 |
|
| 547 |
2020-06-06 H.J. Lu <[email protected]> |
| 548 |
|
| 549 |
* elf-bfd.h (elf_target_os): New. |
| 550 |
(elf_link_hash_table): Add target_os. |
| 551 |
(elf_backend_data): Add target_os. |
| 552 |
* elf32-arm.c (elf32_arm_link_hash_table): Remove vxworks_p, |
| 553 |
symbian_p and nacl_p. |
| 554 |
(create_got_section): Updated. |
| 555 |
(elf32_arm_create_dynamic_sections): Likewise. |
| 556 |
(arm_type_of_stub): Likewise. |
| 557 |
(elf32_arm_create_or_find_stub_sec): Likewise. |
| 558 |
(elf32_arm_allocate_plt_entry): Likewise. |
| 559 |
(elf32_arm_populate_plt_entry): Likewise. |
| 560 |
(elf32_arm_final_link_relocate): Likewise. |
| 561 |
(elf32_arm_check_relocs): Likewise. |
| 562 |
(allocate_dynrelocs_for_symbol): Likewise. |
| 563 |
(elf32_arm_finish_dynamic_symbol): Likewise. |
| 564 |
(elf32_arm_finish_dynamic_sections): Likewise. |
| 565 |
(elf32_arm_output_plt_map_1): Likewise. |
| 566 |
(elf32_arm_output_arch_local_syms): Likewise. |
| 567 |
(elf32_arm_add_symbol_hook): Likewise. |
| 568 |
(elf32_arm_nacl_link_hash_table_create): Likewise. |
| 569 |
(elf32_arm_vxworks_link_hash_table_create): Likewise. |
| 570 |
(elf32_arm_symbian_link_hash_table_create): Likewise. |
| 571 |
(ELF_TARGET_OS): New. |
| 572 |
* elf32-i386.c (elf_i386_arch_bed): Removed. |
| 573 |
(elf_backend_arch_data): Likewise. |
| 574 |
(elf_i386_solaris_arch_bed): Likewise. |
| 575 |
(elf_i386_nacl_arch_bed): Likewise. |
| 576 |
(elf_i386_vxworks_arch_bed): Likewise. |
| 577 |
(elf_i386_relocate_section): Updated. |
| 578 |
(elf_i386_finish_dynamic_sections): Likewise. |
| 579 |
(elf_i386_get_synthetic_symtab): Likewise. |
| 580 |
(elf_i386_link_setup_gnu_properties): Likewise. |
| 581 |
(ELF_TARGET_OS): New. |
| 582 |
* elf32-mips.c (ELF_TARGET_OS): New. |
| 583 |
* elf32-ppc.c (ppc_elf_link_hash_table): Remove is_vxworks. |
| 584 |
(ppc_elf_create_got): Updated. |
| 585 |
(ppc_elf_create_dynamic_sections): Likewise. |
| 586 |
(ppc_elf_check_relocs): Likewise. |
| 587 |
(ppc_elf_adjust_dynamic_symbol): Likewise. |
| 588 |
(ppc_elf_size_dynamic_sections): Likewise. |
| 589 |
(ppc_elf_relocate_section): Likewise. |
| 590 |
(ppc_elf_finish_dynamic_sections): Likewise. |
| 591 |
(ppc_elf_vxworks_link_hash_table_create): Likewise. |
| 592 |
(ELF_TARGET_OS): New. |
| 593 |
* elf32-sh.c (elf_sh_link_hash_table): Remove vxworks_p. |
| 594 |
(sh_elf_link_hash_table_create): Updated. |
| 595 |
(sh_elf_create_dynamic_sections): Likewise. |
| 596 |
(allocate_dynrelocs): Likewise. |
| 597 |
(sh_elf_size_dynamic_sections): Likewise. |
| 598 |
(sh_elf_relocate_section): Likewise. |
| 599 |
(sh_elf_finish_dynamic_symbol): Likewise. |
| 600 |
(sh_elf_finish_dynamic_sections): Likewise. |
| 601 |
(ELF_TARGET_OS): New. |
| 602 |
* elf32-sparc.c (elf32_sparc_vxworks_link_hash_table_create): |
| 603 |
Removed. |
| 604 |
(bfd_elf32_bfd_link_hash_table_create): Likewise. |
| 605 |
(ELF_TARGET_OS): New. |
| 606 |
* elf64-x86-64.c (elf_x86_64_arch_bed): Removed. |
| 607 |
(elf_x86_64_solaris_arch_bed): Likewise. |
| 608 |
(elf_x86_64_nacl_arch_bed): Likewise. |
| 609 |
(elf_x86_64_finish_dynamic_sections): Updated. |
| 610 |
(elf_x86_64_get_synthetic_symtab): Likewise. |
| 611 |
(elf_x86_64_link_setup_gnu_properties): Likewise. |
| 612 |
(ELF_TARGET_OS): New. |
| 613 |
* elflink.c (_bfd_elf_link_hash_table_init): Initialize |
| 614 |
target_o. |
| 615 |
* elfxx-mips.c (mips_elf_link_hash_table): Remove is_vxworks. |
| 616 |
(MIPS_ELF_REL_DYN_NAME): Updated. |
| 617 |
(ELF_MIPS_GP_OFFSET): Likewise. |
| 618 |
(mips_elf_create_local_got_entry): Likewise. |
| 619 |
(mips_elf_allocate_dynamic_relocations): Likewise. |
| 620 |
(mips_elf_count_got_symbols): Likewise. |
| 621 |
(is_gott_symbol): Likewise. |
| 622 |
(mips_elf_calculate_relocation): Likewise. |
| 623 |
(mips_elf_create_dynamic_relocation): Likewise. |
| 624 |
(_bfd_mips_elf_check_relocs): Likewise. |
| 625 |
(allocate_dynrelocs): Likewise. |
| 626 |
(_bfd_mips_elf_adjust_dynamic_symbol): Likewise. |
| 627 |
(mips_elf_lay_out_got): Likewise. |
| 628 |
(mips_elf_set_plt_sym_value): Likewise. |
| 629 |
(_bfd_mips_elf_size_dynamic_sections): Likewise. |
| 630 |
(_bfd_mips_elf_finish_dynamic_symbol): Likewise. |
| 631 |
(_bfd_mips_elf_finish_dynamic_sections): Likewise. |
| 632 |
(_bfd_mips_elf_final_link): Likewise. |
| 633 |
(_bfd_mips_init_file_header): Likewise. |
| 634 |
* elfxx-sparc.c (_bfd_sparc_elf_create_dynamic_sections): |
| 635 |
Likewise. |
| 636 |
(allocate_dynrelocs): Likewise. |
| 637 |
(_bfd_sparc_elf_size_dynamic_sections): Likewise. |
| 638 |
(_bfd_sparc_elf_relocate_section): Likewise. |
| 639 |
(_bfd_sparc_elf_finish_dynamic_symbol): Likewise. |
| 640 |
(sparc_finish_dyn): Likewise. |
| 641 |
(_bfd_sparc_elf_finish_dynamic_sections): Likewise. |
| 642 |
* elfxx-target.h (ELF_TARGET_OS): New. |
| 643 |
(elfNN_bed): Add ELF_TARGET_OS. |
| 644 |
* elfxx-x86.c (elf_x86_allocate_dynrelocs): Updated. |
| 645 |
(_bfd_x86_elf_link_hash_table_create): Likewise. |
| 646 |
(_bfd_x86_elf_size_dynamic_sections): Likewise. |
| 647 |
(_bfd_x86_elf_finish_dynamic_sections): Likewise. |
| 648 |
(_bfd_x86_elf_adjust_dynamic_symbol): Likewise. |
| 649 |
(_bfd_x86_elf_link_setup_gnu_properties): Likewise. |
| 650 |
* elfxx-x86.h (elf_x86_target_os): Removed. |
| 651 |
(elf_x86_backend_data): Likewise. |
| 652 |
(get_elf_x86_backend_data): Likewise. |
| 653 |
(elf_x86_link_hash_table): Remove target_os. |
| 654 |
|
| 655 |
2020-06-06 Alan Modra <[email protected]> |
| 656 |
|
| 657 |
* reloc.c: Rename |
| 658 |
BFD_RELOC_PPC64_GOT_TLSGD34 to BFD_RELOC_PPC64_GOT_TLSGD_PCREL34, |
| 659 |
BFD_RELOC_PPC64_GOT_TLSLD34 to BFD_RELOC_PPC64_GOT_TLSLD_PCREL34, |
| 660 |
BFD_RELOC_PPC64_GOT_TPREL34 to BFD_RELOC_PPC64_GOT_TPREL_PCREL34, |
| 661 |
BFD_RELOC_PPC64_GOT_DTPREL34 to BFD_RELOC_PPC64_GOT_DTPREL_PCREL34. |
| 662 |
* elf64-ppc.c: Update throughout for reloc renaming. |
| 663 |
(ppc64_elf_reloc_name_lookup): Handle old reloc names. |
| 664 |
* libbfd.h: Regenerate. |
| 665 |
* bfd-in2.h: Regenerate. |
| 666 |
|
| 667 |
2020-06-05 H.J. Lu <[email protected]> |
| 668 |
|
| 669 |
PR ld/26080 |
| 670 |
* elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC |
| 671 |
section. |
| 672 |
|
| 673 |
2020-06-05 Nick Clifton <[email protected]> |
| 674 |
|
| 675 |
* pdp11.c (aout_link_add_symbols): Fix use before initialisation |
| 676 |
bug. |
| 677 |
|
| 678 |
2020-06-05 Nelson Chu <[email protected]> |
| 679 |
|
| 680 |
* elfnn-riscv.c (riscv_merge_attributes): Add new boolean |
| 681 |
priv_may_conflict, in_priv_zero and out_priv_zero to decide |
| 682 |
whether the object can be linked according to it's priv |
| 683 |
attributes. The object without any priv spec attributes can |
| 684 |
be linked with others. If the first input object doesn't contain |
| 685 |
any priv attributes, then we need to copy the setting from the |
| 686 |
next input one. Also report more detailed error messages to user. |
| 687 |
|
| 688 |
2020-06-04 Stephen Casner <[email protected]> |
| 689 |
|
| 690 |
Extend pdp11-aout symbol table format to accommodate .stab |
| 691 |
symbols and implement correct handling of them. |
| 692 |
|
| 693 |
* pdp11.c (pdp11_external_nlist): Repurposed e_unused to e_desc. |
| 694 |
(N_STAB, is_stab): Needed new function is_stab to disambiguate |
| 695 |
normal vs. .stab symbol table type values, replacing N_STAB mask. |
| 696 |
(translate_from_native_sym_flags): Determine correct section for |
| 697 |
different .stab types. |
| 698 |
(translate_to_native_sym_flags): Leave .stab types intact. |
| 699 |
(translate_symbol_table): Error if symbol indicates overlay; |
| 700 |
store desc field from .stab symbols. |
| 701 |
(write_syms): Output desc field with symbol. |
| 702 |
(aout_link_check_ar_symbols): Skip .stab symbols. |
| 703 |
(aout_link_add_symbols): Correctly distinguish .stab symbols. |
| 704 |
(aout_link_write_other_symbol): Write 0 for desk and ovly fields. |
| 705 |
(aout_link_write_symbols): Write 0 for desk and ovly fields; |
| 706 |
correctly distinguish .stab symbols and select calculate their |
| 707 |
section and value; and copy desc and ovly fields from input symbol |
| 708 |
to output symbol. |
| 709 |
|
| 710 |
2020-06-04 Stephen Casner <[email protected]> |
| 711 |
|
| 712 |
* aoutx.h (translate_symbol_table): Comment had external and |
| 713 |
internal swapped. |
| 714 |
* pdp11.c (translate_symbol_table): Likewise. |
| 715 |
|
| 716 |
2020-06-04 H.J. Lu <[email protected]> |
| 717 |
|
| 718 |
* elfxx-x86.h (elf_x86_link_hash_table): Remove target_id. |
| 719 |
(is_x86_elf): Check elf.hash_table_id instead of target_id. |
| 720 |
* elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Updated. |
| 721 |
|
| 722 |
2020-06-04 H.J. Lu <[email protected]> |
| 723 |
|
| 724 |
PR ld/26080 |
| 725 |
* elf-m10300.c (mn10300_elf_relocate_section): Resolve relocation |
| 726 |
in debug section against symbol defined in shared library to 0. |
| 727 |
* elf32-i386.c (elf_i386_check_relocs): Remove SEC_ALLOC check. |
| 728 |
* elf32-lm32.c (lm32_elf_check_relocs): Likewise. |
| 729 |
* elf32-m32r.c (m32r_elf_check_relocs): Likewise. |
| 730 |
* elf32-nds32.c (nds32_elf_check_relocs): Likewise. |
| 731 |
* elf32-nios2.c (nios2_elf32_check_relocs): Likewise. |
| 732 |
* elf32-or1k.c (or1k_elf_check_relocs): Likewise. |
| 733 |
* elf32-ppc.c (ppc_elf_check_relocs): Likewise. |
| 734 |
* elf32-sh.c (sh_elf_check_relocs): Likewise. |
| 735 |
* elf32-xtensa.c (elf_xtensa_check_relocs): Likewise. |
| 736 |
* elf64-alpha.c (elf64_alpha_check_relocs): Likewise. |
| 737 |
* elf64-ppc.c (ppc64_elf_check_relocs): Likewise. |
| 738 |
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. |
| 739 |
* elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. |
| 740 |
* elf32-vax.c (elf_vax_check_relocs): Set non_got_ref for non-GOT |
| 741 |
reference. |
| 742 |
(elf_vax_adjust_dynamic_symbol): Generate a copy reloc only if |
| 743 |
there is non-GOT reference. |
| 744 |
* elflink.c (_bfd_elf_link_check_relocs): Skip non-loaded, |
| 745 |
non-alloced sections. |
| 746 |
|
| 747 |
2020-06-03 Stephen Casner <[email protected]> |
| 748 |
|
| 749 |
Copy several years of fixes from bfd/aoutx.h to bfd/pdp11.c. |
| 750 |
|
| 751 |
* pdp11.c (some_aout_object_p): 4c1534c7a2a - Don't set EXEC_P for |
| 752 |
files with relocs. |
| 753 |
(aout_get_external_symbols): 6b8f0fd579d - Return if count is zero. |
| 754 |
0301ce1486b PR 22306 - Handle stringsize of zero, and error for any |
| 755 |
other size that doesn't qcover the header word. |
| 756 |
bf82069dce1 PR 23056 - Allocate an extra byte at the end of the |
| 757 |
string table, and zero it. |
| 758 |
(translate_symbol_table): 0d329c0a83a PR 22887 - Print an error |
| 759 |
message and set bfd_error on finding an invalid name string offset. |
| 760 |
(add_to_stringtab): INLINE -> inline |
| 761 |
(pdp11_aout_swap_reloc_in): 116acb2c268 PR 22887 - Correct r_index |
| 762 |
bound check. |
| 763 |
(squirt_out_relocs): e2996cc315d PR 20921 - Check for and report |
| 764 |
any relocs that could not be recognised. |
| 765 |
92744f05809 PR 20929 - Check for relocs without an associated symbol. |
| 766 |
(find_nearest_line): 808346fcfcf PR 23055 - Check that the symbol |
| 767 |
name exists and is long enough, before attempting to see if it is |
| 768 |
for a .o file. |
| 769 |
c3864421222 - Correct case for N_SO being the last symbol. |
| 770 |
50455f1ab29 PR 20891 - Handle the case where the main file name |
| 771 |
and the directory name are both empty. |
| 772 |
e82ab856bb4 PR 20892 - Handle the case where function name is empty. |
| 773 |
(aout_link_add_symbols): e517df3dbf7 PR 19629 - Check for out of |
| 774 |
range string table offsets. |
| 775 |
531336e3a0b PR 20909 - Fix off-by-one error in check for an |
| 776 |
illegal string offset. |
| 777 |
(aout_link_includes_newfunc): Add comment. |
| 778 |
(pdp11_aout_link_input_section): ad756e3f9e6 - Return with an error |
| 779 |
on unexpected relocation type rather than ASSERT. |
| 780 |
|
| 781 |
2020-06-03 H.J. Lu <[email protected]> |
| 782 |
|
| 783 |
PR ld/26066 |
| 784 |
* elf32-nios2.c (nios2_elf32_size_dynamic_sections): Call |
| 785 |
_bfd_elf_maybe_set_textrel to set DF_TEXTREL. |
| 786 |
|
| 787 |
2020-06-03 H.J. Lu <[email protected]> |
| 788 |
|
| 789 |
PR ld/26066 |
| 790 |
* elf32-nios2.c (nios2_elf32_check_relocs): Skip non-loaded, |
| 791 |
non-alloced sections. |
| 792 |
|
| 793 |
2020-06-03 H.J. Lu <[email protected]> |
| 794 |
|
| 795 |
* elf32-frv.c (elf32_frv_relocate_section): Don't generate |
| 796 |
dynamic relocations for non SEC_ALLOC sections. |
| 797 |
|
| 798 |
2020-06-03 Gunther Nikl <[email protected]> |
| 799 |
|
| 800 |
* aout64.c (BMAGIC, QMAGIC): Do not define. |
| 801 |
* aoutx.h (N_IS_BMAGIC, N_SET_QMAGIC): New defines. |
| 802 |
(NAME (aout, some_aout_object_p)): Use N_IS_QMAGIC and N_IS_BMAGIC |
| 803 |
to check the file format. |
| 804 |
(adjust_z_magic): Use N_SET_QMAGIC to set file format. |
| 805 |
* i386aout.c (NO_WRITE_HEADER_KLUDGE): Delete define. |
| 806 |
* libaout.h (NO_WRITE_HEADER_KLUDGE): Do not define. |
| 807 |
|
| 808 |
2020-06-03 H.J. Lu <[email protected]> |
| 809 |
|
| 810 |
* elf32-arc.c (elf_arc_relocate_section): Don't generate dynamic |
| 811 |
relocations for non SEC_ALLOC sections. |
| 812 |
|
| 813 |
2020-06-03 H.J. Lu <[email protected]> |
| 814 |
|
| 815 |
* elf-bfd.h (_bfd_elf_maybe_set_textrel): New |
| 816 |
* elf32-arm.c (maybe_set_textrel): Removed. |
| 817 |
(elf32_arm_size_dynamic_sections): Replace maybe_set_textrel |
| 818 |
with _bfd_elf_maybe_set_textrel. |
| 819 |
* elf32-csky.c (maybe_set_textrel): Removed. |
| 820 |
(csky_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 821 |
with _bfd_elf_maybe_set_textrel. |
| 822 |
* elf32-hppa.c (maybe_set_textrel): Removed. |
| 823 |
(elf32_hppa_size_dynamic_sections): Replace maybe_set_textrel |
| 824 |
with _bfd_elf_maybe_set_textrel. |
| 825 |
* elf32-lm32.c (maybe_set_textrel): Removed. |
| 826 |
(lm32_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 827 |
with _bfd_elf_maybe_set_textrel. |
| 828 |
* elf32-m32r.c (maybe_set_textrel): Removed. |
| 829 |
(m32r_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 830 |
with _bfd_elf_maybe_set_textrel. |
| 831 |
* elf32-metag.c (maybe_set_textrel): Removed. |
| 832 |
(elf_metag_size_dynamic_sections): Replace maybe_set_textrel |
| 833 |
with _bfd_elf_maybe_set_textrel. |
| 834 |
* elf32-nds32.c (maybe_set_textrel): Removed. |
| 835 |
(nds32_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 836 |
with _bfd_elf_maybe_set_textrel. |
| 837 |
* elf32-or1k.c (maybe_set_textrel): Removed. |
| 838 |
(or1k_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 839 |
with _bfd_elf_maybe_set_textrel. |
| 840 |
* elf32-ppc.c (maybe_set_textrel): Removed. |
| 841 |
(ppc_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 842 |
with _bfd_elf_maybe_set_textrel. |
| 843 |
* elf32-s390.c (maybe_set_textrel): Removed. |
| 844 |
(elf_s390_size_dynamic_sections): Replace maybe_set_textrel |
| 845 |
with _bfd_elf_maybe_set_textrel. |
| 846 |
* elf32-sh.c (maybe_set_textrel): Removed. |
| 847 |
(sh_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 848 |
with _bfd_elf_maybe_set_textrel. |
| 849 |
* elf32-tic6x.c (maybe_set_textrel): Removed. |
| 850 |
(elf32_tic6x_size_dynamic_sections): Replace maybe_set_textrel |
| 851 |
with _bfd_elf_maybe_set_textrel. |
| 852 |
* elf32-tilepro.c (maybe_set_textrel): Removed. |
| 853 |
(tilepro_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 854 |
with _bfd_elf_maybe_set_textrel. |
| 855 |
* elf64-ppc.c (maybe_set_textrel): Removed. |
| 856 |
(ppc64_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 857 |
with _bfd_elf_maybe_set_textrel. |
| 858 |
* elf64-s390.c (maybe_set_textrel): Removed. |
| 859 |
(elf_s390_size_dynamic_sections): Replace maybe_set_textrel |
| 860 |
with _bfd_elf_maybe_set_textrel. |
| 861 |
* elfnn-aarch64.c (maybe_set_textrel): Removed. |
| 862 |
(elfNN_aarch64_size_dynamic_sections): Replace maybe_set_textrel |
| 863 |
with _bfd_elf_maybe_set_textrel. |
| 864 |
* elfnn-riscv.c (maybe_set_textrel): Removed. |
| 865 |
(riscv_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 866 |
with _bfd_elf_maybe_set_textrel. |
| 867 |
* elfxx-sparc.c (maybe_set_textrel): Removed. |
| 868 |
(_bfd_sparc_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 869 |
with _bfd_elf_maybe_set_textrel. |
| 870 |
* elfxx-tilegx.c (maybe_set_textrel): Removed. |
| 871 |
(tilegx_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 872 |
with _bfd_elf_maybe_set_textrel. |
| 873 |
* elfxx-x86.c (maybe_set_textrel): Removed. |
| 874 |
(_bfd_x86_elf_size_dynamic_sections): Replace maybe_set_textrel |
| 875 |
with _bfd_elf_maybe_set_textrel. |
| 876 |
* elflink.c (_bfd_elf_maybe_set_textrel): New. |
| 877 |
|
| 878 |
2020-06-03 H.J. Lu <[email protected]> |
| 879 |
|
| 880 |
PR ld/26067 |
| 881 |
* elf32-arm.c (elf32_arm_copy_indirect_symbol): Don't copy |
| 882 |
dyn_relocs. |
| 883 |
* elf32-csky.c (csky_elf_copy_indirect_symbol): Likewise. |
| 884 |
* elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise. |
| 885 |
* elf32-metag.c (elf_metag_copy_indirect_symbol): Likewise. |
| 886 |
* elf32-microblaze.c (microblaze_elf_copy_indirect_symbol): |
| 887 |
Likewise. |
| 888 |
* elf32-nds32.c (nds32_elf_copy_indirect_symbol): Likewise. |
| 889 |
* elf32-nios2.c (nios2_elf32_copy_indirect_symbol): Likewise. |
| 890 |
* elf32-or1k.c (or1k_elf_copy_indirect_symbol): Likewise. |
| 891 |
* elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise. |
| 892 |
* elf32-sh.c (sh_elf_copy_indirect_symbol): Likewise. |
| 893 |
* elf32-tilepro.c (tilepro_elf_copy_indirect_symbol): Likewise. |
| 894 |
* elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise. |
| 895 |
* elfnn-aarch64.c (elfNN_aarch64_copy_indirect_symbol): Likewise. |
| 896 |
* elfnn-riscv.c (riscv_elf_copy_indirect_symbol): Likewise. |
| 897 |
* elfxx-sparc.c (_bfd_sparc_elf_copy_indirect_symbol): Likewise. |
| 898 |
* elfxx-tilegx.c (tilegx_elf_copy_indirect_symbol): Likewise. |
| 899 |
* elfxx-x86.c (_bfd_x86_elf_copy_indirect_symbol): Likewise. |
| 900 |
* elf32-lm32.c (lm32_elf_copy_indirect_symbol): Removed. |
| 901 |
(elf_backend_copy_indirect_symbol): Likewise. |
| 902 |
* elf32-m32r.c (m32r_elf_copy_indirect_symbol): Removed. |
| 903 |
(elf_backend_copy_indirect_symbol): Likewise. |
| 904 |
* elflink.c (_bfd_elf_link_hash_copy_indirect): Copy dyn_relocs. |
| 905 |
|
| 906 |
2020-06-03 H.J. Lu <[email protected]> |
| 907 |
|
| 908 |
PR ld/26067 |
| 909 |
* elf-bfd.h (_bfd_elf_readonly_dynrelocs): New. |
| 910 |
* elf32-arm.c (readonly_dynrelocs): Removed. |
| 911 |
(maybe_set_textrel): Replace readonly_dynrelocs with |
| 912 |
_bfd_elf_readonly_dynrelocs. |
| 913 |
* elf32-csky.c (readonly_dynrelocs): Removed. |
| 914 |
(maybe_set_textrel): Replace readonly_dynrelocs with |
| 915 |
_bfd_elf_readonly_dynrelocs. |
| 916 |
* elf32-hppa.c(readonly_dynrelocs): Removed. |
| 917 |
(alias_readonly_dynrelocs): Replace readonly_dynrelocs with |
| 918 |
_bfd_elf_readonly_dynrelocs. |
| 919 |
(maybe_set_textrel): Likewise. |
| 920 |
* elf32-lm32.c (readonly_dynrelocs): Removed. |
| 921 |
(lm32_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs |
| 922 |
with _bfd_elf_readonly_dynrelocs. |
| 923 |
(maybe_set_textrel): Likewise. |
| 924 |
* elf32-m32r.c (readonly_dynrelocs): Removed. |
| 925 |
(m32r_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs |
| 926 |
with _bfd_elf_readonly_dynrelocs. |
| 927 |
(maybe_set_textrel): Likewise. |
| 928 |
* elf32-metag.c (readonly_dynrelocs): Removed. |
| 929 |
(elf_metag_adjust_dynamic_symbol): Replace readonly_dynrelocs |
| 930 |
with _bfd_elf_readonly_dynrelocs. |
| 931 |
(maybe_set_textrel): Likewise. |
| 932 |
* elf32-microblaze.c (readonly_dynrelocs): Removed. |
| 933 |
(microblaze_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs |
| 934 |
with _bfd_elf_readonly_dynrelocs. |
| 935 |
* elf32-nds32.c (readonly_dynrelocs): Removed. |
| 936 |
(nds32_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs |
| 937 |
with _bfd_elf_readonly_dynrelocs. |
| 938 |
(maybe_set_textrel): Likewise. |
| 939 |
* elf32-or1k.c (readonly_dynrelocs): Removed. |
| 940 |
(or1k_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs |
| 941 |
with _bfd_elf_readonly_dynrelocs. |
| 942 |
* elf32-ppc.c (readonly_dynrelocs): Removed. |
| 943 |
(alias_readonly_dynrelocs): Replace readonly_dynrelocs with |
| 944 |
_bfd_elf_readonly_dynrelocs. |
| 945 |
(ppc_elf_adjust_dynamic_symbol): Likewise. |
| 946 |
(maybe_set_textrel): Likewise. |
| 947 |
* elf32-s390.c (readonly_dynrelocs): Removed. |
| 948 |
(elf_s390_adjust_dynamic_symbol): Replace readonly_dynrelocs |
| 949 |
with _bfd_elf_readonly_dynrelocs. |
| 950 |
(maybe_set_textrel): Likewise. |
| 951 |
* elf32-sh.c (readonly_dynrelocs): Removed. |
| 952 |
(sh_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs with |
| 953 |
_bfd_elf_readonly_dynrelocs. |
| 954 |
(maybe_set_textrel): Likewise. |
| 955 |
* elf32-tic6x.c (readonly_dynrelocs): Removed. |
| 956 |
(maybe_set_textrel): Replace readonly_dynrelocs with |
| 957 |
_bfd_elf_readonly_dynrelocs. |
| 958 |
* elf32-tilepro.c (readonly_dynrelocs): Removed. |
| 959 |
(tilepro_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs |
| 960 |
with _bfd_elf_readonly_dynrelocs. |
| 961 |
(maybe_set_textrel): Likewise. |
| 962 |
* elf64-ppc.c (readonly_dynrelocs): Removed. |
| 963 |
(alias_readonly_dynrelocs): Replace readonly_dynrelocs with |
| 964 |
_bfd_elf_readonly_dynrelocs. |
| 965 |
(ppc64_elf_adjust_dynamic_symbol): Likewise. |
| 966 |
(maybe_set_textrel): Likewise. |
| 967 |
* elf64-s390.c (readonly_dynrelocs): Removed. |
| 968 |
(elf_s390_adjust_dynamic_symbol): Replace readonly_dynrelocs |
| 969 |
with _bfd_elf_readonly_dynrelocs. |
| 970 |
(maybe_set_textrel): Likewise. |
| 971 |
* elflink.c (_bfd_elf_readonly_dynrelocs): New. |
| 972 |
* elfnn-aarch64.c (readonly_dynrelocs): Removed. |
| 973 |
(maybe_set_textrel): Replace readonly_dynrelocs with |
| 974 |
_bfd_elf_readonly_dynrelocs. |
| 975 |
* elfnn-riscv.c (readonly_dynrelocs): Removed. |
| 976 |
(riscv_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs |
| 977 |
with _bfd_elf_readonly_dynrelocs. |
| 978 |
(maybe_set_textrel): Likewise. |
| 979 |
* elfxx-sparc.c (readonly_dynrelocs): Removed. |
| 980 |
(_bfd_sparc_elf_adjust_dynamic_symbol): Replace |
| 981 |
readonly_dynrelocs with _bfd_elf_readonly_dynrelocs. |
| 982 |
(maybe_set_textrel): Likewise. |
| 983 |
* elfxx-tilegx.c (readonly_dynrelocs): Removed. |
| 984 |
(tilegx_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs |
| 985 |
with _bfd_elf_readonly_dynrelocs. |
| 986 |
(maybe_set_textrel): Likewise. |
| 987 |
* elfxx-x86.c (readonly_dynrelocs): Removed. |
| 988 |
(maybe_set_textrel): Replace readonly_dynrelocs with |
| 989 |
_bfd_elf_readonly_dynrelocs. |
| 990 |
(_bfd_x86_elf_adjust_dynamic_symbol): Likewise. |
| 991 |
|
| 992 |
2020-06-03 H.J. Lu <[email protected]> |
| 993 |
|
| 994 |
* elfxx-x86.h (GENERATE_DYNAMIC_RELOCATION_P): Silence |
| 995 |
-fsanitize=undefined. |
| 996 |
|
| 997 |
2020-06-03 Alan Modra <[email protected]> |
| 998 |
|
| 999 |
PR 26069 |
| 1000 |
PR 18758 |
| 1001 |
* peicode.h (pe_ILF_make_a_section): Align data for compilers |
| 1002 |
other than gcc. |
| 1003 |
(pe_ILF_build_a_bfd): Likewise. |
| 1004 |
|
| 1005 |
2020-06-03 Alan Modra <[email protected]> |
| 1006 |
|
| 1007 |
PR 26069 |
| 1008 |
* elf.c (_bfd_elf_close_and_cleanup): Free elf_shstrtab for |
| 1009 |
core files as well as objects. |
| 1010 |
|
| 1011 |
2020-06-01 H.J. Lu <[email protected]> |
| 1012 |
|
| 1013 |
PR ld/26067 |
| 1014 |
* elf-bfd.h (elf_link_hash_entry): Add dyn_relocs after size. |
| 1015 |
* elf-s390-common.c (s390_elf_allocate_ifunc_dyn_relocs): |
| 1016 |
Updated. |
| 1017 |
* elf32-arc.c (elf_arc_link_hash_entry): Remove dyn_relocs. |
| 1018 |
(elf_arc_link_hash_newfunc): Updated. |
| 1019 |
* elf32-arm.c (elf32_arm_link_hash_entry): Remove dyn_relocs. |
| 1020 |
(elf32_arm_link_hash_newfunc): Updated. |
| 1021 |
(elf32_arm_copy_indirect_symbol): Likewise. |
| 1022 |
(elf32_arm_check_relocs): Likewise. |
| 1023 |
(readonly_dynrelocs): Likewise. |
| 1024 |
(allocate_dynrelocs_for_symbol): Likewise. |
| 1025 |
* elf32-csky.c (csky_elf_link_hash_entry): Remove dyn_relocs. |
| 1026 |
(csky_elf_link_hash_newfunc): Updated. |
| 1027 |
(csky_allocate_dynrelocs): Likewise. |
| 1028 |
(readonly_dynrelocs): Likewise. |
| 1029 |
(csky_elf_copy_indirect_symbol): Likewise. |
| 1030 |
* elf32-hppa.c (elf32_hppa_link_hash_entry): Remove dyn_relocs. |
| 1031 |
(hppa_link_hash_newfunc): Updated. |
| 1032 |
(elf32_hppa_copy_indirect_symbol): Likewise. |
| 1033 |
(elf32_hppa_hide_symbol): Likewise. |
| 1034 |
(elf32_hppa_adjust_dynamic_symbol): Likewise. |
| 1035 |
(allocate_dynrelocs): Likewise. |
| 1036 |
(elf32_hppa_relocate_section): Likewise. |
| 1037 |
* elf32-i386.c (elf_i386_check_relocs): Likewise. |
| 1038 |
* elf32-lm32.c (elf_lm32_link_hash_entry): Removed. |
| 1039 |
(lm32_elf_link_hash_newfunc): Likewise. |
| 1040 |
(lm32_elf_link_hash_table_create): Updated. |
| 1041 |
(readonly_dynrelocs): Likewise. |
| 1042 |
(allocate_dynrelocs): Likewise. |
| 1043 |
(lm32_elf_copy_indirect_symbol): Likewise. |
| 1044 |
* elf32-m32r.c (elf_m32r_link_hash_entry): Removed. |
| 1045 |
(m32r_elf_link_hash_newfunc): Likewise. |
| 1046 |
(m32r_elf_link_hash_table_create): Updated. |
| 1047 |
(m32r_elf_copy_indirect_symbol): Likewise. |
| 1048 |
(allocate_dynrelocs): Likewise. |
| 1049 |
* elf32-metag.c (elf_metag_link_hash_entry): Remove dyn_relocs. |
| 1050 |
(metag_link_hash_newfunc): Updated. |
| 1051 |
(elf_metag_copy_indirect_symbol): Likewise. |
| 1052 |
(readonly_dynrelocs): Likewise. |
| 1053 |
(allocate_dynrelocs): Likewise. |
| 1054 |
* elf32-microblaze.c (elf32_mb_link_hash_entry): Remove |
| 1055 |
dyn_relocs. |
| 1056 |
(link_hash_newfunc): Updated. |
| 1057 |
(microblaze_elf_check_relocs): Likewise. |
| 1058 |
(microblaze_elf_copy_indirect_symbol): Likewise. |
| 1059 |
(readonly_dynrelocs): Likewise. |
| 1060 |
(allocate_dynrelocs): Likewise. |
| 1061 |
* elf32-nds32.c (elf_nds32_link_hash_entry): Remove dyn_relocs. |
| 1062 |
(nds32_elf_link_hash_newfunc): Updated. |
| 1063 |
(nds32_elf_copy_indirect_symbol): Likewise. |
| 1064 |
(readonly_dynrelocs): Likewise. |
| 1065 |
(allocate_dynrelocs): Likewise. |
| 1066 |
(nds32_elf_check_relocs): Likewise. |
| 1067 |
* elf32-nios2.c (elf32_nios2_link_hash_entry): Remove dyn_relocs. |
| 1068 |
(link_hash_newfunc): Updated. |
| 1069 |
(nios2_elf32_copy_indirect_symbol): Likewise. |
| 1070 |
(nios2_elf32_check_relocs): Likewise. |
| 1071 |
(allocate_dynrelocs): Likewise. |
| 1072 |
* elf32-or1k.c (elf_or1k_link_hash_entry): Remove dyn_relocs. |
| 1073 |
(or1k_elf_link_hash_newfunc): Updated. |
| 1074 |
(readonly_dynrelocs): Likewise. |
| 1075 |
(allocate_dynrelocs): Likewise. |
| 1076 |
(or1k_elf_copy_indirect_symbol): Likewise. |
| 1077 |
* elf32-ppc.c (ppc_elf_link_hash_entry): Remove dyn_relocs. |
| 1078 |
(ppc_elf_link_hash_newfunc): Updated. |
| 1079 |
(ppc_elf_copy_indirect_symbol): Likewise. |
| 1080 |
(ppc_elf_check_relocs): Likewise. |
| 1081 |
(readonly_dynrelocs): Likewise. |
| 1082 |
(ppc_elf_adjust_dynamic_symbol): Likewise. |
| 1083 |
(allocate_dynrelocs): Likewise. |
| 1084 |
(ppc_elf_relocate_section): Likewise. |
| 1085 |
* elf32-s390.c (elf_s390_link_hash_entry): Remove dyn_relocs. |
| 1086 |
(link_hash_newfunc): Updated. |
| 1087 |
(elf_s390_copy_indirect_symbol): Likewise. |
| 1088 |
(readonly_dynrelocs): Likewise. |
| 1089 |
(elf_s390_adjust_dynamic_symbol): Likewise. |
| 1090 |
(allocate_dynrelocs): Likewise. |
| 1091 |
* elf32-sh.c (elf_sh_link_hash_entry): Remove dyn_relocs. |
| 1092 |
(sh_elf_link_hash_newfunc): Updated. |
| 1093 |
(readonly_dynrelocs): Likewise. |
| 1094 |
(allocate_dynrelocs): Likewise. |
| 1095 |
(sh_elf_copy_indirect_symbol): Likewise. |
| 1096 |
(sh_elf_check_relocs): Likewise. |
| 1097 |
* elf32-tic6x.c (elf32_tic6x_link_hash_entry): Removed. |
| 1098 |
(elf32_tic6x_link_hash_newfunc): Likewise. |
| 1099 |
(elf32_tic6x_link_hash_table_create): Updated. |
| 1100 |
(readonly_dynrelocs): Likewise. |
| 1101 |
(elf32_tic6x_check_relocs): Likewise. |
| 1102 |
(elf32_tic6x_allocate_dynrelocs): Likewise. |
| 1103 |
* elf32-tilepro.c (tilepro_elf_link_hash_entry): Remove |
| 1104 |
dyn_relocs. |
| 1105 |
(link_hash_newfunc): Updated. |
| 1106 |
(tilepro_elf_copy_indirect_symbol): Likewise. |
| 1107 |
(tilepro_elf_check_relocs): Likewise. |
| 1108 |
(allocate_dynrelocs): Likewise. |
| 1109 |
* elf64-ppc.c (ppc_link_hash_entry): Remove dyn_relocs. |
| 1110 |
(ppc64_elf_copy_indirect_symbol): Updated. |
| 1111 |
(ppc64_elf_check_relocs): Likewise. |
| 1112 |
(readonly_dynrelocs): Likewise. |
| 1113 |
(ppc64_elf_adjust_dynamic_symbol): Likewise. |
| 1114 |
(dec_dynrel_count): Likewise. |
| 1115 |
(allocate_dynrelocs): Likewise. |
| 1116 |
(ppc64_elf_relocate_section): Likewise. |
| 1117 |
* elf64-s390.c (elf_s390_link_hash_entry): Remove dyn_relocs. |
| 1118 |
(link_hash_newfunc): Updated. |
| 1119 |
(elf_s390_copy_indirect_symbol): Likewise. |
| 1120 |
(readonly_dynrelocs): Likewise. |
| 1121 |
(allocate_dynrelocs): Likewise. |
| 1122 |
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. |
| 1123 |
* elfnn-aarch64.c (elf_aarch64_link_hash_entry): Remove |
| 1124 |
dyn_relocs. |
| 1125 |
(elfNN_aarch64_link_hash_newfunc): Updated. |
| 1126 |
(elfNN_aarch64_copy_indirect_symbol): Likewise. |
| 1127 |
(readonly_dynrelocs): Likewise. |
| 1128 |
(need_copy_relocation_p): Likewise. |
| 1129 |
(elfNN_aarch64_allocate_dynrelocs): Likewise. |
| 1130 |
(elfNN_aarch64_allocate_ifunc_dynrelocs): Likewise. |
| 1131 |
* elfnn-riscv.c (riscv_elf_link_hash_entry): Remove dyn_relocs. |
| 1132 |
(link_hash_newfunc): Updated. |
| 1133 |
(riscv_elf_copy_indirect_symbol): Likewise. |
| 1134 |
(riscv_elf_check_relocs): Likewise. |
| 1135 |
(readonly_dynrelocs): Likewise. |
| 1136 |
(allocate_dynrelocs): Likewise. |
| 1137 |
* elfxx-sparc.c (_bfd_sparc_elf_link_hash_entry): Remove |
| 1138 |
dyn_relocs. |
| 1139 |
(link_hash_newfunc): Updated. |
| 1140 |
(_bfd_sparc_elf_copy_indirect_symbol): Likewise. |
| 1141 |
(_bfd_sparc_elf_check_relocs): Likewise. |
| 1142 |
(readonly_dynrelocs): Likewise. |
| 1143 |
(allocate_dynrelocs): Likewise. |
| 1144 |
* elfxx-tilegx.c (tilegx_elf_link_hash_entry): Remove dyn_relocs. |
| 1145 |
(link_hash_newfunc): Updated. |
| 1146 |
(tilegx_elf_copy_indirect_symbol): Likewise. |
| 1147 |
(tilegx_elf_check_relocs): Likewise. |
| 1148 |
(readonly_dynrelocs): Likewise. |
| 1149 |
(allocate_dynrelocs): Likewise. |
| 1150 |
* elfxx-x86.c (elf_x86_allocate_dynrelocs): Likewise. |
| 1151 |
(readonly_dynrelocs): Likewise. |
| 1152 |
(_bfd_x86_elf_copy_indirect_symbol): Likewise. |
| 1153 |
* elfxx-x86.h (elf_x86_link_hash_entry): Remove dyn_relocs. |
| 1154 |
|
| 1155 |
2020-06-01 Alan Modra <[email protected]> |
| 1156 |
|
| 1157 |
* vms-alpha.c (_bfd_vms_slurp_etir): Check bound for the current |
| 1158 |
command against cmd_length, not the end of record. For |
| 1159 |
ETIR__C_STO_IMMR check size against cmd_length, mask repeat count |
| 1160 |
to 32-bits and break out on zero size. Add ETIR__C_STC_LP_PSB |
| 1161 |
cmd_length test. |
| 1162 |
|
| 1163 |
2020-05-28 David Faust <[email protected]> |
| 1164 |
|
| 1165 |
* elf64-bpf.c (bpf_elf_relocate_section): Fix handling of |
| 1166 |
R_BPF_INSN_{32,64} relocations. |
| 1167 |
|
| 1168 |
2020-05-28 Stephen Casner <[email protected]> |
| 1169 |
|
| 1170 |
* pdp11.c: Implement BRD_RELOC_32 to relocate the low 16 bits of |
| 1171 |
addreses in .long (used in testsuites) and .stab values. |
| 1172 |
|
| 1173 |
2020-05-27 H.J. Lu <[email protected]> |
| 1174 |
|
| 1175 |
PR ld/22909 |
| 1176 |
* elflink.c (bfd_elf_final_link): Use bfd_link_textrel_check. |
| 1177 |
Check bfd_link_dll when issue a DT_TEXTREL warning. |
| 1178 |
* elfxx-x86.c (maybe_set_textrel): Likewise. |
| 1179 |
(_bfd_x86_elf_size_dynamic_sections): Likewise. |
| 1180 |
|
| 1181 |
2020-05-26 Nick Clifton <[email protected]> |
| 1182 |
|
| 1183 |
* plugin.c (try_load_plugin): Extend error message when a plugin |
| 1184 |
fails to open. |
| 1185 |
|
| 1186 |
2020-05-23 Alan Modra <[email protected]> |
| 1187 |
|
| 1188 |
* bfdio.c (bfd_get_file_size): Don't segfault on NULL arch_header. |
| 1189 |
|
| 1190 |
2020-05-22 Alan Modra <[email protected]> |
| 1191 |
|
| 1192 |
PR 25882 |
| 1193 |
* elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Don't init FP |
| 1194 |
attributes from shared libraries, and do not return an error if |
| 1195 |
they don't match. |
| 1196 |
|
| 1197 |
2020-05-21 Alan Modra <[email protected]> |
| 1198 |
|
| 1199 |
PR 25993 |
| 1200 |
* opncls.c (_bfd_free_cached_info): Keep a copy of the bfd |
| 1201 |
filename. |
| 1202 |
(_bfd_delete_bfd): Free the copy. |
| 1203 |
(_bfd_new_bfd): Free nbfd->memory on error. |
| 1204 |
|
| 1205 |
2020-05-21 Alan Modra <[email protected]> |
| 1206 |
|
| 1207 |
* aoutx.h: Replace "if (x) free (x)" with "free (x)" throughout. |
| 1208 |
* archive.c, * bfd.c, * bfdio.c, * coff-alpha.c, * coff-ppc.c, |
| 1209 |
* coff-sh.c, * coff-stgo32.c, * coffcode.h, * coffgen.c, |
| 1210 |
* cofflink.c, * cpu-arm.c, * doc/chew.c, * dwarf2.c, * ecoff.c, |
| 1211 |
* ecofflink.c, * elf-eh-frame.c, * elf-m10200.c, * elf-m10300.c, |
| 1212 |
* elf-strtab.c, * elf.c, * elf32-arc.c, * elf32-arm.c, |
| 1213 |
* elf32-avr.c, * elf32-bfin.c, * elf32-cr16.c, * elf32-crx.c, |
| 1214 |
* elf32-epiphany.c, * elf32-ft32.c, * elf32-h8300.c, |
| 1215 |
* elf32-ip2k.c, * elf32-m32c.c, * elf32-m68hc11.c, |
| 1216 |
* elf32-m68k.c, * elf32-microblaze.c, * elf32-msp430.c, |
| 1217 |
* elf32-nds32.c, * elf32-nios2.c, * elf32-ppc.c, * elf32-pru.c, |
| 1218 |
* elf32-rl78.c, * elf32-rx.c, * elf32-sh.c, * elf32-spu.c, |
| 1219 |
* elf32-v850.c, * elf32-xtensa.c, * elf64-alpha.c, |
| 1220 |
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c |
| 1221 |
* elf64-mmix.c, * elf64-ppc.c, * elf64-sparc.c, * elfcode.h, |
| 1222 |
* elflink.c, * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, |
| 1223 |
* elfxx-x86.c, * format.c, * ihex.c, * libbfd.c, * linker.c, |
| 1224 |
* mmo.c, * opncls.c, * pdp11.c, * peXXigen.c, * pef.c, |
| 1225 |
* peicode.h, * simple.c, * som.c, * srec.c, * stabs.c, * syms.c, |
| 1226 |
* targets.c, * vms-lib.c, * xcofflink.c, * xtensa-isa.c: Likewise. |
| 1227 |
|
| 1228 |
2020-05-20 Nelson Chu <[email protected]> |
| 1229 |
|
| 1230 |
* elfxx-riscv.h (riscv_parse_subset_t): Add new callback function |
| 1231 |
get_default_version. It is used to find the default version for |
| 1232 |
the specific extension. |
| 1233 |
* elfxx-riscv.c (riscv_parsing_subset_version): Remove the parameters |
| 1234 |
default_major_version and default_minor_version. Add new bfd_boolean |
| 1235 |
parameter *use_default_version. Set it to TRUE if we need to call |
| 1236 |
the callback rps->get_default_version to find the default version. |
| 1237 |
(riscv_parse_std_ext): Call rps->get_default_version if we fail to find |
| 1238 |
the default version in riscv_parsing_subset_version, and then call |
| 1239 |
riscv_add_subset to add the subset into subset list. |
| 1240 |
(riscv_parse_prefixed_ext): Likewise. |
| 1241 |
(riscv_std_z_ext_strtab): Support Zicsr extensions. |
| 1242 |
* elfnn-riscv.c (riscv_merge_std_ext): Use strcasecmp to compare the |
| 1243 |
strings rather than characters. |
| 1244 |
riscv_merge_arch_attr_info): The callback function get_default_version |
| 1245 |
is only needed for assembler, so set it to NULL int the linker. |
| 1246 |
* elfxx-riscv.c (riscv_estimate_digit): Remove the static. |
| 1247 |
* elfxx-riscv.h: Updated. |
| 1248 |
|
| 1249 |
2020-05-20 Alan Modra <[email protected]> |
| 1250 |
|
| 1251 |
PR 25993 |
| 1252 |
* archive.c (_bfd_get_elt_at_filepos): Don't strdup filename, |
| 1253 |
use bfd_set_filename. |
| 1254 |
* elfcode.h (_bfd_elf_bfd_from_remote_memory): Likewise. |
| 1255 |
* mach-o.c (bfd_mach_o_fat_member_init): Likewise. |
| 1256 |
* opncls.c (bfd_fopen, bfd_openstreamr, bfd_openr_iovec, bfd_openw), |
| 1257 |
(bfd_create): Likewise. |
| 1258 |
(_bfd_delete_bfd): Don't free filename. |
| 1259 |
(bfd_set_filename): Copy filename param to bfd_alloc'd memory, |
| 1260 |
return pointer to the copy or NULL on alloc fail. |
| 1261 |
* vms-lib.c (_bfd_vms_lib_get_module): Free newname and test |
| 1262 |
result of bfd_set_filename. |
| 1263 |
* bfd-in2.h: Regenerate. |
| 1264 |
|
| 1265 |
2020-05-20 Alan Modra <[email protected]> |
| 1266 |
|
| 1267 |
PR 26011 |
| 1268 |
* elf.c (_bfd_elf_get_reloc_upper_bound): Sanity check reloc |
| 1269 |
section size against file size. |
| 1270 |
(_bfd_elf_get_dynamic_reloc_upper_bound): Likewise. |
| 1271 |
|
| 1272 |
2020-05-19 Gunther Nikl <[email protected]> |
| 1273 |
|
| 1274 |
PR 26005 |
| 1275 |
* elf.c (bfd_section_from_shdr): Replace bfd_zmalloc with bfd_malloc |
| 1276 |
and memset when allocating memory for the sections_being_created |
| 1277 |
array. |
| 1278 |
|
| 1279 |
2020-05-19 Stafford Horne <[email protected]> |
| 1280 |
|
| 1281 |
* elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Rename srela |
| 1282 |
to relgot. |
| 1283 |
(or1k_elf_relocate_section): Access srelgot via |
| 1284 |
htab->root.srelgot. Add assertions for srelgot->contents. |
| 1285 |
Introduce local variable for srelgot to not reuse global |
| 1286 |
sreloc. |
| 1287 |
(or1k_elf_relocate_section): Fixup dynamic symbol detection. |
| 1288 |
(or1k_set_got_and_rela_sizes): New function. |
| 1289 |
(or1k_initial_exec_offset): New function. |
| 1290 |
(TLS_GD, TLS_IE, TLS_LD, TLS_LE): Redefine macros as masks. |
| 1291 |
(or1k_elf_relocate_section): Allow for TLS to handle multiple |
| 1292 |
model access. |
| 1293 |
(or1k_elf_check_relocs): Use OR to set TLS access. |
| 1294 |
(allocate_dynrelocs): Use or1k_set_got_and_rela_sizes to set |
| 1295 |
sizes. |
| 1296 |
(or1k_elf_size_dynamic_sections): Use |
| 1297 |
or1k_set_got_and_rela_sizes to set sizes. |
| 1298 |
(or1k_elf_relocate_section): Fixup PCREL relocation calculation. |
| 1299 |
(TCB_SIZE): New macro. |
| 1300 |
(tpoff): Use TCB_SIZE and alignment to calculate offset. |
| 1301 |
(allocate_dynrelocs, readonly_dynrelocs, or1k_elf_check_relocs) |
| 1302 |
(or1k_elf_size_dynamic_sections): Rename p to sec_relocs. |
| 1303 |
(allocate_dynrelocs): Rename s to splt or sgot based on usage. |
| 1304 |
(tpoff): Add dynamic boolean argument. |
| 1305 |
(or1k_elf_relocate_section): Pass dynamic flag to tpoff. |
| 1306 |
|
| 1307 |
2020-05-19 Siddhesh Poyarekar <[email protected]> |
| 1308 |
|
| 1309 |
* elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Club |
| 1310 |
BFD_RELOC_AARCH64_BRANCH19 and BFD_RELOC_AARCH64_TSTBR14 |
| 1311 |
cases with BFD_RELOC_AARCH64_JUMP26. |
| 1312 |
(elfNN_aarch64_check_relocs): Likewise. |
| 1313 |
|
| 1314 |
2020-05-19 Alan Modra <[email protected]> |
| 1315 |
|
| 1316 |
* aix5ppc-core.c (xcoff64_core_file_matches_executable_p): Use |
| 1317 |
bfd_get_filename rather than accessing bfd->filename directly. |
| 1318 |
* aout-target.h (MY (object_p)): Likewise. |
| 1319 |
* aoutx.h (aout_find_nearest_line, aout_link_write_symbols): Likewise. |
| 1320 |
* archive.c (find_nested_archive, _bfd_generic_read_ar_hdr_mag), |
| 1321 |
(_bfd_construct_extended_name_table, _bfd_bsd44_write_ar_hdr), |
| 1322 |
(_bfd_archive_bsd44_construct_extended_name_table), |
| 1323 |
(_bfd_write_archive_contents, _bfd_compute_and_write_armap), |
| 1324 |
(_bfd_bsd_write_armap): Likewise. |
| 1325 |
* bfd.c (bfd_errmsg, _bfd_doprnt): Likewise. |
| 1326 |
* cache.c (bfd_open_file): Likewise. |
| 1327 |
* ecoff.c (_bfd_ecoff_write_armap): Likewise. |
| 1328 |
* ecofflink.c (bfd_ecoff_debug_accumulate_other): Likewise. |
| 1329 |
* elf32-bfin.c (bfinfdpic_relocate_section): Likewise. |
| 1330 |
* elf32-frv.c (elf32_frv_relocate_section): Likewise. |
| 1331 |
* elf32-hppa.c (elf32_hppa_final_link): Likewise. |
| 1332 |
* elf32-nds32.c (nds32_elf_output_symbol_hook), |
| 1333 |
(patch_tls_desc_to_ie): Likewise. |
| 1334 |
* elf32-spu.c (sort_bfds, print_one_overlay_section), |
| 1335 |
(spu_elf_auto_overlay): Likewise. |
| 1336 |
* elf64-hppa.c (elf_hppa_final_link): Likewise. |
| 1337 |
* elf64-ia64-vms.c (elf64_ia64_size_dynamic_sections): Likewise. |
| 1338 |
* elfcore.h (elf_core_file_matches_executable_p): Likewise. |
| 1339 |
* elflink.c (bfd_elf_size_dynamic_sections), |
| 1340 |
(elf_link_input_bfd): Likewise. |
| 1341 |
* linker.c (_bfd_generic_link_output_symbols): Likewise. |
| 1342 |
* mach-o.c (bfd_mach_o_follow_dsym), |
| 1343 |
(bfd_mach_o_close_and_cleanup): Likewise. |
| 1344 |
* opncls.c (_bfd_delete_bfd, _maybe_make_executable), |
| 1345 |
(find_separate_debug_file, get_build_id_name): Likewise. |
| 1346 |
* pdp11.c (aout_find_nearest_line, aout_link_write_symbols): Likewise. |
| 1347 |
* plugin.c (bfd_plugin_open_input): Likewise. |
| 1348 |
* rs6000-core.c (rs6000coff_core_file_matches_executable_p): Likewise. |
| 1349 |
* som.c (som_write_armap): Likewise. |
| 1350 |
* srec.c (srec_write_record, srec_write_symbols): Likewise. |
| 1351 |
* vms-lib.c (_bfd_vms_lib_get_imagelib_file), |
| 1352 |
(_bfd_vms_lib_write_archive_contents): Likewise. |
| 1353 |
* xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise. |
| 1354 |
|
| 1355 |
2020-05-19 Alan Modra <[email protected]> |
| 1356 |
|
| 1357 |
PR 25713 |
| 1358 |
* bfdio.c (_bfd_real_fopen): Typo fix. |
| 1359 |
|
| 1360 |
2020-05-18 Nick Clifton <[email protected]> |
| 1361 |
|
| 1362 |
PR 26005 |
| 1363 |
* elf.c (bfd_section_from_shdr): Use bfd_malloc to allocate memory |
| 1364 |
for the sections_being_created array. |
| 1365 |
|
| 1366 |
2020-05-18 Alan Modra <[email protected]> |
| 1367 |
|
| 1368 |
* ecoff.c (ecoff_slurp_reloc_table): Malloc external_relocs so |
| 1369 |
they can be freed without also freeing internal_relocs. |
| 1370 |
|
| 1371 |
2020-05-18 Jaydeep Chauhan <[email protected]> |
| 1372 |
|
| 1373 |
PR 25713 |
| 1374 |
* bfdio.c (_bfd_real_fopen): Convert UNIX style sirectory |
| 1375 |
separators into DOS style when creating a WIN32 fullpath. |
| 1376 |
|
| 1377 |
2020-05-14 Nelson Chu <[email protected]> |
| 1378 |
|
| 1379 |
* elfnn-riscv.c (elfNN_riscv_mkobject): New function. We need this |
| 1380 |
to initialize RISC-V tdata. |
| 1381 |
|
| 1382 |
2020-05-12 Gunther Nikl <[email protected]> |
| 1383 |
|
| 1384 |
* aoutx.h (NAME (aout, swap_std_reloc_out)): Reject an unsupported |
| 1385 |
relocation size. |
| 1386 |
|
| 1387 |
2020-05-11 Alan Modra <[email protected]> |
| 1388 |
|
| 1389 |
* elf64-ppc.c (xlate_pcrel_opt): Handle lxvp and stxvp. |
| 1390 |
|
| 1391 |
2020-05-11 Alan Modra <[email protected]> |
| 1392 |
|
| 1393 |
* elf64-ppc.c: Rename powerxx to power10 throughout. |
| 1394 |
|
| 1395 |
2020-05-11 Alan Modra <[email protected]> |
| 1396 |
|
| 1397 |
PR 25961 |
| 1398 |
* coffgen.c (coff_get_normalized_symtab): Check that buffer |
| 1399 |
contains required number of auxents before processing any auxent. |
| 1400 |
* coffswap.h (coff_swap_aux_in <C_FILE>): Only swap in extended |
| 1401 |
file name from auxents for PE. |
| 1402 |
|
| 1403 |
2020-05-04 Gunther Nikl <[email protected]> |
| 1404 |
|
| 1405 |
* aout-cris.c (DEFAULT_ARCH): Delete define. |
| 1406 |
(MY_set_arch_mach): Likewise. |
| 1407 |
(SET_ARCH_MACH): Use bfd_set_arch_mach with an explicit architecture |
| 1408 |
of bfd_arch_cris. |
| 1409 |
(swap_ext_reloc_in): Add casts to r_index extraction. Mask valid bits |
| 1410 |
of r_type before the shift. |
| 1411 |
|
| 1412 |
2020-05-04 Wilco Dijkstra <[email protected]> |
| 1413 |
|
| 1414 |
PR ld/25665 |
| 1415 |
* elfnn-aarch64.c (group_sections): Copy implementation from |
| 1416 |
elf32-arm.c. |
| 1417 |
|
| 1418 |
2020-05-01 Alan Modra <[email protected]> |
| 1419 |
|
| 1420 |
PR 25900 |
| 1421 |
* elfnn-riscv.c (_bfd_riscv_relax_section): Check root.type before |
| 1422 |
accessing root.u.def of symbols. Also check root.u.def.section |
| 1423 |
is non-NULL. Reverse tests so as to make the logic positive. |
| 1424 |
|
| 1425 |
2020-05-01 Alan Modra <[email protected]> |
| 1426 |
|
| 1427 |
PR 25882 |
| 1428 |
* elf32-tic6x.c (elf32_tic6x_merge_attributes): Don't transfer |
| 1429 |
Tag_ABI_PIC or Tag_ABI_PID from dynamic objects to the output. |
| 1430 |
|
| 1431 |
2020-05-01 Alan Modra <[email protected]> |
| 1432 |
|
| 1433 |
PR 25882 |
| 1434 |
* elf32-bfin.c (elf32_bfin_merge_private_bfd_data): Add FIXME. |
| 1435 |
* elf32-frv.c (frv_elf_merge_private_bfd_data): Likewise. |
| 1436 |
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise. |
| 1437 |
* elf32-nds32.c (nds32_elf_merge_private_bfd_data): Likewise. |
| 1438 |
* elf32-score.c (s3_elf32_score_merge_private_bfd_data): Likewise. |
| 1439 |
* elf32-score7.c (s7_elf32_score_merge_private_bfd_data): Likewise. |
| 1440 |
* elf32-sh.c (sh_elf_merge_private_data): Likewise. |
| 1441 |
* elf32-tic6x.c (elf32_tic6x_merge_attributes): Likewise. |
| 1442 |
* elf64-ia64-vms.c (elf64_ia64_merge_private_bfd_data): Likewise. |
| 1443 |
* elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): Likewise. |
| 1444 |
|
| 1445 |
2020-05-01 Alan Modra <[email protected]> |
| 1446 |
|
| 1447 |
PR 25882 |
| 1448 |
* elf32-ppc.c (ppc_elf_merge_private_bfd_data): Ignore e_flags |
| 1449 |
from shared libraries. |
| 1450 |
|
| 1451 |
2020-04-29 Max Filippov <[email protected]> |
| 1452 |
|
| 1453 |
* elf32-xtensa.c (relax_section): Don't negate diff_value for |
| 1454 |
XTENSA_NDIFF relocations. Don't add sign bits whe diff_value |
| 1455 |
equals 0. Report overflow when the result has negative sign but |
| 1456 |
all significant bits are zero. |
| 1457 |
|
| 1458 |
2020-04-29 Gunther Nikl <[email protected]> |
| 1459 |
|
| 1460 |
* aoutx.h (swap_std_reloc_out): Special case 64 bit relocations. |
| 1461 |
(aout_link_reloc_link_order): Likewise. Make r_length an unsigned. |
| 1462 |
|
| 1463 |
2020-04-28 Alan Modra <[email protected]> |
| 1464 |
|
| 1465 |
* vms-alpha.c (_bfd_vms_slurp_etir): Correct divide by zero check. |
| 1466 |
Emit warning message. |
| 1467 |
|
| 1468 |
2020-04-27 Tamar Christina <[email protected]> |
| 1469 |
|
| 1470 |
* coff-i386.c (COFF_WITH_PE_BIGOBJ): New. |
| 1471 |
* coff-x86_64.c (COFF_WITH_PE_BIGOBJ): New. |
| 1472 |
* config.bfd (targ_selvecs): Rename x86_64_pe_be_vec |
| 1473 |
to x86_64_pe_big_vec as it not a big-endian format. |
| 1474 |
(vec i386_pe_big_vec): New. |
| 1475 |
* configure.ac: Likewise. |
| 1476 |
* targets.c: Likewise. |
| 1477 |
* configure: Regenerate. |
| 1478 |
* pe-i386.c (TARGET_SYM_BIG, TARGET_NAME_BIG, |
| 1479 |
COFF_WITH_PE_BIGOBJ): New. |
| 1480 |
* pe-x86_64.c (TARGET_SYM_BIG, TARGET_NAME_BIG): |
| 1481 |
New. |
| 1482 |
(x86_64_pe_be_vec): Moved. |
| 1483 |
|
| 1484 |
2020-04-23 Anton Kolesov <[email protected]> |
| 1485 |
|
| 1486 |
* elf-bfd.h (elfcore_write_arc_v2): Add prototype. |
| 1487 |
* elf.c (elfcore_grok_arc_v2): New function. |
| 1488 |
(elfcore_grok_note): Call the new function to handle the corresponding |
| 1489 |
note. |
| 1490 |
(elfcore_write_arc_v2): New function. |
| 1491 |
(elfcore_write_register_note): Call the new function to handle the |
| 1492 |
corresponding pseudo-sections. |
| 1493 |
|
| 1494 |
2020-04-22 Max Filippov <[email protected]> |
| 1495 |
|
| 1496 |
PR ld/25861 |
| 1497 |
* bfd-in2.h: Regenerated. |
| 1498 |
* elf32-xtensa.c (elf_howto_table): New entries for |
| 1499 |
R_XTENSA_PDIFF{8,16,32} and R_XTENSA_NDIFF{8,16,32}. |
| 1500 |
(elf_xtensa_reloc_type_lookup, elf_xtensa_do_reloc) |
| 1501 |
(relax_section): Add cases for R_XTENSA_PDIFF{8,16,32} and |
| 1502 |
R_XTENSA_NDIFF{8,16,32}. |
| 1503 |
* libbfd.h (bfd_reloc_code_real_names): Add names for |
| 1504 |
BFD_RELOC_XTENSA_PDIFF{8,16,32} and |
| 1505 |
BFD_RELOC_XTENSA_NDIFF{8,16,32}. |
| 1506 |
* reloc.c: Add documentation for BFD_RELOC_XTENSA_PDIFF{8,16,32} |
| 1507 |
and BFD_RELOC_XTENSA_NDIFF{8,16,32}. |
| 1508 |
|
| 1509 |
2020-04-21 Tamar Christina <[email protected]> |
| 1510 |
|
| 1511 |
PR binutils/24753 |
| 1512 |
* compress.c (bfd_get_full_section_contents): Exclude sections with no |
| 1513 |
content. |
| 1514 |
|
| 1515 |
2020-04-21 H.J. Lu <[email protected]> |
| 1516 |
|
| 1517 |
PR ld/25849 |
| 1518 |
* elf-bfd.h (elf_backend_data): Add |
| 1519 |
elf_backend_strip_zero_sized_dynamic_sections. |
| 1520 |
(_bfd_elf_strip_zero_sized_dynamic_sections): New prototype. |
| 1521 |
* elf64-alpha.c (elf_backend_strip_zero_sized_dynamic_sections): |
| 1522 |
New macro. |
| 1523 |
* elflink.c (_bfd_elf_strip_zero_sized_dynamic_sections): New |
| 1524 |
function. |
| 1525 |
* elfxx-target.h (elf_backend_strip_zero_sized_dynamic_sections): |
| 1526 |
New macro. |
| 1527 |
(elfNN_bed): Add elf_backend_strip_zero_sized_dynamic_sections. |
| 1528 |
|
| 1529 |
2020-04-21 H.J. Lu <[email protected]> |
| 1530 |
|
| 1531 |
* elf64-alpha.c (alpha_elf_reloc_entry): Replace reltext with |
| 1532 |
sec. |
| 1533 |
(elf64_alpha_check_relocs): Set sec instead of reltext. Warn |
| 1534 |
DT_TEXTREL with -M. |
| 1535 |
(elf64_alpha_calc_dynrel_sizes): Warn DT_TEXTREL with -M. |
| 1536 |
|
| 1537 |
2020-04-21 Nick Clifton <[email protected]> |
| 1538 |
|
| 1539 |
* po/sr.po: Updated Serbian translation. |
| 1540 |
|
| 1541 |
2020-04-21 Alan Modra <[email protected]> |
| 1542 |
|
| 1543 |
* elf32-sh.c (sh_elf_relocate_section): Remove STO_SH5_ISA32 |
| 1544 |
processing. |
| 1545 |
|
| 1546 |
2020-04-20 Stephen Casner <[email protected]> |
| 1547 |
|
| 1548 |
* pdp11.c (N_STAB): Modify value to avoid conflict with N_EXT |
| 1549 |
causing globals from linker script to be treated as debug symbols. |
| 1550 |
(translate_symbol_table): Don't sign-extend symbol values from 16 |
| 1551 |
to 64 bits in nm output. |
| 1552 |
|
| 1553 |
2020-04-20 Alan Modra <[email protected]> |
| 1554 |
|
| 1555 |
* elf64-ppc.c (ppc64_elf_size_stubs): Strip relbrlt too. |
| 1556 |
|
| 1557 |
2020-04-18 Alan Modra <[email protected]> |
| 1558 |
|
| 1559 |
* section.c (bfd_is_const_section): Correct test for special |
| 1560 |
sections. |
| 1561 |
* bfd-in2.h: Regenerate. |
| 1562 |
|
| 1563 |
2020-04-17 Alan Modra <[email protected]> |
| 1564 |
|
| 1565 |
PR 25842 |
| 1566 |
* elf.c (_bfd_elf_get_symbol_version_string): Don't segfault on |
| 1567 |
NULL nodename. |
| 1568 |
|
| 1569 |
2020-04-16 Nick Clifton <[email protected]> |
| 1570 |
|
| 1571 |
PR 25803 |
| 1572 |
* elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Replace an |
| 1573 |
abort with a more helpful error message. |
| 1574 |
|
| 1575 |
2020-04-16 Alan Modra <[email protected]> |
| 1576 |
|
| 1577 |
PR 25827 |
| 1578 |
* dwarf2.c (scan_unit_for_symbols): Wrap overlong lines. Don't |
| 1579 |
strdup(0). |
| 1580 |
|
| 1581 |
2020-04-15 Fangrui Song <[email protected]> |
| 1582 |
|
| 1583 |
PR binutils/24613 |
| 1584 |
* coff-rs6000.c (xcoff_ppc_relocate_section): Change RM_GENERATE_ERROR |
| 1585 |
to RM_DIAGNOSE plus a check of warn_unresolved_syms. |
| 1586 |
* coff64-rs6000.c (xcoff_ppc_relocate_section): Likewise. |
| 1587 |
* elf-bfd.h (_bfd_elf_large_com_section): Likewise. |
| 1588 |
* elf32-m32r.c (m32r_elf_relocate_section): Likewise. |
| 1589 |
* elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise. |
| 1590 |
* elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. |
| 1591 |
* elf32-sh.c (sh_elf_relocate_section): Likewise. |
| 1592 |
* elf32-spu.c (spu_elf_relocate_section): Likewise. |
| 1593 |
* elf64-hppa.c (elf64_hppa_relocate_section): Likewise. |
| 1594 |
* elflink.c (elf_link_output_extsym): Likewise. |
| 1595 |
* elfxx-mips.c (mips_elf_calculate_relocation): Likewise. |
| 1596 |
|
| 1597 |
2020-04-15 Alan Modra <[email protected]> |
| 1598 |
|
| 1599 |
PR 25823 |
| 1600 |
* peXXigen.c (_bfd_XXi_swap_sym_in <C_SECTION>): Don't use a |
| 1601 |
pointer into strings that may be freed for section name, always |
| 1602 |
allocate a new string. |
| 1603 |
|
| 1604 |
2020-04-14 Juan Manuel Guerrero <[email protected]> |
| 1605 |
Jan W. Jagersma <[email protected]> |
| 1606 |
|
| 1607 |
* coff-go32.c (COFF_GO32, IMAGE_SCN_LNK_NRELOC_OVFL) |
| 1608 |
(coff_SWAP_scnhdr_in, coff_SWAP_scnhdr_out): Define. |
| 1609 |
(_bfd_go32_swap_scnhdr_in, _bfd_go32_swap_scnhdr_out) |
| 1610 |
(_bfd_go32_mkobject): New functions. |
| 1611 |
* coff-stgo32.c (IMAGE_SCN_LNK_NRELOC_OVFL) |
| 1612 |
(coff_SWAP_scnhdr_in, coff_SWAP_scnhdr_out): Define. |
| 1613 |
(go32exe_mkobject): Call _bfd_go32_mkobject. |
| 1614 |
* coffcode.h (COFF_WITH_EXTENDED_RELOC_COUNTER): Define. |
| 1615 |
(coff_set_alignment_hook): Define function for COFF_GO32_EXE |
| 1616 |
and COFF_GO32. |
| 1617 |
(coff_write_relocs): Enable extended reloc counter code if |
| 1618 |
COFF_WITH_EXTENDED_RELOC_COUNTER is defined. Test for obj_go32. |
| 1619 |
(coff_write_object_contents): Likewise. Pad section headers |
| 1620 |
for COFF_GO32 and COFF_GO32EXE. Use bfd_coff_swap_scnhdr_out |
| 1621 |
instead of coff_swap_scnhdr_out. |
| 1622 |
* cofflink.c (_bfd_coff_final_link): Test also for obj_go32 to |
| 1623 |
enable extended reloc counter. |
| 1624 |
* coffswap.h: (coff_swap_scnhdr_in, coff_swap_scnhdr_out): |
| 1625 |
Declare with ATTRIBUTE_UNUSED. |
| 1626 |
* libcoff-in.h: (struct coff_tdata): New field go32. |
| 1627 |
(obj_go32): Define. |
| 1628 |
* libcoff.h: Regenerate. |
| 1629 |
|
| 1630 |
2020-04-14 Fangrui Song <[email protected]> |
| 1631 |
|
| 1632 |
PR gas/25768 |
| 1633 |
* elf.c (assign_section_numbers): Always set .stab sh_entsize to |
| 1634 |
12. |
| 1635 |
|
| 1636 |
2020-04-14 Stephen Casner <[email protected]> |
| 1637 |
|
| 1638 |
PR ld/25677 |
| 1639 |
* pdp11.c: Add implementation of --imagic option. |
| 1640 |
(adjust_o_magic): Fix objcopy --extract-symbol test. |
| 1641 |
* libaout.h (enum aout_magic): Add i_magic. |
| 1642 |
|
| 1643 |
2020-04-07 Rainer Orth <[email protected]> |
| 1644 |
Nick Clifton <[email protected]> |
| 1645 |
|
| 1646 |
* elf32-sparc.c (sparc_final_write_processing): Fix whitespace. |
| 1647 |
<0>: Ignore. |
| 1648 |
<default>: Error rather than abort. |
| 1649 |
|
| 1650 |
2020-04-03 H.J. Lu <[email protected]> |
| 1651 |
|
| 1652 |
PR ld/25767 |
| 1653 |
* elf.c (_bfd_elf_fixup_group_sections): Remove zero-sized |
| 1654 |
relocation section from section group. |
| 1655 |
|
| 1656 |
2020-04-02 Jan W. Jagersma <[email protected]> |
| 1657 |
|
| 1658 |
* bfdio.c (bfd_bread, bfd_tell, bfd_seek, bfd_mmap): Always add |
| 1659 |
bfd->origin to file offset. |
| 1660 |
* bfdwin.c (bfd_get_file_window): Likewise. |
| 1661 |
* bfd.c: Clarify the use of the bfd->origin field. |
| 1662 |
* bfd-in2.h: Regenerate. |
| 1663 |
* coff-i386.c: Don't include go32exe.h. Allow overriding |
| 1664 |
coff_write_object_contents via COFF_WRITE_CONTENTS. |
| 1665 |
* coff-stgo32.c (go32exe_cleanup, go32exe_mkobject) |
| 1666 |
(go32exe_write_object_contents): New functions. |
| 1667 |
(go32exe_temp_stub, go32exe_temp_stub_size): New static globals. |
| 1668 |
(COFF_WRITE_CONTENTS, GO32EXE_DEFAULT_STUB_SIZE): Define. |
| 1669 |
(create_go32_stub): Remove check for 2k size limit. Read stub |
| 1670 |
from go32exe_temp_stub if present. |
| 1671 |
(go32_stubbed_coff_bfd_copy_private_bfd_data): Allocate and |
| 1672 |
copy variable-length stub. |
| 1673 |
(go32_check_format): Read stub to go32exe_temp_stub, set |
| 1674 |
origin, return go32exe_cleanup. |
| 1675 |
(adjust_filehdr_in_post, adjust_filehdr_out_pre) |
| 1676 |
(adjust_filehdr_out_post, adjust_scnhdr_in_post) |
| 1677 |
(adjust_scnhdr_out_pre, adjust_scnhdr_out_post) |
| 1678 |
(adjust_aux_in_post, adjust_aux_out_pre, adjust_aux_out_post): |
| 1679 |
Remove functions and their associated #defines. |
| 1680 |
* coffcode.h (coff_mkobject_hook): Remove stub copying code. |
| 1681 |
* libcoff-in.h: (struct coff_tdata): New field stub_size. |
| 1682 |
Rename field go32stub to stub. |
| 1683 |
* libcoff.h: Regenerate. |
| 1684 |
* coff-stgo32.c (go32_check_format): Rename to... |
| 1685 |
(go32exe_check_format): ...this. |
| 1686 |
(go32_stubbed_coff_bfd_copy_private_bfd_data): Rename to... |
| 1687 |
(go32exe_copy_private_bfd_data): ...this. |
| 1688 |
(stub_bytes): Rename to... |
| 1689 |
(go32exe_default_stub): ...this. |
| 1690 |
(create_go32_stub): Rename to... |
| 1691 |
(go32exe_create_stub): ...this. |
| 1692 |
* coff-stgo32.c (go32exe_copy_private_bfd_data): Avoid realloc |
| 1693 |
when possible. |
| 1694 |
|
| 1695 |
2020-04-01 H.J. Lu <[email protected]> |
| 1696 |
|
| 1697 |
PR ld/25749 |
| 1698 |
PR ld/25754 |
| 1699 |
* elf32-i386.c (elf_i386_convert_load_reloc): Convert load |
| 1700 |
relocation to R_386_32 for relocation against non-preemptible |
| 1701 |
absolute symbol. |
| 1702 |
(elf_i386_check_relocs): Call _bfd_elf_x86_valid_reloc_p. Don't |
| 1703 |
allocate dynamic relocation for non-preemptible absolute symbol. |
| 1704 |
(elf_i386_relocate_section): Pass sec to |
| 1705 |
GENERATE_DYNAMIC_RELOCATION_P. |
| 1706 |
* elf64-x86-64.c (R_X86_64_converted_reloc_bit): Moved. |
| 1707 |
(elf_x86_64_convert_load_reloc): Covert load relocation to |
| 1708 |
R_X86_64_32S or R_X86_64_32 for relocation against non-preemptible |
| 1709 |
absolute symbol. Don't convert to R_X86_64_32S nor R_X86_64_32 |
| 1710 |
for non-preemptible absolute symbol if they overflow. |
| 1711 |
(elf_x86_64_check_relocs): Call _bfd_elf_x86_valid_reloc_p. Set |
| 1712 |
tls_type for GOT slot to GOT_ABS for non-preemptible absolute |
| 1713 |
symbol. Don't allocate dynamic relocation for non-preemptible |
| 1714 |
absolute symbol. |
| 1715 |
(elf_x86_64_relocate_section): Don't generate relative relocation |
| 1716 |
for GOTPCREL relocations aganst local absolute symbol. Pass sec |
| 1717 |
to GENERATE_DYNAMIC_RELOCATION_P. |
| 1718 |
* elfxx-x86.c (elf_x86_allocate_dynrelocs): No dynamic relocation |
| 1719 |
against non-preemptible absolute symbol. |
| 1720 |
(_bfd_elf_x86_valid_reloc_p): New function. |
| 1721 |
(_bfd_x86_elf_size_dynamic_sections): No dynamic relocation for |
| 1722 |
GOT_ABS GOT slot. |
| 1723 |
* elfxx-x86.h (GENERATE_DYNAMIC_RELOCATION_P): Add an SEC |
| 1724 |
argument. Don't generate dynamic relocation against |
| 1725 |
non-preemptible absolute symbol. |
| 1726 |
(ABS_SYMBOL_P): New. |
| 1727 |
(GENERATE_RELATIVE_RELOC_P): Don't generate relative relocation |
| 1728 |
against non-preemptible absolute symbol. |
| 1729 |
(GOT_ABS): New. |
| 1730 |
(R_X86_64_converted_reloc_bit): New. Moved from elf64-x86-64.c. |
| 1731 |
(_bfd_elf_x86_valid_reloc_p): New. |
| 1732 |
|
| 1733 |
2020-04-01 Tamar Christina <[email protected]> |
| 1734 |
|
| 1735 |
PR ld/16017 |
| 1736 |
* elf32-arm.c (elf32_arm_populate_plt_entry): Set LSB of the PLT0 |
| 1737 |
address in the GOT if in thumb only mode. |
| 1738 |
|
| 1739 |
2020-04-01 Tamar Christina <[email protected]> |
| 1740 |
|
| 1741 |
* elf32-arm.c (elf32_thumb2_plt_entry): Fix PC-rel offset. |
| 1742 |
|
| 1743 |
2020-04-01 Hans-Peter Nilsson <[email protected]> |
| 1744 |
|
| 1745 |
* mmo.c (mmo_scan): Create .text section only when needed, not |
| 1746 |
from the start. |
| 1747 |
|
| 1748 |
2020-03-31 Alan Modra <[email protected]> |
| 1749 |
|
| 1750 |
* coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Correct bfd_bread |
| 1751 |
return value check. |
| 1752 |
|
| 1753 |
2020-03-31 Alan Modra <[email protected]> |
| 1754 |
|
| 1755 |
* vms-alpha.c (image_write): Check bounds for sections without |
| 1756 |
contents too. Error on non-zero write to section without |
| 1757 |
contents. |
| 1758 |
(_bfd_vms_slurp_etir): Check return of image_write* functions. |
| 1759 |
|
| 1760 |
2020-03-31 Alan Modra <[email protected]> |
| 1761 |
|
| 1762 |
* tekhex.c (pass_over): Check is_eof before reading buffer. |
| 1763 |
|
| 1764 |
2020-03-30 Nick Clifton <[email protected]> |
| 1765 |
|
| 1766 |
PR binutils/pr25662 |
| 1767 |
* libcoff-in.h (struct pe_tdata): Rename the insert_timestamp |
| 1768 |
field to timestamp and make it an integer. |
| 1769 |
* libcoff.h: Regenerate. |
| 1770 |
* peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Test the timestamp |
| 1771 |
field in the pe_data structure rather than the insert_timestamp |
| 1772 |
field. |
| 1773 |
|
| 1774 |
2020-03-30 Alan Modra <[email protected]> |
| 1775 |
|
| 1776 |
PR 25745 |
| 1777 |
* elf64-ppc.c (ppc64_elf_build_stubs): Use asprintf to form |
| 1778 |
statistics message. |
| 1779 |
|
| 1780 |
2020-03-26 Nick Clifton <[email protected]> |
| 1781 |
|
| 1782 |
* cofflink.c (bfd_coff_get_internal_extra_pe_aouthdr): Delete. |
| 1783 |
* libbfd-in.h (bfd_coff_get_internal_extra_pe_aouthdr): Remove |
| 1784 |
prototype. |
| 1785 |
* libbfd.h: Regenerate. |
| 1786 |
|
| 1787 |
2020-03-26 Alan Modra <[email protected]> |
| 1788 |
|
| 1789 |
* i386msdos.c (msdos_object_p): Catch -1 return from bfd_bread. |
| 1790 |
|
| 1791 |
2020-03-26 Alan Modra <[email protected]> |
| 1792 |
|
| 1793 |
* vms-alpha.c (dst_define_location): Limit size of dst_ptr_offsets |
| 1794 |
array. |
| 1795 |
(_bfd_vms_slurp_object_records): Rename "err" to "ok". |
| 1796 |
|
| 1797 |
2020-03-25 Nick Clifton <[email protected]> |
| 1798 |
|
| 1799 |
* cofflink.c (bfd_coff_get_internal_extra_pe_aouthdr): New |
| 1800 |
function. |
| 1801 |
* libbfd-in.h (bfd_coff_get_internal_extra_pe_aouthdr): Prototype. |
| 1802 |
* libbfd.h: Regenerate. |
| 1803 |
|
| 1804 |
2020-03-25 Shahab Vahedi <[email protected]> |
| 1805 |
|
| 1806 |
* elf32-arc.c (PRINT_DEBUG_RELOC_INFO_BEFORE): Use the |
| 1807 |
correct field name in the output string. |
| 1808 |
|
| 1809 |
2020-03-25 Alan Modra <[email protected]> |
| 1810 |
|
| 1811 |
PR 25662 |
| 1812 |
* elf.c (assign_file_positions_for_load_sections): Adjust offset |
| 1813 |
for SHT_NOBITS section if first in segment. |
| 1814 |
|
| 1815 |
2020-03-24 H.J. Lu <[email protected]> |
| 1816 |
|
| 1817 |
PR binutils/25708 |
| 1818 |
* elf-bfd.h (_bfd_elf_get_symbol_version_name): Renamed to ... |
| 1819 |
(_bfd_elf_get_symbol_version_string): This. |
| 1820 |
* elf.c (_bfd_elf_get_symbol_version_name): Renamed to ... |
| 1821 |
(_bfd_elf_get_symbol_version_string): This. |
| 1822 |
(bfd_elf_print_symbol): Pass TRUE to |
| 1823 |
_bfd_elf_get_symbol_version_string. |
| 1824 |
* libbfd-in.h (_bfd_nosymbols_get_symbol_version_string): Add a |
| 1825 |
bfd_boolean argument. |
| 1826 |
* syms.c (_bfd_nosymbols_get_symbol_version_string): Likewise. |
| 1827 |
* targets.c (_bfd_get_symbol_version_string): Likewise. |
| 1828 |
(bfd_get_symbol_version_string): Likewise. |
| 1829 |
* bfd-in2.h: Regenerated. |
| 1830 |
|
| 1831 |
2020-03-24 Nick Clifton <[email protected]> |
| 1832 |
Jaydeep Chauhan <[email protected]> |
| 1833 |
|
| 1834 |
PR 25713 |
| 1835 |
* bfdio.c (_bfd_real_fopen): Add code to handle long filenames on |
| 1836 |
Win32 systems. |
| 1837 |
|
| 1838 |
2020-03-24 Nick Clifton <[email protected]> |
| 1839 |
|
| 1840 |
PR 25681 |
| 1841 |
* elf.c (_bfd_elf_map_sections_to_segments): When looking for a |
| 1842 |
segment to use for PT_GNU_RELRO, ignore empty sections in a |
| 1843 |
segment's current list. |
| 1844 |
|
| 1845 |
2020-03-24 H.J. Lu <[email protected]> |
| 1846 |
|
| 1847 |
PR binutils/25717 |
| 1848 |
* elf-bfd.h (elf_obj_tdata): Change num_group to unsigned int. |
| 1849 |
|
| 1850 |
2020-03-24 H.J. Lu <[email protected]> |
| 1851 |
|
| 1852 |
PR binutils/25708 |
| 1853 |
* elf-bfd.h (_bfd_elf_get_symbol_version_name): New. |
| 1854 |
* elf.c (_bfd_elf_get_symbol_version_name): New function. Based |
| 1855 |
on the previous _bfd_elf_get_symbol_version_string. |
| 1856 |
(_bfd_elf_get_symbol_version_string): Use it. |
| 1857 |
|
| 1858 |
2020-03-24 Alan Modra <[email protected]> |
| 1859 |
|
| 1860 |
* archive.c (_bfd_generic_read_ar_hdr_mag): Sanity check extended |
| 1861 |
name size. Use bfd_malloc rather than bfd_zmalloc, clearing just |
| 1862 |
struct areltdata. |
| 1863 |
|
| 1864 |
2020-03-23 Sebastian Huber <[email protected]> |
| 1865 |
|
| 1866 |
* elflink.c (_bfd_elf_tls_setup): Mention .tdata in comment. |
| 1867 |
|
| 1868 |
2020-03-23 Alan Modra <[email protected]> |
| 1869 |
|
| 1870 |
* ecoff.c (_bfd_ecoff_slurp_armap): Sanity check parsed_size and |
| 1871 |
symbol count. Allocate an extra byte to ensure name strings |
| 1872 |
are terminated. Sanity check name offsets. Release memory on |
| 1873 |
error return. |
| 1874 |
|
| 1875 |
2020-03-23 Alan Modra <[email protected]> |
| 1876 |
|
| 1877 |
* i386msdos.c (msdos_object_p): Don't access e_lfanew when that |
| 1878 |
field hasn't been read. Remove unnecessary casts. |
| 1879 |
|
| 1880 |
2020-03-22 Alan Modra <[email protected]> |
| 1881 |
|
| 1882 |
* coff64-rs6000.c (xcoff64_slurp_armap): Ensure size is large |
| 1883 |
enough to read number of symbols. |
| 1884 |
|
| 1885 |
2020-03-20 H.J. Lu <[email protected]> |
| 1886 |
|
| 1887 |
* configure.ac (HAVE_EXECUTABLE_SUFFIX): Removed. |
| 1888 |
(EXECUTABLE_SUFFIX): Likewise. |
| 1889 |
* config.in: Regenerated. |
| 1890 |
* configure: Likewise. |
| 1891 |
* plugin.c (bfd_plugin_close_and_cleanup): Defined as |
| 1892 |
_bfd_generic_close_and_cleanup. |
| 1893 |
(plugin_list_entry): Remove resolution_file, resolution_option, |
| 1894 |
real_bfd, real_nsyms, real_syms, lto_nsyms, lto_syms, gcc, |
| 1895 |
lto_wrapper, gcc_env and initialized, |
| 1896 |
(need_lto_wrapper_p): Removed. |
| 1897 |
(get_lto_wrapper): Likewise. |
| 1898 |
(setup_lto_wrapper_env): Likewise. |
| 1899 |
(register_all_symbols_read): Likewise. |
| 1900 |
(egister_cleanup): Likewise. |
| 1901 |
(get_symbols): Likewise. |
| 1902 |
(add_input_file): Likewise. |
| 1903 |
(bfd_plugin_set_program_name): Remove need_lto_wrapper. |
| 1904 |
(add_symbols): Updated. |
| 1905 |
(try_claim): Likewise. |
| 1906 |
(try_load_plugin): Likewise. |
| 1907 |
(bfd_plugin_canonicalize_symtab): Likewise. |
| 1908 |
* plugin.h (bfd_plugin_set_program_name): Remove int argument. |
| 1909 |
(plugin_data_struct): Remove real_bfd, real_nsyms and real_syms. |
| 1910 |
|
| 1911 |
2020-03-19 H.J. Lu <[email protected]> |
| 1912 |
|
| 1913 |
PR binutils/25640 |
| 1914 |
* plugin.c (plugin_list_entry): Add has_symbol_type. |
| 1915 |
(add_symbols_v2): New function. |
| 1916 |
(bfd_plugin_open_input): Don't invoke LTO wrapper if LTO plugin |
| 1917 |
provides symbol type. |
| 1918 |
(try_load_plugin): Add LDPT_ADD_SYMBOLS_V2. |
| 1919 |
(bfd_plugin_canonicalize_symtab): Use LTO plugin symbol type if |
| 1920 |
available. |
| 1921 |
|
| 1922 |
2020-03-20 Alan Modra <[email protected]> |
| 1923 |
|
| 1924 |
* coff-rs6000.c (_bfd_xcoff_slurp_armap): Ensure size is large |
| 1925 |
enough to read number of symbols. |
| 1926 |
|
| 1927 |
2020-03-20 Alan Modra <[email protected]> |
| 1928 |
|
| 1929 |
* elf.c (_bfd_elf_setup_sections): Don't test known non-NULL |
| 1930 |
backend functions for NULL before calling. |
| 1931 |
(copy_special_section_fields, _bfd_elf_copy_private_bfd_data), |
| 1932 |
(bfd_section_from_shdr, assign_section_numbers): Likewise. |
| 1933 |
* elfcode.h (elf_write_relocs, elf_slurp_reloc_table): Likewise. |
| 1934 |
* elfnn-ia64.c (ignore_errors): New function. |
| 1935 |
(elf_backend_link_order_error_handler): Redefine as ignore_errors. |
| 1936 |
|
| 1937 |
2020-03-19 Nick Clifton <[email protected]> |
| 1938 |
|
| 1939 |
PR 25676 |
| 1940 |
* dwarf2.c (struct varinfo): Add unit_offset field to record the |
| 1941 |
location of the varinfo in the unit's debug info data. Change the |
| 1942 |
type of the stack field to a boolean. |
| 1943 |
(lookup_var_by_offset): New function. Returns the varinfo |
| 1944 |
structure for the variable described at the given offset in the |
| 1945 |
unit's debug info. |
| 1946 |
(scan_unit_for_symbols): Add support for variables which have the |
| 1947 |
DW_AT_specification attribute. |
| 1948 |
|
| 1949 |
2020-03-19 Nick Clifton <[email protected]> |
| 1950 |
|
| 1951 |
PR 25699 |
| 1952 |
* elf.c (bfd_elf_set_group_contents): Replace assertion with an |
| 1953 |
error return. |
| 1954 |
|
| 1955 |
2020-03-19 Sebastian Huber <[email protected]> |
| 1956 |
|
| 1957 |
* elfxx-riscv.c (riscv_parse_subset): Don't use C99. |
| 1958 |
|
| 1959 |
2020-03-18 Nick Clifton <[email protected]> |
| 1960 |
|
| 1961 |
PR 25673 |
| 1962 |
* elf.c (_bfd_elf_write_secondary_reloc_section): Fix illegal |
| 1963 |
memory access when processing a corrupt secondary reloc section. |
| 1964 |
|
| 1965 |
2020-03-18 Christophe Lyon <[email protected]> |
| 1966 |
|
| 1967 |
* elf32-arm.c (arm_build_one_stub): Emit a fatal error message |
| 1968 |
instead of calling abort. |
| 1969 |
* elf32-csky.c (csky_build_one_stub): Likewise. |
| 1970 |
* elf32-hppa.c (hppa_build_one_stub): Likewise. |
| 1971 |
* elf32-m68hc11.c (m68hc11_elf_build_one_stub): Likewise. |
| 1972 |
* elf32-m68hc12.c (m68hc12_elf_build_one_stub): Likewise. |
| 1973 |
* elf32-metag.c (metag_build_one_stub): Likewise. |
| 1974 |
* elf32-nios2.c (nios2_build_one_stub): Likewise. |
| 1975 |
* elf64-ppc.c (ppc_build_one_stub): Likewise. |
| 1976 |
(ppc_size_one_stub): Likewise. |
| 1977 |
* elfnn-aarch64.c (aarch64_build_one_stub): Likewise. |
| 1978 |
|
| 1979 |
2020-03-17 Nick Clifton <[email protected]> |
| 1980 |
|
| 1981 |
PR 25688 |
| 1982 |
* elf.c (_bfd_elf_copy_special_section_fields): Replace assertions |
| 1983 |
with error messages. |
| 1984 |
|
| 1985 |
2020-03-17 Nick Clifton <[email protected]> |
| 1986 |
|
| 1987 |
PR 25687 |
| 1988 |
* elf.c (_bfd_elf_slurp_secondary_reloc_section): Remove redundant |
| 1989 |
free. Add free on another failure path. |
| 1990 |
|
| 1991 |
2020-03-16 Alan Modra <[email protected]> |
| 1992 |
|
| 1993 |
PR 25675 |
| 1994 |
* elf.c (elf_sort_segments): Don't call bfd_octets_per_byte unless |
| 1995 |
we have a non-zero section count. Do lma comparison in octets. |
| 1996 |
|
| 1997 |
2020-03-16 Alan Modra <[email protected]> |
| 1998 |
|
| 1999 |
* vms-alpha.c (dst_restore_location): Validate index into |
| 2000 |
dst_ptr_offsets array before accessing. Return status. |
| 2001 |
(dst_retrieve_location): Similarly, making "loc" parameter a |
| 2002 |
pointer to return value. |
| 2003 |
(_bfd_vms_slurp_etir): Update calls to above functions. |
| 2004 |
|
| 2005 |
2020-03-14 Kamil Rytarowski <[email protected]> |
| 2006 |
|
| 2007 |
* configure.ac: Include netbsd-core.lo for all NetBSD arm and mips |
| 2008 |
targets. |
| 2009 |
* configure: Regenerated. |
| 2010 |
|
| 2011 |
2020-03-14 Alan Modra <[email protected]> |
| 2012 |
|
| 2013 |
* section.c (BFD_FAKE_SECTIONS): Formatting. |
| 2014 |
* bfd-in2.h: Regenerate. |
| 2015 |
|
| 2016 |
2020-03-13 Kamil Rytarowski <[email protected]> |
| 2017 |
|
| 2018 |
* elf.c (elfcore_grok_netbsd_note): Add support for |
| 2019 |
NT_NETBSDCORE_LWPSTATUS notes. |
| 2020 |
|
| 2021 |
2020-03-13 Christophe Lyon <[email protected]> |
| 2022 |
|
| 2023 |
* bfd-in2.h: Regenerate. |
| 2024 |
* section.c (asection): Add already_assigned field. |
| 2025 |
(BFD_FAKE_SECTION): Add default initializer for it. |
| 2026 |
* ecoff.c (bfd_debug_section): Initialize already_assigned field. |
| 2027 |
* elf32-arm.c (arm_build_one_stub): Add support for |
| 2028 |
non_contiguous_regions. |
| 2029 |
* elf32-csky.c (csky_build_one_stub): Likewise. |
| 2030 |
* elf32-hppa.c (hppa_build_one_stub): Likewise. |
| 2031 |
* elf32-m68hc11.c (m68hc11_elf_build_one_stub): Likewise. |
| 2032 |
* elf32-m68hc12.c (m68hc12_elf_build_one_stub): Likewise. |
| 2033 |
* elf32-metag.c (metag_build_one_stub): Likewise. |
| 2034 |
* elf32-nios2.c (nios2_build_one_stub): Likewise. |
| 2035 |
* elf64-ppc.c (ppc_build_one_stub): Likewise. |
| 2036 |
(ppc_size_one_stub): Likewise. |
| 2037 |
* elfnn-aarch64.c (aarch64_build_one_stub): Likewise. |
| 2038 |
* elflink.c (elf_link_input_bfd): Likewise. |
| 2039 |
|
| 2040 |
2020-03-13 H.J. Lu <[email protected]> |
| 2041 |
|
| 2042 |
PR ld/24920 |
| 2043 |
* elf-linker-x86.h (elf_linker_x86_params): Add |
| 2044 |
static_before_all_inputs and has_dynamic_linker. |
| 2045 |
* elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report |
| 2046 |
dynamic input objects if -static is passed at command-line |
| 2047 |
before all input files without --dynamic-linker unless |
| 2048 |
--no-dynamic-linker is used. |
| 2049 |
|
| 2050 |
2020-03-13 Kamil Rytarowski <[email protected]> |
| 2051 |
|
| 2052 |
* elf.c (elfcore_grok_netbsd_note): Add support for aarch64. |
| 2053 |
|
| 2054 |
2020-03-13 Christian Eggers <[email protected]> |
| 2055 |
|
| 2056 |
* bfd.c (bfd_record_phdr): New local "opb". Fix assignment of |
| 2057 |
"p_paddr" from "at". |
| 2058 |
* elfcode.h (bfd_from_remote_memory): Add units to several |
| 2059 |
parameters. New local "opb". Fix usage of p_align. Fix |
| 2060 |
calculation of "localbase" from "ehdr_vma" and "p_vaddr". Fix |
| 2061 |
call of target_read_memory. |
| 2062 |
* elflink.c (elf_fixup_link_order): Fix scope of "s" local. Fix |
| 2063 |
calculation of "offset" and "output_offset". |
| 2064 |
(bfd_elf_final_link): New local "opb". Fix calculation of "size" |
| 2065 |
from "offset" and fix calculation of "end" from "vma+size". Fix |
| 2066 |
comparison between "sh_addr" and "vma"/"output_offset". |
| 2067 |
(bfd_elf_discard_info): Fix calculation of "eh_alignment". |
| 2068 |
* elf-bfd.h (struct elf_link_hash_table): Add unit to tls_size |
| 2069 |
member. |
| 2070 |
* elf.c (_bfd_elf_map_sections_to_segments): Add unit (bytes/ |
| 2071 |
octets) to "wrap_to2 and "phdr_size" locals. Fix calculation of |
| 2072 |
"wrap_to" value. Add unit (bytes) to phdr_lma variable. Fix |
| 2073 |
assignment of p_paddr from phdr_lma. Fix comparison between |
| 2074 |
"lma+size" and "next->lma". |
| 2075 |
(elf_sort_segments): Fix assignment from p_paddr to lma. |
| 2076 |
(assign_file_positions_for_load_sections): Add unit (bytes) to |
| 2077 |
local "align". Fix calculation of local "off_adjust". Fix |
| 2078 |
calculation of local "filehdr_vaddr". |
| 2079 |
(assign_file_positions_for_non_load_sections): New local "opb". |
| 2080 |
Fix calculation of "end" from "p_size". Fix comparison between |
| 2081 |
"vma+SECTION_SIZE" and "start". Fix calculation of "p_memsz" |
| 2082 |
from "end" and "p_vaddr". |
| 2083 |
(rewrite_elf_program_header): Fix comparison between p_vaddr and |
| 2084 |
vma. Fix assignment to p_paddr from lma. Fix comparison between |
| 2085 |
p_paddr and lma. Fix assignment to p_paddr from lma. |
| 2086 |
* merge.c (sec_merge_emit): New local "opb". Convert |
| 2087 |
"alignment_power" to octets. |
| 2088 |
(_bfd_add_merge_section): New locals "alignment_power" and |
| 2089 |
"opb". Fix comparison between "alignment_power" and |
| 2090 |
"sizeof(align)". |
| 2091 |
(_bfd_merge_sections): New local "opb". Divide size by opb |
| 2092 |
before checking align mask. |
| 2093 |
|
| 2094 |
2020-03-13 Christian Eggers <[email protected]> |
| 2095 |
|
| 2096 |
* elf.c (_bfd_elf_make_section_from_shdr): Introduce new temp |
| 2097 |
opb. Divide Elf_Internal_Shdr::sh_addr by opb when setting |
| 2098 |
section LMA/VMA. |
| 2099 |
(_bfd_elf_make_section_from_phdr): Similarly. |
| 2100 |
(elf_fake_sections): Fix calculation of |
| 2101 |
Elf_Internal_shdr::sh_addr from section VMA. |
| 2102 |
(_bfd_elf_map_sections_to_segments): Fix mixup between octets |
| 2103 |
and bytes. |
| 2104 |
(assign_file_positions_for_load_sections): Fix calculations of |
| 2105 |
Elf_Internal_shdr::p_vaddr and p_paddr from section LMA/VMA. Fix |
| 2106 |
comparison between program header address and section LMA. |
| 2107 |
(assign_file_positions_for_non_load_sections): Likewise. |
| 2108 |
(rewrite_elf_program_header): Likewise. Introduce new temp opb. |
| 2109 |
(IS_CONTAINED_BY_VMA): Add parameter opb. |
| 2110 |
(IS_CONTAINED_BY_LMA,IS_SECTION_IN_INPUT_SEGMENT, |
| 2111 |
INCLUDE_SECTION_IN_SEGMENT): Likewise. |
| 2112 |
(copy_elf_program_header): Update call to ELF_SECTION_IN_SEGMENT. |
| 2113 |
Fix calculations of p_addr_valid and p_vaddr_offset. |
| 2114 |
* elflink.c (elf_link_add_object_symbols): Multiply section VMA |
| 2115 |
with octets per byte when comparing against p_vaddr. |
| 2116 |
|
| 2117 |
2020-03-11 Alan Modra <[email protected]> |
| 2118 |
|
| 2119 |
* som.c (setup_sections): Sanity check subspace.name. |
| 2120 |
|
| 2121 |
2020-03-11 Alan Modra <[email protected]> |
| 2122 |
|
| 2123 |
* elf64-ppc.c (ppc64_elf_inline_plt): Do increment rel in for loop. |
| 2124 |
|
| 2125 |
2020-03-10 Alan Modra <[email protected]> |
| 2126 |
|
| 2127 |
PR 25648 |
| 2128 |
* ihex.c (ihex_write_object_contents): Don't assume ordering of |
| 2129 |
addresses here. |
| 2130 |
|
| 2131 |
2020-03-09 Alan Modra <[email protected]> |
| 2132 |
|
| 2133 |
* wasm-module.c (wasm_scan): Sanity check file name length |
| 2134 |
before allocating memory. Move common section setup code. Do |
| 2135 |
without bfd_tell to calculate section size. |
| 2136 |
|
| 2137 |
2020-03-06 Nick Clifton <[email protected]> |
| 2138 |
|
| 2139 |
* elf.c (_bfd_elf_set_section_contents): Replace call to abort |
| 2140 |
with error messages and failure return values. |
| 2141 |
|
| 2142 |
2020-03-05 Max Filippov <[email protected]> |
| 2143 |
|
| 2144 |
* elf32-xtensa.c (shrink_dynamic_reloc_sections): Shrink dynamic |
| 2145 |
relocation sections for any removed reference to a dynamic symbol. |
| 2146 |
|
| 2147 |
2020-03-05 Nick Clifton <[email protected]> |
| 2148 |
|
| 2149 |
* elf-bfd.h (struct elf_backend_data): Add new fields: |
| 2150 |
init_secondary_reloc_section, slurp_secondary_reloc_section, |
| 2151 |
write_secondary_reloc_section. |
| 2152 |
(_bfd_elf_init_secondary_reloc_section): Prototype. |
| 2153 |
(_bfd_elf_slurp_secondary_reloc_section): Prototype. |
| 2154 |
(_bfd_elf_write_secondary_reloc_section): Prototype. |
| 2155 |
* elf.c ( bfd_section_from_shdr): Invoke the new |
| 2156 |
init_secondary_reloc_section backend function, if defined, when a |
| 2157 |
second reloc section is encountered. |
| 2158 |
(swap_out_syms): Invoke the new symbol_section_index function, if |
| 2159 |
defined, when computing the section index of an OS/PROC specific |
| 2160 |
symbol. |
| 2161 |
(_bfd_elf_init_secondary_reloc_section): New function. |
| 2162 |
(_bfd_elf_slurp_secondary_reloc_section): New function. |
| 2163 |
(_bfd_elf_write_secondary_reloc_section): New function. |
| 2164 |
(_bfd_elf_copy_special_section_fields): New function. |
| 2165 |
* elfcode.h (elf_write_relocs): Invoke the new |
| 2166 |
write_secondary_relocs function, if defined, in order to emit |
| 2167 |
secondary relocs. |
| 2168 |
(elf_slurp_reloc_table): Invoke the new slurp_secondary_relocs |
| 2169 |
function, if defined, in order to read in secondary relocs. |
| 2170 |
* elfxx-target.h (elf_backend_copy_special_section_fields): |
| 2171 |
Provide a non-NULL default definition. |
| 2172 |
(elf_backend_init_secondary_reloc_section): Likewise. |
| 2173 |
(elf_backend_slurp_secondary_reloc_section): Likewise. |
| 2174 |
(elf_backend_write_secondary_reloc_section): Likewise. |
| 2175 |
(struct elf_backend_data elfNN_bed): Add initialisers for the new |
| 2176 |
fields. |
| 2177 |
* configure.ac (score_elf32_[bl]e_vec): Add elf64.lo |
| 2178 |
* configure: Regenerate. |
| 2179 |
|
| 2180 |
2020-03-05 Alan Modra <[email protected]> |
| 2181 |
|
| 2182 |
* archive64.c (_bfd_archive_64_bit_slurp_armap): Check parsed_size |
| 2183 |
against file size before allocating memory. Use bfd_alloc rather |
| 2184 |
than bfd_zalloc for carsym/strings memory. |
| 2185 |
|
| 2186 |
2020-03-04 Alan Modra <[email protected]> |
| 2187 |
|
| 2188 |
* elf.c (elf_fake_sections): Ensure sh_addralign is such that |
| 2189 |
sh_addr mod sh_addalign is zero. |
| 2190 |
|
| 2191 |
2020-03-04 Alan Modra <[email protected]> |
| 2192 |
|
| 2193 |
* format.c (bfd_check_format_matches): Call cleanup on error exit. |
| 2194 |
|
| 2195 |
2020-03-03 Alan Modra <[email protected]> |
| 2196 |
|
| 2197 |
* format.c (struct bfd_preserve): Add cleanup field. |
| 2198 |
(bfd_preserve_save): Add cleanup param and save. |
| 2199 |
(bfd_preserve_restore): Return cleanup. |
| 2200 |
(bfd_preserve_finish): Call the cleanup for the discarded match. |
| 2201 |
(bfd_check_format_matches): Pass cleanup to bfd_preserve_save, |
| 2202 |
and clear when preserving a match. Restore cleanup too when |
| 2203 |
restoring that match. |
| 2204 |
|
| 2205 |
2020-03-02 Alan Modra <[email protected]> |
| 2206 |
|
| 2207 |
* cisco-core.c (cisco_core_file_p): Return bfd_cleanup. |
| 2208 |
* hpux-core.c (hpux_core_core_file_p): Update prototype. |
| 2209 |
* sco5-core.c (sco5_core_file_p): Return bfd_cleanup. |
| 2210 |
(core_sco5_vec): Correct initialisers. |
| 2211 |
|
| 2212 |
2020-03-02 Alan Modra <[email protected]> |
| 2213 |
|
| 2214 |
* aix386-core.c (aix386_core_file_p): Return bfd_cleanup. |
| 2215 |
* aix5ppc-core.c (xcoff64_core_p): Likewise. |
| 2216 |
* cisco-core.c (cisco_core_file_validate): Likewise. |
| 2217 |
* hppabsd-core.c (hppabsd_core_core_file_p): Likewise. |
| 2218 |
* hpux-core.c (hpux_core_core_file_p): Likewise. |
| 2219 |
* irix-core.c (irix_core_core_file_p): Likewise. |
| 2220 |
* lynx-core.c (lynx_core_file_p): Likewise. |
| 2221 |
* netbsd-core.c (netbsd_core_file_p): Likewise. |
| 2222 |
* osf-core.c (osf_core_core_file_p): Likewise. |
| 2223 |
* ptrace-core.c (ptrace_unix_core_file_p): Likewise. |
| 2224 |
* sco5-core.c (sco5_core_file_p): Likewise. |
| 2225 |
|
| 2226 |
2020-03-02 H.J. Lu <[email protected]> |
| 2227 |
|
| 2228 |
* trad-core.c (trad_unix_core_file_p): Return bfd_cleanup. |
| 2229 |
|
| 2230 |
2020-03-02 Alan Modra <[email protected]> |
| 2231 |
|
| 2232 |
* targets.c (bfd_cleanup): New typedef. |
| 2233 |
(struct bfd <_bfd_check_format>): Return a bfd_cleanup. |
| 2234 |
* libbfd-in.h (_bfd_no_cleanup): Define. |
| 2235 |
* format.c (bfd_reinit): Add cleanup parameter, call it. |
| 2236 |
(bfd_check_format_matches): Set cleanup from _bfd_check_format |
| 2237 |
call and pass to bfd_reinit. Delete temp, use abfd->xvec instead. |
| 2238 |
* aout-target.h (callback, object_p): Return bfd_cleanup. |
| 2239 |
* aout-tic30.c (tic30_aout_callback, tic30_aout_object_p): Likewise. |
| 2240 |
* archive.c (bfd_generic_archive_p): Likewise. |
| 2241 |
* binary.c (binary_object_p): Likewise. |
| 2242 |
* coff-alpha.c (alpha_ecoff_object_p): Likewise. |
| 2243 |
* coff-ia64.c (ia64coff_object_p): Likewise. |
| 2244 |
* coff-rs6000.c (_bfd_xcoff_archive_p, rs6000coff_core_p): Likewise. |
| 2245 |
* coff-sh.c (coff_small_object_p): Likewise. |
| 2246 |
* coff-stgo32.c (go32_check_format): Likewise. |
| 2247 |
* coff64-rs6000.c (xcoff64_archive_p, rs6000coff_core_p), |
| 2248 |
(xcoff64_core_p): Likewise. |
| 2249 |
* coffgen.c (coff_real_object_p, coff_object_p): Likewise. |
| 2250 |
* elf-bfd.h (bfd_elf32_object_p, bfd_elf32_core_file_p), |
| 2251 |
(bfd_elf64_object_p, bfd_elf64_core_file_p): Likewise. |
| 2252 |
* elfcode.h (elf_object_p): Likewise. |
| 2253 |
* elfcore.h (elf_core_file_p): Likewise. |
| 2254 |
* i386msdos.c (msdos_object_p): Likewise. |
| 2255 |
* ihex.c (ihex_object_p): Likewise. |
| 2256 |
* libaout.h (some_aout_object_p): Likewise. |
| 2257 |
* libbfd-in.h (bfd_generic_archive_p, _bfd_dummy_target), |
| 2258 |
(_bfd_vms_lib_alpha_archive_p, _bfd_vms_lib_ia64_archive_p): Likewise. |
| 2259 |
* libbfd.c (_bfd_dummy_target): Likewise. |
| 2260 |
* libcoff-in.h (coff_object_p): Likewise. |
| 2261 |
* mach-o-aarch64.c (bfd_mach_o_arm64_object_p), |
| 2262 |
(bfd_mach_o_arm64_core_p): Likewise. |
| 2263 |
* mach-o-arm.c (bfd_mach_o_arm_object_p), |
| 2264 |
(bfd_mach_o_arm_core_p): Likewise. |
| 2265 |
* mach-o-i386.c (bfd_mach_o_i386_object_p), |
| 2266 |
(bfd_mach_o_i386_core_p): Likewise. |
| 2267 |
* mach-o-x86-64.c (bfd_mach_o_x86_64_object_p), |
| 2268 |
(bfd_mach_o_x86_64_core_p): Likewise. |
| 2269 |
* mach-o.c (bfd_mach_o_header_p, bfd_mach_o_gen_object_p), |
| 2270 |
(bfd_mach_o_gen_core_p, bfd_mach_o_fat_archive_p): Likewise. |
| 2271 |
* mach-o.h (bfd_mach_o_object_p, bfd_mach_o_core_p), |
| 2272 |
(bfd_mach_o_fat_archive_p, bfd_mach_o_header_p): Likewise. |
| 2273 |
* mmo.c (mmo_object_p): Likewise. |
| 2274 |
* pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise. |
| 2275 |
* peicode.h (coff_real_object_p, pe_ILF_object_p), |
| 2276 |
(pe_bfd_object_p): Likewise. |
| 2277 |
* plugin.c (ld_plugin_object_p, bfd_plugin_object_p): Likewise. |
| 2278 |
* ppcboot.c (ppcboot_object_p): Likewise. |
| 2279 |
* rs6000-core.c (rs6000coff_core_p): Likewise. |
| 2280 |
* som.c (som_object_setup, som_object_p): Likewise. |
| 2281 |
* srec.c (srec_object_p, symbolsrec_object_p): Likewise. |
| 2282 |
* tekhex.c (tekhex_object_p): Likewise. |
| 2283 |
* vms-alpha.c (alpha_vms_object_p): Likewise. |
| 2284 |
* vms-lib.c (_bfd_vms_lib_archive_p, _bfd_vms_lib_alpha_archive_p), |
| 2285 |
(_bfd_vms_lib_ia64_archive_p, _bfd_vms_lib_txt_archive_p): Likewise. |
| 2286 |
* wasm-module.c (wasm_object_p): Likewise. |
| 2287 |
* xsym.c (bfd_sym_object_p): Likewise. |
| 2288 |
* xsym.h (bfd_sym_object_p): Likewise. |
| 2289 |
* aoutx.h (some_aout_object_p): Likewise, and callback parameter |
| 2290 |
return type. |
| 2291 |
* pdp11.c (some_aout_object_p): Likewise. |
| 2292 |
* plugin.c (register_ld_plugin_object_p): Update object_p |
| 2293 |
parameter type. |
| 2294 |
* plugin.h (register_ld_plugin_object_p): Likewise. |
| 2295 |
* bfd-in2.h: Regenerate. |
| 2296 |
* libbfd.h: Regenerate. |
| 2297 |
* libcoff.h: Regenerate. |
| 2298 |
|
| 2299 |
2020-03-02 Alan Modra <[email protected]> |
| 2300 |
|
| 2301 |
* coff-alpha.c (alpha_ecoff_le_vec): Add SEC_SMALL_DATA to |
| 2302 |
applicable section flags. |
| 2303 |
* coff-mips.c (mips_ecoff_le_vec, mips_ecoff_be_vec): Likewise. |
| 2304 |
(mips_ecoff_bele_vec): Likewise. |
| 2305 |
* coffcode.h (sec_to_styp_flags): Set SEC_SMALL_DATA for .sdata |
| 2306 |
and .sbss sections. |
| 2307 |
* ecoff.c (_bfd_ecoff_new_section_hook): Likewise. |
| 2308 |
(_bfd_ecoff_styp_to_sec_flags): Likewise. |
| 2309 |
|
| 2310 |
2020-03-02 Alan Modra <[email protected]> |
| 2311 |
|
| 2312 |
* elf32-m32r.c (m32r_elf_section_flags): New function. |
| 2313 |
(elf_backend_section_flags): Define. |
| 2314 |
* elf32-nds32.c (nds32_elf_section_flags): New function. |
| 2315 |
(elf_backend_section_flags): Define. |
| 2316 |
* elf32-ppc.c (ppc_elf_section_from_shdr): Set SEC_SMALL_DATA for |
| 2317 |
.sbss and .sdata sections. |
| 2318 |
* elf32-v850.c (v850_elf_section_from_shdr): Set SEC_SMALL_DATA |
| 2319 |
for SHF_V850_GPREL sections. |
| 2320 |
* elf64-alpha.c (elf64_alpha_section_from_shdr): Delete outdated |
| 2321 |
FIXME. |
| 2322 |
* elf64-hppa.c (elf64_hppa_section_from_shdr): Set SEC_SMALL_DATA |
| 2323 |
for SHF_PARISC_SHORT sections. |
| 2324 |
* elf64-ppc.c (ppc64_elf_section_flags): New function. |
| 2325 |
(elf_backend_section_flags): Define. |
| 2326 |
* elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Set SEC_SMALL_DATA |
| 2327 |
for SHF_MIPS_GPREL sections. Delete FIXME. |
| 2328 |
|
| 2329 |
2020-03-02 Alan Modra <[email protected]> |
| 2330 |
|
| 2331 |
* elf-bfd.h (elf_backend_section_flags): Remove flagword* param. |
| 2332 |
* elf.c (_bfd_elf_make_section_from_shdr): Set section flags before |
| 2333 |
calling elf_backend_section_flags with adjusted params. Use |
| 2334 |
newsect->flags past that point. |
| 2335 |
(_bfd_elf_new_section_hook): Always set sh_type and sh_flags for |
| 2336 |
special sections. |
| 2337 |
(_bfd_elf_init_private_section_data): Allow normal sh_type sections |
| 2338 |
to have their type overridden, and all sh_flags but processor and |
| 2339 |
os specific. |
| 2340 |
* elf32-arm.c (elf32_arm_section_flags): Adjust for changed params. |
| 2341 |
* elf32-mep.c (mep_elf_section_flags): Likewise. |
| 2342 |
* elf32-nios2.c (nios2_elf32_section_flags): Likewise. |
| 2343 |
* elf64-alpha.c (elf64_alpha_section_flags): Likewise. |
| 2344 |
* elf64-ia64-vms.c (elf64_ia64_section_flags): Likewise. |
| 2345 |
* elfnn-ia64.c (elfNN_ia64_section_flags): Likewise. |
| 2346 |
* elfnn-aarch64.c (elfNN_aarch64_size_stubs): Exclude the linker |
| 2347 |
stub BFD and non-aarch64 input files when scanning for stubs. |
| 2348 |
|
| 2349 |
2020-03-02 Alan Modra <[email protected]> |
| 2350 |
|
| 2351 |
* coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Provide an upper |
| 2352 |
limit to decompressed element size. |
| 2353 |
|
| 2354 |
2020-03-02 Alan Modra <[email protected]> |
| 2355 |
|
| 2356 |
* vms-lib.c (vms_traverse_index): Add recur_count param and |
| 2357 |
update calls. Fail on excessive recursion. |
| 2358 |
|
| 2359 |
2020-03-02 Alan Modra <[email protected]> |
| 2360 |
|
| 2361 |
* vms-alpha.c (vms_get_remaining_object_record): Use |
| 2362 |
bfd_realloc_or_free rather than bfd_realloc. |
| 2363 |
(add_symbol_entry, vector_grow1, alpha_vms_slurp_relocs): Likewise. |
| 2364 |
(dst_define_location, parse_module): Likewise, and check realloc |
| 2365 |
return status before using memory. Return status from function |
| 2366 |
adjusting all callers. |
| 2367 |
|
| 2368 |
2020-02-28 Alan Modra <[email protected]> |
| 2369 |
|
| 2370 |
* vms-lib.c (_bfd_vms_lib_archive_p): Free memory on error paths. |
| 2371 |
|
| 2372 |
2020-02-28 Alan Modra <[email protected]> |
| 2373 |
|
| 2374 |
* vms-alpha.c (alpha_vms_object_p): Use _bfd_malloc_and_read. |
| 2375 |
Remove duplicate undersize check. |
| 2376 |
|
| 2377 |
2020-02-27 Alan Modra <[email protected]> |
| 2378 |
|
| 2379 |
PR 24511 |
| 2380 |
* mmo.c (mmo_scan): Set SEC_DATA for .data. |
| 2381 |
|
| 2382 |
2020-02-27 Alan Modra <[email protected]> |
| 2383 |
|
| 2384 |
PR 24511 |
| 2385 |
* syms.c (stt): Trim off all but 'e', 'i' and 'p' entries. |
| 2386 |
(coff_section_type): Adjust comment. |
| 2387 |
(decode_section_type): Likewise. Call coff_section_type before |
| 2388 |
decode_section_type. |
| 2389 |
(bfd_decode_symclass): Use 'c' for common sections other than |
| 2390 |
the standard one. |
| 2391 |
|
| 2392 |
2020-02-27 Alan Modra <[email protected]> |
| 2393 |
|
| 2394 |
* coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Put all data in one |
| 2395 |
malloc'd block. |
| 2396 |
|
| 2397 |
2020-02-27 Alan Modra <[email protected]> |
| 2398 |
|
| 2399 |
* bfd.c (bfd_stat_arch_elt): Use vector of containing archive, |
| 2400 |
if file is an archive element. |
| 2401 |
* bfd-in2.h: Regenerate. |
| 2402 |
|
| 2403 |
2020-02-26 Alan Modra <[email protected]> |
| 2404 |
|
| 2405 |
* archive.c (do_slurp_bsd_armap): Increase minimum parsed_size, and |
| 2406 |
bfd_set_error on failing test. Don't bother changing bfd_error on |
| 2407 |
file read error. Check symdef_count is multiple of BSD_SYMDEF_SIZE. |
| 2408 |
Check sym name is within string buffer. Use size_t for some vars. |
| 2409 |
(do_slurp_coff_armap): Use size_t for some variables, fix size of |
| 2410 |
int_buf. Don't change bfd_error on file read error. Use |
| 2411 |
_bfd_mul_overflow when calculating carsym buffer size. Reorder |
| 2412 |
calculations to catch overflows before they occur. malloc and |
| 2413 |
free raw armap rather than using bfd_alloc. Read raw armap before |
| 2414 |
allocating carsym+strings buffer. |
| 2415 |
(_bfd_slurp_extended_name_table): Localize variables. Check |
| 2416 |
name size against file size. |
| 2417 |
|
| 2418 |
2020-02-26 Alan Modra <[email protected]> |
| 2419 |
|
| 2420 |
* vms-lib.c (vms_lib_read_index): Release correct buffer. |
| 2421 |
|
| 2422 |
2020-02-26 Alan Modra <[email protected]> |
| 2423 |
|
| 2424 |
* elf32-rx.c (rx_elf_relocate_section): Use bfd_malloc rather than |
| 2425 |
malloc. Check for NULL return from bfd_malloc. |
| 2426 |
(rx_table_find, rx_table_map): Likewise. |
| 2427 |
(rx_set_section_contents): Check bfd_alloc return. |
| 2428 |
(rx_dump_symtab): Don't alloc internal_syms or external_syms. |
| 2429 |
|
| 2430 |
2020-02-26 Alan Modra <[email protected]> |
| 2431 |
|
| 2432 |
* aoutx.h: Indent labels correctly. Format error strings. |
| 2433 |
* archive.c: Likewise. |
| 2434 |
* archive64.c: Likewise. |
| 2435 |
* coff-arm.c: Likewise. |
| 2436 |
* coff-rs6000.c: Likewise. |
| 2437 |
* coff-stgo32.c: Likewise. |
| 2438 |
* cpu-arm.c: Likewise. |
| 2439 |
* dwarf2.c: Likewise. |
| 2440 |
* elf-ifunc.c: Likewise. |
| 2441 |
* elf-properties.c: Likewise. |
| 2442 |
* elf-s390-common.c: Likewise. |
| 2443 |
* elf-strtab.c: Likewise. |
| 2444 |
* elf.c: Likewise. |
| 2445 |
* elf32-arm.c: Likewise. |
| 2446 |
* elf32-bfin.c: Likewise. |
| 2447 |
* elf32-cr16.c: Likewise. |
| 2448 |
* elf32-csky.c: Likewise. |
| 2449 |
* elf32-i386.c: Likewise. |
| 2450 |
* elf32-m68k.c: Likewise. |
| 2451 |
* elf32-msp430.c: Likewise. |
| 2452 |
* elf32-nds32.c: Likewise. |
| 2453 |
* elf32-nios2.c: Likewise. |
| 2454 |
* elf32-pru.c: Likewise. |
| 2455 |
* elf32-xtensa.c: Likewise. |
| 2456 |
* elf64-ia64-vms.c: Likewise. |
| 2457 |
* elf64-x86-64.c: Likewise. |
| 2458 |
* elfcode.h: Likewise. |
| 2459 |
* elfcore.h: Likewise. |
| 2460 |
* elflink.c: Likewise. |
| 2461 |
* elfnn-aarch64.c: Likewise. |
| 2462 |
* elfnn-ia64.c: Likewise. |
| 2463 |
* elfnn-riscv.c: Likewise. |
| 2464 |
* elfxx-mips.c: Likewise. |
| 2465 |
* elfxx-sparc.c: Likewise. |
| 2466 |
* elfxx-x86.c: Likewise. |
| 2467 |
* i386lynx.c: Likewise. |
| 2468 |
* merge.c: Likewise. |
| 2469 |
* pdp11.c: Likewise. |
| 2470 |
* plugin.c: Likewise. |
| 2471 |
* reloc.c: Likewise. |
| 2472 |
|
| 2473 |
2020-02-26 Alan Modra <[email protected]> |
| 2474 |
|
| 2475 |
PR 25593 |
| 2476 |
* elf-bfd.h (struct elf_link_hash_table): Rename "loaded" to |
| 2477 |
"dyn_loaded". |
| 2478 |
(bfd_elf_add_dt_needed_tag): Declare. |
| 2479 |
* elf-strtab.c (_bfd_elf_strtab_restore): Handle NULL buf. |
| 2480 |
* elflink.c (bfd_elf_add_dt_needed_tag): Make global and rename |
| 2481 |
from elf_add_dt_needed_tag. Remove soname and doit param. |
| 2482 |
(elf_link_add_object_symbols): Don't use elf_add_dt_needed_tag |
| 2483 |
to see whether as-needed lib is already loaded, use dyn_loaded |
| 2484 |
list instead. When saving and restoring around as-needed lib |
| 2485 |
handle possibility that dynstr has not been initialised. Don't |
| 2486 |
add DT_NEEDED tags here. Limit dyn_loaded list to dynamic libs. |
| 2487 |
Mark libs loaded via DT_NEEDED entries of other libs with |
| 2488 |
DYN_NO_NEEDED if they should not be mentioned in DT_NEEDED of |
| 2489 |
the output. |
| 2490 |
(elf_link_check_versioned_symbol): Remove now unneccesary |
| 2491 |
DYNAMIC check when traversing dyn_loaded list. |
| 2492 |
|
| 2493 |
2020-02-26 Alan Modra <[email protected]> |
| 2494 |
|
| 2495 |
* bfdio.c (bfd_get_file_size): Ignore bogus archive element sizes. |
| 2496 |
|
| 2497 |
2020-02-25 H.J. Lu <[email protected]> |
| 2498 |
|
| 2499 |
PR binutils/25584 |
| 2500 |
* plugin.c (need_lto_wrapper_p): New. |
| 2501 |
(bfd_plugin_set_program_name): Add an int argument to set |
| 2502 |
need_lto_wrapper_p. |
| 2503 |
(get_lto_wrapper): Return FALSE if need_lto_wrapper_p isn't |
| 2504 |
set. |
| 2505 |
* plugin.h (bfd_plugin_set_program_name): Add an int argument. |
| 2506 |
|
| 2507 |
2020-02-24 Alan Modra <[email protected]> |
| 2508 |
|
| 2509 |
* vms-lib.c (_bfd_vms_lib_archive_p): Correct overflow checks. |
| 2510 |
|
| 2511 |
2020-02-24 Alan Modra <[email protected]> |
| 2512 |
|
| 2513 |
* vms-lib.c (struct carsym_mem): Add limit. |
| 2514 |
(vms_add_index): Heed limit. |
| 2515 |
(vms_traverse_index): Catch buffer overflows. Remove outdated fixme. |
| 2516 |
(vms_lib_read_index): Set up limit. Catch 32-bit overflow. |
| 2517 |
Always return actual number read. |
| 2518 |
(_bfd_vms_lib_archive_p): Catch buffer overflows. Replace |
| 2519 |
assertion with error exit. |
| 2520 |
|
| 2521 |
2020-02-22 Alan Modra <[email protected]> |
| 2522 |
|
| 2523 |
PR 25585 |
| 2524 |
* elf.c (assign_file_positions_for_load_sections): Continue linking |
| 2525 |
on "PHDR segment not covered by LOAD segment" errors. |
| 2526 |
|
| 2527 |
2020-02-21 Alan Modra <[email protected]> |
| 2528 |
|
| 2529 |
* mach-o.c (bfd_mach_o_canonicalize_relocs): Fix ineffective |
| 2530 |
overflow check. |
| 2531 |
(bfd_mach_o_canonicalize_reloc): Likewise. |
| 2532 |
(bfd_mach_o_canonicalize_dynamic_reloc): Likewise. Sanity check |
| 2533 |
counts and offsets against file size. |
| 2534 |
(bfd_mach_o_build_dysymtab): Fix ineffective overflow check. |
| 2535 |
(bfd_mach_o_mangle_sections): Remove unnecessary overflow check. |
| 2536 |
(bfd_mach_o_read_symtab_symbols): Sanity check count and offset |
| 2537 |
against file size. Delete symbol table error message. |
| 2538 |
(bfd_mach_o_read_dysymtab): Sanity check counts and offsets |
| 2539 |
against file size. |
| 2540 |
(bfd_mach_o_read_symtab): Likewise. |
| 2541 |
(bfd_mach_o_read_command): Pass file size. |
| 2542 |
(bfd_mach_o_scan): Sanity check command count against file size. |
| 2543 |
|
| 2544 |
2020-02-21 Alan Modra <[email protected]> |
| 2545 |
|
| 2546 |
PR 25569 |
| 2547 |
* aoutx.h (adjust_o_magic, adjust_z_magic, adjust_n_magic): Use |
| 2548 |
"text", "data" and "bss" section pointer vars. Don't update |
| 2549 |
section size, just exec header sizes. |
| 2550 |
(adjust_sizes_and_vmas): Don't update text section size. Set |
| 2551 |
initial exec header a_text. Print exec headers sizes. |
| 2552 |
* pdp11.c (adjust_o_magic, adjust_z_magic, adjust_n_magic), |
| 2553 |
(adjust_sizes_and_vmas): Similarly. Formatting. |
| 2554 |
(final_link): Correct final file extension. |
| 2555 |
|
| 2556 |
2020-02-20 Nick Clifton <[email protected]> |
| 2557 |
|
| 2558 |
* elf-bfd.h (struct elf_backend_data): Add symbol_section_index |
| 2559 |
callback. |
| 2560 |
* elfxx-target.h (elf_backend_symbol_section_index): Provide |
| 2561 |
default definition. |
| 2562 |
(elfNN_bed): Initialise the symbol_section_index field. |
| 2563 |
* elf.c (swap_out_syms): Call symbol_section_index, if defined, on |
| 2564 |
OS and PROC specific section indicies. Warn if converting other |
| 2565 |
reserved incidies to SHN_ABS. |
| 2566 |
|
| 2567 |
2020-02-19 Sergey Belyashov <[email protected]> |
| 2568 |
|
| 2569 |
PR 25537 |
| 2570 |
* cpu-z80.c: Add machine type compatibility checking. |
| 2571 |
|
| 2572 |
2020-02-19 H.J. Lu <[email protected]> |
| 2573 |
|
| 2574 |
PR binutils/25355 |
| 2575 |
* plugin.c (plugin_list_entry): Remove handle. |
| 2576 |
(try_load_plugin): Call dlclose before return. |
| 2577 |
|
| 2578 |
2020-02-19 Alan Modra <[email protected]> |
| 2579 |
|
| 2580 |
* libbfd-in.h (_bfd_constant_p): Define. |
| 2581 |
(_bfd_alloc_and_read, _bfd_malloc_and_read): Check read size against |
| 2582 |
file size before allocating memory. |
| 2583 |
* coffgen.c (_bfd_coff_get_external_symbols): Remove file size check. |
| 2584 |
* elf.c (bfd_elf_get_str_section): Likewise. |
| 2585 |
(_bfd_elf_slurp_version_tables): Likewise. |
| 2586 |
* libbfd.h: Regenerate. |
| 2587 |
|
| 2588 |
2020-02-19 Alan Modra <[email protected]> |
| 2589 |
|
| 2590 |
* libbfd-in.h (_bfd_alloc_and_read, _bfd_malloc_and_read): New. |
| 2591 |
* aoutx.h (aout_get_external_symbols): Replace calls to |
| 2592 |
bfd_[m]alloc and bfd_bread with call to _bfd_[m]alloc_and_read. |
| 2593 |
(slurp_reloc_table): Likewise. |
| 2594 |
* archive.c (do_slurp_bsd_armap): Likewise. |
| 2595 |
(do_slurp_coff_armap): Likewise. |
| 2596 |
* archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise. |
| 2597 |
* coff-rs6000.c (_bfd_xcoff_slurp_armap): Likewise. |
| 2598 |
* coff64-rs6000.c (xcoff64_slurp_armap): Likewise. |
| 2599 |
* coffcode.h (coff_set_arch_mach_hook, buy_and_read): Likewise. |
| 2600 |
* coffgen.c (coff_real_object_p, coff_object_p, build_debug_section), |
| 2601 |
(_bfd_coff_get_external_symbols): Likewise. |
| 2602 |
* ecoff.c (ecoff_slurp_symbolic_header), |
| 2603 |
(_bfd_ecoff_slurp_symbolic_info, ecoff_slurp_reloc_table), |
| 2604 |
(_bfd_ecoff_slurp_armap, ecoff_link_add_object_symbols, READ), |
| 2605 |
(ecoff_indirect_link_order): Likewise. |
| 2606 |
* elf.c (bfd_elf_get_str_section, setup_group, elf_read_notes), |
| 2607 |
(_bfd_elf_slurp_version_tables): Likewise. |
| 2608 |
* elf32-m32c.c (m32c_elf_relax_section): Likewise. |
| 2609 |
* elf32-rl78.c (rl78_elf_relax_section): Likewise. |
| 2610 |
* elf32-rx.c (elf32_rx_relax_section): Likewise. |
| 2611 |
* elf64-alpha.c (READ): Likewise. |
| 2612 |
* elf64-mips.c (mips_elf64_slurp_one_reloc_table): Likewise. |
| 2613 |
* elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise. |
| 2614 |
* elfcode.h (elf_slurp_symbol_table), |
| 2615 |
(elf_slurp_reloc_table_from_section): Likewise. |
| 2616 |
* elflink.c (elf_link_add_object_symbols), |
| 2617 |
(elf_link_check_versioned_symbol): Likewise. |
| 2618 |
* elfxx-mips.c (READ): Likewise. |
| 2619 |
* i386lynx.c (slurp_reloc_table): Likewise. |
| 2620 |
* lynx-core.c (lynx_core_file_p): Likewise. |
| 2621 |
* mach-o.c (bfd_mach_o_canonicalize_relocs), |
| 2622 |
(bfd_mach_o_read_symtab_strtab, bfd_mach_o_alloc_and_read), |
| 2623 |
(bfd_mach_o_read_prebound_dylib, bfd_mach_o_read_dyld_content |
| 2624 |
* pdp11.c (aout_get_external_symbols, slurp_reloc_table |
| 2625 |
* pef.c (bfd_pef_print_loader_section, bfd_pef_scan_start_address), |
| 2626 |
(bfd_pef_parse_symbols): Likewise. |
| 2627 |
* peicode.h (pe_ILF_object_p, pe_bfd_object_p |
| 2628 |
* som.c (setup_sections, som_slurp_string_table), |
| 2629 |
(som_slurp_reloc_table, som_bfd_count_ar_symbols), |
| 2630 |
(som_bfd_fill_in_ar_symbols): Likewise. |
| 2631 |
* vms-alpha.c (module_find_nearest_line, evax_bfd_print_dst), |
| 2632 |
(evax_bfd_print_image): Likewise. |
| 2633 |
* vms-lib.c (_bfd_vms_lib_archive_p): Likewise. |
| 2634 |
* wasm-module.c (wasm_scan): Likewise. |
| 2635 |
* xcofflink.c (xcoff_link_add_symbols): Likewise. |
| 2636 |
* xsym.c (bfd_sym_read_name_table), |
| 2637 |
(bfd_sym_print_type_information_table_entry): Likewise. |
| 2638 |
* libbfd.h: Regenerate. |
| 2639 |
|
| 2640 |
2020-02-19 Alan Modra <[email protected]> |
| 2641 |
|
| 2642 |
* aoutx.h (slurp_reloc_table): Allocate reloc_cache after |
| 2643 |
reading external relocs. |
| 2644 |
* ecoff.c (ecoff_slurp_reloc_table): Likewise. |
| 2645 |
* archive.c (_bfd_write_archive_contents): Don't twiddle bfd_error |
| 2646 |
after bfd_bread. |
| 2647 |
* archive64.c (_bfd_archive_64_bit_slurp_armap): Remove unnecessary |
| 2648 |
bfd_release. |
| 2649 |
* elf32-m32c.c (m32c_offset_for_reloc): Make shndx_buf a bfd_byte*. |
| 2650 |
(m32c_elf_relax_section): Likewise. |
| 2651 |
* elf32-rl78.c (rl78_offset_for_reloc): Likewise. |
| 2652 |
(rl78_elf_relax_section): Likewise. |
| 2653 |
* elf32-rx.c (rx_offset_for_reloc): Likewise. |
| 2654 |
(elf32_rx_relax_section): Likewise. |
| 2655 |
* mach-o.c (bfd_mach_o_alloc_and_read): Move earlier with better |
| 2656 |
parameter types and use.. |
| 2657 |
(bfd_mach_o_read_dylinker, bfd_mach_o_read_dylib), |
| 2658 |
(bfd_mach_o_read_fvmlib, bfd_mach_o_read_str): ..in these functions. |
| 2659 |
* peicode.h (pe_bfd_object_p): Don't zero the part of opthdr |
| 2660 |
being read from file, just the extra. |
| 2661 |
* som.c (som_slurp_symbol_table): Allocate internal symbol buffer |
| 2662 |
after reading external syms. Free on failure. |
| 2663 |
|
| 2664 |
2020-02-19 Alan Modra <[email protected]> |
| 2665 |
|
| 2666 |
* coffcode.h (buy_and_read, coff_slurp_line_table), |
| 2667 |
(coff_slurp_symbol_table, coff_slurp_reloc_table): Replace |
| 2668 |
bfd_[z][m]alloc2 calls with _bfd_mul_overflow followed by the |
| 2669 |
corresponding bfd_alloc call. Adjust variables to suit. |
| 2670 |
* coffgen.c (_bfd_coff_get_external_symbols): Likewise. |
| 2671 |
* ecoff.c (_bfd_ecoff_slurp_symbolic_info), |
| 2672 |
(_bfd_ecoff_slurp_symbol_table, READ): Likewise. |
| 2673 |
* elf.c (bfd_elf_get_elf_syms, setup_group, bfd_section_from_shdr), |
| 2674 |
(swap_out_syms, _bfd_elf_slurp_version_tables): Likewise. |
| 2675 |
* elf32-m32c.c (m32c_elf_relax_section): Likewise. |
| 2676 |
* elf32-rl78.c (rl78_elf_relax_section): Likewise. |
| 2677 |
* elf32-rx.c (elf32_rx_relax_section): Likewise. |
| 2678 |
* elf64-alpha.c (READ): Likewise. |
| 2679 |
* elfcode.h (elf_object_p, elf_write_relocs, elf_write_shdrs_and_ehdr), |
| 2680 |
(elf_slurp_symbol_table, elf_slurp_reloc_table), |
| 2681 |
(bfd_from_remote_memory): Likewise. |
| 2682 |
* elfcore.h (core_find_build_id): Likewise. |
| 2683 |
* elfxx-mips.c (READ): Likewise. |
| 2684 |
* mach-o.c (bfd_mach_o_mangle_sections), |
| 2685 |
(bfd_mach_o_read_symtab_symbols, bfd_mach_o_read_thread), |
| 2686 |
(bfd_mach_o_read_dysymtab, bfd_mach_o_flatten_sections), |
| 2687 |
(bfd_mach_o_scan, bfd_mach_o_fat_archive_p): Likewise. |
| 2688 |
* som.c (setup_sections, som_prep_for_fixups) |
| 2689 |
(som_build_and_write_symbol_table, som_slurp_symbol_table), |
| 2690 |
(som_slurp_reloc_table, som_bfd_count_ar_symbols), |
| 2691 |
(som_bfd_fill_in_ar_symbols, som_slurp_armap), |
| 2692 |
(som_bfd_ar_write_symbol_stuff): Likewise. |
| 2693 |
* vms-alpha.c (vector_grow1): Likewise. |
| 2694 |
* vms-lib.c (vms_add_index): Likewise. |
| 2695 |
* wasm-module.c (wasm_scan_name_function_section): Likewise. |
| 2696 |
* libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): Delete. |
| 2697 |
* opncls.c (bfd_alloc2, bfd_zalloc2): Delete. |
| 2698 |
* libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2), |
| 2699 |
(bfd_alloc2, bfd_zalloc2): Delete. |
| 2700 |
(_bfd_mul_overflow): Define. |
| 2701 |
* libbfd.h: Regenerate. |
| 2702 |
|
| 2703 |
2020-02-19 Alan Modra <[email protected]> |
| 2704 |
|
| 2705 |
* elf.c (bfd_section_from_shdr): Use bfd_zalloc rather than |
| 2706 |
bfd_zalloc2. |
| 2707 |
(assign_section_numbers): Likewise. |
| 2708 |
(elf_map_symbols): Likewise, and bfd_alloc rather than bfd_alloc2. |
| 2709 |
(_bfd_elf_map_sections_to_segments): Use bfd_malloc rather than |
| 2710 |
bfd_malloc2, size_t amt, and unsigned tls_count. |
| 2711 |
(rewrite_elf_program_header): Use bfd_malloc and size_t amt. |
| 2712 |
* elflink.c (elf_create_symbuf): Use bfd_malloc. |
| 2713 |
(elf_output_implib): Use bfd_alloc. |
| 2714 |
|
| 2715 |
2020-02-19 Alan Modra <[email protected]> |
| 2716 |
|
| 2717 |
* bfd.c (struct bfd): Move format and direction to other |
| 2718 |
bitfields. Add "size". |
| 2719 |
* bfdio.c (bfd_get_size): Cache size when not writing file. |
| 2720 |
* opncls.c (bfd_get_debug_link_info_1): Allow for bfd_get_size |
| 2721 |
returning zero, ie. unknown. |
| 2722 |
(bfd_get_alt_debug_link_info): Likewise. |
| 2723 |
* bfd-in2.h: Regenerate. |
| 2724 |
|
| 2725 |
2020-02-19 Alan Modra <[email protected]> |
| 2726 |
|
| 2727 |
* coffgen.c (_bfd_coff_get_external_symbols): Don't call |
| 2728 |
bfd_get_file_size twice. |
| 2729 |
(_bfd_coff_read_string_table): Allow for bfd_get_file_size |
| 2730 |
zero, ie. unknown, return. |
| 2731 |
* elf-attrs.c (_bfd_elf_parse_attributes): Likewise. |
| 2732 |
* elfcode.h (elf_swap_shdr_in): Likewise. |
| 2733 |
(elf_object_p): Don't call bfd_get_file_size twice and correct |
| 2734 |
file size check. |
| 2735 |
|
| 2736 |
2020-02-19 Alan Modra <[email protected]> |
| 2737 |
|
| 2738 |
* mach-o.c (bfd_mach_o_flatten_sections): Return a bfd_boolean, |
| 2739 |
FALSE if memory alloc fails. Adjust calls. |
| 2740 |
* som.c (som_prep_for_fixups): Likewise. |
| 2741 |
* vms-alpha.c (alpha_vms_add_fixup_lp, alpha_vms_add_fixup_ca), |
| 2742 |
(alpha_vms_add_fixup_qr, alpha_vms_add_fixup_lr), |
| 2743 |
(alpha_vms_add_lw_reloc, alpha_vms_add_qw_reloc): Likewise. |
| 2744 |
* som.c (som_build_and_write_symbol_table): Return via error_return |
| 2745 |
on seek failure. |
| 2746 |
* vms-alpha.c (VEC_APPEND): Adjust for vector_grow1 changes. |
| 2747 |
(VEC_APPEND_EL): Delete. |
| 2748 |
(vector_grow1): Return pointer to element. Catch overflow. |
| 2749 |
Return NULL on memory allocation failure. |
| 2750 |
(alpha_vms_add_fixup_lp): Replace VEC_APPEND_EL with VEC_APPEND. |
| 2751 |
(alpha_vms_add_fixup_ca): Likewise. |
| 2752 |
(alpha_vms_link_add_object_symbols): Check VEC_APPEND result |
| 2753 |
before using. |
| 2754 |
* elf.c (bfd_section_from_shdr): Check bfd_zalloc2 result. |
| 2755 |
|
| 2756 |
2020-02-19 Alan Modra <[email protected]> |
| 2757 |
|
| 2758 |
* aix386-core.c (aix386_core_file_p): Use size_t for "amt". |
| 2759 |
* aout-target.h (object_p): Likewise. |
| 2760 |
* aout-tic30.c (tic30_aout_object_p): Likewise. |
| 2761 |
* aoutx.h (some_aout_object_p, mkobject, make_empty_symbol), |
| 2762 |
(emit_stringtab, write_syms, link_hash_table_create), |
| 2763 |
(aout_link_write_other_symbol): Likewise. |
| 2764 |
* archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p), |
| 2765 |
(bfd_ar_hdr_from_filesystem, _bfd_write_archive_contents), |
| 2766 |
(_bfd_compute_and_write_armap): Likewise. |
| 2767 |
* archures.c (bfd_arch_list): Likewise. |
| 2768 |
* bfd.c (bfd_record_phdr): Likewise. |
| 2769 |
* binary.c (binary_canonicalize_symtab): Likewise. |
| 2770 |
* cisco-core.c (cisco_core_file_validate): Likewise. |
| 2771 |
* coff-arm.c (coff_arm_link_hash_table_create, find_thumb_glue), |
| 2772 |
(find_arm_glue, record_arm_to_thumb_glue), |
| 2773 |
(record_thumb_to_arm_glue): Likewise. |
| 2774 |
* coff-ppc.c (ppc_coff_link_hash_table_create, record_toc), |
| 2775 |
(ppc_allocate_toc_section): Likewise. |
| 2776 |
* coff-rs6000.c (_bfd_xcoff_mkobject, _bfd_xcoff_archive_p): Likewise. |
| 2777 |
* coff-sh.c (sh_relax_section): Likewise. |
| 2778 |
* coff64-rs6000.c (xcoff64_archive_p): Likewise. |
| 2779 |
* coffcode.h (handle_COMDAT, coff_new_section_hook), |
| 2780 |
(coff_set_alignment_hook, coff_mkobject), |
| 2781 |
(coff_compute_section_file_positions): Likewise. |
| 2782 |
* coffgen.c (coff_make_empty_symbol, coff_bfd_make_debug_symbol), |
| 2783 |
(coff_find_nearest_line_with_names), |
| 2784 |
( bfd_coff_set_symbol_class): Likewise. |
| 2785 |
* cofflink.c (_bfd_coff_link_hash_table_create), |
| 2786 |
(_bfd_coff_link_input_bfd): Likewise. |
| 2787 |
* dwarf1.c (alloc_dwarf1_unit, alloc_dwarf1_func): Likewise. |
| 2788 |
* dwarf2.c (read_abbrevs, read_attribute_value, add_line_info), |
| 2789 |
(build_line_info_table, sort_line_sequences), |
| 2790 |
(line_info_add_include_dir, line_info_add_file_name), |
| 2791 |
(decode_line_info, scan_unit_for_symbols, parse_comp_unit), |
| 2792 |
(place_sections, _bfd_dwarf2_slurp_debug_info): Likewise. |
| 2793 |
* ecoff.c (_bfd_ecoff_mkobject, _bfd_ecoff_make_empty_symbol), |
| 2794 |
(_bfd_ecoff_find_nearest_line), |
| 2795 |
(_bfd_ecoff_bfd_link_hash_table_create): Likewise. |
| 2796 |
* ecofflink.c (bfd_ecoff_debug_init): Likewise. |
| 2797 |
* elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Likewise. |
| 2798 |
* elf-m10300.c (mn10300_elf_relax_section), |
| 2799 |
(elf32_mn10300_link_hash_table_create): Likewise. |
| 2800 |
* elf-strtab.c (_bfd_elf_strtab_init): Likewise. |
| 2801 |
* elf.c (make_mapping, copy_elf_program_header): Likewise. |
| 2802 |
* elf32-arm.c (elf32_arm_link_hash_table_create), |
| 2803 |
(elf32_arm_setup_section_lists, elf32_arm_check_relocs), |
| 2804 |
(elf32_arm_new_section_hook): Likewise. |
| 2805 |
* elf32-avr.c (elf_avr_new_section_hook), |
| 2806 |
(elf32_avr_link_hash_table_create, get_local_syms), |
| 2807 |
(elf32_avr_setup_section_lists): Likewise. |
| 2808 |
* elf32-bfin.c (bfinfdpic_elf_link_hash_table_create), |
| 2809 |
(bfin_link_hash_table_create): Likewise. |
| 2810 |
* elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise. |
| 2811 |
* elf32-cris.c (elf_cris_link_hash_table_create): Likewise. |
| 2812 |
* elf32-csky.c (csky_elf_link_hash_table_create), |
| 2813 |
(csky_elf_check_relocs, elf32_csky_setup_section_lists): Likewise. |
| 2814 |
* elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise. |
| 2815 |
* elf32-hppa.c (elf32_hppa_link_hash_table_create), |
| 2816 |
(elf32_hppa_setup_section_lists, get_local_syms): Likewise. |
| 2817 |
* elf32-i386.c (elf_i386_check_relocs): Likewise. |
| 2818 |
* elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise. |
| 2819 |
* elf32-m32r.c (m32r_elf_link_hash_table_create), |
| 2820 |
(m32r_elf_check_relocs): Likewise. |
| 2821 |
* elf32-m68hc1x.c (m68hc11_elf_hash_table_create), |
| 2822 |
(elf32_m68hc11_setup_section_lists), |
| 2823 |
(elf32_m68hc11_size_stubs): Likewise. |
| 2824 |
* elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise. |
| 2825 |
* elf32-metag.c (elf_metag_link_hash_table_create), |
| 2826 |
(elf_metag_setup_section_lists): Likewise. |
| 2827 |
* elf32-microblaze.c (microblaze_elf_link_hash_table_create), |
| 2828 |
(microblaze_elf_check_relocs): Likewise. |
| 2829 |
* elf32-nds32.c (nds32_elf_link_hash_table_create), |
| 2830 |
(nds32_elf_check_relocs): Likewise. |
| 2831 |
* elf32-nios2.c (nios2_elf32_setup_section_lists), |
| 2832 |
(get_local_syms, nios2_elf32_check_relocs), |
| 2833 |
(nios2_elf32_link_hash_table_create): Likewise. |
| 2834 |
* elf32-or1k.c (or1k_elf_link_hash_table_create), |
| 2835 |
(or1k_elf_check_relocs): Likewise. |
| 2836 |
* elf32-ppc.c (ppc_elf_modify_segment_map, update_plt_info): Likewise. |
| 2837 |
* elf32-pru.c (pru_elf32_link_hash_table_create): Likewise. |
| 2838 |
* elf32-s390.c (elf_s390_link_hash_table_create), |
| 2839 |
(elf_s390_check_relocs): Likewise. |
| 2840 |
* elf32-score.c (score_elf_create_got_section), |
| 2841 |
(s3_elf32_score_new_section_hook), |
| 2842 |
(elf32_score_link_hash_table_create): Likewise. |
| 2843 |
* elf32-score7.c (score_elf_create_got_section), |
| 2844 |
(s7_elf32_score_new_section_hook): Likewise. |
| 2845 |
* elf32-sh.c (sh_elf_link_hash_table_create), |
| 2846 |
(sh_elf_check_relocs): Likewise. |
| 2847 |
* elf32-tic6x.c (elf32_tic6x_link_hash_table_create), |
| 2848 |
(elf32_tic6x_new_section_hook, elf32_tic6x_check_relocs): Likewise. |
| 2849 |
* elf32-tilepro.c (tilepro_elf_link_hash_table_create), |
| 2850 |
(tilepro_elf_check_relocs): Likewise. |
| 2851 |
* elf32-v850.c (remember_hi16s_reloc): Likewise. |
| 2852 |
* elf32-vax.c (elf_vax_link_hash_table_create): Likewise. |
| 2853 |
* elf32-xtensa.c (elf_xtensa_link_hash_table_create), |
| 2854 |
(elf_xtensa_new_section_hook): Likewise. |
| 2855 |
* elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create), |
| 2856 |
(get_got_entry, elf64_alpha_check_relocs): Likewise. |
| 2857 |
* elf64-hppa.c (elf64_hppa_hash_table_create): Likewise. |
| 2858 |
* elf64-ia64-vms.c (elf64_ia64_object_p): Likewise. |
| 2859 |
* elf64-mmix.c (mmix_elf_new_section_hook): Likewise. |
| 2860 |
* elf64-ppc.c (ppc64_elf_new_section_hook), |
| 2861 |
(ppc64_elf_link_hash_table_create, update_local_sym_info), |
| 2862 |
(update_plt_info, ppc64_elf_check_relocs): Likewise. |
| 2863 |
* elf64-s390.c (elf_s390_link_hash_table_create), |
| 2864 |
(elf_s390_check_relocs): Likewise. |
| 2865 |
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. |
| 2866 |
* elflink.c (bfd_elf_link_record_local_dynamic_symbol), |
| 2867 |
(_bfd_elf_link_find_version_dependencies, elf_link_add_object_symbols), |
| 2868 |
(elf_link_add_archive_symbols, compute_bucket_count), |
| 2869 |
(bfd_elf_size_dynsym_hash_dynstr, _bfd_elf_link_hash_table_create), |
| 2870 |
(bfd_elf_get_bfd_needed_list, elf_link_swap_symbols_out), |
| 2871 |
(bfd_elf_final_link): Likewise. |
| 2872 |
* elfnn-aarch64.c (elfNN_aarch64_link_hash_table_create), |
| 2873 |
(elfNN_aarch64_setup_section_lists, elfNN_aarch64_check_relocs), |
| 2874 |
(elfNN_aarch64_new_section_hook): Likewise. |
| 2875 |
* elfnn-ia64.c (elfNN_ia64_object_p): Likewise. |
| 2876 |
* elfnn-riscv.c (riscv_elf_link_hash_table_create), |
| 2877 |
(riscv_elf_check_relocs): Likewise. |
| 2878 |
* elfxx-mips.c (_bfd_mips_elf_new_section_hook), |
| 2879 |
(_bfd_mips_elf_add_symbol_hook, _bfd_mips_elf_check_relocs), |
| 2880 |
(_bfd_mips_elf_modify_segment_map, _bfd_mips_elf_set_section_contents), |
| 2881 |
(_bfd_mips_elf_link_hash_table_create): Likewise. |
| 2882 |
* elfxx-sparc.c (_bfd_sparc_elf_link_hash_table_create), |
| 2883 |
(_bfd_sparc_elf_check_relocs), |
| 2884 |
(_bfd_sparc_elf_new_section_hook): Likewise. |
| 2885 |
* elfxx-tilegx.c (tilegx_elf_link_hash_table_create), |
| 2886 |
(tilegx_elf_check_relocs): Likewise. |
| 2887 |
* elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Likewise. |
| 2888 |
* format.c (bfd_check_format_matches): Likewise. |
| 2889 |
* hash.c (_bfd_stringtab_init): Likewise. |
| 2890 |
* ihex.c (ihex_scan): Likewise. |
| 2891 |
* irix-core.c (irix_core_core_file_p): Likewise. |
| 2892 |
* linker.c (bfd_wrapped_link_hash_lookup), |
| 2893 |
(_bfd_generic_link_hash_table_create), |
| 2894 |
(_bfd_generic_reloc_link_order): Likewise. |
| 2895 |
* lynx-core.c (lynx_core_file_p): Likewise. |
| 2896 |
* netbsd-core.c (netbsd_core_file_p): Likewise. |
| 2897 |
* osf-core.c (osf_core_core_file_p): Likewise. |
| 2898 |
* pdp11.c (some_aout_object_p, mkobject, make_empty_symbol), |
| 2899 |
(link_hash_table_create, aout_link_write_other_symbol): Likewise. |
| 2900 |
* peXXigen.c (_bfd_XX_bfd_copy_private_section_data): Likewise. |
| 2901 |
* peicode.h (pe_mkobject): Likewise. |
| 2902 |
* ppcboot.c (ppcboot_mkobject, ppcboot_canonicalize_symtab): Likewise. |
| 2903 |
* ptrace-core.c (ptrace_unix_core_file_p): Likewise. |
| 2904 |
* sco5-core.c (read_uarea): Likewise. |
| 2905 |
* som.c (hppa_som_gen_reloc_type, som_object_p, som_prep_headers), |
| 2906 |
(som_write_fixups, som_write_space_strings, som_write_symbol_strings), |
| 2907 |
(som_finish_writing, som_canonicalize_symtab, som_new_section_hook), |
| 2908 |
(som_bfd_copy_private_section_data, bfd_som_set_section_attributes), |
| 2909 |
(bfd_som_attach_aux_hdr, som_write_armap): Likewise. |
| 2910 |
* srec.c (srec_scan): Likewise. |
| 2911 |
* syms.c (_bfd_generic_make_empty_symbol): Likewise. |
| 2912 |
* targets.c (bfd_target_list): Likewise. |
| 2913 |
* tekhex.c (first_phase, tekhex_sizeof_headers): Likewise. |
| 2914 |
* trad-core.c (trad_unix_core_file_p): Likewise. |
| 2915 |
* vms-alpha.c (vms_initialize, alpha_vms_bfd_link_hash_table_create), |
| 2916 |
(vms_new_section_hook): Likewise. |
| 2917 |
* wasm-module.c (wasm_make_empty_symbol): Likewise. |
| 2918 |
* xcofflink.c (xcoff_get_section_contents), |
| 2919 |
(_bfd_xcoff_bfd_link_hash_table_create, xcoff_set_import_path), |
| 2920 |
(xcoff_find_function, bfd_xcoff_link_record_set, xcoff_build_ldsym), |
| 2921 |
(bfd_xcoff_size_dynamic_sections, xcoff_link_input_bfd): Likewise. |
| 2922 |
|
| 2923 |
2020-02-19 Alan Modra <[email protected]> |
| 2924 |
|
| 2925 |
* elfxx-riscv.c (riscv_multi_letter_ext_valid_p): Don't use C99. |
| 2926 |
|
| 2927 |
2020-02-13 H.J. Lu <[email protected]> |
| 2928 |
|
| 2929 |
* plugin.c (try_load_plugin): Make plugin_list_iter an argument |
| 2930 |
and use it if it isn't NULL. Remove has_plugin_p argument. Add |
| 2931 |
a build_list_p argument. Don't search plugin_list. Short circuit |
| 2932 |
when building the plugin list. |
| 2933 |
(has_plugin): Renamed to has_plugin_list. |
| 2934 |
(bfd_plugin_set_plugin): Don't set has_plugin. |
| 2935 |
(bfd_plugin_specified_p): Check plugin_list instead. |
| 2936 |
(build_plugin_list): New function. |
| 2937 |
(load_plugin): Call build_plugin_list and use plugin_list. |
| 2938 |
|
| 2939 |
2020-02-11 H.J. Lu <[email protected]> |
| 2940 |
|
| 2941 |
PR binutils/25355 |
| 2942 |
* plugin.c (try_claim): Always clean up for LTO wrapper. |
| 2943 |
(try_load_plugin): Treat each object as independent. Create a |
| 2944 |
copy for plugin name. |
| 2945 |
|
| 2946 |
2020-02-11 Nick Clifton <[email protected]> |
| 2947 |
|
| 2948 |
* elf32-msp430.c (msp430_final_link_relocate): Always use longs |
| 2949 |
for addresses in print statements. |
| 2950 |
(msp430_elf_relax_delete_bytes): Likewise. |
| 2951 |
(msp430_elf_relax_add_words): Likewise. |
| 2952 |
(msp430_elf_relax_section): Likewise. |
| 2953 |
|
| 2954 |
2020-02-11 H.J. Lu <[email protected]> |
| 2955 |
|
| 2956 |
* plugin.c (add_symbols): Clear plugin_data memory. |
| 2957 |
|
| 2958 |
2020-02-10 H.J. Lu <[email protected]> |
| 2959 |
|
| 2960 |
PR binutils/25355 |
| 2961 |
* configure.ac (HAVE_EXECUTABLE_SUFFIX): New AC_DEFINE. |
| 2962 |
(EXECUTABLE_SUFFIX): Likewise. |
| 2963 |
* config.in: Regenerated. |
| 2964 |
* configure: Likewise. |
| 2965 |
* plugin.c (bfd_plugin_close_and_cleanup): Removed. |
| 2966 |
(plugin_list_entry): Add all_symbols_read, cleanup_handler, |
| 2967 |
gcc, lto_wrapper, resolution_file, resolution_option, gcc_env, |
| 2968 |
real_bfd, real_nsyms, real_syms, lto_nsyms and lto_syms. |
| 2969 |
(get_lto_wrapper): New. |
| 2970 |
(setup_lto_wrapper_env): Likewise. |
| 2971 |
(current_plugin): Likewise. |
| 2972 |
(register_all_symbols_read): Likewise. |
| 2973 |
(register_cleanup): Likewise. |
| 2974 |
(get_symbols): Likewise. |
| 2975 |
(add_input_file): Likewise. |
| 2976 |
(bfd_plugin_close_and_cleanup): Likewise. |
| 2977 |
(claim_file): Removed. |
| 2978 |
(register_claim_file): Set current_plugin->claim_file. |
| 2979 |
(add_symbols): Make a copy of LTO symbols. Set lto_nsyms and |
| 2980 |
lto_syms in current_plugin. |
| 2981 |
(try_claim): Use current_plugin->claim_file. Call LTO plugin |
| 2982 |
all_symbols_read handler. Copy real symbols to plugin_data. |
| 2983 |
Call LTO plugin cleanup handler. Clean up for LTO wrapper. |
| 2984 |
(try_load_plugin): Don't reuse the previous plugin for LTO |
| 2985 |
wrapper. Set up GCC LTO wrapper if possible. Don't set |
| 2986 |
plugin_list_iter->claim_file. |
| 2987 |
(bfd_plugin_canonicalize_symtab): Use real LTO symbols if |
| 2988 |
possible. |
| 2989 |
* plugin.h (plugin_data_struct): Add real_bfd, real_nsyms and |
| 2990 |
real_syms. |
| 2991 |
|
| 2992 |
2020-02-10 Jozef Lawrynowicz <[email protected]> |
| 2993 |
|
| 2994 |
* elf32-msp430.c (msp430_elf_relax_section): Before relaxing a branch, |
| 2995 |
check if previous instruction matches a conditional jump inserted |
| 2996 |
earlier. Invert conditional jump and delete branch in this case. |
| 2997 |
|
| 2998 |
2020-02-10 Jozef Lawrynowicz <[email protected]> |
| 2999 |
|
| 3000 |
* elf32-msp430.c (msp430_elf_relax_add_two_words): Rename to |
| 3001 |
msp430_elf_relax_add_words. Support insertion of either one or two |
| 3002 |
words. |
| 3003 |
(msp430_elf_relax_section): Catch opcode of 0x3c00 when relocation |
| 3004 |
needs to be grown. Handle insertion of branch instruction to replace |
| 3005 |
jump. |
| 3006 |
|
| 3007 |
2020-02-10 Jozef Lawrynowicz <[email protected]> |
| 3008 |
|
| 3009 |
* elf32-msp430.c (msp430_final_link_relocate): Add printf statements for |
| 3010 |
debugging relocations. |
| 3011 |
(msp430_elf_relax_delete_bytes): Likewise. |
| 3012 |
(msp430_elf_relax_add_two_words): Likewise. |
| 3013 |
(msp430_elf_relax_section): Likewise. |
| 3014 |
|
| 3015 |
2020-02-10 Alan Modra <[email protected]> |
| 3016 |
|
| 3017 |
* archures.c: Wrap overlong z80 comments. |
| 3018 |
* bfd-in2.h: Regenerate. |
| 3019 |
|
| 3020 |
2020-02-07 Sergey Belyashov <[email protected]> |
| 3021 |
|
| 3022 |
PR 25469 |
| 3023 |
* archures.c: Add GBZ80 and Z80N machine values. |
| 3024 |
* reloc.c: Add BFD_RELOC_Z80_16_BE. |
| 3025 |
* coff-z80.c: Add support for new reloc. |
| 3026 |
* coffcode.h: Add support for new machine values. |
| 3027 |
* cpu-z80.c: Add support for new machine names. |
| 3028 |
* elf32-z80.c: Add support for new reloc. |
| 3029 |
* bfd-in2.h: Regenerate. |
| 3030 |
* libbfd.h: Regenerate. |
| 3031 |
|
| 3032 |
2020-02-07 Nick Clifton <[email protected]> |
| 3033 |
|
| 3034 |
PR 23932 |
| 3035 |
* elf.c (rewrite_elf_program_header): Do not complain if no |
| 3036 |
sections are mapped to a segment. |
| 3037 |
|
| 3038 |
2020-02-06 H.J. Lu <[email protected]> |
| 3039 |
|
| 3040 |
PR ld/25490 |
| 3041 |
* elflink.c (_bfd_elf_gc_mark_extra_sections): Issue an error |
| 3042 |
for garbage collection on __patchable_function_entries section |
| 3043 |
without linked-to section. |
| 3044 |
|
| 3045 |
2020-02-06 H.J. Lu <[email protected]> |
| 3046 |
|
| 3047 |
PR gas/25381 |
| 3048 |
* bfd-in2.h: Regenerated. |
| 3049 |
* elflink.c (_bfd_elf_gc_mark_extra_sections): Call mark_hook |
| 3050 |
on section if gc_mark of any of its linked-to sections is set |
| 3051 |
and don't set gc_mark again. |
| 3052 |
* section.c (asection): Add linked_to_symbol_name to map_head |
| 3053 |
union. |
| 3054 |
|
| 3055 |
2020-02-06 Maciej W. Rozycki <[email protected]> |
| 3056 |
|
| 3057 |
* elf32-v850.c (v850_elf_relax_section): Fix the index used for |
| 3058 |
reporting an unrecognized instruction with R_V850_LONGJUMP. |
| 3059 |
|
| 3060 |
2020-02-05 Alan Modra <[email protected]> |
| 3061 |
|
| 3062 |
* elf64-ppc.c (ppc_stub_plt_branch): Match comment with reality. |
| 3063 |
|
| 3064 |
2020-02-04 Alan Modra <[email protected]> |
| 3065 |
|
| 3066 |
* elf32-ppc.c (ppc_elf_relocate_section): After applying |
| 3067 |
R_PPC_VLE_ADDR20, goto copy_reloc. |
| 3068 |
|
| 3069 |
2020-02-02 H.J. Lu <[email protected]> |
| 3070 |
|
| 3071 |
* bfd-in2.h: Regenerated. |
| 3072 |
* section.c (SEC_ASSEMBLER_SECTION_ID): Fix a typo in comments. |
| 3073 |
|
| 3074 |
2020-02-02 H.J. Lu <[email protected]> |
| 3075 |
|
| 3076 |
PR gas/25380 |
| 3077 |
* bfd-in2.h: Regenerated. |
| 3078 |
* ecoff.c (bfd_debug_section): Add section_id. |
| 3079 |
* section.c (bfd_section): Add section_id. |
| 3080 |
(SEC_ASSEMBLER_SECTION_ID): New. |
| 3081 |
(BFD_FAKE_SECTION): Add section_id. |
| 3082 |
|
| 3083 |
2020-02-01 Nick Clifton <[email protected]> |
| 3084 |
|
| 3085 |
* config.bfd: Move the c30-aout and tic30-aout targets onto the |
| 3086 |
obsolete list. |
| 3087 |
|
| 3088 |
2020-01-31 Sandra Loosemore <[email protected]> |
| 3089 |
|
| 3090 |
* elf-eh-frame.c (_bfd_elf_write_section_eh_frame): DW_EH_PE_datarel |
| 3091 |
encodings are relative to the GOT on nios2, too. |
| 3092 |
|
| 3093 |
2020-01-31 Alan Modra <[email protected]> |
| 3094 |
|
| 3095 |
* Makefile.am (elf32-target.h, elf64-target.h): Don't use a temp |
| 3096 |
file. Use $< and $@ in rules. |
| 3097 |
(elf32-aarch64.c, elf64-aarch64.c): Likewise. |
| 3098 |
(elf32-ia64.c, elf64-ia64.c): Likewise. |
| 3099 |
(elf32-riscv.c, elf64-riscv.c): Likewise. |
| 3100 |
(peigen.c, pepigen.c, pex64igen.c): Likewise. |
| 3101 |
(elf32-aarch64.c, elf64-aarch64.c): Don't emit $srcdir on #line. |
| 3102 |
(elf32-riscv.c, elf64-riscv.c): Likewise, and use $(SED). |
| 3103 |
(elf32-ia64.c, elf64-ia64.c): Do emit #line. |
| 3104 |
(peigen.c, pepigen.c, pex64igen.c): Likewise. |
| 3105 |
* Makefile.in: Regenerate. |
| 3106 |
|
| 3107 |
2020-01-31 Alan Modra <[email protected]> |
| 3108 |
|
| 3109 |
PR 4110 |
| 3110 |
* elf.c (setup_group): Don't clear entire section contents, |
| 3111 |
just the padding after group flags. Release alloc'd memory |
| 3112 |
after a seek or read failure. |
| 3113 |
|
| 3114 |
2020-01-16 Jon Turney <[email protected]> |
| 3115 |
|
| 3116 |
* peXXigen.c (pe_is_repro): New function. |
| 3117 |
(_bfd_XX_print_private_bfd_data_common): Note timestamp is |
| 3118 |
actually a build hash if PE_IMAGE_DEBUG_TYPE_REPRO is present. |
| 3119 |
|
| 3120 |
2020-01-16 Jon Turney <[email protected]> |
| 3121 |
|
| 3122 |
* peXXigen.c (debug_type_names): Add names for new debug data type |
| 3123 |
values. |
| 3124 |
|
| 3125 |
2020-01-16 Jon Turney <[email protected]> |
| 3126 |
|
| 3127 |
* peXXigen.c (pe_print_debugdata): Fix the iteration variable for |
| 3128 |
inner loop. Fix a memory leak. |
| 3129 |
|
| 3130 |
2020-01-30 Alan Modra <[email protected]> |
| 3131 |
|
| 3132 |
* coffgen.c (coff_real_object_p): Don't clear obj_coff_keep_syms |
| 3133 |
or obj_coff_keep_strings here. |
| 3134 |
(coff_get_normalized_symtab): Free external syms directly. |
| 3135 |
* xcofflink.c (xcoff_link_input_bfd): Restore obj_coff_keep_syms |
| 3136 |
on error exit path. |
| 3137 |
|
| 3138 |
2020-01-27 Jim Wilson <[email protected]> |
| 3139 |
|
| 3140 |
* cpu-riscv.c (riscv_scan): New. |
| 3141 |
(N): Change bfd_default_scan to riscv_scan. |
| 3142 |
|
| 3143 |
2020-01-27 Andreas Schwab <[email protected]> |
| 3144 |
|
| 3145 |
* Makefile.am (ALL_MACHINES): Remove cpu-plugin.lo. |
| 3146 |
(ALL_MACHINES_CFILES): Remove cpu-plugin.c. |
| 3147 |
* Makefile.in: Regenerate. |
| 3148 |
* cpu-plugin.c: Remove. |
| 3149 |
* archures.c (enum bfd_architecture): Remove bfd_arch_plugin. |
| 3150 |
(bfd_plugin_arch): Remove declaration. |
| 3151 |
* bfd-in2.h: Regenerate. |
| 3152 |
* po/SRC-POTFILES.in: Regenerate. |
| 3153 |
|
| 3154 |
2020-01-27 H.J. Lu <[email protected]> |
| 3155 |
Alan Modra <[email protected]> |
| 3156 |
|
| 3157 |
PR ld/25458 |
| 3158 |
* elflink.c (_bfd_elf_gc_mark_rsec): Mark all weak aliases. |
| 3159 |
|
| 3160 |
2020-01-24 Jim Wilson <[email protected]> |
| 3161 |
|
| 3162 |
* elfxx-riscv.c (riscv_get_prefix_class): Format s case like others. |
| 3163 |
(riscv_parse_prefixed_ext): Fix s extension comment and reword to |
| 3164 |
avoid over long line. |
| 3165 |
|
| 3166 |
2020-01-24 Nick Clifton <[email protected]> |
| 3167 |
|
| 3168 |
PR 25447 |
| 3169 |
* coffgen.c (_bfd_coff_close_and_cleanup): Do not clear the keep |
| 3170 |
syms and keep strings flags as these may have been set in order to |
| 3171 |
prevent a bogus call to free. |
| 3172 |
|
| 3173 |
2020-01-23 Nick Clifton <[email protected]> |
| 3174 |
|
| 3175 |
* po/fr.po: Updated French translation. |
| 3176 |
|
| 3177 |
2020-01-23 Alan Modra <[email protected]> |
| 3178 |
|
| 3179 |
PR 25444 |
| 3180 |
* elf.c (assign_file_positions_for_load_sections): Avoid divide |
| 3181 |
by zero when p_align is zero. |
| 3182 |
|
| 3183 |
2020-01-22 Maxim Blinov <[email protected]> |
| 3184 |
|
| 3185 |
* bfd/elfnn-riscv.c (riscv_skip_prefix): New. |
| 3186 |
(riscv_prefix_cmp): Likewise. |
| 3187 |
(riscv_non_std_ext_p): Deleted. |
| 3188 |
(riscv_std_sv_ext_p): Likewise. |
| 3189 |
(riscv_non_std_sv_ext_p): Likewise. |
| 3190 |
(riscv_merge_non_std_and_sv_ext): Rename to... |
| 3191 |
(riscv_merge_multi_letter_ext): and modified to use riscv_prefix_cmp. |
| 3192 |
(riscv_merge_arch_attr_info): Replace 3 calls to |
| 3193 |
riscv_merge_non_std_and_sv_ext with single call to |
| 3194 |
riscv_merge_multi_letter_ext. |
| 3195 |
* bfd/elfxx-riscv.c (riscv_parse_std_ext): Break if we |
| 3196 |
encounter a 'z' prefix. |
| 3197 |
(riscv_get_prefix_class): New function, return prefix class based |
| 3198 |
on first few characters of input string. |
| 3199 |
(riscv_parse_config): New structure to factor out minor differences |
| 3200 |
in extension class parsing behaviour. |
| 3201 |
(riscv_parse_sv_or_non_std_ext): Rename to... |
| 3202 |
(riscv_parse_prefixed_ext): and parameterise with |
| 3203 |
riscv_parse_config. |
| 3204 |
(riscv_std_z_ext_strtab, riscv_std_s_ext_strtab): New. |
| 3205 |
(riscv_multi_letter_ext_valid_p): New. |
| 3206 |
(riscv_ext_x_valid_p, riscv_ext_z_valid_p, riscv_ext_s_valid_p): New. |
| 3207 |
(riscv_parse_subset): Delegate all non-single-letter parsing work |
| 3208 |
to riscv_parse_prefixed_ext. |
| 3209 |
* bfd/elfxx-riscv.h (riscv_isa_ext_class): New type. |
| 3210 |
(riscv_get_prefix_class): Declare. |
| 3211 |
|
| 3212 |
2020-01-22 Alan Modra <[email protected]> |
| 3213 |
|
| 3214 |
* elf64-ppc.c (struct ppc_link_hash_table): Add tga_group. |
| 3215 |
(ppc64_elf_archive_symbol_lookup): Extract __tls_get_addr_opt for |
| 3216 |
__tls_get_addr_desc. |
| 3217 |
(ppc64_elf_size_stubs): Add section for linker generated |
| 3218 |
__tls_get_addr_desc wrapper function. Loop at least once if |
| 3219 |
generating this function. |
| 3220 |
(emit_tga_desc, emit_tga_desc_eh_frame): New functions. |
| 3221 |
(ppc64_elf_build_stubs): Generate __tls_get_addr_desc. |
| 3222 |
|
| 3223 |
2020-01-22 Alan Modra <[email protected]> |
| 3224 |
|
| 3225 |
* elf64-ppc.h (struct ppc64_elf_params): Add no_tls_get_addr_regsave. |
| 3226 |
* elf64-ppc.c (struct ppc_link_hash_table): Add tga_desc and |
| 3227 |
tga_desc_fd. |
| 3228 |
(is_tls_get_addr): Match tga_desc and tga_desc_df too. |
| 3229 |
(STDU_R1_0R1, ADDI_R1_R1): Define. |
| 3230 |
(tls_get_addr_prologue, tls_get_addr_epilogue): New functions. |
| 3231 |
(ppc64_elf_tls_setup): Set up tga_desc and tga_desc_fd. Indirect |
| 3232 |
tga_desc_fd to opt_fd, and tga_desc to opt. Set |
| 3233 |
no_tls_get_addr_regsave. |
| 3234 |
(branch_reloc_hash_match): Add hash3 and hash4. |
| 3235 |
(ppc64_elf_tls_optimize): Handle tga_desc_fd and tga_desc too. |
| 3236 |
(ppc64_elf_size_dynamic_sections): Likewise. |
| 3237 |
(ppc64_elf_relocate_section): Likewise. |
| 3238 |
(plt_stub_size, build_plt_stub): Likewise. Size regsave |
| 3239 |
__tls_get_addr stub. |
| 3240 |
(build_tls_get_addr_stub): Build regsave __tls_get_addr stub and |
| 3241 |
eh_frame. |
| 3242 |
(ppc_size_one_stub): Handle tga_desc_fd and tga_desc too. Size |
| 3243 |
eh_frame for regsave __tls_get_addr. |
| 3244 |
|
| 3245 |
2020-01-22 Alan Modra <[email protected]> |
| 3246 |
|
| 3247 |
* elf64-ppc.c (ppc64_elf_size_stubs): Correct condition under |
| 3248 |
which __tls_get_addr calls will be eliminated. |
| 3249 |
|
| 3250 |
2020-01-20 Nick Clifton <[email protected]> |
| 3251 |
|
| 3252 |
* po/pt.po: Updates Portuguese translation. |
| 3253 |
* po/ru.po: Updated Russian translation. |
| 3254 |
* po/uk.po: Updated Ukranian translation. |
| 3255 |
|
| 3256 |
2020-01-20 H.J. Lu <[email protected]> |
| 3257 |
|
| 3258 |
PR ld/25416 |
| 3259 |
* elf64-x86-64.c (elf_x86_64_check_tls_transition): Support |
| 3260 |
"rex leal x@tlsdesc(%rip), %reg" and "call *x@tlsdesc(%eax)" in |
| 3261 |
X32 mode. |
| 3262 |
(elf_x86_64_relocate_section): In x32 mode, for GDesc -> LE |
| 3263 |
transition, relax "rex leal x@tlsdesc(%rip), %reg" to |
| 3264 |
"rex movl $x@tpoff, %reg", for GDesc -> IE transition, relax |
| 3265 |
"rex leal x@tlsdesc(%rip), %reg" to |
| 3266 |
"rex movl x@gottpoff(%rip), %eax". For both transitions, relax |
| 3267 |
"call *(%eax)" to "nopl (%rax)". |
| 3268 |
|
| 3269 |
2020-01-20 Alan Modra <[email protected]> |
| 3270 |
|
| 3271 |
* elf64-ppc.c (LD_R11_0R3, CMPDI_R11_0, STD_R11_0R1, LD_R11_0R1), |
| 3272 |
(MTLR_R11): Don't define. |
| 3273 |
(LD_R0_0R3, CMPDI_R0_0): Define. |
| 3274 |
(build_tls_get_addr_stub): Don't use r11 in stub. |
| 3275 |
|
| 3276 |
2020-01-20 Alan Modra <[email protected]> |
| 3277 |
|
| 3278 |
* elf64-ppc.c (ppc_elf_hash_entry): New function, use throughout file. |
| 3279 |
(defined_sym_val, is_tls_get_addr): Likewise. |
| 3280 |
|
| 3281 |
2020-01-18 Nick Clifton <[email protected]> |
| 3282 |
|
| 3283 |
* version.m4 (BFD_VERSION): Set to 2.34.50. |
| 3284 |
* configure: Regenerate. |
| 3285 |
* po/bfd.pot: Regenerate. |
| 3286 |
|
| 3287 |
2020-01-18 Nick Clifton <[email protected]> |
| 3288 |
|
| 3289 |
Binutils 2.34 branch created. |
| 3290 |
|
| 3291 |
2020-01-17 Christian Biesinger <[email protected]> |
| 3292 |
|
| 3293 |
* coff-arm.c: Fix spelling error (seperate). |
| 3294 |
* elfxx-riscv.c (riscv_parse_sv_or_non_std_ext): Fix spelling |
| 3295 |
error (seperate). |
| 3296 |
* sysdep.h (strnlen): Fix spelling error (seperate). |
| 3297 |
|
| 3298 |
2020-01-15 Lars Brinkhoff <[email protected]> |
| 3299 |
|
| 3300 |
PR 20694 |
| 3301 |
* pdp11.c (TARGET_PAGE_SIZE): Set to 8192. |
| 3302 |
|
| 3303 |
2020-01-15 Alan Modra <[email protected]> |
| 3304 |
|
| 3305 |
PR 25384 |
| 3306 |
* elf64-ppc.c (ELIMINATE_COPY_RELOCS): Update comment. |
| 3307 |
(ppc64_elf_adjust_dynamic_symbol): Don't allow .dynbss copies |
| 3308 |
of function symbols unless dot symbols are present. Do warn |
| 3309 |
whenever one is created, regardles of whether a PLT entry is |
| 3310 |
also emitted for the function symbol. |
| 3311 |
|
| 3312 |
2020-01-14 Alan Modra <[email protected]> |
| 3313 |
|
| 3314 |
* som.c (som_bfd_count_ar_symbols): Error when file position |
| 3315 |
of symbols on chains is not strictly increasing. |
| 3316 |
|
| 3317 |
2020-01-14 Alan Modra <[email protected]> |
| 3318 |
|
| 3319 |
* vms.h (VMS_DEBUG): Define as 0. |
| 3320 |
* vms-alpha.c (image_write): Move debug output after bounds check. |
| 3321 |
Tidy bounds check. |
| 3322 |
(_bfd_vms_slurp_eihd): Warning fix. |
| 3323 |
(_bfd_vms_slurp_etir): Init variables to avoid bogus warnings. |
| 3324 |
|
| 3325 |
2020-01-13 Alan Modra <[email protected]> |
| 3326 |
|
| 3327 |
* vms-alpha.c (_bfd_vms_slurp_egsd): Ensure minimum size even |
| 3328 |
for "ignored" records. |
| 3329 |
|
| 3330 |
2020-01-13 Alan Modra <[email protected]> |
| 3331 |
|
| 3332 |
* wasm-module.c (wasm_scan_name_function_section): Formatting. |
| 3333 |
Delete asect name check. Move asect NULL check to wasm_object_p. |
| 3334 |
Correct bounds check of sizes against end. Replace uses of |
| 3335 |
bfd_zalloc with bfd_alloc, zeroing only necessary bytes. Use |
| 3336 |
just one bfd_release. |
| 3337 |
(wasm_scan): Don't use malloc/strdup for section names, |
| 3338 |
bfd_alloc instead. Simplify code prefixing section name. |
| 3339 |
Formatting. Don't attempt to free memory here.. |
| 3340 |
(wasm_object_p): ..do so here. |
| 3341 |
|
| 3342 |
2020-01-10 Szabolcs Nagy <[email protected]> |
| 3343 |
|
| 3344 |
PR ld/22269 |
| 3345 |
* elf32-arm.c (elf32_arm_final_link_relocate): Use |
| 3346 |
UNDEFWEAK_NO_DYNAMIC_RELOC. |
| 3347 |
(allocate_dynrelocs_for_symbol): Likewise. |
| 3348 |
|
| 3349 |
2020-01-10 Tamar Christina <[email protected]> |
| 3350 |
|
| 3351 |
PR 25210 |
| 3352 |
* elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass. |
| 3353 |
|
| 3354 |
2020-01-10 Alan Modra <[email protected]> |
| 3355 |
|
| 3356 |
* coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type. |
| 3357 |
|
| 3358 |
2020-01-09 Nick Clifton <[email protected]> |
| 3359 |
|
| 3360 |
PR 25221 |
| 3361 |
* bfd.c (bfd_convert_section_contents): Check for a compress |
| 3362 |
header size that is larger than the actual section size. |
| 3363 |
|
| 3364 |
2020-01-08 Alan Modra <[email protected]> |
| 3365 |
|
| 3366 |
PR 25351 |
| 3367 |
* elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms |
| 3368 |
after removing sections. |
| 3369 |
|
| 3370 |
2020-01-06 Jim Wilson <[email protected]> |
| 3371 |
|
| 3372 |
PR 25205 |
| 3373 |
* elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add |
| 3374 |
check for !bfd_link_pic (info). |
| 3375 |
<R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL. |
| 3376 |
<R_RISCV_JAL>: Add comment. |
| 3377 |
(_bfd_riscv_relax_section): For plt.offset check, add check for |
| 3378 |
bfd_link_pic (info). Add comment. |
| 3379 |
|
| 3380 |
2020-01-06 Alan Modra <[email protected]> |
| 3381 |
|
| 3382 |
* format.c (bfd_check_format_matches): Ignore bfd_error on target |
| 3383 |
match failures. Don't init to bfd_error_wrong_format before |
| 3384 |
calling _bfd_check_format. |
| 3385 |
|
| 3386 |
2020-01-06 Alan Modra <[email protected]> |
| 3387 |
|
| 3388 |
* vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail |
| 3389 |
status rather than exiting on stack overflow or underflow. |
| 3390 |
(_bfd_vms_slurp_etir): Adjust to suit. |
| 3391 |
|
| 3392 |
2020-01-06 Alan Modra <[email protected]> |
| 3393 |
|
| 3394 |
* som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index. |
| 3395 |
|
| 3396 |
2020-01-06 Alan Modra <[email protected]> |
| 3397 |
|
| 3398 |
* mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of |
| 3399 |
command. Check name offset is within command. |
| 3400 |
(bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib), |
| 3401 |
(bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints), |
| 3402 |
(bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab), |
| 3403 |
(bfd_mach_o_read_symtab, bfd_mach_o_read_uuid), |
| 3404 |
(bfd_mach_o_read_linkedit, bfd_mach_o_read_str), |
| 3405 |
(bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min), |
| 3406 |
(bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version), |
| 3407 |
(bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main), |
| 3408 |
(bfd_mach_o_read_note, bfd_mach_o_read_build_version), |
| 3409 |
(bfd_mach_o_read_segment): Similarly. |
| 3410 |
(bfd_mach_o_read_thread): Properly bound check thread struct. |
| 3411 |
Don't repeat checks on second loop. |
| 3412 |
(bfd_mach_o_read_command): Fail on invalid command length. |
| 3413 |
|
| 3414 |
2020-01-04 Alan Modra <[email protected]> |
| 3415 |
|
| 3416 |
* format.c (bfd_check_format_matches): Add preserve_match. |
| 3417 |
Save initial bfd state in "preserve", matched bfd state in |
| 3418 |
"preserve_match". Save just the first match. Release |
| 3419 |
bfd_alloc memory. Restore and finish preserved state as |
| 3420 |
appropriate on all function exit paths. |
| 3421 |
|
| 3422 |
2020-01-04 Alan Modra <[email protected]> |
| 3423 |
|
| 3424 |
* mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc. |
| 3425 |
|
| 3426 |
2020-01-04 Alan Modra <[email protected]> |
| 3427 |
|
| 3428 |
* coffgen.c (coff_real_object_p): Free malloc'd memory on target |
| 3429 |
match too. |
| 3430 |
|
| 3431 |
2020-01-03 Nick Clifton <[email protected]> |
| 3432 |
|
| 3433 |
PR 25307 |
| 3434 |
(bfd_pef_parse_function_stubs): Correct the test that ensures that |
| 3435 |
there is enough data remaining in the code buffer before |
| 3436 |
attempting to read a function stub. |
| 3437 |
|
| 3438 |
2020-01-03 Nick Clifton <[email protected]> |
| 3439 |
|
| 3440 |
PR 25308 |
| 3441 |
* elf-properties.c (_bfd_elf_convert_gnu_properties): Check the |
| 3442 |
return value from bfd_malloc. |
| 3443 |
* elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise. |
| 3444 |
(bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise. |
| 3445 |
(elf32_arm_filter_cmse_symbols): Likewise. |
| 3446 |
(elf32_arm_write_section): Likewise. |
| 3447 |
* mach-o.c (bfd_mach_o_core_fetch_environment): Likewise. |
| 3448 |
(bfd_mach_o_follow_dsym): Likewise. |
| 3449 |
* pef.c (bfd_pef_print_loader_section): Likewise. |
| 3450 |
(bfd_pef_scan_start_address): Likewise. |
| 3451 |
(bfd_pef_parse_function_stubs): Likewise. |
| 3452 |
(bfd_pef_parse_symbols): Likewise. |
| 3453 |
|
| 3454 |
2020-01-03 Sergei Trofimovich <[email protected]> |
| 3455 |
|
| 3456 |
* elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail |
| 3457 |
on binary inputs ld/PR25316. |
| 3458 |
(is_ia64_elf): new helper to filter on ia64 objects. |
| 3459 |
|
| 3460 |
2020-01-03 Jan Beulich <[email protected]> |
| 3461 |
|
| 3462 |
* mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore |
| 3463 |
in parameter names. |
| 3464 |
(bfd_mach_o_scan): Insert underscore in two variable names. |
| 3465 |
|
| 3466 |
2020-01-02 Sergey Belyashov <[email protected]> |
| 3467 |
|
| 3468 |
* Makefile.am: Add z80-elf target support. |
| 3469 |
* configure.ac: Likewise. |
| 3470 |
* targets.c: Likewise. |
| 3471 |
* Makefile.in: Regenerate. |
| 3472 |
* configure: Regenerate. |
| 3473 |
* config.bfd: Add z80-elf target support and new arches: ez80 and |
| 3474 |
z180. |
| 3475 |
* elf32-z80.c: New file. |
| 3476 |
* archures.c: Add new z80 architectures: eZ80 and Z180. |
| 3477 |
* coffcode.h: Likewise. |
| 3478 |
* cpu-z80.c: Likewise. |
| 3479 |
* coff-z80.c: Add new relocations for Z80 target and local label |
| 3480 |
check. |
| 3481 |
* reloc.c: Add new relocs. |
| 3482 |
* bfd-in2.h: Regenerate. |
| 3483 |
* libbfd.h: Regenerate. |
| 3484 |
|
| 3485 |
2020-01-02 Tamar Christina <[email protected]> |
| 3486 |
|
| 3487 |
PR 25210 |
| 3488 |
PR 24753 |
| 3489 |
* elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class. |
| 3490 |
|
| 3491 |
2020-01-01 Alan Modra <[email protected]> |
| 3492 |
|
| 3493 |
Update year range in copyright notice of all files. |
| 3494 |
|
| 3495 |
For older changes see ChangeLog-2019 |
| 3496 |
|
| 3497 |
Copyright (C) 2020 Free Software Foundation, Inc. |
| 3498 |
|
| 3499 |
Copying and distribution of this file, with or without modification, |
| 3500 |
are permitted in any medium without royalty provided the copyright |
| 3501 |
notice and this notice are preserved. |
| 3502 |
|
| 3503 |
Local Variables: |
| 3504 |
mode: change-log |
| 3505 |
left-margin: 8 |
| 3506 |
fill-column: 74 |
| 3507 |
version-control: never |
| 3508 |
End: |