12002-01-26 Hans-Peter Nilsson <[email protected]> 2 3 * configure.in <64-bit configuration>: If using gcc, check and 4 emit error for egcs-1.1.2. 5 * configure: Regenerate. 6 7 * doc/Makefile.am (install): Depend on install-info. 8 * doc/Makefile.in: Regenerate. 9 102002-01-26 Egor Duda <[email protected]> 11 12 * elf.c (elfcore_grok_win32pstatus): Copy only as much information 13 as possible to avoid stack corruption. 14 152002-01-26 Richard Henderson <[email protected]> 16 17 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext 18 for non-allocated sections. 19 202002-01-25 Mark Kettenis <[email protected]> 21 22 * elf.c (elfcore_write_prstatus): Make sure we pass the address of 23 prstat.pr_reg even if it is a struct. 24 252002-01-25 Steve Ellcey <[email protected]> 26 27 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX. 28 292002-01-25 Philipp Thomas <[email protected]> 30 31 * coffgen.c (coff_print_symbol): Don't mark info message 32 for translation. 33 342002-01-25 Nick Clifton <[email protected]> 35 36 * po/fr.po: Updated translation. 37 * po/es.po: Updated translation. 38 392002-01-25 Philipp Thomas <[email protected]> 40 41 * coff-alpha.c (alpha_relocate_section): Unify warning message 42 for GP relative relocations without GP defined. 43 * coff-mips.c (mips_relocate_section): Likewise. 44 452002-01-25 Alan Modra <[email protected]> 46 47 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid 48 unsigned overflow when new_offset < old_offset. 49 502002-01-24 Philipp Thomas <[email protected]> 51 52 * bfd.c (_bfd_abort): Fix typo. 53 542002-01-23 Richard Henderson <[email protected]> 55 56 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress 57 plt entries for undefweak symbols. 58 592002-01-23 Steve Ellcey <[email protected]> 60 61 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to 62 DEFAULT_VECTOR. 63 (bfd_elf64_ia64_hpux_big_vec): Ditto. 64 (bfd_elf32_h8300_vec): Ditto. 65 662002-01-23 Alan Modra <[email protected]> 67 68 * elf64-ppc.c: Remove stale part of ABI comment. 69 (NO_OPD_RELOCS): Define. 70 (ppc64_elf_check_relocs): Use it. 71 (ppc64_elf_relocate_section): Here too. 72 (build_one_stub): Don't point function syms at the stub. Instead, 73 hijack plt.offset. 74 (ppc64_elf_relocate_section): Check whether REL24 relocs should 75 really go to the stub. Make all dynamic relocs in opd against 76 locals. 77 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of 78 plt.offset. 79 802002-01-22 Richard Henderson <[email protected]> 81 82 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp. 83 842002-01-22 Alan Modra <[email protected]> 85 86 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of 87 TOC_BASE_OFF adjustment. 88 89 * Makefile.am: Run "make dep-am". 90 * Makefile.in: Regenerate. 91 * po/SRC-POTFILES.in: Regenerate. 92 932002-01-22 John David Anglin <[email protected]> 94 95 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new 96 host defines. 97 982002-01-21 Hans-Peter Nilsson <[email protected]> 99 100 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>: 101 Check for and emit error if sgot is NULL at this point. 102 1032002-01-21 Jason Thorpe <[email protected]> 104 105 * config.bfd (ia64*-*-netbsd*): New target. 106 1072002-01-21 Thomas Klausner <[email protected]> 108 109 * som.c (som_write_space_strings): Comment typo fix. 110 1112002-01-21 Alan Modra <[email protected]> 112 113 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and 114 is_func_descriptor fields. 115 (link_hash_newfunc): Init them. 116 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a 117 dot are candidates for plt entries. When processing .opd relocs, 118 set function descriptor strings to point inside function code 119 string, and set new ppc_link_hash_entry fields. 120 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs. 121 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with 122 function descriptors. It's now done in.. 123 (func_desc_adjust): New. 124 (ppc64_elf_func_desc_adjust): New. 125 (define elf_backend_always_size_sections): Define. 126 (ppc64_elf_hide_symbol): New. 127 (define elf_backend_hide_symbol): Define. 128 (allocate_dynrelocs): Remove code looking up function descriptors 129 as that has been done earlier. 130 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash 131 table. 132 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking 133 up function descriptor. 134 (build_one_stub): Look up the function code sym. Check for 135 invalid plt offsets. 136 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms. 137 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs. 138 139 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add 140 boolean param. 141 (_bfd_elf_link_hash_hide_symbol): Likewise. 142 * elflink.h (elf_link_add_object_symbols): Adjust call to 143 elf_backend_hide_symbol. 144 (elf_fix_symbol_flags): Likewise. 145 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather 146 than bfd_alloc. 147 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param. 148 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref. 149 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise. 150 (clobber_millicode_symbols): Adjust to suit new hide_symbol. 151 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param 152 and adjust to suit. 153 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call 154 _bfd_elf_link_hash_hide_symbol rather than duplicating code. 155 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise. 156 1572002-01-18 Alan Modra <[email protected]> 158 159 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a 160 dynamic function descriptor symbol, not the associated function 161 symbol. 162 1632002-01-17 Eric Christopher <[email protected]> 164 165 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo. 166 1672002-01-17 Nick Clifton <[email protected]> 168 169 * po/bfd.pot: Regenerate. 170 * po/fr.po: Regenerate. 171 1722002-01-17 Alan Modra <[email protected]> 173 174 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>): 175 Remove "Elf_Internal_Shdr *" param. 176 (_bfd_mips_elf_section_from_bfd_section): Ditto. 177 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto. 178 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto. 179 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto. 180 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto. 181 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto. 182 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend 183 function to override special sections. Remove hdr arg from 184 backend call, and don't loop. 185 1862002-01-16 Eric Christopher <[email protected]> 187 188 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp 189 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of 190 relocations requiring gp0 and gp. 191 1922002-01-16 Richard Earnshaw <[email protected]> 193 194 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle 195 EF_ARM_VFP_FLOAT. 196 (elf32_arm_print_private_bfd_data): Likewise. 197 1982002-01-16 Nick Clifton <[email protected]> 199 200 * po/tr.po: Import new version. 201 2022002-01-16 Alan Modra <[email protected]> 203 204 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs. 205 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc. 206 (ORI_R0_R0_0): Correct. 207 2082002-01-16 Alan Modra <[email protected]> 209 210 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE 211 when plt_not_loaded. 212 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to 213 clear .plt SEC_CODE here. Create .stub and correct .glink flags. 214 (PLT_INITIAL_ENTRY_SIZE): Set to 24. 215 (ppc64_elf_glink_code): Delete. 216 (PPC64_ELF_GLINK_SIZE): Delete. 217 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11, 218 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0, 219 ORI_R0_R0_0): Define. 220 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define. 221 (struct ppc_link_hash_table): Add sstub and plt_overflow. 222 (ppc64_elf_link_hash_table_create): Init them. 223 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry. 224 Don't copy to shared lib. 225 (ppc64_elf_check_relocs): Call bfd_set_error on errors. 226 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount. 227 (allocate_dynrelocs <plt>): Don't change function sym here. Make 228 room for .stub and .glink code. 229 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for 230 DT_PPC64_GLINK. 231 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call 232 bfd_elf64_bfd_final_link. 233 (bfd_elf64_bfd_final_link): Don't define. 234 (ppc64_elf_size_stubs): New. 235 (build_plt_stub): New. 236 (build_one_stub): New. 237 (ppc64_elf_build_stubs): New. 238 (ppc64_elf_relocate_section <toc relocs>): Remove assert. 239 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs. 240 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set 241 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in 242 case output sections not separate. Adjust DT_RELASZ to not 243 include plt relocs. Set reserved got entry. Set got and plt 244 entry size. 245 (elf_backend_got_header_size): Set to 8. 246 * elf64-ppc.h: New file. 247 2482002-01-16 Alan Modra <[email protected]> 249 250 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing 251 sections, use bfd_section_list_remove. 252 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise. 253 * elflink.h (elf_link_add_object_symbols): When removing all 254 sections, use bfd_section_list_clear. 255 2562002-01-15 Nick Clifton <[email protected]> 257 258 * po/sv.po: New file: Swedish translation. 259 * configure.in (ALL_LINGUAS): Add sv. 260 * configure: Regenerate. 261 2622002-01-15 Jakub Jelinek <[email protected]> 263 264 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change. 265 * elf.c (merge_sections_remove_hook): New function. 266 (_bfd_elf_merge_sections): Pass it as 3rd argument to 267 _bfd_merge_sections. 268 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument. 269 * libbfd.h: Rebuilt. 270 * merge.c (_bfd_merge_sections): Add remove_hook argument. 271 Call remove_hook if a SEC_EXCLUDE section is encountered. 272 2732002-01-15 Nick Clifton <[email protected]> 274 275 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'. 276 (xstormy16_reloc_map): Initialise new field with correct howto 277 table. 278 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct 279 howto entry. 280 2812002-01-10 Michael Snyder <[email protected]> 282 283 * elf.c (elfcore_write_prstatus): Use long instead of pid_t; 284 (elfcore_write_pstatus): Use long instead of pid_t; 285 * elf-bfd.h: Change prototypes to use long instead of pid_t; 286 2872002-01-09 Jason Thorpe <[email protected]> 288 289 * elf.c: Update copyright years. 290 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO 291 and NT_NETBSDCORE_FIRSTMACH. Improve a comment. 292 2932002-01-08 Michael Snyder <[email protected]> 294 295 Add capability to write corefile note sections, for gdb. 296 * elf.c (elfcore_write_note): New function. 297 (elfcore_write_prpsinfo): New function. 298 (elfcore_write_prstatus): New function. 299 (elfcore_write_pstatus): New function. 300 (elfcore_write_prfpreg): New function. 301 (elfcore_write_prxfpreg): New function. 302 * elf-bfd.h: Add prototypes for above functions. 303 3042002-01-08 Alexandre Oliva <[email protected]> 305 306 * elf.c (elf_fake_sections): Propagate errors from 307 elf_backend_fake_section. 308 3092002-01-07 Jason Thorpe <[email protected]> 310 311 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo. 312 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c. 313 (elf32-sh-nbsd.lo): New rule. 314 * Makefile.in: Regenerate. 315 * config.bfd (sh*le-*-netbsdelf*): New target. 316 (sh*-*-netbsdelf*): New target. 317 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*. 318 (bfd_elf32_shnbsd_vec): New vector. 319 (bfd_elf32_shlnbsd_vec): New vector. 320 * configure: Regenerate. 321 * elf32-sh-nbsd.c: New file. 322 * targets.c: Update copyright years. 323 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and 324 bfd_elf32_shnbsd_vec. 325 3262002-01-07 Aldy Hernandez <[email protected]> 327 328 * coff-rs6000.c (READ20): Use bfd_scan_vma. 329 3302002-01-07 Geoffrey Keating <[email protected]> 331 332 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset 333 of a symbol in a section that will be deleted. 334 3352002-01-07 Nick Clifton <[email protected]> 336 337 * po/es.po: New file: Spanish translation. 338 * configure.in (ALL_LINGUAS): Add es. 339 * configure: Regenerate. 340 3412002-01-06 Steve Ellcey <[email protected]> 342 343 * elfxx-ia64.c (is_unwind_section_name): Add target vector as 344 argument so we can handle HP-UX specially. 345 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name. 346 (elfNN_hpux_backend_section_from_bfd_section): New for support 347 of SHN_IA_64_ANSI_COMMON. 348 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON. 349 (is_unwind_section_name): Add special HP-UX support. 350 (elfNN_ia64_section_from_shdr): Add support for more sections. 351 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and 352 add support for more sections. 353 (elfNN_ia64_additional_program_headers): Modify 354 is_unwind_section_name call. 355 (elfNN_ia64_modify_segment_map): Remove assumption that there is 356 only one unwind section in segment. 357 3582002-01-06 Alan Modra <[email protected]> 359 360 * syms.c (_bfd_generic_make_empty_symbol): New function. 361 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as 362 _bfd_generic_make_empty_symbol. 363 * libbfd.h: Regenerate. 364 * bfd-in2.h: Regenerate. 365 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function. 366 (hppabsd_core_get_symtab_upper_bound): Don't define. 367 (hppabsd_core_get_symtab): Likewise. 368 (hppabsd_core_print_symbol): Likewise. 369 (hppabsd_core_get_symbol_info): Likewise. 370 (hppabsd_core_bfd_is_local_label_name): Likewise. 371 (hppabsd_core_get_lineno): Likewise. 372 (hppabsd_core_find_nearest_line): Likewise. 373 (hppabsd_core_bfd_make_debug_symbol): Likewise. 374 (hppabsd_core_read_minisymbols): Likewise. 375 (hppabsd_core_minisymbol_to_symbol): Likewise. 376 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols). 377 Formatting fixes. 378 * hpux-core.c: Similarly. 379 * irix-core.c: Similarly. 380 * osf-core.c: Similarly. 381 * sco5-core.c: Similarly. 382 * binary.c (binary_make_empty_symbol): Remove function, define as 383 _bfd_generic_make_empty_symbol. 384 * ihex.c (ihex_make_empty_symbol): Likewise. 385 * mmo.c (mmo_make_empty_symbol): Likewise. 386 * ppcboot.c (ppcboot_make_empty_symbol): Likewise. 387 * srec.c (srec_make_empty_symbol): Likewise. 388 * versados.c (versados_make_empty_symbol): Likewise. 389 * vms.c (_bfd_vms_make_empty_symbol): Remove. 390 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol. 391 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol 392 rather than _bfd_vms_make_empty_symbol. 393 * vms-misc.c (new_symbol): Likewise. 394 3952002-01-05 Alan Modra <[email protected]> 396 397 * section.c (bfd_section_init): Remove unnecessary initialisations. 398 (bfd_section_list_clear): New function. 399 (bfd_section_list_remove, bfd_section_list_insert): New macros. 400 (_bfd_strip_section_from_output): Use them. 401 * coffcode.h (coff_set_alignment_hook): Likewise. 402 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise. 403 * elf64-mips.c (mips_elf64_final_link): Likewise. 404 * elf64-mmix.c (mmix_elf_final_link): Likewise. 405 * sunos.c (sunos_add_dynamic_symbols): Likewise. 406 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise. 407 * bfd-in2.h: Regenerate. 408 409 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway 410 rather than doing our own section handling. Clean up after errors 411 with bfd_release and bfd_section_list_clear. Handle unexpected 412 flags. 413 * aoutf1.h (sunos4_core_file_p): Likewise. 414 * aix386-core.c (aix386_core_file_p): Likewise. 415 * cisco-core.c (cisco_core_file_validate): Likewise. 416 * ptrace-core.c (ptrace_unix_core_file_p): Likewise. 417 * trad-core.c (trad_unix_core_file_p): Likewise. 418 419 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors 420 with bfd_release and bfd_section_list_clear. 421 * hpux-core.c (hpux_core_core_file_p): Likewise. 422 * irix-core.c (irix_core_core_file_p): Likewise. 423 * lynx-core.c (lynx_core_file_p): Likewise. 424 * osf-core.c (osf_core_core_file_p): Likewise. 425 * rs6000-core.c (rs6000coff_core_p): Likewise. 426 * sco5-core.c (sco5_core_file_p): Likewise. 427 428 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform 429 sign extension adjustments without conditionals. 430 4312002-01-04 Jakub Jelinek <[email protected]> 432 433 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if 434 CIE at .eh_frame start is removed due to no FDEs referencing it. 435 4362002-01-04 Jason Thorpe <[email protected]> 437 438 * config.bfd (x86_64-*-netbsd*): New target. 439 * configure.in (x86_64-*-netbsd*): Set COREFILE 440 to netbsd-core.lo. 441 * configure: Regenerated. 442 4432002-01-03 Tom Rix <[email protected]> 444 445 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering 446 for recent bfd_make_section_anyway change. 447 4482002-01-03 Nick Clifton <[email protected]> 449 450 * elf32-arm.h (elf32_arm_final_link_relocate): Handle 451 R_ARM_THM_PC11 reloc. 452 4532002-01-02 Nick Clifton <[email protected]> 454 455 * configure.in (LINGUAS): Add ja. 456 * configure: Regenerate. 457 * po/ja.po: Import from translation project's web site. 458 4592002-01-02 Nick Clifton <[email protected]> 460 461 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error 462 messages to ease translation into other languages. 463 464For older changes see ChangeLog-0001 465 466Local Variables: 467mode: change-log 468left-margin: 8 469fill-column: 74 470version-control: never 471End: 472