177298Sobrien1999-12-29 Richard Henderson <rth@cygnus.com> 277298Sobrien 377298Sobrien * elflink.h (bfd_elf,size_dynamic_sections): Don't export all 477298Sobrien if no dynamic sections created. 577298Sobrien 677298Sobrien1999-12-27 Nick Clifton <nickc@cygnus.com> 777298Sobrien 877298Sobrien * peicode.h (pe_bfd_object_p): Only define for PE format 977298Sobrien targets. 1077298Sobrien 1177298Sobrien1999-12-17 Nick Clifton <nickc@cygnus.com> 1277298Sobrien 1377298Sobrien * coff-i386.c (i3coff_object_p): Delete. 1477298Sobrien (i386coff_vec): Replace reference to i3coff_object_p with a 1577298Sobrien reference to coff_object_p. 1677298Sobrien 1777298Sobrien * coff-mcore.c (pe_object_p): Delete. 1877298Sobrien 1977298Sobrien * peicode.h (pe_bfd_object_p): New function: Detect the 2077298Sobrien presence of a PE format COFF object file. Also detect and 2177298Sobrien warn about the presence of LINK6 format Image Library Format 2277298Sobrien object files. 2377298Sobrien 2477298Sobrien1999-12-16 Nick Clifton <nickc@cygnus.com> 2577298Sobrien 2677298Sobrien * coff-arm.c (NUM_ELEM): New macro. 2777298Sobrien (NUM_RELOCS): New macro: The number of known ARM relocs. 2877298Sobrien (RTYPE2HOWTO): Return NULL if the reloc type is out of range. 2977298Sobrien (coff_arm_rtype_to_howto): Return NULL if the reloc type is out 3077298Sobrien of range. 3177298Sobrien (bfd_arm_process_before_allocation): Produce a warning message if 3277298Sobrien an out of range symbol index is encountered. 3377298Sobrien 3477298Sobrien1999-12-14 Nick Clifton <nickc@cygnus.com> 3577298Sobrien 3677298Sobrien * elflink.h (is_global_symbol_definition): New Function: Return 3777298Sobrien true iff the symbol is being given a global definition in this 3877298Sobrien bfd. 3977298Sobrien (elf_link_is_defined_archive_symbol): Do not bother processing 4077298Sobrien symbols for an archive element that has already been included 4177298Sobrien in the link. 4277298Sobrien Use is_global_symbol_definition(). 4377298Sobrien 4477298Sobrien1999-12-09 Andrew Cagney <cagney@cygnus.com> 4577298Sobrien 4677298Sobrien * config.bfd: Add support for sparc-*-netbsdelf* and 4777298Sobrien sparc-*-netbsdaout*. 4877298Sobrien 4977298Sobrien1999-12-13 Nick Clifton <nickc@cygnus.com> 5077298Sobrien 5177298Sobrien * elflink.h (elf_link_is_defined_archive_symbol): Check to see 5277298Sobrien if the symbol is in the common section. 5377298Sobrien 5477298Sobrien1999-12-10 Nick Clifton <nickc@cygnus.com> 5577298Sobrien 5677298Sobrien * elflink.h (elf_link_is_defined_archive_symbol): New 5777298Sobrien function: Decide if a symbol, in an archive map is there 5877298Sobrien because it is defined in the archive element, or because it is 5977298Sobrien just another common declaration of it. 6077298Sobrien (elf_link_add_archive_symbols): Use 6177298Sobrien elf_link_is_defined_archive_symbol to decide if an archive 6277298Sobrien element contain a reference to a common symbol should be 6377298Sobrien linked in or not. 6477298Sobrien 6577298Sobrien1999-12-10 Nick Clifton <nickc@cygnus.com> 6677298Sobrien 6777298Sobrien * elflink.h: Revert previous patch. 6877298Sobrien * targets.c: Revert previous patch. 6977298Sobrien * libbfd-in2.h: Revert previous patch. 7077298Sobrien * libbfd.h: Revert previous patch. 7177298Sobrien * elfxx-target.h: Revert previous patch. 7277298Sobrien * archive.c: Revert previous patch. 7377298Sobrien * aout-target.h: Revert previous patch. 7477298Sobrien * aout-tic30.h: Revert previous patch. 7577298Sobrien * bfd.c: Revert previous patch. 7677298Sobrien * coff-alpha.c: Revert previous patch. 7777298Sobrien * coff-rs6000.c: Revert previous patch. 7877298Sobrien * elf64-mips.c: Revert previous patch. 7977298Sobrien * ieee.c: Revert previous patch. 8077298Sobrien * libecoff.h: Revert previous patch. 8177298Sobrien * oasys.c: Revert previous patch. 8277298Sobrien * som.c: Revert previous patch. 8377298Sobrien * vms.c: Revert previous patch. 8477298Sobrien 8577298Sobrien1999-12-09 Nick Clifton <nickc@cygnus.com> 8677298Sobrien 8777298Sobrien * elflink.h (elf_link_add_archive_symbols): Add an archive 8877298Sobrien element even if contains a symbol which is currently only 8977298Sobrien considered to be a common. 9077298Sobrien 9177298Sobrien * targets.c (struct bfd_target): Add new field 9277298Sobrien _bfd_allow_commons_in_armap. 9377298Sobrien * bfd-in2.h:Regenerate. 9477298Sobrien 9577298Sobrien * libbfd-in2.h (_bfd_noarchive_allow_commons_in_armap): 9677298Sobrien Define. 9777298Sobrien (_bfd_archive_bsd_allow_commons_in_armap): Define. 9877298Sobrien * libbfd.h: Regenerate. 9977298Sobrien 10077298Sobrien * elfxx-target.h: If using COFF archive map, override 10177298Sobrien definition of allow_commons_in_armap and replace with 10277298Sobrien bfd_false. 10377298Sobrien 10477298Sobrien * archive.c (bfd_compute_and_write_armap): Do not place common 10577298Sobrien symbols into the archive map unless _bfd_allow_commons_in_armap 10677298Sobrien returns true. 10777298Sobrien 10877298Sobrien * aout-target.h (MY_allow_commons_in_armap): Define. 10977298Sobrien * aout-tic30.h (MY_allow_commons_in_armap): Define. 11077298Sobrien * bfd.c (bfd_allow_commons_in_armap): Define. 11177298Sobrien * coff-alpha.h (alpha_ecoff_allow_commons_in_armap): Define. 11277298Sobrien * coff-rs6000.h (xcoff_allow_commons_in_armap): Define. 11377298Sobrien * elf64-mips.c (bfd_elf64_allow_commons_in_armap): Define. 11477298Sobrien * ieee.c (ieee_ecoff_allow_commons_in_armap): Define. 11577298Sobrien * libecoff.h (_bfd_ecoff_allow_commons_in_armap): Define. 11677298Sobrien * oasys.c (oasys_allow_commons_in_armap): Define. 11777298Sobrien * som.c (som_allow_commons_in_armap): Define. 11877298Sobrien * vms.c (vms_allow_commons_in_armap): Define. 11977298Sobrien 12077298Sobrien1999-12-07 Jim Blandy <jimb@cygnus.com> 12177298Sobrien 12277298Sobrien Add support for SSE registers in ELF core files. 12377298Sobrien * elf.c (elfcore_make_note_pseudosection): New function. 12477298Sobrien (elfcore_grok_prfpreg): Use it. 12577298Sobrien (elfcore_grok_prxfpreg): New function. 12677298Sobrien (elfcore_grok_note): Recognize Linux NT_PRXFPREG notes. 12777298Sobrien 12877298Sobrien1999-12-03 Ian Lance Taylor <ian@zembu.com> 12977298Sobrien 13077298Sobrien * elf32-mips.c (mips_elf_calculate_relocation): Divide R_MIPS_PC16 13177298Sobrien value by 4 before storing it back in the field. From 13277298Sobrien Koundinya. K <kk@ddeorg.soft.net>. 13377298Sobrien 13477298SobrienTue Nov 30 22:41:14 1999 Jeffrey A Law (law@cygnus.com) 13577298Sobrien 13677298Sobrien * archures.c (bfd_mach_am33): Define. 13777298Sobrien * bfd-in2.h: Rebuilt. 13877298Sobrien * cpu-m10300.c (bfd_am33_arch): Add to the mn103 architecture list 13977298Sobrien * elf-m10300.c (mn10300_elf_relax_section): Handle am33 instructions. 14077298Sobrien (compute_function_info): Handle additional registers saved by 14177298Sobrien movm on the am33. 14277298Sobrien (elf_mn10300_mach): Handle E_MN10300_MACH_AM33. 14377298Sobrien (_bfd_mn10300_elf_final_write_processing): Handle bfd_mach_am33. 14477298Sobrien 14577298Sobrien1999-11-29 Jim Blandy <jimb@cygnus.com> 14677298Sobrien 14777298Sobrien * elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New 14877298Sobrien functions. 14977298Sobrien * bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New 15077298Sobrien declarations. 15177298Sobrien 15277298Sobrien1999-11-27 Michael Meissner <meissner@cygnus.com> 15377298Sobrien 15477298Sobrien * reloc.c (BFD_RELOC_ALPHA_USER_LITERAL): New relocation for 15577298Sobrien internal use within gas for alpha explicit relocations. 15677298Sobrien (BFD_RELOC_ALPHA_USER_LITUSE_BASE): Ditto. 15777298Sobrien (BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF): Ditto. 15877298Sobrien (BFD_RELOC_ALPHA_USER_LITUSE_JSR): Ditto. 15977298Sobrien (BFD_RELOC_ALPHA_USER_GPDISP): Ditto. 16077298Sobrien (BFD_RELOC_ALPHA_USER_GPRELHIGH): Ditto. 16177298Sobrien (BFD_RELOC_ALPHA_USER_GPRELLOW): Ditto. 16277298Sobrien 16377298Sobrien * elf64-alpha.c (elf64_alpha_reloc_map): Add mappings for 16477298Sobrien BFD_RELOC_ALPHA_USER_*. 16577298Sobrien 16677298Sobrien * bfd-in2.h: Regenerate. 16777298Sobrien * libbfd.h: Regenerate. 16877298Sobrien 16977298Sobrien1999-11-26 Fred Fish <fnf@cygnus.com> 17077298Sobrien 17177298Sobrien * elf.c (elfcore_read_notes): Add prototype for static function. 17277298Sobrien (_bfd_elf_make_section_from_phdr): Renamed from bfd_section_from_phdr. 17377298Sobrien (bfd_section_from_phdr): Replacement function that calls 17477298Sobrien _bfd_elf_make_section_from_phdr for generic segment types and 17577298Sobrien backend fucntion pointed to by elf_backend_section_from_phdr for 17677298Sobrien backend specific segment types. 17777298Sobrien (_bfd_elfcore_section_from_phdr): Remove call to elfcore_read_notes, 17877298Sobrien now called by _bfd_elf_make_section_from_phdr. Note that this func 17977298Sobrien is now just a stub between the caller and bfd_section_from_phdr. 18077298Sobrien 18177298Sobrien * elf-bfd.h (struct elf_backend_data): Add new function pointer 18277298Sobrien elf_backend_section_from_phdr. 18377298Sobrien (elf_backend_section_from_phdr): Add prototype. 18477298Sobrien 18577298Sobrien * elfxx-target.h (elf_backend_section_from_phdr): Define default. 18677298Sobrien (elfNN_bed): Add elf_backend_section_from_phdr. 18777298Sobrien 18877298Sobrien1999-11-25 Nick Clifton <nickc@cygnus.com> 18977298Sobrien 19077298Sobrien * coff-arm.c (bfd_arm_get_bfd_for_interworking): Add 19177298Sobrien SEC_CODE and SEC_READONLY flags to glue sections. 19277298Sobrien 19377298Sobrien * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add 19477298Sobrien SEC_CODE and SEC_READONLY flags to glue sections. 19577298Sobrien 19677298Sobrien1999-11-20 Nick Clifton <nickc@cygnus.com> 19777298Sobrien 19877298Sobrien * coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous 19977298Sobrien delta. 20077298Sobrien 20177298Sobrien1999-11-19 Catherine Moore <clm@cygnus.com> 20277298Sobrien 20377298Sobrien * elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding. 20477298Sobrien (elf_cpu32_plt_entry): Likewise. 20577298Sobrien 20677298Sobrien1999-11-18 Nick Clifton <nickc@cygnus.com> 20777298Sobrien 20877298Sobrien * coff-mcore.c (coff_mcore_rtype_to_howto): Special case handling 20977298Sobrien for RVA relocs. 21077298Sobrien (coff_mcore_relocate_section): Initialise addend to 0. 21177298Sobrien Special case processing of RVA reloc. 21277298Sobrien 21377298Sobrien1999-11-17 Richard Henderson <rth@cygnus.com> 21477298Sobrien 21577298Sobrien * elf-bfd.h (struct elf_backend_data): Reorder collect and 21677298Sobrien type_change_ok; add sign_extend_vma. 21777298Sobrien * elf32-mips.c (elf_backend_sign_extend_vma): Define. 21877298Sobrien * elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma. 21977298Sobrien (elf_swap_shdr_in, elf_swap_phdr_in): Likewise. 22077298Sobrien * elfxx-target.h (elf_backend_sign_extend_vma): Default. 22177298Sobrien (elfNN_bed): Follow struture changes. 22277298Sobrien 22377298Sobrien1999-11-09 Ian Lance Taylor <ian@zembu.com> 22477298Sobrien 22577298Sobrien * libbfd.c (bfd_read): Check result of read against desired result 22677298Sobrien using !=, not <. 22777298Sobrien (_bfd_generic_get_section_contents): Set bfd_error if the seek is 22877298Sobrien invalid compared to the section size. 22977298Sobrien 23077298Sobrien * ieee.c (ieee_slurp_debug): Get the length of the debug 23177298Sobrien information right if there is no data part. 23277298Sobrien 23377298SobrienTue Nov 2 01:44:41 1999 Jeffrey A Law (law@cygnus.com) 23477298Sobrien 23577298Sobrien * som.c (som_fixup_formats): Improve handling of R_AUX_UNWIND, 23677298Sobrien R_LINETAB, R_LINETAB_ESC, and R_COMMENT. 23777298Sobrien 23877298Sobrien1999-10-28 Ian Lance Taylor <ian@zembu.com> 23977298Sobrien 24077298Sobrien * elflink.h (elf_bfd_final_link): Make last_local signed. 24177298Sobrien 24277298Sobrien1999-10-27 Ian Lance Taylor <ian@zembu.com> 24377298Sobrien 24477298Sobrien * stabs.c (_bfd_link_section_stabs): Make sure .stabstr section 24577298Sobrien starts with a zero. 24677298Sobrien 24777298SobrienSat Oct 23 17:36:12 1999 Andrew Cagney <cagney@b1.cygnus.com> 24877298Sobrien 24977298Sobrien * archures.c: Add definitions bfd_mach_d10v, bfd_mach_d10v_ts2 and 25077298Sobrien bfd_mach_d10v_ts3. 25177298Sobrien * cpu-d10v.c (d10v_ts3_info, d10v_ts2_info): Add. 25277298Sobrien * bfd-in2.h: Regenerate. 25377298Sobrien 25477298Sobrien1999-10-15 Andrew Haley <aph@cygnus.com> 25577298Sobrien 25677298Sobrien * dwarf1.c (parse_die): Fail to parse a die if its length is zero. 25777298Sobrien 25877298SobrienSun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com) 25977298Sobrien 26077298Sobrien * libhppa.h (bfd_hppa_insn2fmt): Change to return an int. 26177298Sobrien 26277298Sobrien1999-10-08 Ian Lance Taylor <ian@zembu.com> 26377298Sobrien 26477298Sobrien * elflink.h (elf_merge_symbol): When overriding a weak symbol with 26577298Sobrien a defined symbol in a shared library, clear the DEF_DYNAMIC flag 26677298Sobrien too. 26777298Sobrien 26877298SobrienFri Oct 8 13:03:45 1999 Geoffrey Keating <geoffk@cygnus.com> 26977298Sobrien 27077298Sobrien * elf32-mips.c (mips_elf_calculate_relocation): R_MIPS_LITERAL 27177298Sobrien relocs also need the GP value. 27277298Sobrien (_bfd_mips_elf_relocate_section): Handle unpaired LO16 relocs 27377298Sobrien properly. Handle sign-extension for R_MIPS_64 correctly. Correct 27477298Sobrien the GP value for R_MIPS_LITERAL relocs too. Handle 27577298Sobrien R_MIPS_64 relocs properly on big-endian MIPS. 27677298Sobrien (mips_elf_sign_extend): Behave properly with 'long long'. 27777298Sobrien (mips_elf_highest): Correct typo. 27877298Sobrien 27977298SobrienMon Oct 4 17:49:45 1999 Nick Clifton <nickc@cygnus.com> 28077298Sobrien 28177298Sobrien * cpu-m32r.c (arch_info_struct): New static global. 28277298Sobrien (bfd_m32r_arch): Refer to it. 28377298Sobrien * elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH. 28477298Sobrien (m32r_elf_print_private_bfd_data): Ditto. 28577298Sobrien (m32r_elf_final_write_processing): Handle bfd_mach_m32rx. 28677298Sobrien * archures.c (bfd_mach_m32rx): Define it. 28777298Sobrien * bfd-in2.h: Rebuild. 28877298Sobrien 28977298Sobrien1999-09-28 Fred Fish <fnf@cygnus.com> 29077298Sobrien 29177298Sobrien * targets.c (cisco_core_vec): Replaced with two new vecs ... 29277298Sobrien (cisco_core_big_vec): Add new bigendian vec. 29377298Sobrien (cisco_core_little_vec): Add new little endian vec. 29477298Sobrien 29577298Sobrien * cisco-core.c (CRASH_INFO): Fixed offset replaced with ... 29677298Sobrien (crash_info_locs): Add array of possible offsets. 29777298Sobrien (MASK_ADDR): Mask to apply to crash info offset. 29877298Sobrien (crashinfo_external): Add textbase, database, bssbase and 29977298Sobrien turn into a typedef. 30077298Sobrien (cisco_core_file_validate): Renamed from cisco_core_file_p. 30177298Sobrien Many small changes to account for additional hardware versions. 30277298Sobrien Pick a reasonable size for ".reg" section. Add a ".crash" 30377298Sobrien section to allow access to crashinfo_external struct. 30477298Sobrien (cisco_core_file_p): New version of this function that 30577298Sobrien iterates over crash_info_locs, calling cisco_core_file_validate. 30677298Sobrien (cisco_core_vec): Old big endian only vec replaced with ... 30777298Sobrien (cisco_core_big_vec): Add big endian version. 30877298Sobrien (cisco_core_little_vec): Add little endian version. 30977298Sobrien 31077298Sobrien * configure.in (cisco_core_vec): Split to two new vectors ... 31177298Sobrien (cisco_core_big_vec): New target vector. 31277298Sobrien (cisco_core_little_vec): New target vector. 31377298Sobrien * configure: Regenerate. 31477298Sobrien * config.bfd (targ): For m68*-*-aout* targ, change cisco_core_vec 31577298Sobrien to cisco_core_big_vec in targ_selvecs. 31677298Sobrien 31777298Sobrien1999-09-28 Geoffrey Keating <geoffk@cygnus.com> 31877298Sobrien 31977298Sobrien * elf32-mips.c (mips_elf_relocate_hi16): Unused, delete. 32077298Sobrien (mips_elf_relocate_got_local): Unused, delete. 32177298Sobrien (mips_elf_relocate_global_got): Unused, delete. 32277298Sobrien 32377298Sobrien1999-09-24 Fred Fish <fnf@cygnus.com> 32477298Sobrien 32577298Sobrien * elf.c (bfd_section_from_phdr): Add typename variable. Use p_type 32677298Sobrien to initialize it to something meaningful. Then use it to generate 32777298Sobrien more useful segment names. 32877298Sobrien 32977298SobrienSun Sep 19 12:16:47 1999 Jeffrey A Law (law@cygnus.com) 33077298Sobrien 33177298Sobrien * som.c (NO_PCREL_MODES): Define if the system does not define 33277298Sobrien R_SHORT_PCREL_MODE. 33377298Sobrien (hppa_som_gen_reloc_type): Handle both short and long pcrel branches. 33477298Sobrien (som_write_fixups): Eliminate redundant pcrel mode relocs. Handle 33577298Sobrien R_LONG_PCREL_MODE and R_SHORT_PCREL_MODE 33677298Sobrien * libhppa.h (dis_assemble_22): New function. 33777298Sobrien (bfd_hppa_insn2fmt): Handle long branch. 33877298Sobrien 33977298Sobrien * libhppa.h (bfd_hppa_insn2fmt): Decode and handle formats found 34077298Sobrien in PA2.0. 34177298Sobrien 34277298Sobrien1999-09-17 Alan Modra <alan@spri.levels.unisa.edu.au> 34377298Sobrien 34477298Sobrien * coff-i386.c (coff_i386_reloc_type_lookup): Support BFD_RELOC_16, 34577298Sobrien BFD_RELOC_16_PCREL, BFD_RELOC_8, BFD_RELOC_8_PCREL relocs. 34677298Sobrien (reloc_howto_type howto_table): Tidy comments and whitespace. 34777298Sobrien 34877298Sobrien1999-09-17 Nick Clifton <nickc@cygnus.com> 34977298Sobrien 35077298Sobrien * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Undo 35177298Sobrien previous delta. Set sec->gc_mark instead. 35277298Sobrien 35377298SobrienThu Sep 16 11:21:13 1999 Catherine Moore <clm@cygnus.com> 35477298Sobrien 35577298Sobrien * elf32-m68k.c (elf_cpu32_plt0_entry): Use a1 instead of a0. 35677298Sobrien (elf_cpu32_plt_entry): Likewise. 35777298Sobrien 35877298SobrienThu Sep 16 10:48:17 1999 Jeffrey A Law (law@cygnus.com) 35977298Sobrien 36077298Sobrien * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL. 36177298Sobrien 36277298Sobrien * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the 36377298Sobrien symbol table, then just compute a suitable value (but do not 36477298Sobrien create a __gp symbol). 36577298Sobrien 36677298Sobrien * elf-hppa.h (elf_hppa_relocate_section): Allow undefined 36777298Sobrien symbols when building shared libraries. 36877298Sobrien (elf_hppa_final_link_relocate): Correct handling of PCREL 36977298Sobrien relocations against undefined symbols. 37077298Sobrien 37177298Sobrien1999-09-16 Nick Clifton <nickc@cygnus.com> 37277298Sobrien 37377298Sobrien * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Mark 37477298Sobrien interworking sections as linker created so that they will not 37577298Sobrien be removed by garbage collection. 37677298Sobrien 37777298SobrienWed Sep 15 02:31:57 1999 Jeffrey A Law (law@cygnus.com) 37877298Sobrien 37977298Sobrien * elf-hppa.h (elf_hppa_final_link): Revamp __gp handling. 38077298Sobrien (elf_hppa_final_link_relocate): Consistently create an absolute 38177298Sobrien address, then subtract out the value of __gp. 38277298Sobrien 38377298Sobrien1999-09-14 Michael Meissner <meissner@cygnus.com> 38477298Sobrien 38577298Sobrien * configure.in (Canonicalization of target names): Remove adding 38677298Sobrien ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14 38777298Sobrien generates $ac_config_sub with a ${CONFIG_SHELL} already. 38877298Sobrien * configure: Regenerate. 38977298Sobrien 39077298Sobrien1999-09-14 Nick Clifton <nickc@cygnus.com> 39177298Sobrien 39277298Sobrien * elf32-m32r.c (ELF_MAXPAGESIZE): Change to 0x1 (at request of 39377298Sobrien Mitsubishi). 39477298Sobrien 39577298SobrienMon Sep 13 20:01:47 1999 Jeffrey A Law (law@cygnus.com) 39677298Sobrien 39777298Sobrien * elf-hppa.h (elf_hppa_record_segment_addrs): New function. 39877298Sobrien (elf_hppa_final_link): Initialize text_segment_base and 39977298Sobrien data_segment_base. 40077298Sobrien (elf_hppa_final_link_relocate): Handle SEGREL relocations. 40177298Sobrien 40277298Sobrien * elf-hppa.h (elf_hppa_final_link): Remove unused variables. 40377298Sobrien (elf_hppa_final_link_relocate): Likewise. 40477298Sobrien (elf_hppa_relocate_insn): Likewise. 40577298Sobrien (elf_hppa_relocate_section): Initialize HOWTO. 40677298Sobrien 40777298Sobrien1999-09-13 Donn Terry <donn@interix.com> 40877298Sobrien 40977298Sobrien * coffcode.h (styp_to_sec_flags): Further refinement of COMDAT 41077298Sobrien handling to support both GNU and MS objects. 41177298Sobrien 41277298Sobrien * coffcode.h (coff_write_object_contents): Don't check reloc_count 41377298Sobrien when determining whether to set F_RELFLG. 41477298Sobrien 41577298Sobrien1999-09-13 Philip Blundell <pb@nexus.co.uk> 41677298Sobrien 41777298Sobrien * elf32-arm.h (elf32_arm_final_link_relocate): Don't range-check 41877298Sobrien PC24 relocs if the target is an undefined weak symbol. 41977298Sobrien (arm_add_to_rel): Fix compiler warning. 42077298Sobrien (elf32_arm_plt0_entry): Correct comments. 42177298Sobrien 42277298Sobrien1999-09-13 Alan Modra <alan@spri.levels.unisa.edu.au> 42377298Sobrien 42477298Sobrien * elfcode.h (write_relocs): Check for the_bfd NULL when handling 42577298Sobrien an absolute symbol in REL relocs. 42677298Sobrien 42777298SobrienSun Sep 12 23:47:58 1999 Jeffrey A Law (law@cygnus.com) 42877298Sobrien 42977298Sobrien * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32. 43077298Sobrien Stub SEGREL32. Return an error for any relocation not handled. 43177298Sobrien 43277298Sobrien1999-09-12 Ian Lance Taylor <ian@zembu.com> 43377298Sobrien 43477298Sobrien * cofflink.c (coff_link_add_symbols): Look for special MSVC string 43577298Sobrien constant symbols, and avoid multiple definition errors on them. 43677298Sobrien 43777298Sobrien1999-09-12 Donn Terry <donn@interix.com> 43877298Sobrien 43977298Sobrien * libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most 44077298Sobrien significant bit is set. 44177298Sobrien 44277298Sobrien1999-09-11 Ian Lance Taylor <ian@zembu.com> 44377298Sobrien 44477298Sobrien * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define. 44577298Sobrien 44677298Sobrien * elfcode.h (write_relocs): Handle an absolute symbol in REL 44777298Sobrien relocs as we do for RELA relocs. 44877298Sobrien 44977298Sobrien1999-09-11 Donn Terry <donn@interix.com> 45077298Sobrien 45177298Sobrien * libpei.h (_bfd_pei_final_link_postscript): Declare. 45277298Sobrien (coff_final_link_postscript): Define. 45377298Sobrien * peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data 45477298Sobrien directory entries here. 45577298Sobrien (_bfd_pei_final_link_postscript): New function. 45677298Sobrien 45777298Sobrien * peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets 45877298Sobrien section flags based on the section name. 45977298Sobrien 46077298Sobrien * peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the 46177298Sobrien get the overflow of the s_nlnno field from the s_nreloc field. 46277298Sobrien * peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap 46377298Sobrien the s_nlnno overflow of the .text section into the s_nreloc 46477298Sobrien field. 46577298Sobrien 46677298Sobrien * peigen.c (add_data_entry): Declare. 46777298Sobrien (pei_swap_aouthdr_out): Get image size right. Set linker version 46877298Sobrien more intuitively. 46977298Sobrien (pei_swap_scnhdr_out): Test for UNINIT section, not .bss. 47077298Sobrien (pe_print_idata): Code cleanup, print more info, get rid of (now) 47177298Sobrien extraneous ImageBase. 47277298Sobrien (pe_print_edata): Likewise. 47377298Sobrien (pe_print_pdata): Likewise. Print exception entries. 47477298Sobrien (pe_print_reloc): Likewise. Print MIPS_JMPADDR. 47577298Sobrien (tbl): Make const, add "UNKNOWN". 47677298Sobrien (_bfd_pe_print_private_bfd_data_common): Print timestamp. 47777298Sobrien (_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted 47877298Sobrien section data directory. 47977298Sobrien (_bfd_pe_bfd_copy_private_section_data): Copy pe_flags. 48077298Sobrien 48177298Sobrien * libpei.h (_bfd_pe_bfd_get_symbol_info): Declare. 48277298Sobrien * peigen.c (_bfd_pe_bfd_get_symbol_info): New function. 48377298Sobrien * peicode.h (coff_get_symbol_info): Define. 48477298Sobrien 48577298Sobrien * config.bfd (i[3456]86-*-interix*): Set targ_cflags to 48677298Sobrien -DSTRICT_PE_FORMAT. 48777298Sobrien * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather 48877298Sobrien than __INTERIX. 48977298Sobrien (coff_classify_symbol): Re-revert 1999-08-08 patch if 49077298Sobrien STRICT_PE_FORMAT. 49177298Sobrien 49277298Sobrien * libpei.h: New file, broken out of peicode.h. 49377298Sobrien * peigen.c: New file, broken out of peicode.h. 49477298Sobrien * peicode.h: A bunch of code moved out to libpei.h and peigen.c. 49577298Sobrien * configure.in: Add peigen.lo to list of files required for each 49677298Sobrien PE target. 49777298Sobrien * Makefile.am: Rebuild dependencies. 49877298Sobrien (BFD32_BACKENDS): Add peigen.lo. 49977298Sobrien (BFD32_BACKENDS_CFILES): Add peigen.c. 50077298Sobrien (SOURCE_HFILES): Add libpei.h. 50177298Sobrien * configure, Makefile.in: Rebuild. 50277298Sobrien 50377298Sobrien * peicode.h (coff_swap_scnhdr_in): Don't check for a special 50477298Sobrien section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA 50577298Sobrien instead. Don't clear the s_paddr field for an uninitialized data 50677298Sobrien section. 50777298Sobrien 50877298Sobrien * coffcode.h (coff_mkobject_hook): Set timestamp field in 50977298Sobrien coff_data_type to f_timdat. 51077298Sobrien * peicode.h (pe_mkobject_hook): Likewise. 51177298Sobrien 51277298Sobrien * peicode.h (coff_swap_filehdr_in): Check the NT executable magic 51377298Sobrien number if COFF_IMAGE_WITH_PE. 51477298Sobrien 51577298Sobrien * coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG 51677298Sobrien to the reverse of IMAGE_FILE_DEBUG_STRIPPED. 51777298Sobrien (coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if 51877298Sobrien there is no SEC_DEBUGGING section. 51977298Sobrien * peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of 52077298Sobrien IMAGE_FILE_DEBUG_STRIPPED. 52177298Sobrien 52277298Sobrien * pe-i386.c (COFF_LONG_FILENAMES): Define. 52377298Sobrien (COFF_SECTION_ALIGNMENT_ENTRIES): Define. 52477298Sobrien * pei-i386.c (COFF_LONG_FILENAMES): Define. 52577298Sobrien (COFF_SECTION_ALIGNMENT_ENTRIES): Define. 52677298Sobrien 52777298Sobrien * coffswap.h (IMAGE_BASE): Don't define. 52877298Sobrien * pei-arm.c (IMAGE_BASE): Don't define. 52977298Sobrien * pei-i386.c (IMAGE_BASE): Don't define. 53077298Sobrien * pei-mcore.c (IMAGE_BASE): Don't define. 53177298Sobrien * pei-ppc.c (IMAGE_BASE): Don't define. 53277298Sobrien 53377298Sobrien * cofflink.c (_bfd_coff_link_input_bfd): When writing out a 53477298Sobrien symbol, switch on the class when determining whether to modify the 53577298Sobrien value. For PE, don't modify the value of a C_FCN symbol not named 53677298Sobrien .bf. 53777298Sobrien 53877298Sobrien * libbfd-in.h (_bfd_abort): Declare. 53977298Sobrien (abort): Define. 54077298Sobrien * bfd.c (_bfd_abort): New function. 54177298Sobrien * libbfd.h: Rebuild. 54277298Sobrien 54377298Sobrien * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE 54477298Sobrien special handling. 54577298Sobrien 54677298Sobrien * cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped, 54777298Sobrien don't write out the associated line numbers. 54877298Sobrien 54977298Sobrien * cofflink.c (_bfd_coff_write_global_sym): Handle section symbol 55077298Sobrien aux entries. 55177298Sobrien 55277298Sobrien * cofflink.c (coff_link_add_symbols): Don't warn about symbol type 55377298Sobrien changes when the base type is unknown. 55477298Sobrien 55577298Sobrien * coffgen.c (coff_print_symbol): Fix printing of aux record for 55677298Sobrien function symbols. 55777298Sobrien 55877298Sobrien * syms.c (BSF_DEBUGGING_RELOC): Define. 55977298Sobrien * coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING 56077298Sobrien for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such 56177298Sobrien symbols named .bf. 56277298Sobrien * coffgen.c (fixup_symbol_value): Relocate a symbol which has 56377298Sobrien BSF_DEBUGGING_RELOC set. 56477298Sobrien * bfd-in2.h: Rebuild. 56577298Sobrien 56677298Sobrien1999-09-10 Ian Lance Taylor <ian@zembu.com> 56777298Sobrien 56877298Sobrien * ecoff.c (bfd_debug_section): Update initialization for new 56977298Sobrien comdat_info field. 57077298Sobrien (_bfd_ecoff_styp_to_sec_flags): Add section parameter. 57177298Sobrien * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Update declaration. 57277298Sobrien 57377298Sobrien1999-09-10 H.J. Lu <hjl@gnu.org> 57477298Sobrien 57577298Sobrien * coff-alpha.c (alpha_ecoff_backend_data): Initialize the new 57677298Sobrien _bfd_filnmlen field. 57777298Sobrien * coff-mips.c (mips_ecoff_backend_data): Likewise. 57877298Sobrien 57977298SobrienFri Sep 10 00:35:14 1999 Jeffrey A Law (law@cygnus.com) 58077298Sobrien 58177298Sobrien * elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entries 58277298Sobrien for FPTR relocs involving local symbols. 58377298Sobrien 58477298Sobrien * elf-hppa.h (elf_hppa_final_link_relocate): Get the right 58577298Sobrien value for the stub address in a call through a stub. 58677298Sobrien Install the value for a local symbol directly into the DLT 58777298Sobrien instead of generating a reloc. Correctly handle FPTR64 relocs. 58877298Sobrien 58977298Sobrien * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function. 59077298Sobrien (elf_hppa_remark_useless_dynamic_symbols): Similarly. 59177298Sobrien (elf_hppa_final_link): Call them. 59277298Sobrien 59377298Sobrien1999-09-10 Ian Lance Taylor <ian@zembu.com> 59477298Sobrien 59577298Sobrien * elflink.h (elf_fix_symbol_flags): Move weakdef handling here... 59677298Sobrien (elf_adjust_dynamic_symbol): ...from here. 59777298Sobrien 59877298SobrienWed Sep 8 17:56:11 1999 Jeffrey A Law (law@cygnus.com) 59977298Sobrien 60077298Sobrien * elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DR 60177298Sobrien relocation, remove them. SECREL64->LTOFF16WF. 60277298Sobrien (elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle 60377298Sobrien DIR* relocations. 60477298Sobrien (elf_hppa_relocate_insn): Similarly. 60577298Sobrien 60677298Sobrien * elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs. 60777298Sobrien (elf_hppa_relocate_insn): Similarly. 60877298Sobrien 60977298Sobrien * elf-hppa.h (elf_hppa_final_link_relocate): Handle DPREL* and 61077298Sobrien GPREL* relocations. 61177298Sobrien (elf_hppa_relocate_insn): Similarly. 61277298Sobrien 61377298Sobrien * elf-hppa.h (elf_hppa_link_final_relocate): Fix typos. 61477298Sobrien Handle LTOFF_TP* relocs. 61577298Sobrien (elf_hppa_relocate_insn): Similarly. 61677298Sobrien 61777298Sobrien * elf-hppa.h (elf_hppa_final_link_relocate): Handle PCREL* relocs. 61877298Sobrien Consistently deal with addends. Handle DLTIND14F and DLTREL14F. 61977298Sobrien (elf_hppa_relocate_insn): Handle PCREL* relocs. 62077298Sobrien 62177298Sobrien * elf-hppa.h (elf_hppa_final_link_relocate): Handle LT_OFF_FPTR*, 62277298Sobrien DIR32, DIR64 and FPTR64 relocations. 62377298Sobrien (elf_hppa_relocate_insn): Similarly. 62477298Sobrien 62577298Sobrien * elf-hppa.h (elf_hppa_final_link): Set the value of __gp to the 62677298Sobrien address of the .PARISC.global section. 62777298Sobrien (elf_hppa_relocate_section): Lookup and pass the PA64 hash 62877298Sobrien table entry elf_hppa_final_link_relocate. Do not give a warning 62977298Sobrien for a reloc against an external symbol if it has a PA64 hash 63077298Sobrien table entry. 63177298Sobrien (elf_hppa_final_link_relocate): Significantly rework. Handle 63277298Sobrien DLTIND relocations. Compute the final value of the relocation 63377298Sobrien before passing the value of elf_hppa_relocate_insn. 63477298Sobrien (elf_hppa_relocate_insn): Revamp to handle just bit tiwiddling 63577298Sobrien relocation support. Handle DLTIND relocation requests just like 63677298Sobrien DLTREL relocation requests. Simplify branch handling. 63777298Sobrien 63877298Sobrien1999-09-08 Ulrich Drepper <drepper@cygnus.com> 63977298Sobrien 64077298Sobrien * elf-hppa.h (elf_hppa_relocate_section): Catch problems with 64177298Sobrien non-allocated section as done in i386 version. 64277298Sobrien (elf_hppa_final_link_relocate): Uncomment R_PARISC_14F in switch 64377298Sobrien statement since this is no know relocation. 64477298Sobrien 64577298SobrienTue Sep 7 17:25:12 1999 Jeffrey A Law (law@cygnus.com) 64677298Sobrien 64777298Sobrien * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14F 64877298Sobrien relocs. 64977298Sobrien (elf_hppa_relocate_insn): Similarly. 65077298Sobrien 65177298Sobrien * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14WR and 65277298Sobrien DLTREL14WD relocs. 65377298Sobrien (elf_hppa_relocate_insn): Similarly. 65477298Sobrien 65577298Sobrien * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14R and 65677298Sobrien DLTREL21L relocs. Pass the output bfd to elf_hppa_relocate_insn. 65777298Sobrien Pass the relocate type rather than the insn format to 65877298Sobrien elf_hppa_relocate_insn. 65977298Sobrien (elf_hppa_relocate_insn): Make switch dependent on relocation type 66077298Sobrien rather than the opcode. Handle DLTREL21L and DLTREL14R relocs. 66177298Sobrien 66277298Sobrien1999-09-07 Ian Lance Taylor <ian@zembu.com> 66377298Sobrien 66477298Sobrien * coffcode.h (bfd_coff_backend_data): Add _bfd_filnmlen field. 66577298Sobrien (bfd_coff_filnmlen): Define. 66677298Sobrien (bfd_coff_std_swap_table): Initialize new field. 66777298Sobrien * coffgen.c (coff_fix_symbol_name): Use bfd_coff_filnmlen rather 66877298Sobrien than FILNMLEN. 66977298Sobrien (coff_write_symbols): Likewise. 67077298Sobrien (coff_get_normalized_symtab): Likewise. 67177298Sobrien * coff-sh.c (bfd_coff_small_swap_table): Initialize new field. 67277298Sobrien * libcoff.h: Rebuild. 67377298Sobrien 67477298Sobrien1999-09-06 Donn Terry <donn@interix.com> 67577298Sobrien 67677298Sobrien * coffcode.h (sort_by_secaddr): New static function if 67777298Sobrien COFF_IMAGE_WITH_PE. 67877298Sobrien (coff_compute_section_file_positions): If COFF_IMAGE_WITH_PE, sort 67977298Sobrien sections by VMA when assigning target_index values. Always set 68077298Sobrien virt_size. 68177298Sobrien 68277298Sobrien * libcoff-in.h (struct pei_section_tdata): Add pe_flags field. 68377298Sobrien * coffcode.h (coff_set_alignment_hook) [COFF_WITH_PE version]: Set 68477298Sobrien pe_flags field. 68577298Sobrien * libcoff.h: Rebuild. 68677298Sobrien 68777298Sobrien * coffcode.h (coff_set_custom_section_alignment): Add const to 68877298Sobrien declaration to match definition. 68977298Sobrien (coff_write_object_contents): Don't set F_AR32W(R)? if 69077298Sobrien COFF_WITH_PE. 69177298Sobrien 69277298Sobrien * coff-i386.c (in_reloc_p): Add declaration. 69377298Sobrien (i386coff_vec): Simplify initialization of 69477298Sobrien application_section_flags. 69577298Sobrien 69677298Sobrien * coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE 69777298Sobrien version. Move COFF_WITH_PE specific code to new version. 69877298Sobrien (stype_to_sec_flags): Likewise. Add section parameter. 69977298Sobrien * coffgen.c (make_a_section_from_file): Set target_index before 70077298Sobrien calling styp_to_sec_flags. Pass section to styp_to_sec_flags. 70177298Sobrien * libcoff.h: Rebuild. 70277298Sobrien 70377298Sobrien * syms.c (stt): Add some PE/PEI section names. 70477298Sobrien (bfd_decode_symclass): Return 'w', not 'U', for a weak undefined 70577298Sobrien symbol. 70677298Sobrien (bfd_symbol_info): Check for 'w'. 70777298Sobrien 70877298Sobrien * section.c (struct bfd_comdat_info): Define. 70977298Sobrien (asection): Add comdat field. 71077298Sobrien (STD_SECTION): Initialize comdat field. 71177298Sobrien (bfd_make_section_anyway): Likewise. 71277298Sobrien * bfd-in2.h: Rebuild. 71377298Sobrien 71477298Sobrien1999-09-06 Andreas Schwab <schwab@suse.de> 71577298Sobrien 71677298Sobrien * elflink.h (elf_link_add_object_symbols): Copy NON_GOT_REF flag 71777298Sobrien to version symbols. 71877298Sobrien 71977298Sobrien1999-09-06 Nick Clifton <nickc@cygnus.com> 72077298Sobrien 72177298Sobrien * elflink.h (elf_gc_record_vtentry): Use bfd_zmalloc and 72277298Sobrien bfd_realloc instead of calloc and realloc. 72377298Sobrien 72477298Sobrien1999-09-04 Steve Chamberlain <sac@pobox.com> 72577298Sobrien 72677298Sobrien * cpu-pj.c: New file. 72777298Sobrien * elf32-pj.c: New file. 72877298Sobrien * config.bfd (pj*): New cpu. 72977298Sobrien (pj-*-*, pjl-*-*): New targets. 73077298Sobrien * configure.in (bfd_elf32_pj_vec): New target vector. 73177298Sobrien (bfd_elf32_pjl_vec): New target vector. 73277298Sobrien * archures.c (bfd_arch_pj): Define. 73377298Sobrien * elf.c (prep_headers): Handle bfd_arch_pj. 73477298Sobrien * reloc.c: Define BFD_RELOC_PJ_* relocations. 73577298Sobrien * targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add 73677298Sobrien to target vector list. 73777298Sobrien * Makefile.am: Rebuild dependencies. 73877298Sobrien (ALL_MACHINES): Add cpu-pj.lo. 73977298Sobrien (ALL_MACHINES_CFILES): Add cpu-pj.c. 74077298Sobrien (BFD32_BACKENDS): Add elf32-pj.lo. 74177298Sobrien (BFD32_BACKENDS_CFILES): Add elf32-pj.c. 74277298Sobrien * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild. 74377298Sobrien 74477298Sobrien1999-09-04 Ian Lance Taylor <ian@zembu.com> 74577298Sobrien 74677298Sobrien * elf-bfd.h (ELF_LINK_NON_GOT_REF): Define. 74777298Sobrien * elflink.h (elf_adjust_dynamic_symbol): Copy REF_REGULAR_NONWEAK 74877298Sobrien and NON_GOT_REF from weak defined symbol to real symbol. 74977298Sobrien * elf32-i386.c (elf_i386_check_relocs): Set NON_GOT_REF. 75077298Sobrien (elf_i386_adjust_dynamic_symbol): If NON_GOT_REF is not set, don't 75177298Sobrien create a COPY reloc. 75277298Sobrien * elf32-sparc.c (elf32_sparc_check_relocs): Set NON_GOT_REF. 75377298Sobrien (elf32_sparc_adjust_dynamic_symbol): If NON_GOT_REF is not set, 75477298Sobrien don't create a COPY reloc. 75577298Sobrien 75677298Sobrien1999-09-03 Ian Lance Taylor <ian@zembu.com> 75777298Sobrien 75877298Sobrien * elflink.h (elf_bfd_final_link): When counting relocations, don't 75977298Sobrien count those in sections we are not including in the link. 76077298Sobrien 76177298SobrienThu Sep 2 17:41:20 1999 Jeffrey A Law (law@cygnus.com) 76277298Sobrien 76377298Sobrien * elflink.h (elf_link_add_object_symbols): Work around bogus SH_LINK 76477298Sobrien field in hpux11 shared libraries. 76577298Sobrien 76677298Sobrien1999-09-02 Nick Clifton <nickc@cygnus.com> 76777298Sobrien 76877298Sobrien * elflink.h (elf_gc_record_vtentry): Fix memory leak. 76977298Sobrien 77077298SobrienWed Sep 1 13:34:29 1999 Jeffrey A Law (law@cygnus.com) 77177298Sobrien 77277298Sobrien * elf-hppa.h (elf_hppa_add_symbol_hook): New function. 77377298Sobrien (elf_hppa_final_link, elf_hppa_relocate_section): Likewise. 77477298Sobrien (elf_hppa_final_link_relocate, elf_hppa_relocate_insn): Likewise. 77577298Sobrien 77677298Sobrien1999-08-31 Alexandre Petit-Bianco <apbianco@cygnus.com> 77777298Sobrien 77877298Sobrien * elflink.h (record_link_assignment): When possible, keep the 77977298Sobrien original type of the symbol. 78077298Sobrien 78177298SobrienMon Aug 30 15:26:48 1999 Jeffrey A Law (law@cygnus.com) 78277298Sobrien 78377298Sobrien * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Allow both 78477298Sobrien R_PARISC_DIR32 and R_PARISC_DIR64 regardless of how the 78577298Sobrien tools were configured. 78677298Sobrien * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Declare. 78777298Sobrien 78877298Sobrien1999-08-26 Mark Mitchell <mark@codesourcery.com> 78977298Sobrien 79077298Sobrien * elf32-mips.c (_bfd_mips_elf_check_relocs): Don't allocate local 79177298Sobrien GOT entries for GOT16 relocations; they're not required. 79277298Sobrien 79377298Sobrien1999-08-24 Nick Clifton <nickc@cygnus.com> 79477298Sobrien 79577298Sobrien From a patch submitted by Roland McGrath <roland@baalperazim.frob.com> 79677298Sobrien 79777298Sobrien * config.bfd (arm-*-netbsd*): New target. 79877298Sobrien * configure.in (armnetbsd_vec): New target vector. 79977298Sobrien * configure: Regenerate 80077298Sobrien * targets.c (bfd_target_vector): Add &armnetbsd_vec. 80177298Sobrien 80277298Sobrien * Makefile.am (BFD32_BACKENDS): Add armnetbsd.lo. 80377298Sobrien (ALL_MACHINES_CFILES): Add armnetbsd.c. 80477298Sobrien (armnetbsd.lo): New rule with deps. 80577298Sobrien * Makefile.in: Regenerate. 80677298Sobrien 80777298Sobrien * armnetbsd.c: New file: Definitions specific to arm-netbsd 80877298Sobrien target. 80977298Sobrien 81077298SobrienTue Aug 24 00:25:58 1999 Jeffrey A Law (law@cygnus.com) 81177298Sobrien 81277298Sobrien * som.c (som_slurp_symbol_table): Fix typo in comment. 81377298Sobrien 81477298SobrienFri Aug 20 17:01:23 1999 Jeffrey A Law (law@cygnus.com) 81577298Sobrien 81677298Sobrien * elf-hppa.h (elf_hppa_fake_sections): Compute section indices 81777298Sobrien here instead of using elf_section_data... 81877298Sobrien 81977298Sobrien1999-08-19 Nick Clifton <nickc@cygnus.com> 82077298Sobrien 82177298Sobrien * coff-mcore.c (mcore_emit_base_file_entry): New function: Emit 82277298Sobrien relocations into the base file. 82377298Sobrien (coff_mcore_relocate_section): Call mcore_emit_base_file_entry if 82477298Sobrien we are building a base file. 82577298Sobrien 82677298Sobrien1999-08-19 Nick Clifton <nickc@cygnus.com> 82777298Sobrien 82877298Sobrien * elf32-arm.h (arm_add_to_rel): New function. Add a value to 82977298Sobrien a REL style reloc. 83077298Sobrien (elf32_arm_relocate_section): Use arm_add_to_rel to increment 83177298Sobrien REL relocs when performing a partial relocation. 83277298Sobrien 83377298Sobrien1999-08-18 Donn Terry <donn@interix.com> 83477298Sobrien 83577298Sobrien * cofflink.c: Move definitions of N_TMASK, et. al., out of 83677298Sobrien _bfd_coff_link_input_bfd into top level. 83777298Sobrien 83877298Sobrien * coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE. 83977298Sobrien (RTYPE2HOWTO): Return NULL if reloc type is out of range. 84077298Sobrien (coff_i386_rtype_to_howto): Likewise. 84177298Sobrien * coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG. 84277298Sobrien Completely ignore symbols which are all zero. 84377298Sobrien (dummy_reloc16_estimate): Add return 0. 84477298Sobrien * cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope 84577298Sobrien variable copy to name_copy to avoid shadowing outer scope 84677298Sobrien variable. 84777298Sobrien * libcoff-in.h (coff_data_type): Change raw_syment_count field 84877298Sobrien from unsigned int to unsigned long. Add timestamp field. 84977298Sobrien * libcoff.h: Rebuild. 85077298Sobrien 85177298Sobrien1999-08-17 H.J. Lu <hjl@gnu.org> 85277298Sobrien 85377298Sobrien * elf32-hppa.c (bfd_elf32_bfd_is_local_label_name): Fix typo in 85477298Sobrien macro definition. 85577298Sobrien 85677298Sobrien1999-08-17 Ian Lance Taylor <ian@zembu.com> 85777298Sobrien 85877298Sobrien * elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMIC 85977298Sobrien for special section symbols. 86077298Sobrien * elflink.h (elf_merge_symbol): If we have no old BFD, check 86177298Sobrien BSF_DYNAMIC on the section symbol to see whether the old BFD is 86277298Sobrien dynamic. 86377298Sobrien 86477298Sobrien1999-08-15 Mark Mitchell <mark@codesourcery.com> 86577298Sobrien 86677298Sobrien * elf32-mips.c (mips_elf_calculate_relocation): Fix unfortunate 86777298Sobrien coincidence of variable names between old and new code. 86877298Sobrien 86977298Sobrien1999-08-12 Nick Clifton <nickc@cygnus.com> 87077298Sobrien 87177298Sobrien * elf32-arm.h (elf32_arm_to_thumb_stub): Make 'offset' parameter 87277298Sobrien into a bfd_vma and 'addend' parameter a 'bfd_signed_vma'. 87377298Sobrien (elf32_thumb_to_arm_stub): Make 'offset' parameter into a bfd_vma 87477298Sobrien and 'addend' parameter a 'bfd_signed_vma'. 87577298Sobrien (elf32_arm_final_link_relocate): Do not involve stubs in 87677298Sobrien R_ARM_THM_PC22 relocs relative to section symbols, they are long 87777298Sobrien jumps, not function calls. 87877298Sobrien 87977298Sobrien1999-08-11 Robin Farine <advanc@dial.eunet.ch> 88077298Sobrien 88177298Sobrien * elf32-arm.h (elf32_arm_final_link_relocate): Check for overflow 88277298Sobrien in R_ARM_PC24 relocs. 88377298Sobrien 88477298SobrienTue Aug 10 12:48:09 1999 Jeffrey A Law (law@cygnus.com) 88577298Sobrien 88677298Sobrien * elf-hppa.h (elf_hppa_fake_sections): New function. 88777298Sobrien * elf32-hppa.c (elf_backend_fake_sections): Define. 88877298Sobrien 88977298Sobrien * elf-hppa.h (elf_hppa_final_write_processing): Update for 89077298Sobrien recent changes to the arch_info structure. 89177298Sobrien 89277298Sobrien * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 89377298Sobrien R_HPPA_SEGBASE and R_HPPA_SEGREL32. 89477298Sobrien * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info 89577298Sobrien list. 89677298Sobrien 89777298SobrienTue Aug 10 00:34:29 1999 Mark P. Mitchell <mark@codesourcery.com> 89877298Sobrien Ralf Baechle <ralf@uni-koblenz.de> 89977298Sobrien 90077298Sobrien * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Always 90177298Sobrien output DT_MIPS_GOTSYM. 90277298Sobrien (_bfd_mips_elf_finish_dynamic_sections): Use the same value as 90377298Sobrien DT_MIPS_SYMTABNO if there are no global GOT symbols. 90477298Sobrien 90577298SobrienTue Aug 10 00:21:08 1999 Mark P. Mitchell <mark@codesourcery.com> 90677298Sobrien 90777298Sobrien * elf32-mips.c (mips_elf_create_dynamic_relocation): Change 90877298Sobrien prototype. Handle local symbols. Add commentary. 90977298Sobrien (mips_elf_calculate_relocation): Adjust accordingly. 91077298Sobrien (_bfd_mips_elf_check_relocs): Handle local symbols in R_MIPS_32 91177298Sobrien relocations. 91277298Sobrien 91377298Sobrien * elflink.h (elf_bfd_final_link): Tweak last change. 91477298Sobrien 91577298Sobrien1999-08-09 Mark Mitchell <mark@codesourcery.com> 91677298Sobrien 91777298Sobrien * elflink.h (elf_link_size_reloc_section): Use the counts in the 91877298Sobrien elf-section data to allocate just the right amount of relocation 91977298Sobrien space. Don't allocate the hash space twice. 92077298Sobrien (elf_bfd_final_link): Calculate the amount of space to allocate in 92177298Sobrien each relocation section. 92277298Sobrien 92377298SobrienMon Aug 9 17:37:30 1999 Jeffrey A Law (law@cygnus.com) 92477298Sobrien 92577298Sobrien * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case 32): When in 92677298Sobrien 64bit mode, generate a section relative relocation for a 32bit 92777298Sobrien wide relocation. 92877298Sobrien (elf_hppa_is_local_label_name): New function. 92977298Sobrien * elf32-hppa.c (elf_hppa_is_local_label_name): Deleted. To be 93077298Sobrien shared between 32bit and 64bit port. 93177298Sobrien 93277298Sobrien1999-08-09 Mark Mitchell <mark@codesourcery.com> 93377298Sobrien 93477298Sobrien * elf32-mips.c (elf_mips_howto_table): Fix src_mask for 93577298Sobrien R_MIPS_GOT16 and R_MIPS_CALL16. 93677298Sobrien (mips_elf_got16_entry): Use mips_elf_high to calculate the value 93777298Sobrien to use when looking for a preexisting GOT entry. 93877298Sobrien 93977298Sobrien1999-08-09 Jakub Jelinek <jj@ultra.linux.cz> 94077298Sobrien 94177298Sobrien * elf64-sparc.c (sparc64_elf_relocate_section): Back out part of 94277298Sobrien the Sep. 4th, 1998 change. glibc 2.0.x dynamic linker had bug, 94377298Sobrien not binutils. 94477298Sobrien * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 94577298Sobrien 94677298Sobrien1999-08-09 Geoff Keating <geoffk@cygnus.com> 94777298Sobrien 94877298Sobrien * elflink.h (elf_link_output_extsym): Don't output a weak 94977298Sobrien reference to an undefined symbol just because it was defined weak 95077298Sobrien in a shared object. 95177298Sobrien 95277298Sobrien1999-08-09 Eli Zaretskii <eliz@is.elta.co.il> 95377298Sobrien 95477298Sobrien * coffgen.c (coff_find_nearest_line): When looking for file, use 95577298Sobrien last best match rather than first. If address is beyond last line 95677298Sobrien number record, don't return the last line as the correct value. 95777298Sobrien 95877298Sobrien1999-08-08 Ian Lance Taylor <ian@zembu.com> 95977298Sobrien 96077298Sobrien * section.c (SEC_SMALL_DATA): Rename from SEC_SHORT. 96177298Sobrien * bfd-in2.h: Rebuild. 96277298Sobrien 96377298Sobrien1999-08-08 Mark Elbrecht <snowball3@bigfoot.com> 96477298Sobrien 96577298Sobrien * libcoff-in.h (struct coff_section_alignment_entry): Define. 96677298Sobrien * coffcode.h (coff_set_custom_section_alignment): New static 96777298Sobrien function. 96877298Sobrien (coff_section_alignment_table): New static array. 96977298Sobrien (coff_new_section_hook): Use coff_set_customer_section_alignment. 97077298Sobrien * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define. 97177298Sobrien * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define. 97277298Sobrien * libcoff.h: Rebuild. 97377298Sobrien 97477298Sobrien1999-08-08 Ian Lance Taylor <ian@zembu.com> 97577298Sobrien 97677298Sobrien * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to 97777298Sobrien MKDEP. 97877298Sobrien * Makefile.in: Rebuild. 97977298Sobrien 98077298Sobrien1999-08-08 Mumit Khan <khan@xraylith.wisc.edu> 98177298Sobrien 98277298Sobrien * section.c (SEC_SHARED): Define. 98377298Sobrien * coffcode.h (sec_to_styp_flags): Handle SEC_SHARED. 98477298Sobrien (styp_to_sec_flags): Likewise. 98577298Sobrien * peicode.h (coff_swap_scnhdr_out): Likewise. 98677298Sobrien * bfd-in2.h: Rebuild. 98777298Sobrien 98877298Sobrien1999-08-08 Ian Lance Taylor <ian@zembu.com> 98977298Sobrien 99077298Sobrien * coffcode.h (coff_classify_symbol): Comment out part of 99177298Sobrien 1999-08-05 change which breaks cygwin DLLs. 99277298Sobrien 99377298Sobrien * acinclude.m4 (BFD_BINARY_FOPEN): Change -windows to -windows*. 99477298Sobrien * aclocal.m4, configure: Rebuild. 99577298Sobrien 99677298Sobrien1999-08-06 Ian Lance Taylor <ian@zembu.com> 99777298Sobrien 99877298Sobrien * section.c (global_syms): Only initialize union field if 99977298Sobrien __STDC__. 100077298Sobrien 100177298Sobrien1999-08-04 Mark Mitchell <mark@codesourcery.com> 100277298Sobrien 100377298Sobrien * elf32-mips.c (mips_elf_got16_entry): Don't multiply GOT index by 100477298Sobrien the size of a GOT entry here. 100577298Sobrien (mips_elf_calculate_relocation): Don't create a local GOT entry 100677298Sobrien for the symbol in a GOT16 relocation; just for it's high-order bit 100777298Sobrien (_bfd_mips_elf_relocate_section): Fix thinko. 100877298Sobrien 100977298Sobrien1999-08-05 Ian Lance Taylor <ian@zembu.com> 101077298Sobrien 101177298Sobrien Based on patches from Donn Terry <donn@interix.com>: 101277298Sobrien * coffcode.h (enum coff_symbol_classification): Define. 101377298Sobrien (bfd_coff_backend_data): Rename _bfd_coff_sym_is_global to 101477298Sobrien _bfd_coff_classify_symbol. Change return type. 101577298Sobrien (bfd_coff_classify_symbol): Rename from bfd_coff_sym_is_global. 101677298Sobrien (coff_slurp_symbol_table): Use coff_classify_symbol. 101777298Sobrien (coff_classify_symbol): New static function. 101877298Sobrien (coff_sym_is_global): Never define. 101977298Sobrien (bfd_coff_std_swap_table): Initialize with coff_classify_symbol. 102077298Sobrien * cofflink.c (coff_link_check_ar_symbols): Use 102177298Sobrien bfd_coff_classify_symbol rather than bfd_coff_sym_is_global. 102277298Sobrien (coff_link_add_symbols): Likewise. 102377298Sobrien (_bfd_coff_link_input_bfd): Likewise. 102477298Sobrien * coff-sh.c (bfd_coff_small_swap_table): Initialize with 102577298Sobrien coff_classify_symbol. 102677298Sobrien * libcoff.h: Rebuild. 102777298Sobrien 102877298SobrienWed Aug 4 18:08:07 1999 Jeffrey A Law (law@cygnus.com) 102977298Sobrien 103077298Sobrien * libhppa.h (R_HPPA_LTPSEL, R_HPPA_RTPSEL): New field selectors 103177298Sobrien (e_ltpsel, e_rtpsel): Similarly. 103277298Sobrien 103377298Sobrien * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 21bit e_ltpsel 103477298Sobrien and 14bit ertpsel. Handle 64bit psel. 103577298Sobrien 103677298Sobrien1999-08-04 Mark Mitchell <mark@codesourcery.com> 103777298Sobrien 103877298Sobrien * elf32-mips.c (_bfd_mips_elf_relocate_section): Tweak HI16/LO16 103977298Sobrien handling for REL relocations. And only left-shift R_MIPS26 104077298Sobrien relocation addends where necessary. 104177298Sobrien 104277298Sobrien1999-08-03 Mark Mitchell <mark@codesourcery.com> 104377298Sobrien 104477298Sobrien * elf32-mips.c (mips_elf_next_lo16_addend): Rename to ... 104577298Sobrien (mips_elf_next_lo16_relocation): Don't compute the addend here. 104677298Sobrien Just return the relocation found. 104777298Sobrien (mips_elf_relocate_section): Pull the LO16 addend out of the 104877298Sobrien section itself when using REL relocations. 104977298Sobrien 105077298Sobrien * elf32-mips.c (mips_elf_calculate_relocation): Restore 105177298Sobrien _DYNAMIC_LINK handling and handling of undefined symbols in shared 105277298Sobrien libraries. 105377298Sobrien 105477298Sobrien1999-08-03 Ian Lance Taylor <ian@zembu.com> 105577298Sobrien 105677298Sobrien * elf32-ppc.c (ppc_elf_relocate_section): Don't use the relocation 105777298Sobrien value of a symbol in a SEC_DEBUGGING section. Warn when doing a 105877298Sobrien relocation against a symbol in an input section with no output 105977298Sobrien section. From Daniel Jacobowitz <drow@false.org>. 106077298Sobrien 106177298Sobrien * coff-stgo32.c (go32_stubbed_coff_object_p): Remove; not used. 106277298Sobrien 106377298Sobrien * acinclude.m4 (BFD_CC_FOR_BUILD): Change to use conftest, and to 106477298Sobrien look for generated file correctly. 106577298Sobrien * aclocal.m4, configure: Rebuild. 106677298Sobrien 106777298Sobrien1999-08-02 Mark Mitchell <mark@codesourcery.com> 106877298Sobrien 106977298Sobrien * elf32-mips.c (_bfd_mips_elf_relocate_section): Handle R_MIPS_26 107077298Sobrien and R_MIPS16_26 relocations correctly when relocating. 107177298Sobrien (_bfd_mips_elf_check_relocs): Don't assume that R_MIPS_CALL_HI16 107277298Sobrien and R_MIPS_CALL_LO16 are for global symbols. 107377298Sobrien 107477298Sobrien1999-08-02 Jakub Jelinek <jj@ultra.linux.cz> 107577298Sobrien 107677298Sobrien * elflink.h (elf_bfd_final_link): Copy the whole isym, not just 107777298Sobrien some fields. 107877298Sobrien * elf64-sparc.c (sparc64_elf_output_arch_syms): Declare used 107977298Sobrien variables and initialize them. 108077298Sobrien 108177298Sobrien1999-08-01 Mark Mitchell <mark@codesourcery.com> 108277298Sobrien 108377298Sobrien * elf32-mips.c (_bfd_mips_elf_final_link): Handle the case where 108477298Sobrien there are no global symbols requiring GOT entries. 108577298Sobrien (_bfd_mips_elf_size_dynamic_sections): Likewise. 108677298Sobrien (_bfd_mips_elf_finish_dynamic_symbol): Likewise. 108777298Sobrien (_bfd_mips_elf_finish_dynamic_sections): Likewise. 108877298Sobrien 108977298Sobrien * elf32-mips.c (mips_elf_calculate_relocation): Undefined weak 109077298Sobrien symbols are considered to have the value zero. 109177298Sobrien (_bfd_mips_elf_relocate_section): Don't try to perform a 109277298Sobrien relocation for an undefined symbol. 109377298Sobrien (_bfd_mips_elf_check_relocs): Allocate locate GOT space for local 109477298Sobrien GOT16 relocations. 109577298Sobrien 109677298Sobrien1999-07-30 Jakub Jelinek <jj@ultra.linux.cz> 109777298Sobrien 109877298Sobrien * elf64-sparc.c (sparc64_elf_build_plt): Cosmetic change - ABI 109977298Sobrien wants ba,a,pt %xcc instead of %icc. 110077298Sobrien Emit correct .PLT0-(.PLTN+4) initial value into the pointer slots 110177298Sobrien of large PLT entries. 110277298Sobrien (sparc64_elf_plt_ptr_offset): Fix calculation. 110377298Sobrien (sparc64_elf_finish_dynamic_symbol): Negative value of R_SPARC_JMP_SLOT 110477298Sobrien addend should be relative to load address, not .plt section start. 110577298Sobrien (sparc64_elf_size_info): Sparc64 uses 32bit .hash entries. 110677298Sobrien 110777298Sobrien1999-07-30 Jakub Jelinek <jj@ultra.linux.cz> 110877298Sobrien 110977298Sobrien * elf-bfd.h (struct elf_backend_data): Add 111077298Sobrien print_symbol_all and output_arch_syms backend methods. 111177298Sobrien * elfxx-target.h: Likewise. 111277298Sobrien * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create, 111377298Sobrien sparc64_elf_add_symbol_hook, sparc64_elf_output_arch_syms, 111477298Sobrien sparc64_elf_get_symbol_type, sparc64_elf_symbol_processing): New 111577298Sobrien functions. 111677298Sobrien (sparc64_elf_size_dynamic_sections): Leave space for STT_REGISTER 111777298Sobrien symbols in .dynsym, add their names into .dynstr. Put those symbols 111877298Sobrien into dynlocal. 111977298Sobrien (sparc64_elf_finish_dynamic_sections): Fix up DT_SPARC_REGISTER 112077298Sobrien pointers to STT_REGISTER symbols in dynsym section. 112177298Sobrien (sparc64_elf_print_symbol_all): New function. 112277298Sobrien * elf.c (bfd_elf_print_symbol): Allow special backend symbol 112377298Sobrien printing using the print_symbol_all hook. 112477298Sobrien 112577298Sobrien1999-07-30 Catherine Moore <clm@cygnus.com> 112677298Sobrien 112777298Sobrien * elf32-arm.h (elf32_arm_check_relocs): Use r_offset for 112877298Sobrien R_ARM_GNU_VTENTRY. 112977298Sobrien 113077298Sobrien1999-07-29 Richard Henderson <rth@cygnus.com> 113177298Sobrien 113277298Sobrien * elf32-mips.c (_bfd_mips_elf_final_link): Only re-sort dynsyms if 113377298Sobrien dynamic_sections_created. 113477298Sobrien 113577298Sobrien1999-07-29 Richard Henderson <rth@cygnus.com> 113677298Sobrien 113777298Sobrien * elf32-mips.c (mips_info_to_howto_rel): Split out switch to ... 113877298Sobrien (mips_rtype_to_howto): ... new function. 113977298Sobrien (_bfd_mips_elf_relocate_section): Use it. 114077298Sobrien 114177298Sobrien1999-07-28 Mark Mitchell <mark@codesourcery.com> 114277298Sobrien 114377298Sobrien * elf32-mips.c (_bfd_mips_elf_relocate_section): Fix typo. 114477298Sobrien 114577298Sobrien1999-07-27 Nick Clifton <nickc@cygnus.com> 114677298Sobrien 114777298Sobrien Patch generated by Bernd Schmidt. <bernds@cygnus.co.uk> 114877298Sobrien 114977298Sobrien * coff-arm.c (coff_arm_is_local_label_name): Change to strip 115077298Sobrien out only symbols that start with LOCAL_LABEL_PREFIX followed by 'L'. 115177298Sobrien 115277298Sobrien1999-07-23 Donn Terry <donn@interix.com> 115377298Sobrien 115477298Sobrien * libcoff-in.h (coff_link_hash_entry): Add coff_link_hash_flags 115577298Sobrien field, and define COFF_LINK_HASH_PE_SECTION_SYMBOL. 115677298Sobrien * cofflink.c (coff_link_add_symbols): If PE, handle section 115777298Sobrien symbols specially. 115877298Sobrien * libcoff.h: Rebuild. 115977298Sobrien 116077298Sobrien * config.bfd (i[3456]86-*-interix*): New target. 116177298Sobrien 116277298Sobrien1999-07-21 Mark Elbrecht <snowball3@bigfoot.com> 116377298Sobrien 116477298Sobrien * coffcode.h (styp_to_sec_flags): If COFF_LONG_SECTION_NAMES and 116577298Sobrien COFF_SUPPORT_GNU_LINKONCE, mark sections whose names begin with 116677298Sobrien .gnu.linkonce with SEC_LINKONCE and SEC_LINK_DUPLICATES_DISCARD. 116777298Sobrien * coff-go32.c: (COFF_LONG_SECTION_NAMES): Define. 116877298Sobrien (COFF_SUPPORT_GNU_LINKONCE): Define. 116977298Sobrien * coff-stgo32.c: (COFF_LONG_SECTION_NAMES): Define. 117077298Sobrien (COFF_SUPPORT_GNU_LINKONCE): Define. 117177298Sobrien 117277298Sobrien1999-07-21 Ian Lance Taylor <ian@zembu.com> 117377298Sobrien 117477298Sobrien From Mark Elbrecht: 117577298Sobrien * makefile.dos: Remove; obsolete. 117677298Sobrien * configure.bat: Remove; obsolete. 117777298Sobrien 117877298Sobrien1999-07-21 H.J. Lu <hjl@gnu.org> 117977298Sobrien 118077298Sobrien * config.bfd (i[3456]86-*-vxworks*): Add targ_underscore=yes. 118177298Sobrien 118277298Sobrien1999-07-21 Philippe De Muyter <phdm@macqel.be> 118377298Sobrien 118477298Sobrien * cofflink.c (_bfd_coff_generic_relocate_section): Issue an error 118577298Sobrien message and fail if a symbol index is out of range. 118677298Sobrien 118777298Sobrien1999-07-21 Ian Lance Taylor <ian@zembu.com> 118877298Sobrien 118977298Sobrien * elf32-mips.c (mips_elf_calculate_relocation): Get the GP value 119077298Sobrien when looking at a R_MIPS_GOT16 relocation. 119177298Sobrien 119277298Sobrien1999-07-20 Nick Clifton <nickc@cygnus.com> 119377298Sobrien 119477298Sobrien * coff-m88k.c: Use CREATE_BIG_COFF_TARGET_VEC. 119577298Sobrien 119677298SobrienMon Jul 19 14:03:44 1999 Mark P. Mitchell <mark@codesourcery.com> 119777298Sobrien 119877298Sobrien * elf32-mips.c (_bfd_mips_elf_final_link): Restore setting of GP 119977298Sobrien removed in previous change. 120077298Sobrien (_bfd_mips_elf_relocate_section): Adjust GP relative relocations 120177298Sobrien in relocateable output. 120277298Sobrien 120377298Sobrien1999-07-19 Ian Lance Taylor <ian@zembu.com> 120477298Sobrien 120577298Sobrien * coff-m88k.c (m88kbcs_vec): Initialize new field of bfd_target 120677298Sobrien structure. 120777298Sobrien 120877298Sobrien * elflink.h (elf_merge_symbol): Do merge symbols from the same BFD 120977298Sobrien if they appear to be specially created by the linker. 121077298Sobrien 121177298Sobrien1999-07-19 Nick Clifton <nickc@cygnus.com> 121277298Sobrien 121377298Sobrien * targets.c (alternative_target): New field in bfd_target 121477298Sobrien structure. 121577298Sobrien (bfd_search_for_target): New function: Find a target that 121677298Sobrien satisifies a search function. 121777298Sobrien * bfd-in2.h: Regenerate. 121877298Sobrien 121977298Sobrien * elfxx-target.h: Initialise the alternative_target field of 122077298Sobrien the bfd_target structures to point to the other target (if 122177298Sobrien defined). 122277298Sobrien * nlm-target.h: Initialise the alternative_target field of 122377298Sobrien the bfd_target structures to point to the other target (if 122477298Sobrien defined). 122577298Sobrien 122677298Sobrien * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): New macro. 122777298Sobrien (CREATE_LITTLE_COFF_TARGET_VEC): New macro. 122877298Sobrien 122977298Sobrien * aix386-core.c: Initialise new field of bfd_target structure. 123077298Sobrien * aout-adobe.c: Initialise new field of bfd_target structure. 123177298Sobrien * aout-arm.c: Initialise new field of bfd_target structure. 123277298Sobrien * aout-target.h: Initialise new field of bfd_target structure. 123377298Sobrien * aout-tic30.c: Initialise new field of bfd_target structure. 123477298Sobrien * binary.c: Initialise new field of bfd_target structure. 123577298Sobrien * bout.c: Initialise new field of bfd_target structure. 123677298Sobrien * cisco-core.c: Initialise new field of bfd_target structure. 123777298Sobrien * coff-a29k.c: Use CREATE_BIG_COFF_TARGET_VEC. 123877298Sobrien * coff-alpha.c: Initialise new field of bfd_target structure. 123977298Sobrien * coff-apollo.c: Use CREATE_BIG_COFF_TARGET_VEC. 124077298Sobrien * coff-arm.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC. 124177298Sobrien * coff-h8300.c: Use CREATE_BIG_COFF_TARGET_VEC. 124277298Sobrien * coff-h8500.c: Use CREATE_BIG_COFF_TARGET_VEC. 124377298Sobrien * coff-i386.c: Initialise new field of bfd_target structure. 124477298Sobrien * coff-i860.c: Initialise new field of bfd_target structure. 124577298Sobrien * coff-i960.c: Use CREATE_LITTLE_COFF_TARGET_VEC. 124677298Sobrien * coff-m68k.c: Use CREATE_BIG_COFF_TARGET_VEC. 124777298Sobrien * coff-mcore.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC. 124877298Sobrien * coff-mips.c: Initialise new field of bfd_target structure. 124977298Sobrien * coff-ppc.c: Initialise new field of bfd_target structure. 125077298Sobrien * coff-rs6000.c: Initialise new field of bfd_target structure. 125177298Sobrien * coff-sh.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC. 125277298Sobrien * coff-sparc.c: Use CREATE_BIG_COFF_TARGET_VEC. 125377298Sobrien * coff-tic30.c: Initialise new field of bfd_target structure. 125477298Sobrien * coff-tic80.c: Use CREATE_LITTLE_COFF_TARGET_VEC. 125577298Sobrien * coff-w65.c: Use CREATE_LITTLE_COFF_TARGET_VEC. 125677298Sobrien * coff-we32k.c: Use CREATE_BIG_COFF_TARGET_VEC. 125777298Sobrien * coff-z8k.c: Use CREATE_BIG_COFF_TARGET_VEC. 125877298Sobrien * hppabsd-core.c: Initialise new field of bfd_target structure. 125977298Sobrien * hpux-core.c: Initialise new field of bfd_target structure. 126077298Sobrien * i386msdos.c: Initialise new field of bfd_target structure. 126177298Sobrien * i386os9k.c: Initialise new field of bfd_target structure. 126277298Sobrien * ieee.c: Initialise new field of bfd_target structure. 126377298Sobrien * ihex.c: Initialise new field of bfd_target structure. 126477298Sobrien * irix-core.c: Initialise new field of bfd_target structure. 126577298Sobrien * mipsbsd.c: Initialise new field of bfd_target structure. 126677298Sobrien * netbsd-core.c: Initialise new field of bfd_target structure. 126777298Sobrien * oasys.c: Initialise new field of bfd_target structure. 126877298Sobrien * osf-core.c: Initialise new field of bfd_target structure. 126977298Sobrien * ppcboot.c: Initialise new field of bfd_target structure. 127077298Sobrien * ptrace-core.c: Initialise new field of bfd_target structure. 127177298Sobrien * sco5-core.c: Initialise new field of bfd_target structure. 127277298Sobrien * som.c: Initialise new field of bfd_target structure. 127377298Sobrien * srec.c: Initialise new field of bfd_target structure. 127477298Sobrien * tekhex.c: Initialise new field of bfd_target structure. 127577298Sobrien * trad-core.c: Initialise new field of bfd_target structure. 127677298Sobrien * versados.c: Initialise new field of bfd_target structure. 127777298Sobrien * vms.c: Initialise new field of bfd_target structure. 127877298Sobrien 127977298Sobrien1999-07-19 Andreas Schwab <schwab@suse.de> 128077298Sobrien 128177298Sobrien * elflink.h (elf_bfd_final_link): Remove unused variables rel_hash 128277298Sobrien and rel_hdr. 128377298Sobrien 128477298SobrienSat Jul 17 02:28:28 1999 Mark P. Mitchell <mark@codesourcery.com> 128577298Sobrien 128677298Sobrien * elflink.h (elf_link_adjust_relocs): New function. 128777298Sobrien (elf_bfd_final_link): Use it. 128877298Sobrien (elf_link_input_bfd): Deal with the fact that there can be 128977298Sobrien two relocation sections for a single section. 129077298Sobrien (elf_reloc_link_order): Likewise. 129177298Sobrien 129277298Sobrien * elf32-mips.c (_bfd_mips_elf_final_link): Don't set GP for 129377298Sobrien a relocateable object. 129477298Sobrien (_bfd_mips_elf_relocate_section): Handle relocateable links. 129577298Sobrien 129677298Sobrien1999-07-16 Jakub Jelinek <jj@ultra.linux.cz> 129777298Sobrien 129877298Sobrien * elf64-sparc.c (sparc64_elf_info_to_howto): Use ELF64_R_TYPE_ID. 129977298Sobrien (sparc64_elf_get_reloc_upper_bound, 130077298Sobrien sparc64_elf_get_dynamic_reloc_upper_bound, 130177298Sobrien sparc64_elf_slurp_one_reloc_table, sparc64_elf_slurp_reloc_table, 130277298Sobrien sparc64_elf_canonicalize_dynamic_reloc, sparc64_elf_write_relocs): 130377298Sobrien New functions. 130477298Sobrien (sparc64_elf_check_relocs, sparc64_elf_relocate_section): Use 130577298Sobrien ELF64_R_TYPE_ID/DATA where appropriate. 130677298Sobrien 130777298Sobrien1999-07-16 Jakub Jelinek <jj@ultra.linux.cz> 130877298Sobrien 130977298Sobrien * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Remove 131077298Sobrien DT_SPARC_PLTFMT. 131177298Sobrien 131277298Sobrien1999-07-16 Ian Lance Taylor <ian@zembu.com> 131377298Sobrien 131477298Sobrien * elf32-mips.c (mips_elf_local_relocation_p): New static 131577298Sobrien function. 131677298Sobrien (mips_elf_next_lo16_addend): Call bfd_set_error on failure. 131777298Sobrien (mips_elf_calculate_relocation): Use mips_elf_local_relocation_p. 131877298Sobrien Always set *require_jalxp. 131977298Sobrien (mips_elf_stub_section_p): Mark abfd parameter as unused. 132077298Sobrien (_bfd_mips_elf_relocate_section): Only look for LO16 following 132177298Sobrien GOT16 if the GOT16 is against a local symbol. Don't return false 132277298Sobrien for an undefined symbol. If there is an overflow, assert that we 132377298Sobrien have a name. 132477298Sobrien 132577298Sobrien1999-07-16 Andreas Schwab <schwab@suse.de> 132677298Sobrien 132777298Sobrien * elflink.h (elf_link_record_local_dynamic_symbol): Remove unused 132877298Sobrien variables `link' and `elfsec'. 132977298Sobrien (elf_bfd_final_link): Remove unused variable `os'. 133077298Sobrien 133177298SobrienThu Jul 15 17:55:31 1999 Mark P. Mitchell <mark@codesourcery.com> 133277298Sobrien 133377298Sobrien * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Don't require 133477298Sobrien a PT_PHDR program headers. 133577298Sobrien (_bfd_mips_elf_final_link): Don't assume there are going to be 133677298Sobrien section symbols when we're not building a shared object. 133777298Sobrien (_bfd_mips_elf_check_relocs): Make sure we have a GOT when 133877298Sobrien we need one. 133977298Sobrien 134077298Sobrien1999-07-15 J.T. Conklin <jtc@redback.com> 134177298Sobrien 134277298Sobrien * config.bfd (i[3456]86-*-vxworks*): New target. 134377298Sobrien 134477298Sobrien1999-07-15 Mark Mitchell <mark@codesourcery.com> 134577298Sobrien 134677298Sobrien * elf32-mips.c (mips_elf_stub_section_p): New function. 134777298Sobrien (mips_elf_calculate_relocation): Handle MIPS16 stub functions. 134877298Sobrien (mips_elf_relocate_section): Adjust calling sequence for 134977298Sobrien mips_elf_calculate_relocation and mips_elf_perform_relocation. 135077298Sobrien (mips_elf_perform_relocation): Turn `jal' into `jalx' where 135177298Sobrien required. 135277298Sobrien 135377298Sobrien1999-07-15 Ian Lance Taylor <ian@zembu.com> 135477298Sobrien 135577298Sobrien * configure.in: Bump version number to 2.9.5. 135677298Sobrien * configure: Rebuild. 135777298Sobrien 135877298SobrienThu Jul 15 02:56:15 1999 Jeffrey A Law (law@cygnus.com) 135977298Sobrien 136077298Sobrien * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case R_HPPA): Handle 136177298Sobrien 64bit format. 136277298Sobrien (_bfd_elf_hppa_gen_reloc_type, case R_GOTOFF): Use base reloc type 136377298Sobrien to derive final type instead of hardwiring a selection. 136477298Sobrien 136577298Sobrien1999-07-14 Mark Mitchell <mark@codesourcery.com> 136677298Sobrien 136777298Sobrien * elf32-mips.c (mips_elf_obtain_contents): Swap 16-bit halves of 136877298Sobrien things relocated by R_MIPS16_GPREL. 136977298Sobrien (mips_elf_perform_relocation): Likewise. 137077298Sobrien 137177298SobrienWed Jul 14 15:23:19 1999 Jim Wilson <wilson@cygnus.com> 137277298Sobrien 137377298Sobrien * elfxx-target.h (elfNN_bed): Add elf_backend_want_dynbss. 137477298Sobrien 137577298Sobrien1999-07-14 Richard Henderson <rth@cygnus.com> 137677298Sobrien 137777298Sobrien * elf32-mips.c (struct mips_got_info): Add global_gotno. 137877298Sobrien (_bfd_mips_elf_size_dynamic_sections): Set it. 137977298Sobrien (_bfd_mips_elf_final_link): Re-sort; verify the got did not grow. 138077298Sobrien (mips_elf_sort_hash_table): Set max_non_got_dynindex based off 138177298Sobrien new argument max_local. 138277298Sobrien 138377298Sobrien1999-07-14 Mark Mitchell <mark@codesourcery.com> 138477298Sobrien 138577298Sobrien * elf32-mips.c (mips_elf_obtain_contents): Swap the 16-bit 138677298Sobrien subwords when handling an R_MIPS16_26 relocation. 138777298Sobrien (mips_elf_perform_relocation): Don't be paranoid abour right-shift 138877298Sobrien semantics. 138977298Sobrien 139077298Sobrien * elf32-mips.c (elf_mips16_gprel_howto): Adjust src_mask and 139177298Sobrien dst_mask to match reality. 139277298Sobrien (_bfd_mips_elf_calculate_relocation): Handle R_MIPS16_GPREL. 139377298Sobrien (mips_elf_obtain_contents): Use bfd_get. 139477298Sobrien (mips_elf_perform_relocation): Handle R_MIPS16_GPREL. 139577298Sobrien (mips_elf_relocate_section): Likewise. 139677298Sobrien 139777298Sobrien1999-07-13 Mark Mitchell <mark@codesourcery.com> 139877298Sobrien 139977298Sobrien * elf32-mips.c (mips_elf_calculate_relocation): Handle R_MIPS16_26. 140077298Sobrien (mips_elf_relocate_section): Adjust calling sequence for 140177298Sobrien mips_elf_perform_relocation. 140277298Sobrien (mips_elf_perform_relocation): Take additional argument. Handle 140377298Sobrien R_MIPS16_26. Use bfd_put for convenience. 140477298Sobrien 140577298Sobrien1999-07-13 Richard Henderson <rth@cygnus.com> 140677298Sobrien 140777298Sobrien * elf.c (assign_file_positions_for_segments): Thinko last change. 140877298Sobrien Always overwrite p_flags. 140977298Sobrien 141077298Sobrien1999-07-13 Richard Henderson <rth@cygnus.com> 141177298Sobrien 141277298Sobrien * elf-bfd.h (struct elf_backend_data): Add want_dynbss. 141377298Sobrien * elflink.c (_bfd_elf_create_dynamic_sections): Only create 141477298Sobrien .dynbss and .rel[a].bss if want_dynbss. 141577298Sobrien * elfxx-target.h (elf_backend_want_dynbss): Provide default. 141677298Sobrien 141777298Sobrien1999-07-13 Richard Henderson <rth@cygnus.com> 141877298Sobrien 141977298Sobrien * elf.c (assign_file_positions_for_segments): Don't overwrite p_flags. 142077298Sobrien 142177298Sobrien1999-07-13 Richard Henderson <rth@cygnus.com> 142277298Sobrien 142377298Sobrien * elf-bfd.h (struct elf_link_local_dynamic_entry): New. 142477298Sobrien (struct elf_link_hash_table): Add dynlocal. 142577298Sobrien (_bfd_elf_link_lookup_local_dynindx): Prototype. 142677298Sobrien (_bfd_elf_link_adjust_dynindx): Delete. 142777298Sobrien (_bfd_elf_link_renumber_dynsyms): Prototype. 142877298Sobrien (_bfd_elf,link_record_local_dynamic_symbol): Prototype. 142977298Sobrien * elfcode.h (elf_link_record_local_dynamic_symbol): New alias. 143077298Sobrien * elflink.c (_bfd_elf_link_adjust_dynindx): Delete. 143177298Sobrien (_bfd_elf_link_lookup_local_dynindx): New function. 143277298Sobrien (elf_link_renumber_hash_table_dynsyms): New function. 143377298Sobrien (_bfd_elf_link_renumber_dynsyms): New function. 143477298Sobrien * elflink.h (elf_link_record_local_dynamic_symbol): New function. 143577298Sobrien (struct elf_assign_sym_version_info): Delete removed_dynamic. 143677298Sobrien (bfd_elf,size_dynamic_sections): Use _bfd_strip_section_from_output 143777298Sobrien instead of elf_link_remove_section_and_adjust_dynindices. 143877298Sobrien Remove removed_dynamic code. Use _bfd_elf_link_renumber_dynsyms. 143977298Sobrien (elf_link_assign_sym_version): Remove removed_dynamic code. 144077298Sobrien (elf_link_renumber_dynsyms): Delete. 144177298Sobrien (elf_bfd_final_link): Install section and local symbols into .dynsym. 144277298Sobrien 144377298Sobrien * elf32-m68k.c (elf_m68k_adjust_dynindx): Delete. 144477298Sobrien (elf_m68k_size_dynamic_sections): Don't set section dynindicies. 144577298Sobrien (elf_m68k_finish_dynamic_sections): Don't write section dynsyms. 144677298Sobrien * elf32-mips.c: Similarly. 144777298Sobrien * elf32-ppc.c: Similarly. 144877298Sobrien * elf32-sparc.c: Similarly. 144977298Sobrien * elf64-alpha.c: Similarly. 145077298Sobrien * elf64-sparc.c: Similarly. 145177298Sobrien 145277298Sobrien1999-07-13 Mark Mitchell <mark@codesourcery.com> 145377298Sobrien 145477298Sobrien * elf32-mips.c (mips_elf_calculate_relocation): Do not complain 145577298Sobrien when _gp_disp is undefined. Do not check R_MIPS_LO16 for overflow 145677298Sobrien when the relocation is against _gp_disp. 145777298Sobrien 145877298Sobrien1999-07-12 Mark Mitchell <mark@codesourcery.com> 145977298Sobrien 146077298Sobrien * dwarf2.c (read_attribute): Support DW_FORM_ref8. 146177298Sobrien * elf32-mips.c (mips_elf_link_hash_entry): Change mips_32_relocs 146277298Sobrien to possibly_dynamic_relocs. Adjust usage throughout code. 146377298Sobrien (elf_mips_howto_table): Handle R_MIPS_64 correctly. 146477298Sobrien (elf_mips_ctor64_howto): Likewise. 146577298Sobrien (mips_elf_calculate_relocation): Handle R_MIPS_64 like R_MIPS_32. 146677298Sobrien Adjust indentation. 146777298Sobrien (mips_elf_relocate_section): Handle R_MIPS_64 in 32-bit mode. 146877298Sobrien (_bfd_mips_elf_check_relocs): Handle R_MIPS_64 like R_MIPS_32. 146977298Sobrien Use MIPS_ELF_GOT_SIZE to calculate the size of GOT entries. 147077298Sobrien * elf64-mips.c (elf_backend_may_use_rel_p): Define. 147177298Sobrien 147277298Sobrien1999-07-12 Ian Lance Taylor <ian@zembu.com> 147377298Sobrien 147477298Sobrien * Makefile.am: Rebuild dependencies. 147577298Sobrien * Makefile.in: Rebuild. 147677298Sobrien 147777298Sobrien * bfd-in.h: Remove tests of COFF_IMAGE_WITH_PE. 147877298Sobrien * bfd-in2.h: Rebuild. 147977298Sobrien 148077298Sobrien * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED 148177298Sobrien as appropriate. Use EMPTY_HOWTO as appropriate. Fill in 148277298Sobrien structure initializations. Add casts. 148377298Sobrien * reloc.c (EMPTY_HOWTO): Define. 148477298Sobrien * bfd-in2.h: Rebuild. 148577298Sobrien * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless 148677298Sobrien comparisons against 0. 148777298Sobrien * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change 148877298Sobrien previous_ibfd_e_flags to unsigned long. 148977298Sobrien * vms.h (struct vms_private_data_struct): Change section_count to 149077298Sobrien unsigned. 149177298Sobrien * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned. 149277298Sobrien (_bfd_vms_write_gsd): Change symnum to unsigned. 149377298Sobrien * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned. 149477298Sobrien * vms-tir.c (etir_sta): Change psect to unsigned. 149577298Sobrien (alloc_section): Change idx to unsigned. 149677298Sobrien (tir_sta, tir_ctl): Change psect to unsigned. 149777298Sobrien (_bfd_vms_write_tir): Change len and before to bfd_size_type. 149877298Sobrien * vms.c (priv_section_count): Change to unsigned. 149977298Sobrien 150077298Sobrien1999-07-12 Andreas Schwab <schwab@suse.de> 150177298Sobrien 150277298Sobrien * elf32-m68k.c: Add some ATTRIBUTE_UNUSED. 150377298Sobrien * m68klinux.c: Likewise. 150477298Sobrien 150577298Sobrien1999-07-12 Ian Lance Taylor <ian@zembu.com> 150677298Sobrien 150777298Sobrien * Many files: Changes to avoid gcc warnings: Remove unused local 150877298Sobrien variables. Add default case to enum switches. 150977298Sobrien * coff-arm.c (bfd_arm_allocate_interworking_sections): Only 151077298Sobrien compile if not COFF_IMAGE_WITH_PE. 151177298Sobrien (record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise. 151277298Sobrien (bfd_arm_get_bfd_for_interworking): Likewise. 151377298Sobrien (bfd_arm_process_before_allocation): Likewise. 151477298Sobrien * epoc-pei-arm.c: Don't rename bfd_arm functions. 151577298Sobrien * pei-arm.c: Likewise. 151677298Sobrien * elf32-mips.c (mips_elf_link_hash_table_create): Don't declare. 151777298Sobrien (MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change. 151877298Sobrien (mips_elf_got16_entry): Put parens around & in body of ==. 151977298Sobrien (mips_elf_calculate_relocation): Correct test for empty string. 152077298Sobrien * vms-gsd.c: Use _bfd_error_handler rather than fprintf to 152177298Sobrien stderr. 152277298Sobrien * vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf 152377298Sobrien format. 152477298Sobrien 152577298Sobrien1999-07-11 Ian Lance Taylor <ian@zembu.com> 152677298Sobrien 152777298Sobrien * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED 152877298Sobrien as appropriate. Fill in structure initializations. Add variable 152977298Sobrien initializations. Add casts. 153077298Sobrien * dwarf1.c (parse_line_table): Change eachLine to unsigned long. 153177298Sobrien (dwarf1_unit_find_nearest_line): Change i to unsigned long. 153277298Sobrien 153377298Sobrien * elf.c (bfd_elf_hash): Change parameter from unsigned char * to 153477298Sobrien char *. 153577298Sobrien * elf-bfd.h (bfd_elf_hash): Update declaration. 153677298Sobrien * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove casts 153777298Sobrien when calling bfd_elf_hash. 153877298Sobrien 153977298Sobrien1999-07-11 Mark Mitchell <mark@codesourcery.com> 154077298Sobrien 154177298Sobrien * libbfd.c (bfd_put_8): Make it of type `void'. 154277298Sobrien * bfd-in2.h: Regenerated. 154377298Sobrien * elf32-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Conditionalize 154477298Sobrien for 32-bit hosts. 154577298Sobrien (_bfd_mips_elf_final_link): Likewise. 154677298Sobrien 154777298Sobrien * elflink.h (elf_link_read_relocs_from_section): Be type-correct. 154877298Sobrien 154977298SobrienThu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca> 155077298Sobrien 155177298Sobrien * config.bfd (hppa*-*-linux-gnu*): New target 155277298Sobrien 155377298Sobrien1999-07-07 Mark Mitchell <mark@codesourcery.com> 155477298Sobrien 155577298Sobrien * elf-bfd.h (_bfd_mips_elf_section_from_shdr): Constify. 155677298Sobrien (_bfd_mips_elf_create_dynamic_sections): New function. 155777298Sobrien (_bfd_mips_elf_add_symbol_hook): Likewise. 155877298Sobrien (_bfd_mips_elf_adjust_dynamic_symbol): Likewise. 155977298Sobrien (_bfd_mips_elf_finish_dynamic_symbol): Likewise. 156077298Sobrien (_bfd_mips_elf_finish_dynamic_sections): Likewise. 156177298Sobrien (_bfd_mips_elf_gc_mark_hook): Likewise. 156277298Sobrien (_bfd_mips_elf_gc_sweep_hook): Likewise. 156377298Sobrien (_bfd_mips_elf_always_size_sections): Likewise. 156477298Sobrien (_bfd_mips_elf_size_dynamic_sections): Likewise. 156577298Sobrien (_bfd_mips_elf_check_relocs): Likewise. 156677298Sobrien (_bfd_mips_elf_link_hash_table_create): Likewise. 156777298Sobrien (_bfd_mips_elf_print_private_data): Likewise. 156877298Sobrien (_bfd_mips_elf_link_output_symbol_hook): Likewise. 156977298Sobrien (_bfd_mips_elf_final_link): Likewise. 157077298Sobrien (_bfd_mips_elf_additional_program_headers): Likewise. 157177298Sobrien (_bfd_mips_elf_modify_segment_map): Likewise. 157277298Sobrien (_bfd_mips_elf_relocate_section): Likewise. 157377298Sobrien * elf32-mips.c (mips_elf32_object_p): Move contents into 157477298Sobrien _bfd_mips_elf_object_p. 157577298Sobrien (mips_elf_additional_program_headers): Rename to 157677298Sobrien _bfd_mips_elf_additional_program_headers. 157777298Sobrien (mips_elf_modify_segment_map): Rename to 157877298Sobrien _bfd_mips_elf_modify_segment_map. 157977298Sobrien (elf_mips_abi_name): Change prototype. 158077298Sobrien (mips_elf32_section_from_shdr): Merge into 158177298Sobrien _bfd_mips_elf_section_from_shdr. 158277298Sobrien (mips_elf32_section_processing): Merge into 158377298Sobrien _bfd_mips_elf_section_processing. 158477298Sobrien (mips_elf_final_link): Rename to _bfd_mips_elf_final_link. Invoke 158577298Sobrien the right back-end ELF linker. 158677298Sobrien (mips_elf_relocate_section): Rename to 158777298Sobrien _bfd_mips_elf_relocate_section. Clean up. Adjust for 64-bit code. 158877298Sobrien (mips_elf_link_output_symbol_hook): Rename to 158977298Sobrien _bfd_mips_elf_link_output_symbol_hook. 159077298Sobrien (mips_elf_create_dynamic_section): Rename to 159177298Sobrien _bfd_mips_elf_create_dynamic_section. 159277298Sobrien (mips_elf_check_relocs): Rename to _bfd_mips_elf_check_relocs. 159377298Sobrien Adjust for 64-bit code. Use mips_elf_got_section. 159477298Sobrien (mips_elf_adjust_dynamic_symbol): Rename to 159577298Sobrien _bfd_mips_elf_adjust_dynamic_symbol. Use 159677298Sobrien mips_elf_allocate_dynamic_relocations. 159777298Sobrien (mips_elf_finish_dynamic_symbol): Rename to 159877298Sobrien _bfd_mips_elf_finish_dynamic_symbol. Use mips_elf_got_section. 159977298Sobrien Adjust for 64-bit code. 160077298Sobrien (mips_elf_finish_dynamic_sections): Rename to 160177298Sobrien _bfd_mips_elf_finish_dynamic_sections. Adjust for 64-bit code. 160277298Sobrien (mips_elf_always_size_sections): Rename to 160377298Sobrien _bfd_mips_elf_always_size_sections. 160477298Sobrien (mips_elf_add_symbol_hook): Rename to 160577298Sobrien _bfd_mips_elf_add_symbol_hook. 160677298Sobrien (mips_elf_next_lo16_addend): Constify. 160777298Sobrien (mips_elf_calculate_relocation): Likewise. 160877298Sobrien (mips_elf_obtain_contents): Likewise. 160977298Sobrien (mips_elf_perform_relocation): Likewise. 161077298Sobrien (mips_elf_create_dynamic_relocation): Likewise. 161177298Sobrien (mips_elf_allocate_dynamic_relocations): New function. 161277298Sobrien (MIPS_ELF_REL_DYN_SECTION_NAME): New macro. 161377298Sobrien (MIPS_ELF_REL_SIZE): Likewise. 161477298Sobrien (MIPS_ELF_DYN_SIZE): Likewise. 161577298Sobrien (MIPS_ELF_GOT_SIZE): Likewise. 161677298Sobrien (MIPS_ELF_SYM_SIZE): Likewise. 161777298Sobrien (MIPS_ELF_LOG_FILE_ALIGN): Likewise. 161877298Sobrien (MIPS_ELF_GET_WORD): Likewise. 161977298Sobrien (MIPS_ELF_PUT_WORD): Likewise. 162077298Sobrien (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise. 162177298Sobrien (STUB_LW): Conditionalize for 64-bit value. 162277298Sobrien (elf_mips_howto_table): Add R_MIPS_HIGHER and R_MIPS_HIGHEST 162377298Sobrien entries. 162477298Sobrien (_bfd_mips_elf_merge_private_bfd_data): Merge e_ident[EI_CLASS]. 162577298Sobrien Check it for inconsistency. 162677298Sobrien (_bfd_mips_elf_print_private_bfd_data): Print ABI=64 for 64-bit 162777298Sobrien ABI. 162877298Sobrien (_bfd_mips_elf_fake_sections): Remove duplicate handling of 162977298Sobrien .msym. 163077298Sobrien (mips_elf_global_got_index): Use MIPS_ELF_GOT_SIZE. 163177298Sobrien (mips_elf_got_offset_from_index): Use misp_elf_got_section. 163277298Sobrien (mips_elf_create_local_got_entry): Use MIPS_ELF_GOT_SIZE. 163377298Sobrien (mips_elf_local_got_index): Likewise. 163477298Sobrien (mips_elf_got_page): Likewise. 163577298Sobrien (mips_elf_got_info): Likewise. 163677298Sobrien (mips_elf_create_dynamic_relocation): Handle 32-bit/64-bit split. 163777298Sobrien (ELF_DYNAMIC_INTERPRETER): Handle 64-bit code. 163877298Sobrien (mips_elf_create_dynamic_sections): Use MIPS_ELF_LOG_FILE_ALIGN, 163977298Sobrien instead of constant `2'. 164077298Sobrien (mips_elf_create_got_section): Tidy. Use MIPS_ELF_GOT_SIZE. 164177298Sobrien (mips_elf_create_msym_section): Use MIPS_ELF_LOG_FILE_ALIGN. 164277298Sobrien (mips_elf_size_dynamic_sections): Use 164377298Sobrien MIPS_ELF_REL_DYN_SECTION_NAME, MIPS_ELF_GOT_SIZE, 164477298Sobrien MIPS_ELF_ADD_DYNAMIC_ENTRY. Remove #if 0'd code. 164577298Sobrien Adjust all releveant entries in elf backend table. 164677298Sobrien * elf64-mips.c (mips_elf64_section_from_shdr): Remove. 164777298Sobrien (mips_elf64_section_processing): Likewise. 164877298Sobrien Adjust elf backend entries to use _bfd_mips_elf variants now 164977298Sobrien publicly available. 165077298Sobrien 165177298Sobrien * elflink.h (elf_link_create_dynamic_sections): Handle non-standard 165277298Sobrien hash-entry sizes. 165377298Sobrien (size_dynamic_sections): Likewise. 165477298Sobrien (elf_link_output_extsym): Likewise. 165577298Sobrien * elf.c: (elf_fake_sections): Likewise. 165677298Sobrien * libbfd.c (bfd_get): New macro. 165777298Sobrien (bfd_put): Likewise. 165877298Sobrien * bfd-in2.h: Regenerated. 165977298Sobrien 166077298Sobrien1999-07-07 Mark Mitchell <mark@codesourcery.com> 166177298Sobrien 166277298Sobrien * elf-bfd.h (elf_size_info): Add hash_entry_size, 166377298Sobrien int_rels_per_ext_rel, swap_dyn_out, swap_reloc_in, swap_reloc_out, 166477298Sobrien wap_reloca_in, and swap_reloca_out. 166577298Sobrien * elflink.h (elf_link_read_relocs_from_section): Adjust to handle 166677298Sobrien multiple internal relocations per external relocation. 166777298Sobrien (link_read_relocs): Likewise. 166877298Sobrien (elf_bfd_final_link): Likewise. 166977298Sobrien (elf_link_input_bfd): Likewise. 167077298Sobrien (elf_gc_mark): Likewise. 167177298Sobrien (elf_gc_smash_unused_vtentry_relocs): Likewise. 167277298Sobrien * elfcode.h (elf_swap_dyn_out): Adjust type to match 167377298Sobrien elf_swap_dyn_in. 167477298Sobrien (size_info): Add entries for new fields. 167577298Sobrien * elf64-mips.c (mips_elf64_swap_reloc_out): Enable. 167677298Sobrien (mips_elf64_be_swap_reloc_in): New function. 167777298Sobrien (mips_elf64_be_swap_reloc_out): Likewise. 167877298Sobrien (mips_elf64_be_swap_reloca_in): Likewise. 167977298Sobrien (mips_elf64_be_swap_reloca_out): Likewise. 168077298Sobrien (mips_elf64_size_info): Add entries for new fields. 168177298Sobrien 168277298Sobrien1999-07-07 Ian Lance Taylor <ian@zembu.com> 168377298Sobrien 168477298Sobrien * elflink.h (elf_bfd_final_link): Assert that section reloc_count 168577298Sobrien field equals the new rel_count field. 168677298Sobrien (elf_link_input_bfd): When doing a relocateable link, use the new 168777298Sobrien rel_count field rather than the reloc_count field. 168877298Sobrien (elf_reloc_link_order): Likewise. 168977298Sobrien (elf_finish_pointer_linker_section): Likewise. 169077298Sobrien 169177298Sobrien Based on patch from H.J. Lu <hjl@gnu.org>: 169277298Sobrien * elflink.h (elf_merge_symbol): Permit a non-weak definition in a 169377298Sobrien shared library to override a weak definition in a regular object. 169477298Sobrien 169577298SobrienTue Jul 6 10:23:39 1999 Jeffrey A Law (law@cygnus.com) 169677298Sobrien 169777298Sobrien * libhppa.h: Revert July 2, 1999 patch. 169877298Sobrien 169977298Sobrien * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): T mode selectors 170077298Sobrien need to generate DLTIND relocations, not DLTREL relocations. 170177298Sobrien 170277298Sobrien1999-07-05 Nick Clifton <nickc@cygnus.com> 170377298Sobrien 170477298Sobrien * coffcode.h (coff_set_arch_mach_hook): Recognise arm 5 170577298Sobrien architectures. 170677298Sobrien (coff_set_flags): Recognise arm 5 architectures. 170777298Sobrien 170877298Sobrien * cpu-arm.c: Add support for strongarm and arm9 cpus. 170977298Sobrien Add support for armv5 architecture. 171077298Sobrien 171177298Sobrien * archures.c: Add bfd_mach_arm_5 and bfd_mach_arm_5T. 171277298Sobrien 171377298Sobrien * reloc.c: Add new, assembler only, ARM reloc: 171477298Sobrien BFD_RELOC_ARM_ADRL_IMMEDIATE. 171577298Sobrien 171677298Sobrien * bfd-in2.h: Regenerate. 171777298Sobrien 171877298Sobrien1999-07-02 Mark Mitchell <mark@codesourcery.com> 171977298Sobrien 172077298Sobrien * dwarf2.c (parse_comp_unit): Add ABBREV_LENGTH parameter. 172177298Sobrien (_bfd_dwarf2_find_nearest_line): Add ADDR_SIZE parameter. 172277298Sobrien * elf.c (_bfd_elf_find_nearest_line): Pass it. 172377298Sobrien * elf32-arm.h (elf32_arm_find_nearest_line): Likewise. 172477298Sobrien * elf32-mips.c (ABI_64_P): New macro. 172577298Sobrien (IRIX_COMPAT): We are IRIX6-compatible if ABI_64_P. 172677298Sobrien (_bfd_mips_elf_find_nearest_line): Adjust call to 172777298Sobrien _bfd_dwarf2_find_nearest_line. 172877298Sobrien * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype. 172977298Sobrien * libbfd.h: Regenerated. 173077298Sobrien 173177298Sobrien1999-07-02 Ian Lance Taylor <ian@zembu.com> 173277298Sobrien 173377298Sobrien * config.bfd: Add * at the end of i[3456]86-*-unixware. 173477298Sobrien 173577298SobrienFri Jul 2 12:21:10 1999 Jeffrey A Law (law@cygnus.com) 173677298Sobrien 173777298Sobrien * libhppa.h (HPPA_R_ARG_RELOC): Delete. 173877298Sobrien (HPPA_R_CONSTANT, HPPA_R_ADDEND): Likewise. 173977298Sobrien 174077298Sobrien1999-07-01 Mark Mitchell <mark@codesourcery.com> 174177298Sobrien 174277298Sobrien * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2 174377298Sobrien fields. 174477298Sobrien (_bfd_elf_init_reloc_shdr): New function. 174577298Sobrien * elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than 174677298Sobrien bfd_alloc followed by memset. 174777298Sobrien (_bfd_elf_init_reloc_shdr): New function, split out from ... 174877298Sobrien (elf_fake_sections): Here. 174977298Sobrien (assign_section_numbers): Assign section numbers for the second 175077298Sobrien relocation section, if required. 175177298Sobrien * elflink.h (elf_link_output_relocs): New function. 175277298Sobrien (elf_link_size_reloc_section): Likewise. 175377298Sobrien (elf_bfd_final_link): Use elf_link_size_reloc_section. 175477298Sobrien (elf_link_input_bfd): Use elf_link_output_relocs. 175577298Sobrien 175677298Sobrien * elf32-mips.c (_bfd_mips_elf_fake_sections): Use 175777298Sobrien _bfd_elf_init_reloc_shdr to initialize rel_hdr2. 175877298Sobrien 175977298SobrienThu Jul 1 13:58:48 1999 Jeffrey A Law (law@cygnus.com) 176077298Sobrien 176177298Sobrien * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle R_PCREL_CALL 176277298Sobrien with 22bit format. 176377298Sobrien 176477298Sobrien1999-06-28 Mark Mitchell <mark@codesourcery.com> 176577298Sobrien 176677298Sobrien * elf32-mips.c (mips_elf_got_info): Move declaration before 176777298Sobrien prototypes. Change global_gotsym to be a pointer to a hash entry, 176877298Sobrien rather than a number index. 176977298Sobrien (mips_elf_link_hash_entry): Move declaration before prototypes. 177077298Sobrien (mips_elf_irix6_finish_dynamic_symbol): New function. 177177298Sobrien (mips_elf_sign_extend): Likewise. 177277298Sobrien (mips_elf_high): Likewise. 177377298Sobrien (mips_elf_higher): Likewise. 177477298Sobrien (mips_elf_highest): Likewise. 177577298Sobrien (mips_elf_global_got_index): Likewise. 177677298Sobrien (mips_elf_local_got_index): Likewise. 177777298Sobrien (mips_elf_got_offset_from_index): Likeiwse. 177877298Sobrien (mips_elf_record_global_got_symbol): Likewise. 177977298Sobrien (mips_elf_got_page): Likewise. 178077298Sobrien (mips_elf_next_lo16_addend): Likewise. 178177298Sobrien (mips_elf_calculate_relocation): Likewise. 178277298Sobrien (mips_elf_obtain_contents): Likewise. 178377298Sobrien (mips_elf_perform_relocation): Likewise. 178477298Sobrien (mips_elf_assign_gp): Likewise. 178577298Sobrien (mips_elf_sort_hash_table_f): Likewise. 178677298Sobrien (mips_elf_sort_hash_table): Likewise. 178777298Sobrien (mips_elf_got_section): Likewise. 178877298Sobrien (mips_elf_got_info): Likewise. 178977298Sobrien (mips_elf_create_local_got_entry): Likewise. 179077298Sobrien (mips_elf_got16_entry): Likewise. 179177298Sobrien (mips_elf_create_dynamic_relocation): Likewise. 179277298Sobrien (elf_mips_howto_table): Add description of R_MIPS_SCN_DISP. 179377298Sobrien (mips_elf_final_gp): Use mips_elf_assign_gp. 179477298Sobrien (_bfd_mips_elf_symbol_processing): Don't move SHN_COMMON symbols 179577298Sobrien into SHN_SCOMMON automatically on IRIX6. 179677298Sobrien (mips_elf_add_symbol_hook): Likewise. 179777298Sobrien (mips_elf_relocate_section): Rewrite, using 179877298Sobrien mips_elf_calculate_relocation and mips_elf_perform_relocation. 179977298Sobrien (mips_elf_create_dynamic_section): Use MIPS_ELF_STUB_SECTION_NAME. 180077298Sobrien Don't deal with .rld_map on IRIX6. 180177298Sobrien (mips_elf_create_got_section): Adjust use of global_gotsym. Set 180277298Sobrien section flags appropriately for .got. 180377298Sobrien (mips_elf_check_relocs): Handle IRIX6 relocations making use of 180477298Sobrien the got. Call mips_elf_record_global_got_symbol and allocate 180577298Sobrien local got space appropriately. 180677298Sobrien (mips_elf_size_dynamic_sections): Use bfd_byte *, not unsigned 180777298Sobrien char *. Rework calculation of GOT size. Sort dynamic symbol 180877298Sobrien table entries so entries that do not require GOT entries appear at 180977298Sobrien the beginning. Don't use DT_MIPS_HIPAGENO on IRIX6. Remove dead 181077298Sobrien code dealing with DT_INIT and DT_FINI. Remove fiddling with 181177298Sobrien global_gotsym. 181277298Sobrien (mips_elf_finish_dynamic_symbol): Adjust creation of global GOT 181377298Sobrien entries. 181477298Sobrien (mips_elf_finish_dynamic_symbol): Use 181577298Sobrien mips_elf_irix6_finish_dynamic_symbol. 181677298Sobrien (mips_elf_finish_dynamic_sections): Correct off-by-one error 181777298Sobrien setting DT_MIPS_UNREFEXTNO. Adjust setting of DT_MIPS_GOTSYM for 181877298Sobrien change to global_gotsym. Set DT_MIPS_OPTIONS on IRIX6. 181977298Sobrien 182077298Sobrien1999-06-30 Ian Lance Taylor <ian@zembu.com> 182177298Sobrien 182277298Sobrien * elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a 182377298Sobrien relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>. 182477298Sobrien 182577298Sobrien1999-06-04 Philip Blundell <philb@gnu.org> 182677298Sobrien 182777298Sobrien * elf32-arm.h (elf_backend_got_header_size): Define. 182877298Sobrien (elf_backend_plt_header_size): Likewise. 182977298Sobrien 183077298Sobrien1999-06-28 Jim Pick <jim@jimpick.com> 183177298Sobrien 183277298Sobrien * elf32-arm.h (elf32_arm_relocate_section): Mind no_undefined 183377298Sobrien 183477298SobrienTue Jun 29 02:25:03 1999 Jeffrey A Law (law@cygnus.com) 183577298Sobrien 183677298Sobrien * elf-hppa.c (elf_hppa_howto_table): Use bfd_elf_generic_reloc as 183777298Sobrien relocation function. 183877298Sobrien * elf32-hppa.c (hppa_elf_reloc): Kill unused/unwanted function. 183977298Sobrien 184077298Sobrien1999-06-27 Mark Mitchell <mark@codesourcery.com> 184177298Sobrien 184277298Sobrien * elf32-mips.c (MIPS_ELF_SRDATA_SECTION_NAME): New macro. 184377298Sobrien (MIPS_ELF_OPTIONS_SECTION_NAME): Likewise. 184477298Sobrien (MIPS_ELF_STUB_SECTION_NAME): Likewise. 184577298Sobrien (_bfd_mips_elf_section_from_shdr): Use them. 184677298Sobrien (_bfd_mips_elf_fake_sections): Likewise. Add .srdata to the list 184777298Sobrien of GP-relative sections. 184877298Sobrien (_bfd_mips_elf_set_section_contents): Use them. 184977298Sobrien (_bfd_mips_elf_section_processing): Share code between .sdata and 185077298Sobrien .lit4/.lit8 sections. Set appropriate flags for .srdata. 185177298Sobrien (mips_elf_additional_program_headers): Add handling for 185277298Sobrien PT_MIPS_OPTIONS segment on IRIX6. 185377298Sobrien (mips_elf_modify_segment_map): Likeiwse. 185477298Sobrien (mips_elf_final_link): Set EF_MIPS_CPIC when required by the ABI. 185577298Sobrien Include the options sections on IRIX6. Don't look for GP-relative 185677298Sobrien sections by name; use SHF_MIPS_GPREL instead. 185777298Sobrien (ELF_DYNAMIC_INTERPRETER): Adjust to use /usr/lib32/libc.so.1 for 185877298Sobrien the N32 ABI. 185977298Sobrien (mips_elf_create_dynamic_sections): Don't muck about with section 186077298Sobrien alignments and such on IRIX6. 186177298Sobrien (mips_elf_adjust_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME. 186277298Sobrien (mips_elf_size_dynamic_sections): Likewise. Adjust to handle the 186377298Sobrien fact that ELF_DYNAMIC_INTERPRETER is no longer a constant. Use 186477298Sobrien bfd_zalloc rather than bfd_alloc and memset. 186577298Sobrien (mips_elf_finish_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME. 186677298Sobrien Don't assert the existence of .rld_map on IRIX6. 186777298Sobrien (mips_elf_finish_dynamic_sections): Use MIPS_ELF_STUB_SECTION_NAME. 186877298Sobrien 186977298Sobrien * elf32-mips.c (mips_elf_adjust_dynindx): Remove. 187077298Sobrien (mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx 187177298Sobrien instead. 187277298Sobrien 187377298Sobrien1999-06-26 Mark Mitchell <mark@codesourcery.com> 187477298Sobrien 187577298Sobrien * elf32-mips.c (mips_elf_swap_msym_in): New function. 187677298Sobrien (mips_elf_swap_msym_out): New function. 187777298Sobrien (mips_elf_create_msym_section): Likewise. 187877298Sobrien (MIPS_ELF_MSYM_SECTION_NAME): New macro. 187977298Sobrien (_bfd_mips_elf_final_write_processing): Set sh_link for .msym. 188077298Sobrien (_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM 188177298Sobrien section not named .msym. 188277298Sobrien (_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not 188377298Sobrien .msym directly. Set appropriate attributes for the .msym 188477298Sobrien section. 188577298Sobrien (mips_elf_link_hash_entry): Add min_dyn_reloc_index field. 188677298Sobrien (mips_elf_link_hash_newfunc): Clear it. 188777298Sobrien (mips_elf_create_dynamic_sections): Create the .msym section 188877298Sobrien on IRIX6. 188977298Sobrien (mips_elf_size_dynamic_sections): Allocate space for the 189077298Sobrien .msym section. Add a DT_MIPS_MSYM entry. 189177298Sobrien (mips_elf_finish_dynamic_symbol): Write out a .msym entry for 189277298Sobrien the symbol. 189377298Sobrien (mips_elf_finish_dynamic_sections): Assign a value for 189477298Sobrien DT_MIPS_MSYM. Add .msym entries for the section symbols as well. 189577298Sobrien 189677298Sobrien * elf32-mips.c (irix_compat_t): New enumeration. 189777298Sobrien (ABI_N32_P): New macro. 189877298Sobrien (IRIX_COMPAT): Likewise. 189977298Sobrien (SGI_COMPAT): Implement in terms of IRIX_COMPAT. 190077298Sobrien (mips_elf_relocate_section): Fix typo. 190177298Sobrien 190277298Sobrien1999-06-26 Mumit Khan <khan@xraylith.wisc.edu> 190377298Sobrien 190477298Sobrien * peicode.h (coff_swap_scnhdr_out): Mark non readonly BFD sections 190577298Sobrien as writable PE sections. 190677298Sobrien 190777298Sobrien1999-06-26 David Mosberger <davidm@hpl.hp.com> 190877298Sobrien 190977298Sobrien * dwarf2.c (struct arange): New type. 191077298Sobrien (struct comp_unit): Replace LOW and HIGH by member ARANGE. 191177298Sobrien (arange_add): New function. 191277298Sobrien (decode_line_info): Keep track of address ranges that a compilation 191377298Sobrien unit covers. 191477298Sobrien (comp_unit_contains_address): Return true if address is contained 191577298Sobrien in _any_ of the address ranges associated with a compilation unit. 191677298Sobrien (_bfd_dwarf2_find_nearest_line): Call comp_unit_find_nearest_line 191777298Sobrien on the first comp_unit that contains the address. 191877298Sobrien 191977298Sobrien1999-06-26 David Mosberger <davidm@hpl.hp.com> 192077298Sobrien 192177298Sobrien * dwarf2.c (struct dwarf2_debug): Add member dwarf_line_buffer. 192277298Sobrien (decode_line_info): Add variable STASH and initialize it to point 192377298Sobrien to the per-bfd dwarf2_debug info. Remove static variable 192477298Sobrien dwarf_line_buffer and use stash->dwarf_line_buffer in its place. 192577298Sobrien 192677298Sobrien1999-06-26 Ian Lance Taylor <ian@zembu.com> 192777298Sobrien 192877298Sobrien * elflink.h (elf_link_output_extsym): It's OK for a -Bsymbolic 192977298Sobrien shared library to have an undefined symbol. 193077298Sobrien 193177298Sobrien From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>: 193277298Sobrien * elf32-ppc.c (ppc_elf_relocate_section): Fix last patch. 193377298Sobrien 193477298SobrienThu Jun 24 20:59:11 1999 Jeffrey A Law (law@cygnus.com) 193577298Sobrien 193677298Sobrien * elf-hppa.c (elf_hppa_final_write_processing): New function. 193777298Sobrien * elf32-hppa.c: Remove everything related to symbol extension 193877298Sobrien sections & records. Use the common elf_hppa_final_write_processing. 193977298Sobrien 194077298Sobrien1999-06-22 Mark Mitchell <mark@codesourcery.com> 194177298Sobrien 194277298Sobrien * elflink.h (size_dynamic_sections): Use user-specified init/fini 194377298Sobrien functions instead of _init/_fini if requested. 194477298Sobrien 194577298Sobrien1999-06-23 Ian Lance Taylor <ian@zembu.com> 194677298Sobrien 194777298Sobrien * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_link 194877298Sobrien field. 194977298Sobrien 195077298Sobrien1999-06-22 Ian Lance Taylor <ian@zembu.com> 195177298Sobrien 195277298Sobrien From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>: 195377298Sobrien * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx 195477298Sobrien field to 0, not -1. 195577298Sobrien (ppc_elf_finish_dynamic_sections): Check for positive section 195677298Sobrien dynindx field, rather than comparing against -1. 195777298Sobrien (ppc_elf_relocate_section): Only return false if undefined_symbol 195877298Sobrien or reloc_overflow fail, not always upon encountering an error. 195977298Sobrien 196077298Sobrien1999-06-22 Mark Mitchell <mark@codesourcery.com> 196177298Sobrien 196277298Sobrien * elflink.h (link_read_relocs): Explicitly cast external_relocs to 196377298Sobrien bfd_byte * before performing pointer arithmetic. 196477298Sobrien 196577298SobrienTue Jun 22 13:06:25 1999 Jeffrey A Law (law@cygnus.com) 196677298Sobrien 196777298Sobrien * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA 196877298Sobrien support. 196977298Sobrien * elf32-hppa.c: Include elf-hppa.h. 197077298Sobrien (ARCH_SIZE): Define. 197177298Sobrien (elf_hppa_reloc_type_lookup): Delete. Found in the common code 197277298Sobrien now. 197377298Sobrien (elf32_hppa_info_to_howto): Similarly. 197477298Sobrien (elf_hppa_howto_table): Similarly. 197577298Sobrien (elf_hppa_reloc_type_lookup): Similarly. 197677298Sobrien (hppa_elf_gen_reloc_type): Similarly. 197777298Sobrien * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete. 197877298Sobrien 197977298Sobrien1999-06-22 Nick Clifton <nickc@cygnus.com> 198077298Sobrien 198177298Sobrien * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow 198277298Sobrien handling R_V850_22_PCREL relocation. 198377298Sobrien 198477298Sobrien1999-06-21 Ian Lance Taylor <ian@zembu.com> 198577298Sobrien 198677298Sobrien * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return 198777298Sobrien type. 198877298Sobrien 198977298SobrienSun Jun 20 14:13:57 1999 Richard Henderson <rth@cygnus.com> 199077298Sobrien 199177298Sobrien * section.c (_bfd_strip_section_from_output): Ignore sections 199277298Sobrien DISCARDed by the link script. 199377298Sobrien 199477298Sobrien1999-06-19 Ian Lance Taylor <ian@zembu.com> 199577298Sobrien 199677298Sobrien * elflink.h (elf_link_remove_section_and_adjust_dynindices): 199777298Sobrien Remove unused local variable spp. 199877298Sobrien 199977298Sobrien * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if 200077298Sobrien the entry symbol is not set. 200177298Sobrien 200277298SobrienFri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com> 200377298Sobrien 200477298Sobrien * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust 200577298Sobrien GPDISP or LITUSE in a relocatable link. 200677298Sobrien 200777298SobrienThu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk> 200877298Sobrien 200977298Sobrien * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc. 201077298Sobrien * (alloc_dwarf1_func): Likewise. 201177298Sobrien 201277298SobrienWed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com) 201377298Sobrien 201477298Sobrien * libhppa.h: Fix various formatting errors. 201577298Sobrien (assemble_3); Rewrite using CATENATE. 201677298Sobrien (assemble_17): Fix various bugs. 201777298Sobrien 201877298Sobrien1999-06-16 Nick Clifton <nickc@cygnus.com> 201977298Sobrien 202077298Sobrien * elf32-mcore.c (R_MCORE_RAW): Fix definition. 202177298Sobrien 202277298Sobrien1999-06-15 Richard Henderson <rth@cygnus.com> 202377298Sobrien 202477298Sobrien * section.c (SEC_SHORT): Define. 202577298Sobrien * bfd-in2.h: Rebuild. 202677298Sobrien 202777298Sobrien1999-06-13 Mark Mitchell <mark@codesourcery.com> 202877298Sobrien 202977298Sobrien * elflink.h (elf_link_remove_section_and_adjust_dynindices): 203077298Sobrien Remove abfd parameter. Use _bfd_strip_section_from_output. 203177298Sobrien (bfd_elf_size_dynamic_sections): Adjust callers accordingly. 203277298Sobrien 203377298Sobrien * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function. 203477298Sobrien * elflink.c (_bfd_elf_link_adjust_dynindx): Define it. 203577298Sobrien * elflink.h (elf_link_remove_section_and_adjust_dynindices): New 203677298Sobrien function. 203777298Sobrien (bfd_elf_size_dynamic_sections): Use it. 203877298Sobrien 203977298Sobrien1999-06-13 Alan Modra <alan@spri.levels.unisa.edu.au> 204077298Sobrien 204177298Sobrien * elf32-i386.c (elf_howto_table): Change R_386_PC8 from 204277298Sobrien complain_overflow_bitfield to complain_overflow_signed. 204377298Sobrien 204477298Sobrien1999-06-13 Mark Mitchell <mark@codesourcery.com> 204577298Sobrien 204677298Sobrien * elflink.h (elf_link_read_relocs_from_section): New function, 204777298Sobrien split out from ... 204877298Sobrien (elf_link_read_relocs): Here. Use it for both relocation 204977298Sobrien sections. 205077298Sobrien 205177298Sobrien1999-06-12 Mark Mitchell <mark@codesourcery.com> 205277298Sobrien 205377298Sobrien * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume 205477298Sobrien asect->reloc_count is valid. 205577298Sobrien 205677298Sobrien1999-06-12 Ian Lance Taylor <ian@zembu.com> 205777298Sobrien 205877298Sobrien * elf32-mips.c (mips_elf32_section_processing): Permit a 205977298Sobrien SHT_MIPS_REGINFO section to have a size of 0. 206077298Sobrien 206177298Sobrien1999-06-12 David O'Brien <obrien@freebsd.org> 206277298Sobrien 206377298Sobrien * config.bfd (alpha*-*-freebsd*): New target. 206477298Sobrien (i[3456]86-*-freebsd*): Now defaults to ELF. 206577298Sobrien 206677298Sobrien1999-06-11 Ian Lance Taylor <ian@zembu.com> 206777298Sobrien 206877298Sobrien * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to 206977298Sobrien wrap if the relocation covers the high bit of an address. 207077298Sobrien 207177298Sobrien * dwarf2.c (decode_line_info): Remove unused variable first_time. 207277298Sobrien 207377298Sobrien1999-06-10 Jakub Jelinek <jj@ultra.linux.cz> 207477298Sobrien 207589857Sobrien * elf64-sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std 207677298Sobrien instead of R_SPARC_max. 207777298Sobrien (sparc64_elf_info_to_howto): Likewise. 207889857Sobrien * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 207977298Sobrien (elf32_sparc_info_to_howto): Likewise; handle vtable relocations. 208077298Sobrien 208177298Sobrien1999-06-07 Richard Henderson <rth@cygnus.com> 208277298Sobrien 208377298Sobrien * section.c (_bfd_strip_section_from_output): Remove output 208477298Sobrien sections with no initial link_order. 208577298Sobrien 208677298Sobrien1999-06-07 Nick Clifton <nickc@cygnus.com> 208777298Sobrien 208877298Sobrien * elf32-m88k.c (ELF_MAXPAGESIZE): Define. 208977298Sobrien 209077298SobrienMon Jun 7 11:49:43 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 209177298Sobrien 209277298Sobrien * Makefile.am (SOURCE_HFILES): Add missing headers. 209377298Sobrien * Makefile.in: Regenerated. 209477298Sobrien 209577298Sobrien1999-06-06 Mark Mitchell <mark@codesourcery.com> 209677298Sobrien 209777298Sobrien * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize 209877298Sobrien the N32 ABI. 209977298Sobrien 210077298Sobrien1999-06-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 210177298Sobrien 210277298Sobrien * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of 210377298Sobrien range undefweak symbols. 210477298Sobrien * hash.c: Add missing comma after @xref{} 210577298Sobrien * linker.c: Likewise. 210677298Sobrien 210777298Sobrien1999-06-04 Nick Clifton <nickc@cygnus.com> 210877298Sobrien 210977298Sobrien * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message 211077298Sobrien if not defined. 211177298Sobrien * elf32-gen.c (ELF_MAXPAGESIZE): Define. 211277298Sobrien * elf32-i860.c (ELF_MAXPAGESIZE): Define. 211377298Sobrien * elf32-i960.c (ELF_MAXPAGESIZE): Define. 211477298Sobrien * elf64-gen.c (ELF_MAXPAGESIZE): Define. 211577298Sobrien 211677298Sobrien1999-06-04 Ian Lance Taylor <ian@zembu.com> 211777298Sobrien 211877298Sobrien * Makefile.am: Rebuild dependencies. 211977298Sobrien (BFD32_BACKENDS): Add dwarf1.lo. 212077298Sobrien (BFD32_BACKENDS_CFILES): Add dwarf1.c. 212177298Sobrien * Makefile.in: Rebuild. 212277298Sobrien 212377298Sobrien1999-06-04 Nick Clifton <nickc@cygnus.com> 212477298Sobrien 212577298Sobrien * Makefile.am: Add epoc-arm-pe target. 212677298Sobrien * Makefile.in: Regenerate. 212777298Sobrien * pe-arm.c: Only redefine interworking function names if they have 212877298Sobrien not already been redefined. 212977298Sobrien * pei-arm.c: Only redefine interworking function names if they have 213077298Sobrien not already been redefined. 213177298Sobrien * epoc-pe-arm.c: Redefine interworking function names to avoid a 213277298Sobrien name space clash. 213377298Sobrien * epoc-pei-arm.c: Redefine interworking function names to avoid a 213477298Sobrien name space clash. 213577298Sobrien 213677298Sobrien1999-06-03 Nick Clifton <nickc@cygnus.com> 213777298Sobrien 213877298Sobrien * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1. 213977298Sobrien 214077298SobrienFri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 214177298Sobrien 214277298Sobrien * elf.c (elf_fake_sections): Undo change of 1999-05-10. 214377298Sobrien 214477298SobrienFri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk> 214577298Sobrien 214677298Sobrien * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of 214777298Sobrien start / stop for recalculating of r_addend of R_SH_SWITCH*. 214877298Sobrien 214977298SobrienFri Jun 4 02:53:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk> 215077298Sobrien 215177298Sobrien * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32 215277298Sobrien in other text sections. 215377298Sobrien 215477298SobrienFri Jun 4 02:29:34 1999 J"orn Rennecke <amylaar@cygnus.co.uk> 215577298Sobrien 215677298Sobrien * libbfd.c (_bfd_generic_verify_endian_match): New function. 215777298Sobrien * libbfd-in.h (_bfd_generic_verify_endian_match): Declare. 215877298Sobrien * libbfd.h: Regenerate. 215977298Sobrien * coff-sh.c (sh_merge_private_data): Delete. 216077298Sobrien (coff_bfd_merge_private_bfd_data): Change to 216177298Sobrien _bfd_generic_verify_endian_match. 216277298Sobrien (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define. 216377298Sobrien 216477298Sobrien1999-06-03 Ulrich Drepper <drepper@cygnus.com> 216577298Sobrien 216677298Sobrien * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE. 216777298Sobrien 216877298Sobrien1999-06-03 Ian Lance Taylor <ian@zembu.com> 216977298Sobrien 217077298Sobrien * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct 217177298Sobrien prototype. 217277298Sobrien (bfd_elf32_arm_process_before_allocation): Likewise. 217377298Sobrien * bfd-in2.h: Rebuild. 217477298Sobrien 217577298Sobrien1999-06-03 David Mosberger <davidm@hpl.hp.com> 217677298Sobrien 217777298Sobrien * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep 217877298Sobrien track of end_sequence markers. 217977298Sobrien (add_line_info): Add END_SEQUENCE arg. 218077298Sobrien (decode_line_info): Don't try to infer lo_pc and hi_pc from the 218177298Sobrien debug-line info---it doesn't work right if a compilation unit 218277298Sobrien consists of multiple discontiguous code-sequences. It would be 218377298Sobrien worthwhile to optimize for the common case where a compilation 218477298Sobrien unit results in a contiguous set of code sequences, but this is 218577298Sobrien quite tricky to get right for arbitrary DWARF2 files. 218677298Sobrien (lookup_address_in_line_info_table): Don't use the last line entry 218777298Sobrien for a compilation unit for anything with an address higher than 218877298Sobrien this line entry. Also, check for end_sequence markers to 218977298Sobrien correctly handle discontinuities. 219077298Sobrien (_bfd_dwarf2_find_nearest_line): When checking previously loaded 219177298Sobrien compilation units, check all compilation units with each->high==0 219277298Sobrien just like when reading compilation units. 219377298Sobrien 219477298Sobrien * dwarf2.c (decode_line_info): Initialize table->files and 219577298Sobrien table->last_line to NULL to avoid segfaults due to random 219677298Sobrien values in these members. 219777298Sobrien (concat_filename): Check for out-of-range file number before 219877298Sobrien indexing filename table. Segfaults suck. 219977298Sobrien 220077298Sobrien * dwarf2.c (decode_line_info): Don't truncate address to least 220177298Sobrien significant 32 bits (breaks 64 bit targets). 220277298Sobrien (lookup_address_in_function_table): Ditto. 220377298Sobrien (comp_unit_contains_address): Ditto. 220477298Sobrien 220577298Sobrien1999-06-02 Mark Mitchell <Mark Mitchell <mark@codesourcery.com>> 220677298Sobrien 220777298Sobrien * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR. 220877298Sobrien * elf64-mips.c (mips_elf64_howto_table_rel): Likewise. 220977298Sobrien (mips_elf64_howto_table_rela): Likewise. 221077298Sobrien 221177298Sobrien * elfcode.h (elf_slurp_reloc_table_from_section): New function, 221277298Sobrien split out from ... 221377298Sobrien (elf_slurp_reloc_table): Here. Use it to handle the case where a 221477298Sobrien single section has two associated relocation sections. 221577298Sobrien 221677298Sobrien1999-06-02 Mark Salter <msalter@cygnus.com> 221777298Sobrien 221877298Sobrien * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if 221977298Sobrien COFF_WITH_PE defined. 222077298Sobrien 222177298Sobrien1999-06-02 Nick Clifton <nickc@cygnus.com> 222277298Sobrien 222377298Sobrien * pe-arm.c: Rename global arm interworking functions to avoid name 222477298Sobrien collision when all targets BFD is built. 222577298Sobrien * pei-arm.c: Ditto. 222677298Sobrien 222777298Sobrien1999-05-31 Mark Mitchell <mark@codesourcery.com> 222877298Sobrien 222977298Sobrien * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add 223077298Sobrien may_use_rel_p, may_use_rela_p, default_use_rela_p. 223177298Sobrien (bfd_elf_section_data): Add use_rela_p. 223277298Sobrien * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately. 223377298Sobrien (_bfd_elf_new_section_hook): Likewise. 223477298Sobrien (elf_fake_sections): Use may_use_rela_p, etc., instead of 223577298Sobrien use_rela_p. 223677298Sobrien (_bfd_elf_copy_private_section_data): Copy use_rela_p. 223777298Sobrien * elfcode.h (write_relocs): Determine whether or not use rela 223877298Sobrien relocs based on the relocation section header. 223977298Sobrien * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p 224077298Sobrien instead of use_rela_p. 224177298Sobrien * elfxx-target.h (elf_backend_may_use_relp): New macro. 224277298Sobrien (elf_backend_may_use_rela_p): Likewise. 224377298Sobrien (elf_backend_default_use_rela_p): Likewise. 224477298Sobrien (elfNN_bed): Use them. 224577298Sobrien 224677298SobrienWed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com> 224777298Sobrien 224877298Sobrien * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096. 224977298Sobrien 225077298SobrienTue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov> 225177298Sobrien 225277298Sobrien * reloc.c (BFD_RELOC_MIPS_SUB): New relocation. 225377298Sobrien (BFD_RELOC_MIPS_GOT_PAGE): Likewise. 225477298Sobrien (BFD_RELOC_MIPS_GOT_OFST): Likewise. 225577298Sobrien (BFD_RELOC_MIPS_GOT_DISP): Likewise. 225677298Sobrien * bfd-in2.h: Regenerated. 225777298Sobrien * libbfd.h: Likewise. 225877298Sobrien * elf32-mips.c (mips_info_to_howto_rela): New function. 225977298Sobrien (USE_REL): Adjust for new conventions. 226077298Sobrien (MINUS_ONE): New macro. 226177298Sobrien (elf_mips_howto_table): Add R_MIPS_SUB. 226277298Sobrien (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST, 226377298Sobrien and MIPS_GOT_DISP. 226477298Sobrien (mips_elf_final_write_processing): Set sh_link, not sh_info, for a 226577298Sobrien .MIPS.content section. 226677298Sobrien (_bfd_mips_elf_fake_sections): Treat all sections that begin 226777298Sobrien with .MIPS.content as .MIPS.content sections. Set 226877298Sobrien SHF_MNIPS_NOSTRIP for such section. 226977298Sobrien (elf_info_to_howto): Define to mips_info_to_howto_rela. 227077298Sobrien * elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, 227177298Sobrien MIPS_GOT_OFST, and MIPS_GOT_DISP. 227277298Sobrien 227377298SobrienWed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 227477298Sobrien 227577298Sobrien * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized 227677298Sobrien variable. 227777298Sobrien 227877298Sobrien * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous 227977298Sobrien `else'. 228077298Sobrien 228177298Sobrien1999-05-30 Philip Blundell <philb@gnu.org> 228277298Sobrien 228377298Sobrien * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of 228477298Sobrien 1993-03-25 (!!). Take into account the bitmasks for the reloc so 228577298Sobrien the addend does not overflow into the rest of the word. 228677298Sobrien 228777298Sobrien1999-05-29 Nick Clifton <nickc@cygnus.com> 228877298Sobrien 228977298Sobrien * bfd-in.h: Amend prototype for 229077298Sobrien bfd_elf32_arm_process_before_allocation . 229177298Sobrien * bfd-in.h: Regenerate. 229277298Sobrien 229377298Sobrien * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of 229477298Sobrien elements in a fixed sized array. 229577298Sobrien (ARM_ELF_ABI_VERSION): Define. 229677298Sobrien (ARM_ELF_OS_ABI_VERSION): Define. 229777298Sobrien (R_ARM_THM_ABS5): Fix rightshift and size. 229877298Sobrien (R_ARM_THM_PC22): Fix size. 229977298Sobrien (R_ARM_PLT32): Define Howto. 230077298Sobrien (find_howto): New function: Locate a howto based on a reloc 230177298Sobrien number. 230277298Sobrien (elf32_arm_info_to_howto): Use find_howto if necessary. 230377298Sobrien (elf32_arm_reloc_map): Change type of field bfd_reloc_val to 230477298Sobrien bfd_reloc_code_real_type. 230577298Sobrien (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT 230677298Sobrien and BFD_RELOC_VTABLE_ENTRY. 230777298Sobrien (elf32_arm_reloc_type_lookup): Use find_howto if necessary. 230877298Sobrien 230977298Sobrien * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of 231077298Sobrien elements in a fixed sized array. 231177298Sobrien (ARM_ELF_ABI_VERSION): Define. 231277298Sobrien (ARM_ELF_OS_ABI_VERSION): Define. 231377298Sobrien (R_ARM_THM_ABS5): Fix rightshift and size. 231477298Sobrien (R_ARM_THM_PC22): Fix size. 231577298Sobrien (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto. 231677298Sobrien (elf32_arm_reloc_map): Change type of field bfd_reloc_val to 231777298Sobrien bfd_reloc_code_real_type. 231877298Sobrien 231977298Sobrien * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field: 232077298Sobrien no_pipeline_knowledge. 232177298Sobrien (elf32_arm_link_hash_create): Initialise new field to zero. 232277298Sobrien (bfd_elf32_arm_process_before_allocation): Add new paraemter: 232377298Sobrien no_pipeline_knowledge. Use this parameter to initialise the field 232477298Sobrien in the globals data structure. 232577298Sobrien (elf32_arm_final_link_relocate): Only add in pipeline offset if 232677298Sobrien no_pipeline_knowledge is false and the binary is from an old 232777298Sobrien toolchain. 232877298Sobrien (elf32_arm_merge_private_data): Generate an error if an attempt is 232977298Sobrien made to link together big endian and little endian code. 233077298Sobrien (elf32_arm_post_process_headers): New function: Initialise the 233177298Sobrien EI_OSABI and EI_ABIVERSION fields of the newly created ELF program 233277298Sobrien header. 233377298Sobrien (elf_backend_post_process_headers): Define. 233477298Sobrien 233577298Sobrien1999-05-28 Nick Clifton <nickc@cygnus.com> 233677298Sobrien 233777298Sobrien * elf-bfd.h (struct elf_backend_data): Add new field: 233877298Sobrien elf_backend_post_process_headers. 233977298Sobrien 234077298Sobrien * elfxx-target.h (elf_backend_post_process_headers): Define to 234177298Sobrien NULL if not already defined. 234277298Sobrien (elfNN_bed): Initialise elf_backend_post_process_headers field. 234377298Sobrien 234477298Sobrien * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields 234577298Sobrien to zero. 234677298Sobrien (_bfd_elf_compute_section_file_positions): Call 234777298Sobrien elf_backend_post_process_headers if defined. 234877298Sobrien 234977298Sobrien1999-05-28 Ian Lance Taylor <ian@zembu.com> 235077298Sobrien 235177298Sobrien * configure.in: Check whether getuid and getgid exist. 235277298Sobrien * archive.c: Define getuid and getgid as macros if HAVE_GETUID or 235377298Sobrien HAVE_GETGID are not defined, respectively. 235477298Sobrien (bfd_write_armap): Don't special case on _WIN32 for getuid and 235577298Sobrien getgid. 235677298Sobrien * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*. 235777298Sobrien * configure, config.in: Rebuild. 235877298Sobrien 235977298Sobrien1999-05-28 Martin Dorey <mdorey@madge.com> 236077298Sobrien 236177298Sobrien * elf32-i960.c: New file. 236277298Sobrien * elf.c (prep_headers): Handle bfd_arch_i960. 236377298Sobrien * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec. 236477298Sobrien * config.bfd (i960-*-elf*): New target. 236577298Sobrien * configure.in (bfd_elf32_i960_vec): New target vector. 236677298Sobrien * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo. 236777298Sobrien (BFD32_BACKENDS_CFILES): Add elf32-i960.c. 236877298Sobrien * Makefile.in, aclocal.m4, configure: Rebuild. 236977298Sobrien 237077298Sobrien1999-05-27 Nick Clifton <nickc@cygnus.com> 237177298Sobrien 237277298Sobrien * elfarm-oabi.c (elf32_arm_howto_table): Add entry for 237377298Sobrien R_ARM_PLT32. 237477298Sobrien (find_howto): New function: Find entries in the 237577298Sobrien elf32_arm_howto_table. 237677298Sobrien (elf32_arm_info_to_howto): Use find_howto if the entry cannot be 237777298Sobrien computed simply. 237877298Sobrien (elf32_arm_reloc_type_lookup): Add lookup for 237977298Sobrien BFD_RELOC_ARM_PLT32. 238077298Sobrien 238177298Sobrien1999-05-25 Philip Blundell <pb@nexus.co.uk> 238277298Sobrien 238389857Sobrien * elf32-arm.h (elf32_arm_link_hash_newfunc): New function. 238477298Sobrien (elf32_arm_link_hash_table_create): Use above function as the 238577298Sobrien constructor for hash table entries. 238677298Sobrien (elf32_arm_relocate_section): Avoid crash when there is no output 238777298Sobrien section. 238877298Sobrien (elf32_arm_final_link_relocate): New parameter h. 238977298Sobrien (elf32_arm_relocate_section): Pass symbol hash entry to above 239077298Sobrien routine. 239177298Sobrien (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct 239277298Sobrien comments. 239377298Sobrien 239477298Sobrien1999-05-25 Catherine Moore <clm@cygnus.com> 239577298Sobrien 239677298Sobrien * coff-arm.c (coff_arm_relocate_section): Don't emit 239777298Sobrien base file entries for pc-relative values. 239877298Sobrien 239977298Sobrien1999-05-25 DJ Delorie <dj@cygnus.com> 240077298Sobrien 240177298Sobrien * peicode.h (coff_swap_sym_in): When we create the actual section 240277298Sobrien to reflect the not-there section C_SECTION symbols refer to, 240377298Sobrien change the symbol class to C_STAT as the section is now really 240477298Sobrien there. 240577298Sobrien 240677298Sobrien1999-05-24 Philip Blundell <pb@nexus.co.uk> 240777298Sobrien 240877298Sobrien * elf32-arm.h (elf32_arm_relocate_section): Undo change of 240977298Sobrien 1999-03-25. 241077298Sobrien 241177298SobrienMon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com> 241277298Sobrien 241377298Sobrien * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed 241477298Sobrien F_PIC_INT to F_PIC. 241577298Sobrien * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and 241677298Sobrien F_ARM_3M labels. Changed F_PIC_INT to F_PIC. 241777298Sobrien 241877298Sobrien1999-05-16 Nick Clifton <nickc@cygnus.com> 241977298Sobrien 242077298Sobrien * coff-mcore.c (in_reloc_p): Reinstate. 242177298Sobrien 242277298Sobrien1999-05-15 Nick Clifton <nickc@cygnus.com> 242377298Sobrien 242477298Sobrien * reloc.c (BFD_RELOC_MCORE_RVA): Define. 242577298Sobrien * bfd-in2.h: Regenerate. 242677298Sobrien * coff-mcore.c (in_reloc_p): Remove defintion. 242777298Sobrien (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA. 242877298Sobrien (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to 242977298Sobrien IMAGE_REL_MCORE_RVA. 243077298Sobrien (coff_mcore_rtype_to_howto): Add special processing for 243177298Sobrien IMAGE_REL_MCORE_RVA. 243277298Sobrien (coff_mcore_relocate_section): Add support for 243377298Sobrien IMAGE_REL_MCORE_RVA. 243489857Sobrien * elf32-mcore.c (mcore_elf_howto_): Add R_MCORE_RELATIVE. 243577298Sobrien (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to 243677298Sobrien R_MCORE_RELATIVE. 243777298Sobrien (mcore_elf_relocate_section): Delete redundant case labels. 243877298Sobrien 243977298SobrienFri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 244077298Sobrien 244177298Sobrien * elf32-arm.h (elf32_arm_relocate_section): Fix operator 244277298Sobrien precedence between bit-and and comparison. 244377298Sobrien 244477298SobrienThu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com) 244577298Sobrien 244677298Sobrien * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to 244777298Sobrien list of target formats (targ_selvecs). 244877298Sobrien (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets. 244977298Sobrien (powerpcle*-*rtems*, sh-*-rtemself*): New targets. 245077298Sobrien 245177298Sobrien1999-05-10 DJ Delorie <dj@cygnus.com> 245277298Sobrien 245377298Sobrien * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a 245477298Sobrien reasonable mode until "ar x" is smart enough to skip it (fixes 245577298Sobrien gcc/libgcc.a builds on mips-ecoff targets 245677298Sobrien 245777298Sobrien * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed 245877298Sobrien to work. Hack to support MS import libraries, which use different 245977298Sobrien COMDAT types than GNU. 246077298Sobrien (coff_slurp_symbol_table): C_SECTION symbols are local; they refer 246177298Sobrien to implied zero-length sections (see peicode below) 246277298Sobrien * coffgen.c (coff_get_normalized_symtab): Properly read long MS 246377298Sobrien filename symbols, which use one *or more* auxents. 246477298Sobrien * coffswap.h (coff_swap_aux_in): ditto 246577298Sobrien * peicode.h (coff_swap_sym_in): Build the implied zero-length 246677298Sobrien sections 246777298Sobrien 246877298SobrienTue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com) 246977298Sobrien 247077298Sobrien * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false 247177298Sobrien for all relocations. 247277298Sobrien 247377298Sobrien1999-05-10 Catherine Moore <clm@cygnus.com> 247477298Sobrien 247577298Sobrien * bfd-in.h (bfd_arm_allocate_interworking_sections): Static 247677298Sobrien if COFF_IMAGE_WITH_PE. 247777298Sobrien (bfd_arm_process_before_allocation): Likewise. 247877298Sobrien (bfd_arm_get_bfd_for_interworking): Likewise. 247977298Sobrien * coff-arm.c: Likewise. 248077298Sobrien * bfd-in2.h: Regenerate. 248177298Sobrien * configure.in (armpe_little_vec): Remove coff-arm.lo. 248277298Sobrien (armpe_big_vec): Likewise. 248377298Sobrien * configure: Rebuild. 248477298Sobrien 248577298Sobrien1999-05-10 Nick Clifton <nickc@cygnus.com> 248677298Sobrien 248777298Sobrien * elf.c (elf_fake_sections): Check for .rel. as start of rel 248877298Sobrien section, not just .rel. Same for .rela. 248977298Sobrien 249077298Sobrien1999-05-07 Nick Clifton <nickc@cygnus.com> 249177298Sobrien 249277298Sobrien * coff-mcore.c (coff_mcore_relocate_section): Replace assert about 249377298Sobrien endianism with an error message. 249477298Sobrien 249577298SobrienThu May 6 17:09:09 1999 Fred Fish <fnf@be.com> 249677298Sobrien 249777298Sobrien * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer 249877298Sobrien assignment from "unsigned char *" to "char *". 249977298Sobrien (decode_line_info): Likewise for dwarf_line_buffer assignment. 250077298Sobrien 250177298Sobrien1999-05-05 Catherine Moore <clm@cygnus.com> 250277298Sobrien 250377298Sobrien * coff-arm.c (coff_arm_relocate_section): Add one to 250477298Sobrien address of ARM_RVA32 thumb functions. 250577298Sobrien 250677298Sobrien1999-05-05 Catherine Moore <clm@cygnus.com> 250777298Sobrien 250877298Sobrien * elf32-m68k.c (elf32_m68k_set_private_flags): New. 250977298Sobrien (elf32_m68k_copy_private_bfd_data): New. 251077298Sobrien (elf32_m68k_merge_private_bfd_data): New. 251177298Sobrien (elf32_m68k_print_private_bfd_data): New. 251277298Sobrien (CPU32_FLAG): Define. 251377298Sobrien (PLT_CPU32_ENTRY_SIZE): Define. 251477298Sobrien (elf_cpu32_plt0_entry): Declare. 251577298Sobrien (elf_cpu32_plt_entry): Declare. 251677298Sobrien (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries. 251777298Sobrien (elf_m68k_finish_dynamic_symbol): Likewise. 251877298Sobrien (elf_m68k_finish_dynamic_sections): Likewise. 251977298Sobrien (elf_backend_plt_header_size): Remove definition. 252077298Sobrien (bfd_elf32_bfd_copy_private_bfd_data): Define. 252177298Sobrien (bfd_elf32_bfd_merge_private_bfd_data): Define. 252277298Sobrien (bfd_elf32_bfd_set_private_flags): Define. 252377298Sobrien (bfd_elf32_bfd_print_private_bfd_data): Define. 252477298Sobrien 252577298SobrienMon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com) 252677298Sobrien 252777298Sobrien * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE 252877298Sobrien and R_LONG_PCREL_MODE. 252977298Sobrien 253077298Sobrien1999-04-29 Nick Clifton <nickc@cygnus.com> 253177298Sobrien 253277298Sobrien * coff-mcore.c (coff_mcore_relocate_section): Fix typos. 253377298Sobrien 253477298SobrienFri Apr 28 16:36:19 1999 Stan Cox <scox@cygnus.com> 253577298Sobrien 253677298Sobrien * elf32-sh.c (sh_elf_relocate_section): Include relocation addend 253777298Sobrien in relocation calculation. 253877298Sobrien 253977298Sobrien1999-04-26 Tom Tromey <tromey@cygnus.com> 254077298Sobrien 254177298Sobrien * aclocal.m4, configure: Updated for new version of libtool. 254277298Sobrien 254377298Sobrien1999-04-21 Nick Clifton <nickc@cygnus.com> 254477298Sobrien 254577298Sobrien * coff-mcore.c: Add support for mcore relocs. 254677298Sobrien 254777298Sobrien1999-04-20 Gavin Romig-Koch <gavin@cygnus.com> 254877298Sobrien 254977298Sobrien * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the 255077298Sobrien incorrect use EF_MIPS_xxBITPTRS. 255177298Sobrien 255277298Sobrien1999-04-18 Ian Lance Taylor <ian@zembu.com> 255377298Sobrien 255477298Sobrien * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local 255577298Sobrien variable insn. 255677298Sobrien 255777298Sobrien * bfd-in2.h: Rebuild. 255877298Sobrien * libbfd.h: Rebuild. 255977298Sobrien 256077298SobrienSat Apr 17 20:55:15 1999 Catherine Moore <clm@cygnus.com> 256177298Sobrien 256277298Sobrien * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform. 256377298Sobrien (coff_arm_relocate_section): Add ARM26D transform. Only 256477298Sobrien change to ARM26D for relocateable links. 256577298Sobrien 256677298Sobrien1999-04-16 Gavin Romig-Koch <gavin@cygnus.com> 256777298Sobrien 256877298Sobrien * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New. 256977298Sobrien (bfd_elf32_bfd_print_private_bfd_data): New. 257077298Sobrien 257177298Sobrien1999-04-15 Doug Evans <devans@casey.cygnus.com> 257277298Sobrien 257377298Sobrien * elf32-arm.h (elf32_arm_final_link_relocate): For R_ARM_THM_ABS5, 257477298Sobrien refetch addend if USE_REL, add many comments regarding current state. 257577298Sobrien For R_ARM_THM_PC22, refetch addend if USE_REL, simplify. 257677298Sobrien * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix 257777298Sobrien size and rightshift. For R_ARM_THM_PC22, fix bitsize. 257877298Sobrien * elfarm-oabi.c (elf32_arm_howto_table): Ditto. 257977298Sobrien 258077298SobrienWed Apr 14 14:33:08 1999 Richard Henderson <rth@cygnus.com> 258177298Sobrien 258277298Sobrien * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'. 258377298Sobrien * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise. 258477298Sobrien 258577298Sobrien1999-04-13 David Mosberger <davidm@hpl.hp.com> 258677298Sobrien 258777298Sobrien * dwarf2.c (decode_line_info): Don't truncate address to least 258877298Sobrien significant 32 bits (breaks 64 bit targets). 258977298Sobrien (lookup_address_in_function_table): Ditto. 259077298Sobrien (comp_unit_contains_address): Ditto. 259177298Sobrien 259277298SobrienTue Apr 13 21:27:19 1999 Catherine Moore <clm@cygnus.com> 259377298Sobrien 259477298Sobrien * coff-arm.c (arm_emit_base_file_entry): New routine. 259577298Sobrien (A2T3_OFFSET): Define. 259677298Sobrien (T2A3_OFFSET): Define. 259777298Sobrien (coff_arm_relocate_section): Emit base file entries for interworking 259877298Sobrien stubs. 259977298Sobrien 260077298Sobrien1999-04-13 Philip Blundell <philb@gnu.org> 260177298Sobrien 260277298Sobrien * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for 260377298Sobrien relocs 17 through 19. 260477298Sobrien 260577298SobrienSun Apr 11 01:25:17 1999 Richard Henderson <rth@cygnus.com> 260677298Sobrien 260777298Sobrien * elfcode.h: Remove fnmatch.h. 260877298Sobrien * elflink.h (elf_link_assign_sym_version): Call back to ld 260977298Sobrien instead of calling fnmatch. 261077298Sobrien 261177298Sobrien * config.bfd (i?86-*-beoself): Include pe vecs. 261277298Sobrien 261377298SobrienSun Apr 11 01:14:06 1999 Richard Henderson <rth@cygnus.com> 261477298Sobrien 261577298Sobrien * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt 261677298Sobrien to go missing. 261777298Sobrien 261877298Sobrien1999-04-10 Richard Henderson <rth@cygnus.com> 261977298Sobrien 262077298Sobrien * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined 262177298Sobrien when trying to resolve dynamic symbol references. 262277298Sobrien * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 262377298Sobrien * elf32-mips.c (mips_elf_relocate_section): Likewise. 262477298Sobrien * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 262577298Sobrien * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. 262677298Sobrien * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. 262777298Sobrien * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. 262877298Sobrien * elflink.h (elf_link_output_extsym): Likewise. 262977298Sobrien 263077298SobrienSat Apr 10 15:12:09 1999 Richard Henderson <rth@cygnus.com> 263177298Sobrien 263277298Sobrien * section.c (_bfd_strip_section_from_output): New function moved from 263377298Sobrien * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here. 263477298Sobrien * elf32-i386.c (elf_i386_size_dynamic_sections): Use it. 263577298Sobrien * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. 263677298Sobrien * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise. 263777298Sobrien * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. 263877298Sobrien * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. 263977298Sobrien * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise. 264077298Sobrien * bfd-in2.h: Update. 264177298Sobrien 264277298Sobrien1999-04-09 Ian Lance Taylor <ian@zembu.com> 264377298Sobrien 264477298Sobrien * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow. 264577298Sobrien 264677298Sobrien1999-04-08 Nick Clifton <nickc@cygnus.com> 264777298Sobrien 264877298Sobrien * coff-mcore.c: New File: Support for mcore-pe targets. 264977298Sobrien * cpu-mcore.c: New File: Support for mcore targets. 265077298Sobrien * elf32-mcore.c: New File: Support for mcore-elf target. 265177298Sobrien * pe-mcore.c: New File: Definitions for mcore-pe target. 265277298Sobrien * pei-mcore.c: New File: Definitions for mcore-pei target. 265377298Sobrien * Makefile.am: Add support for MCore targets. 265477298Sobrien * Makefile.in: Regenerate. 265577298Sobrien * config.bfd: Add support for MCore targets. 265677298Sobrien * configure.in: Add support for MCore targets. 265777298Sobrien * configure: Regenerate. 265877298Sobrien * archures.c: Add support for MCore architecture. 265977298Sobrien * bfd-in2.h: Regenerate. 266077298Sobrien * coffcode.h: Add support for mcore-pe targets. 266177298Sobrien * elf.c: Add support for mcore-elf target. 266277298Sobrien * reloc.c: Add support for MCore relocs. 266377298Sobrien * targets.c: Add support for MCore targets. 266477298Sobrien 266577298Sobrien1999-04-07 Nick Clifton <nickc@cygnus.com> 266677298Sobrien 266777298Sobrien * elfarm-nabi.c (elf32_arm_howto_table): Add entries for 266877298Sobrien R_ARM_XPC25 and R_ARM_THM_XPC22. 266977298Sobrien (elf32_arm_reloc_map): Remove redundant entries. 267077298Sobrien 267177298Sobrien1999-04-06 Ian Lance Taylor <ian@zembu.com> 267277298Sobrien 267377298Sobrien * sysdep.h (LC_MESSAGES): Never define. 267477298Sobrien 267577298Sobrien1999-04-06 Chris Torek <torek@bsdi.com> 267677298Sobrien 267777298Sobrien * reloc.c (bfd_check_overflow): Add addrsize parameter. Change 267877298Sobrien all callers. Rewrite completely. 267977298Sobrien (_bfd_relocate_contents): Rewrite overflow checking. 268077298Sobrien * bfd-in2.h: Rebuild. 268177298Sobrien 268277298Sobrien1999-04-05 Ian Lance Taylor <ian@zembu.com> 268377298Sobrien 268477298Sobrien From Gabriel Paubert <paubert@iram.es>: 268577298Sobrien * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO, 268677298Sobrien R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont. 268777298Sobrien Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to 268877298Sobrien have a rightshift of 16 and use ppc_elf_addr16_ha_reloc. 268977298Sobrien * ppcboot.c (ppcboot_vec): Use little endian routines for 269077298Sobrien headers. 269177298Sobrien 269277298Sobrien * elf.c (elfcore_strndup): Only define if it will be used. 269377298Sobrien * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel 269477298Sobrien and irelend. 269577298Sobrien (ppc_elf_check_relocs): Remove unused local i. 269677298Sobrien (ppc_elf_gc_mark_hook): Add default case to switch. 269777298Sobrien 269877298Sobrien From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>: 269977298Sobrien * srec.c (srec_scan): Accept \r in symbol definitions. 270077298Sobrien (srec_object_p): Set HAS_SYMS if we saw any symbols. 270177298Sobrien (symbolsrec_object_p): Likewise. 270277298Sobrien 270377298Sobrien1999-04-04 Don Bowman <don@pixsci.com> 270477298Sobrien 270577298Sobrien * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*. 270677298Sobrien 270777298Sobrien1999-04-04 Ian Lance Taylor <ian@zembu.com> 270877298Sobrien 270977298Sobrien * dwarf1.c (parse_line_table): Remove unused locals last_pc and 271077298Sobrien last_line. 271177298Sobrien * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare. 271277298Sobrien * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to 271377298Sobrien switch. 271477298Sobrien * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused 271577298Sobrien local i. 271677298Sobrien * syms.c (_bfd_stab_section_find_nearest_line): Remove unused 271777298Sobrien local val. 271877298Sobrien 271977298Sobrien1999-03-31 Nick Clifton <nickc@cygnus.com> 272077298Sobrien 272177298Sobrien * config.bfd: Add support for arm-epoc-pe target. 272277298Sobrien * configure.in: Add support for arm-epoc-pe target. 272377298Sobrien * configure: Regenerate. 272477298Sobrien * targets.c: Add support for arm-epoc-pe target. 272577298Sobrien * coff-arm.c: Allow header files to override definition of 272677298Sobrien TARGET_UNDERSCORE and USER_LABEL_PREFIX. 272789857Sobrien * pe-arm.c: Allow previous header files to override definition of 272877298Sobrien TARGET_LITTLE_SYM and TARGET_BIG_SYM. 272989857Sobrien * pei-arm.c: Allow previous header files to override definition of 273077298Sobrien TARGET_LITTLE_SYM and TARGET_BIG_SYM. 273177298Sobrien * epoc-pe-arm.c: New file. Support arm-epoc-pe target. 273277298Sobrien * epoc-pei-arm.c: New file. Support arm-epoc-pei target. 273377298Sobrien 273477298Sobrien1999-03-30 Nick Clifton <nickc@cygnus.com> 273577298Sobrien 273677298Sobrien * elf.c (elf_map_symbols): Handle the case where section 273777298Sobrien symbols are generated for content-less sections which are 273877298Sobrien not mapped to the output file. 273977298Sobrien 274077298Sobrien * linker.c: Replace direct references to fields in BFD structure 274177298Sobrien with accessor macros. 274277298Sobrien 274377298Sobrien * elflink.h: Replace direct references to fields in BFD structure 274477298Sobrien with accessor macros. 274577298Sobrien 274677298Sobrien1999-03-25 Philip Blundell <pb@nexus.co.uk> 274777298Sobrien 274877298Sobrien * config.bfd: Eliminate redundancy in checks for Linux/ARM. 274977298Sobrien 275077298Sobrien * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into 275177298Sobrien account when adjusting section symbols during a partial link. 275277298Sobrien 275377298Sobrien1999-03-24 Nick Clifton <nickc@cygnus.com> 275477298Sobrien 275577298Sobrien * coff-sparc.c (struct coff_reloc_map): Change type of field 275677298Sobrien 'bfd_reloc_val' to bfd_reloc_code_real_type. 275777298Sobrien * elf-m10200.c (struct mn10200_reloc_map): Ditto. 275877298Sobrien * elf-m10300.c (struct mn10300_reloc_map): Ditto. 275977298Sobrien * elf32-arc.c (struct arc_reloc_map): Ditto. 276077298Sobrien * elf32-d10v.c (struct d10v_reloc_map): Ditto. 276177298Sobrien * elf32-d30v.c (struct d30v_reloc_map): Ditto. 276277298Sobrien * elf32-fr30.c (struct fr30_reloc_map): Ditto. 276377298Sobrien * elf32-m32r.c (struct m32r_reloc_map): Ditto. 276477298Sobrien * elf32-sh.c (struct elf_reloc_map): Ditto. 276577298Sobrien * elf32-sparc.c (struct elf_reloc_map): Ditto. 276677298Sobrien * elf32-v850.c (struct v850_reloc_map): Ditto. 276777298Sobrien * elf64-sparc.c (struct elf_reloc_map): Ditto. 276877298Sobrien * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto. 276977298Sobrien * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto. 277077298Sobrien 277177298Sobrien1999-03-17 Martin Hunt <hunt@cygnus.com> 277277298Sobrien 277377298Sobrien * syms.c (_bfd_stab_section_find_nearest_line): Changed this 277477298Sobrien function so source-level assembly works. If multiple N_SOs 277577298Sobrien are seen without and N_FUNs, create an indextable entry with 277677298Sobrien a NULL function name. 277777298Sobrien 277877298Sobrien1999-03-16 Gavin Romig-Koch <gavin@cygnus.com> 277977298Sobrien 278077298Sobrien * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging 278177298Sobrien of certian similar cpus. 278277298Sobrien 278377298Sobrien1999-03-16 Gavin Romig-Koch <gavin@cygnus.com> 278477298Sobrien 278577298Sobrien * elf32-mips.c (_bfd_mips_elf_final_write_processing): 278677298Sobrien Add the 5000. Change the architecture for the 5400 to mips4. 278777298Sobrien (elf_mips_mach): Add r5000. 278877298Sobrien 278977298Sobrien1999-03-11 Doug Evans <devans@casey.cygnus.com> 279077298Sobrien 279177298Sobrien * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb. 279277298Sobrien 279377298Sobrien1999-03-11 Nick Clifton <nickc@cygnus.com> 279477298Sobrien 279577298Sobrien * binary.c (binary_set_section_contents): Generate warning about 279677298Sobrien huge file offsets for any section that will occupy file space, not 279777298Sobrien just those that are loadable. 279877298Sobrien 279977298Sobrien1999-02-24 Jim Blandy <jimb@zwingli.cygnus.com> 280077298Sobrien 280177298Sobrien * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes. 280277298Sobrien 280377298Sobrien1999-02-22 Jim Lemke <jlemke@cygnus.com> 280477298Sobrien 280577298Sobrien * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0. 280677298Sobrien 280777298SobrienMon Feb 22 18:26:51 1999 Ian Lance Taylor <ian@cygnus.com> 280877298Sobrien 280977298Sobrien * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define. 281077298Sobrien * elflink.h: Revert all changes since Feb 16. Instead: 281177298Sobrien (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if 281277298Sobrien appropriate. Copy it to version symbols. 281377298Sobrien (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF 281477298Sobrien symbols if appropriate. 281577298Sobrien (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef 281677298Sobrien symbol if appropriate. 281777298Sobrien (elf_link_output_extsym): If symbol is marked as undefined, and 281877298Sobrien has no nonweak references, mark it as weak undefined. 281977298Sobrien 282077298SobrienFri Feb 19 16:01:12 1999 Ian Lance Taylor <ian@cygnus.com> 282177298Sobrien 282277298Sobrien * elflink.h (elf_merge_symbol): When overriding a dynamic 282377298Sobrien definition with a weak undefined symbol, set NEEDS_PLT if it is a 282477298Sobrien function. 282577298Sobrien (elf_link_add_object_symbols): Don't copy the other field if we 282677298Sobrien are overridding. 282777298Sobrien 282877298SobrienThu Feb 18 18:07:43 1999 Ian Lance Taylor <ian@cygnus.com> 282977298Sobrien 283077298Sobrien * elflink.h (elf_merge_symbol): Do not merge any symbol from a 283177298Sobrien shared object with a weak undefined symbol. 283277298Sobrien 283377298Sobrien1999-02-18 Nick Clifton <nickc@cygnus.com> 283477298Sobrien 283577298Sobrien * elfarm-nabi.c: Set partial_inplace back to false. 283677298Sobrien 283777298Sobrien1999-02-17 Nick Clifton <nickc@cygnus.com> 283877298Sobrien 283977298Sobrien * coff-arm.c (TARGET_UNDERSCORE): Re-enable. 284077298Sobrien (USER_LABEL_PREFIX): Set to "_". 284177298Sobrien 284277298Sobrien The following patches are from: Scott Bambrough 284377298Sobrien <scottb@corelcomputer.com> 284477298Sobrien 284577298Sobrien * libaout.h (M_ARM6_NETBSD): Set to 143. 284677298Sobrien 284777298Sobrien * reloc.c: Add ARM PIC relocs: BFD_RELOC_ARM_GOT12, 284877298Sobrien BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY, 284977298Sobrien BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32, 285077298Sobrien BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC. 285177298Sobrien * bfd-in2.h: Regenerate. 285277298Sobrien 285377298Sobrien * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to 285477298Sobrien 'true' as REL relocs are now being used. Add new PIC relocs: 285577298Sobrien R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE, 285677298Sobrien R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32. 285777298Sobrien 285877298Sobrien * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order 285977298Sobrien of targets. 286077298Sobrien (elf32_arm_final_link_relocate): Change parameters so that entire 286177298Sobrien reloc is passed. Add support for PIC relocs. 286277298Sobrien (elf32_arm_relocate_section): Pass entire reloc to 286377298Sobrien elf32_arm_final_link_relocate. 286477298Sobrien (elf32_arm_check_relocs): Handle new PIC relocs. 286577298Sobrien (elf32_arm_adjust_dynamic_symbol): New function. 286677298Sobrien (elf32_arm_size_dynamic_sections): New function. 286777298Sobrien (elf32_arm_discard_copies): New function. 286877298Sobrien (elf32_arm_finish_dynamic_symbol): New function. 286977298Sobrien (elf32_arm_finish_dynamic_sections): New function. 287077298Sobrien (ELF_MAXPAGE_SIZE): Define. 287177298Sobrien (bfd_elf32_bfd_reloc_type_lookup): Define. 287277298Sobrien (elf_backend_relocate_section): Define. 287377298Sobrien (elf_backend_adjust_dynamic_symbol): Define. 287477298Sobrien (elf_backend_create_dynamic_sections): Define. 287577298Sobrien (elf_backend_finish_dynamic_symbol): Define. 287677298Sobrien (elf_backend_finish_dynamic_sections): Define. 287777298Sobrien (elf_backend_size_dynamic_sections): Define. 287877298Sobrien (elf_backend_plt_readonly): Define. 287977298Sobrien (elf_backend_want_got_plt): Define. 288077298Sobrien (elf_backend_want_plt_sym): Define. 288177298Sobrien 288277298SobrienWed Feb 17 12:02:26 1999 Stan Cox <scox@cygnus.com> 288377298Sobrien 288477298Sobrien * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo 288577298Sobrien sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE. 288677298Sobrien (_bfd_mips_elf_fake_sections): Likewise. 288777298Sobrien 288877298SobrienWed Feb 17 12:07:23 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 288977298Sobrien 289077298Sobrien * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections, 289177298Sobrien bfd_elf32_arm_get_bfd_for_interworking, 289277298Sobrien bfd_elf32_arm_process_before_allocation): Define to avoid clash 289377298Sobrien with elfarm-nabi.c. 289477298Sobrien 289577298Sobrien * elf32-arm.h: Don't declare elf32_arm_info_to_howto. 289677298Sobrien (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub, 289777298Sobrien elf32_arm_find_nearest_line): Make them static. 289877298Sobrien 289977298SobrienTue Feb 16 22:44:37 1999 Ian Lance Taylor <ian@cygnus.com> 290077298Sobrien 290177298Sobrien * elflink.h (elf_merge_symbol): Add pflags parameter. Change all 290277298Sobrien callers. Do not merge a definition from a shared object with a 290377298Sobrien weak undefined symbol. 290477298Sobrien (elf_link_add_object_symbols): Do not change the symbol type or 290577298Sobrien size if the old symbol overrides the new one. 290677298Sobrien 290777298Sobrien1999-02-08 Nick Clifton <nickc@cygnus.com> 290877298Sobrien 290977298Sobrien * config.bfd: Add support for strongarm target. 291077298Sobrien 291177298SobrienMon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 291277298Sobrien 291377298Sobrien * elf32-m68k.c (reloc_map): Use the correct types for the struct 291477298Sobrien fields instead of unsigned char. 291577298Sobrien 291677298SobrienFri Feb 5 00:22:36 1999 Ian Lance Taylor <ian@cygnus.com> 291777298Sobrien 291877298Sobrien * Makefile.am: Rebuild dependencies. 291977298Sobrien * Makefile.in: Rebuild. 292077298Sobrien 292177298SobrienThu Feb 4 22:30:13 1999 Ian Lance Taylor <ian@cygnus.com> 292277298Sobrien 292377298Sobrien * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32. 292477298Sobrien Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to 292577298Sobrien AC_PROG_INSTALL. Add comments to uses of AC_DEFINE. 292677298Sobrien * acinclude.m4: Add comments to uses of AC_DEFINE. 292777298Sobrien * acconfig.h: Remove. 292877298Sobrien * configure: Rebuild with current autoconf/automake. 292977298Sobrien * aclocal.m4: Likewise. 293077298Sobrien * config.in: Likewise. 293177298Sobrien * Makefile.in: Likewise. 293277298Sobrien 293377298Sobrien1999-02-04 DJ Delorie <dj@cygnus.com> 293477298Sobrien 293577298Sobrien * libbfd.c (real_read): don't call fread for zero bytes. This 293677298Sobrien covers up a bug (or misuse of bfd) that's exposed by Solaris. 293777298Sobrien 293877298SobrienThu Feb 4 12:38:10 1999 Stan Cox <scox@cygnus.com> 293977298Sobrien 294077298Sobrien * elf32-mips.c (mips_elf_relocate_section): Insure that the target 294177298Sobrien of a jump is in the current 256 MB region. 294277298Sobrien 294377298SobrienThu Feb 4 12:15:38 1999 Ian Lance Taylor <ian@cygnus.com> 294477298Sobrien 294577298Sobrien * format.c (bfd_check_format_matches): Change last patch to only 294677298Sobrien take effect for the binary target. 294777298Sobrien 294877298SobrienWed Feb 3 19:40:12 1999 Ian Lance Taylor <ian@cygnus.com> 294977298Sobrien 295077298Sobrien * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR. 295177298Sobrien 295277298SobrienWed Feb 3 15:02:44 1999 Catherine Moore <clm@cygnus.com> 295377298Sobrien 295477298Sobrien * elf32-fr30.c (fr30_elf_check_relocs): New routine. 295577298Sobrien 295677298SobrienTue Feb 2 21:38:28 1999 Ian Lance Taylor <ian@cygnus.com> 295777298Sobrien 295877298Sobrien * format.c (bfd_check_format_matches): If the target was 295977298Sobrien previously specified, don't check other targets when checking for 296077298Sobrien an archive file. 296177298Sobrien 296277298SobrienTue Feb 2 18:16:43 1999 Catherine Moore <clm@cygnus.com> 296377298Sobrien 296477298Sobrien * elf32-arm.h (elf32_arm_reloc_map): Removed. 296577298Sobrien (elf32_arm_reloc_type_lookup): Removed 296677298Sobrien * elfarm-nabi.c (elf32_arm_reloc_map): New. 296777298Sobrien (elf32_arm_reloc_type_lookup): New. 296877298Sobrien * elfarm-oabi.c (elf32_arm_reloc_map): New. 296977298Sobrien (elf32_arm_reloc_type_lookup): New. 297077298Sobrien 297177298SobrienMon Feb 1 19:49:21 1999 Catherine Moore <clm@cygnus.com> 297277298Sobrien 297377298Sobrien * elfarm-nabi.c: Renamed from elf32-arm-newabi.c. 297477298Sobrien * elfarm-oabi.c: Renamed from elf32-arm-oldabi.c 297577298Sobrien * Makefile.am: Use new files. 297677298Sobrien * Makefile.in: Regenerate. 297777298Sobrien * configure.in: Use new files. 297877298Sobrien * configure: Regenerate. 297977298Sobrien 298077298Sobrien1999-02-01 Nick Clifton <nickc@cygnus.com> 298177298Sobrien 298277298Sobrien * elf32-fr30.c (fr30_elf_gc_mark_hook): New function. 298377298Sobrien (fr30_elf_gc_sweep_hook): New function. 298477298Sobrien (elf_backend_can_gc_sections): Define. 298577298Sobrien 298677298SobrienMon Feb 1 12:21:47 1999 Catherine Moore <clm@cygnus.com> 298777298Sobrien 298877298Sobrien * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec 298977298Sobrien and bfd_elf32_bigarm_oabi_vec. 299077298Sobrien 299177298SobrienMon Feb 1 11:46:31 1999 Catherine Moore <clm@cygnus.com> 299277298Sobrien 299377298Sobrien * Makefile.am (elf32-arm-oldabi.lo): New. 299477298Sobrien (elf32-arm-newabi.lo): New. 299577298Sobrien * Makefile.in: Regenerate. 299677298Sobrien * config.bfd (thumb-*-elf): Remove definition of targ_underscore. 299777298Sobrien (arm-*-elf): Likewise. 299877298Sobrien (arm-*-oabi): New. 299977298Sobrien (thumb-*-oabi): New. 300077298Sobrien * configure: Regenerate. 300177298Sobrien * configure.in (bfd_elf32_littlearm_oabi_vec): New. 300277298Sobrien (bfd_elf32_bigarm_oabi_vec): New. 300377298Sobrien * elf32-arm-newabi.c: New. 300477298Sobrien * elf32-arm-oldabi.c: New. 300577298Sobrien * elf32-arm.c: Removed. 300677298Sobrien * elf32-arm.h: New. 300777298Sobrien 300877298SobrienMon Feb 1 11:52:12 1999 Frank Ch. Eigler <fche@cygnus.com> 300977298Sobrien 301077298Sobrien * binary.c (binary_set_section_contents): Omit warnings for 301177298Sobrien unloadable sections. 301277298Sobrien 301377298Sobrien1999-01-31 Michael Meissner <meissner@cygnus.com> 301477298Sobrien 301577298Sobrien * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to 301677298Sobrien powerpc{,le}-*-eabi. 301777298Sobrien 301877298Sobrien1999-01-29 Nick Clifton <nickc@cygnus.com> 301977298Sobrien 302077298Sobrien * dwarf2.c (read_unsigned_leb128): Remove unused variables. 302177298Sobrien * dwarf2.c (read_signed_leb128): Remove unused variables. 302277298Sobrien 302377298SobrienFri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org> 302477298Sobrien 302577298Sobrien * elf.c (assign_file_positions_for_segments): Only adjust 302677298Sobrien p_align when needed. 302777298Sobrien 302877298SobrienThu Jan 28 20:05:22 1999 Ian Lance Taylor <ian@cygnus.com> 302977298Sobrien 303077298Sobrien * binary.c (binary_set_section_contents): Don't return early for a 303177298Sobrien non-loadable section, in case the first section is non-loadable. 303277298Sobrien Don't set the low lma for a SEC_NEVER_LOAD section. From Maciej 303377298Sobrien W. Rozycki <macro@ds2.pg.gda.pl>. 303477298Sobrien 303577298Sobrien1999-01-28 Nick Clifton <nickc@cygnus.com> 303677298Sobrien 303777298Sobrien * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and 303877298Sobrien R_FR30_GNU_VTENTRY relocs. 303977298Sobrien 304077298SobrienThu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com> 304177298Sobrien 304277298Sobrien * elflink.h (elf_link_output_sym): Zero syms which are 304377298Sobrien part of sections which have been excluded. 304477298Sobrien 304577298SobrienWed Jan 27 13:35:35 1999 Stan Cox <scox@cygnus.com> 304677298Sobrien 304777298Sobrien * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC 304877298Sobrien to F_PIC_INT. 304977298Sobrien * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and 305077298Sobrien F_ARM_3M labels. Changed F_PIC to F_PIC_INT. 305177298Sobrien 305277298Sobrien1999-01-27 Nick Clifton <nickc@cygnus.com> 305377298Sobrien 305477298Sobrien * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48 305577298Sobrien relocation. 305677298Sobrien (fr30_final_link_relocate): Use computed value as result of 305777298Sobrien relocation. 305877298Sobrien 305977298Sobrien1999-01-26 Frank Ch. Eigler <fche@cygnus.com> 306077298Sobrien 306177298Sobrien * binary.c (binary_set_section_contents): Emit warning for 306277298Sobrien huge file offsets due to widely-dispersed section LMAs. 306377298Sobrien 306477298SobrienMon Jan 18 03:35:35 1999 Ian Lance Taylor <ian@cygnus.com> 306577298Sobrien 306677298Sobrien * elf.c (assign_file_positions_for_segments): If not D_PAGED, 306777298Sobrien align first section to largest section alignment, not first 306877298Sobrien section alignment. 306977298Sobrien 307077298Sobrien1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com) 307177298Sobrien 307277298Sobrien * configure.in: Require autoconf 2.12.1 or higher. 307377298Sobrien 307477298SobrienTue Dec 22 15:21:41 1998 Catherine Moore <clm@cygnus.com> 307577298Sobrien 307677298Sobrien * archures.c (bfd_mach_i386_i386_intel_syntax): Define. 307777298Sobrien * bfd-in2.h: Likewise. 307877298Sobrien * cpu-i386.c (bfd_i386_arch_intel_syntax): New. 307977298Sobrien 308077298Sobrien1998-12-16 Gavin Romig-Koch <gavin@cygnus.com> 308177298Sobrien 308289857Sobrien * archures.c (bfd_mach_mips4111): New. 308389857Sobrien * bfd-in2.h: Regenerate. 308477298Sobrien * cpu-mips.c: Add support for and independent 4111. 308577298Sobrien * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111. 308677298Sobrien (_bfd_mips_elf_final_write_processing): 308777298Sobrien bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111. 308877298Sobrien 308977298Sobrien1998-12-15 Gavin Romig-Koch <gavin@cygnus.com> 309077298Sobrien 309177298Sobrien * elf32-mips.c (elf_mips_abi_name): New. 309277298Sobrien (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags. 309377298Sobrien 309477298Sobrien1998-12-12 Gavin Romig-Koch <gavin@cygnus.com> 309577298Sobrien 309677298Sobrien * elf32-mips.c (_bfd_mips_elf_final_write_processing): 309777298Sobrien Handle bfd_mach_mips4300. 309877298Sobrien 309977298Sobrien1998-12-11 Ulrich Drepper <drepper@cygnus.com> 310077298Sobrien 310177298Sobrien * elf32-i386.c: Remove leaked development code from patch 310277298Sobrien 1998-12-10 by Richard Henderson. 310377298Sobrien 310477298Sobrien1998-12-10 Richard Henderson <rth@cygnus.com> 310577298Sobrien 310677298Sobrien * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations 310777298Sobrien in debug sections for symbol defined externally. 310877298Sobrien 310977298SobrienThu Dec 10 10:58:38 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 311077298Sobrien 311177298Sobrien * targets.c (bfd_target_vector): Remove duplicate entry for 311277298Sobrien tekhex_vec. 311377298Sobrien 311477298Sobrien1998-12-09 Nick Clifton <nickc@cygnus.com> 311577298Sobrien 311677298Sobrien * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0 311777298Sobrien since we are using RELAs. 311877298Sobrien 311977298SobrienTue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com> 312077298Sobrien 312177298Sobrien SCO Open Server Release 5 core file support, from Jouke Numan 312277298Sobrien <jnuman@hiscom.nl>: 312377298Sobrien * sco5-core.c: New file. 312477298Sobrien * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo. 312577298Sobrien (sco5-core.lo): Define SCO5_CORE in COREFLAG. 312677298Sobrien * Makefile.am: Rebuild dependencies. 312777298Sobrien (OPTIONAL_BACKENDS): Add sco5-core.lo. 312877298Sobrien (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c. 312977298Sobrien * bfd.c (struct _bfd): Add sco5_core_data field to tdata. 313077298Sobrien * targets.c (sco5_core_vec): Add to target list if SCO5_CORE. 313177298Sobrien * bfd-in2.h, configure, Makefile.in: Rebuild. 313277298Sobrien 313377298SobrienTue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com> 313477298Sobrien 313577298Sobrien * config.bfd (hppa*-*-mpeix*): New target. 313677298Sobrien * configure.in: Add AC_HEADER_DIRENT. 313777298Sobrien (hppa*-*-mpeix*): New target. 313877298Sobrien * configure.host (hppa*-*-mpeix*): New host. 313977298Sobrien * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and 314077298Sobrien friends rather than just including <sys/dir.h>. 314177298Sobrien * som.h (struct som_symbol): Add hppa_priv_level and apto 314277298Sobrien tc_data. Change all users. 314377298Sobrien (struct somdata): Add comp_unit field. 314477298Sobrien (obj_som_compilation_unit): Define. 314577298Sobrien (bfd_som_attach_compilation_unix): Declare. 314677298Sobrien * som.c: Check HOST_HPPAMPEIX. 314777298Sobrien (struct som_misc_symbol_info): Add new field priv_level. 314877298Sobrien (som_object_setup): Add current_offset parameter. Change all 314977298Sobrien callers. 315077298Sobrien (setup_sections): Likewise. 315177298Sobrien (som_object_p): For EXECLIBMAGIC, read the lst header. 315277298Sobrien (som_write_symbol_strings): Add compilation_unit parameter. 315377298Sobrien Change all callers. 315477298Sobrien (som_finish_writing): Write out compilation_unit. 315577298Sobrien (som_bfd_derive_misc_symbol_info): Set priv_level. 315677298Sobrien (som_build_and_write_symbol_table): Set xleast field to 3. 315777298Sobrien (som_slurp_symbol_table): Set symbol priv_level. 315877298Sobrien (bfd_som_attach_compilation_unit): New function. 315977298Sobrien (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set 316077298Sobrien priv_level into symbol_value. 316177298Sobrien * configure, config.in: Rebuild. 316277298Sobrien 316377298SobrienTue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com> 316477298Sobrien 316577298Sobrien * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent 316677298Sobrien warning function to call _bfd_error_handler instead. 316777298Sobrien 316877298Sobrien * libbfd.c (COERCE32): Cast through unsigned long and long to 316977298Sobrien avoid bug in old version of gcc. 317077298Sobrien 317177298Sobrien * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove. 317277298Sobrien (elf_backend_additional_program_headers): Don't define. 317377298Sobrien 317477298Sobrien1998-12-08 Nick Clifton <nickc@cygnus.com> 317577298Sobrien 317677298Sobrien * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative 317777298Sobrien relocations to include offset of 2 included in the insns, and the 317877298Sobrien offset of the relocs within the section. 317977298Sobrien 318077298SobrienWed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com> 318177298Sobrien 318277298Sobrien The following changes were made by David Taylor 318377298Sobrien <taylor@texas.cygnus.com>, Edith Epstein 318477298Sobrien <eepstein@sophia.cygnus.com>, Jim Blandy 318577298Sobrien <jimb@zwingli.cygnus.com>, and Elena Zannoni 318677298Sobrien <ezannoni@kwikemart.cygnus.com> as part of the project to merge in 318777298Sobrien changes originally made by HP; HP did not create ChangeLog 318877298Sobrien entries. 318977298Sobrien 319077298Sobrien * aclocal.m4, configure, Makefile.in: Rebuilt using latest 319177298Sobrien automake macro library. 319277298Sobrien 319377298Sobrien * hpux-core.c (hpux_core_core_file_p): this function now 319477298Sobrien understands HPUX 10.30 thread info. Yes, the thread stacks can be 319577298Sobrien found in the corefile! Also, in hpux_core_core_file_p, if we 319677298Sobrien encounter a section with an unknown type, don't punt. Instead, 319777298Sobrien just skip it. Also, count the number of sections of known type 319877298Sobrien that we encounter. If we encounter at least one good one, then 319977298Sobrien we'll declare that the file is a core file. If we encounter any 320077298Sobrien unknown ones but some known ones, then we'll issue a warning (but 320177298Sobrien still declare it to be a core file). Also, correctly decide when a 320277298Sobrien file is not a core. 320377298Sobrien (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined. 320477298Sobrien (CORE_ANON_SHMEM): define if not defined. 320577298Sobrien (hpux_core_struct): add members lwpid and user_tid. 320677298Sobrien (core_kernel_thread_id, core_user_thread_id): new macros. 320777298Sobrien (make_bfd_asection): use bfd_alloc to allocate room for a copy of 320877298Sobrien the name before storing it in the bfd. 320977298Sobrien (hpux_core_core_file_p): handle threads. 321077298Sobrien 321177298Sobrien * libhppa.h (GET_FIELD): protect against redefinition. 321277298Sobrien (HPPA_WIDE): define. 321377298Sobrien (GET_FIELD): define. 321477298Sobrien (GET_BIT): define. 321577298Sobrien (MASK): define. 321677298Sobrien (CATENATE): define. 321777298Sobrien (ELEVEN): define. 321877298Sobrien (sign_extend): redefine. 321977298Sobrien (assemble_6): define. 322077298Sobrien (assemble_12): rewrite. 322177298Sobrien (assemble_16): define. 322277298Sobrien (assemble_16a): define. 322377298Sobrien (assemble_17): rewrite. 322477298Sobrien (assemble_22): define. 322577298Sobrien 322677298Sobrien1998-12-07 Nick Clifton <nickc@cygnus.com> 322777298Sobrien 322877298Sobrien * elf32-fr30.c (fr30_final_link_relocate): Using signed 322977298Sobrien relocations for signed values. 323077298Sobrien 323177298SobrienSun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com> 323277298Sobrien 323377298Sobrien * mipsbsd.c (MY(set_arch_mach)): Make static. 323477298Sobrien * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use 323577298Sobrien bfd_mach_mips* macros rather than simple numbers. 323677298Sobrien 323777298Sobrien COFF weak symbol support, based on patches from Mark Elbrecht 323877298Sobrien <snowball3@usa.net>: 323977298Sobrien * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT. 324077298Sobrien * coffgen.c (coff_renumber_symbols): Handle weak symbols. 324177298Sobrien (coff_write_alien_symbol): Likewise. 324277298Sobrien * cofflink.c (coff_link_check_ar_symbols): Likewise. 324377298Sobrien (coff_link_add_symbols): Likewise. 324477298Sobrien (_bfd_coff_link_input_bfd): Likewise. 324577298Sobrien (_bfd_coff_write_global_sym): Likewise. 324677298Sobrien 324777298Sobrien * elf.c (copy_private_bfd_data): Always initialize the 324877298Sobrien includes_phdrs field. 324977298Sobrien 325077298Sobrien * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF 325177298Sobrien file defines a symbol first mentioned in an ELF file. 325277298Sobrien 325377298Sobrien * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if 325477298Sobrien possible, rather than only if BFD64. 325577298Sobrien * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT, 325677298Sobrien not __GNUC__. 325777298Sobrien * bfd-in2.h: Rebuild. 325877298Sobrien 325977298Sobrien * srec.c (srec_set_section_contents): Correct test to avoid 326077298Sobrien switching to 4 byte addresses after seeing a second section which 326177298Sobrien requires 3 byte addresses. From Joel Schantz 326277298Sobrien <joel.schantz@argosys.boeing.com>. 326377298Sobrien 326477298Sobrien * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent 326577298Sobrien <aymeric.vincent@emi.u-bordeaux.fr>. 326677298Sobrien 326777298Sobrien1998-12-04 Jim Blandy <jimb@zwingli.cygnus.com> 326877298Sobrien 326977298Sobrien * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to 327077298Sobrien decide whether the output file is -mrelocatable-lib, 327177298Sobrien -mrelocatable, or neither. (gdb.base/nodebug.exp) 327277298Sobrien 327377298Sobrien1998-12-03 Nick Clifton <nickc@cygnus.com> 327477298Sobrien 327577298Sobrien * elf32-fr30.c: Add support for R_FR30_48 reloc. 327677298Sobrien * reloc.c: Add BFD_RELOC_FR30_48 relocation. 327777298Sobrien * bfd-in2.h: Regenerate. 327877298Sobrien * libbfd.h: Regenerate 327977298Sobrien 328077298SobrienWed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com> 328177298Sobrien 328277298Sobrien * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to 328377298Sobrien link against a dynamic symbol with no type or size. 328477298Sobrien 328577298Sobrien1998-12-01 Ulrich Drepper <drepper@cygnus.com> 328677298Sobrien 328777298Sobrien * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit 328877298Sobrien relocation for section which does not get loaded. 328977298Sobrien (elf_i386_relocate_section) [R_386_32]: Likewise. 329077298Sobrien 329177298SobrienTue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com> 329277298Sobrien 329377298Sobrien * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size, 329477298Sobrien reloc_count and i long instead of unsigned long. Handle error 329577298Sobrien return from bfd_canonicalize_reloc. 329677298Sobrien 329777298Sobrien1998-12-01 Nick Clifton <nickc@cygnus.com> 329877298Sobrien 329977298Sobrien * elf32-v850.c (v850_elf_relocate_section): Detect the absence of 330077298Sobrien a hash table. 330177298Sobrien 330277298SobrienMon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk> 330377298Sobrien 330477298Sobrien * elf32-sh.c (elf/sh.h): Include. 330577298Sobrien sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type. 330677298Sobrien (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8. 330777298Sobrien (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8. 330877298Sobrien (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8. 330977298Sobrien * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h. 331077298Sobrien 331177298SobrienFri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au> 331277298Sobrien 331377298Sobrien * elflink.h (compute_bucket_count): Don't allow minsize==0, it 331477298Sobrien causes division by zero later on. 331577298Sobrien 331677298SobrienThu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com> 331777298Sobrien 331877298Sobrien * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not 331977298Sobrien needed. 332077298Sobrien 332177298Sobrien1998-11-25 DJ Delorie <dj@cygnus.com> 332277298Sobrien 332377298Sobrien * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation 332477298Sobrien hook now. 332577298Sobrien 332677298SobrienTue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com> 332777298Sobrien 332877298Sobrien * elf32-fr30.c (fr30_elf_relocate_section): Call 332977298Sobrien fr30_final_link_relocate. 333077298Sobrien (fr30_final_link_relocate): New function: Handle I20 and I32 333177298Sobrien relocs. 333277298Sobrien (fr30_elf_i32_reloc): New function: Handle I32 relocs. 333377298Sobrien (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs. 333477298Sobrien (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs. 333577298Sobrien 333677298Sobrien * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc 333777298Sobrien chain to empty. 333877298Sobrien 333977298Sobrien The following changes are based on a patch submitted by Gianluca 334077298Sobrien Moro <glctr@abc.it>: 334177298Sobrien 334277298Sobrien (v850_elf_perform_relocation): Only update a hi16s reloc if it has 334377298Sobrien not already been updated. 334477298Sobrien (find_remembered_hi16s_reloc): New parameter 'already_found' 334577298Sobrien returns state of remembered hi16s reloc. 334677298Sobrien (remember_hi16s_reloc): Set 'found' field to false. 334777298Sobrien (hi16s_location): Add 'found' field. 334877298Sobrien 334977298Sobrien1998-11-23 DJ Delorie <dj@cygnus.com> 335077298Sobrien 335177298Sobrien * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants 335277298Sobrien to see .DLL files as unrecognized. 335377298Sobrien (i3coff_object_p): Sorry, had to hack it to not recognize these 335477298Sobrien files (pei-i386) on request. 335577298Sobrien 335677298Sobrien1998-11-23 DJ Delorie <dj@cygnus.com> 335777298Sobrien 335877298Sobrien * opncls.c (bfd_make_readable): need more cleanup for symbols and 335977298Sobrien relents. Call bfd_check_format to reinitialize. 336077298Sobrien 336177298SobrienFri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com> 336277298Sobrien 336377298Sobrien * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious 336477298Sobrien warnings. 336577298Sobrien 336677298SobrienThu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com> 336777298Sobrien 336877298Sobrien * aclocal.m4: regenerate 336977298Sobrien * configure: regenerate 337077298Sobrien 337177298SobrienTue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com> 337277298Sobrien 337377298Sobrien * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size. 337477298Sobrien * elf.c (_bfd_elf_link_hash_newfunc): Clear it. 337577298Sobrien * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and 337677298Sobrien respect it as an upper bound on what memory to reference. 337777298Sobrien (elf_gc_smash_unused_vtentry_relocs): Likewise. 337877298Sobrien (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and 337977298Sobrien update vtable_entries_size appropriately. 338077298Sobrien 338177298SobrienTue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com> 338277298Sobrien 338377298Sobrien * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold 338477298Sobrien reloc number. 338577298Sobrien 338677298SobrienMon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com> 338777298Sobrien 338877298Sobrien * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY 338977298Sobrien bfds; they have no "file" so we fake it. 339077298Sobrien * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen) 339177298Sobrien * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by 339277298Sobrien resizing the memory buffer. 339377298Sobrien * opncls.c (bfd_make_writable): New function; lets you write a 339477298Sobrien bfd_create'd bfd to an in-memory buffer. 339577298Sobrien (bfd_make_readable): New function; lets you read back that buffer 339677298Sobrien as if it were from bfd_openr. Used to build generated archive 339777298Sobrien members (winsup's ld's dlltool) 339877298Sobrien 339977298SobrienMon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com> 340077298Sobrien 340177298Sobrien * po/bfd.pot: Regenerated. 340277298Sobrien 340377298SobrienMon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com> 340477298Sobrien 340577298Sobrien * elf32-v850.c (hi16s_location): Replaced fixed size array with 340677298Sobrien linked list. 340777298Sobrien 340877298SobrienSun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com> 340977298Sobrien 341077298Sobrien * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper 341177298Sobrien element of the gotentry list for local symbols too. 341277298Sobrien (elf64_alpha_relocate_section): Unify local and global handling. 341377298Sobrien Assert that gotent->use_count > 0. 341477298Sobrien 341577298SobrienSat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com> 341677298Sobrien 341777298Sobrien * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and 341877298Sobrien update for file name changes of July 2, 1998. 341977298Sobrien (vms_vax_vec): New. 342077298Sobrien * configure: Rebuild. 342177298Sobrien 342277298SobrienThu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com> 342377298Sobrien 342477298Sobrien * po/bfd.pot: Regenerated. 342577298Sobrien 342677298SobrienTue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com> 342777298Sobrien 342877298Sobrien * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*. 342977298Sobrien * aclocal.m4, configure: regenerate 343077298Sobrien 343177298SobrienTue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com> 343277298Sobrien 343377298Sobrien * elf.c (prep_headers): Add support for bfd_arch_fr30. 343477298Sobrien 343577298SobrienTue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com> 343677298Sobrien 343777298Sobrien * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE, 343877298Sobrien BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value 343977298Sobrien was cached. 344077298Sobrien * aclocal.m4, configure: regenerated. 344177298Sobrien 344277298SobrienTue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com> 344377298Sobrien 344477298Sobrien * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and 344577298Sobrien R_D10V_GNU_VTENTRY relocs. 344677298Sobrien (elf_d10v_howto_table): Likewise. 344777298Sobrien (d10v_reloc_map d10v_reloc_map): Likewise. 344877298Sobrien (elf32_d10v_gc_mark_hook): New. 344977298Sobrien (elf32_d10v_gc_sweep_hook): New. 345077298Sobrien (elf32_d10v_check_relocs): New. 345177298Sobrien (elf32_d10v_relocate_section): New. 345277298Sobrien (elf_backend_relocate_section): Define. 345377298Sobrien (elf_backend_can_gc_sections): Define. 345477298Sobrien 345577298SobrienSat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de> 345677298Sobrien 345777298Sobrien * Makefile.am (BFD32_BACKENDS): Move vms files here... 345877298Sobrien (BFD64_BACKENDS): ...from here. 345977298Sobrien (BFD32_BACKENDS_CFILES): Move vms files here... 346077298Sobrien (BFD64_BACKENDS_CFILES): ...from here. 346177298Sobrien * Makefile.in: Rebuild. 346277298Sobrien 346377298SobrienWed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com> 346477298Sobrien 346577298Sobrien * Makefile.am: Add FR30 target. 346677298Sobrien * Makefile.in: Add FR30 target. 346777298Sobrien * archures.c: Add support for FR30. 346877298Sobrien * config.bfd: Add support for FR30. 346977298Sobrien * configure.in: Add support for FR30. 347077298Sobrien * reloc.c: Add support for FR30 relocations. 347177298Sobrien * targets.c: Add support for FR30 relocations. 347277298Sobrien * bfd-in2.h: Regenerate. 347377298Sobrien * configure: Regenerate. 347477298Sobrien * libbfd.h: Regenerate. 347577298Sobrien * cpu-fr30.c: New file. 347677298Sobrien * elf32-fr30.c: New file. 347777298Sobrien 347877298SobrienMon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com> 347977298Sobrien 348077298Sobrien * configure.in: detect cygwin* instead of cygwin32* 348177298Sobrien * configure: regenerate 348277298Sobrien 348377298SobrienSun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com) 348477298Sobrien 348577298Sobrien * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca, 348677298Sobrien use bfd_malloc and free instead and check return value from bfd_malloc. 348777298Sobrien 348877298SobrienSun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com> 348977298Sobrien 349077298Sobrien * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare. 349177298Sobrien * libbfd.h: Rebuild. 349277298Sobrien 349377298Sobrien * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out. 349477298Sobrien (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise. 349577298Sobrien (MIPS_TEXT_DYNSYM_SECN): Likewise. 349677298Sobrien (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash 349777298Sobrien section. 349877298Sobrien (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex 349977298Sobrien field. 350077298Sobrien (mips_elf_link_hash_table_create): Don't initialize 350177298Sobrien dynsym_sec_strindex. 350277298Sobrien (mips_elf_gc_mark_hook): Add default case to avoid warning. 350377298Sobrien (mips_elf_size_dynamic_sections): Generate a section symbol for 350477298Sobrien every output section. 350577298Sobrien (mips_elf_finish_dynamic_sections): Count all sections for 350677298Sobrien DT_MIPS_UNREFEXTNO. 350777298Sobrien (mips_elf_finish_dynamic_sections): Use dynamic symbols for all 350877298Sobrien output sections. 350977298Sobrien 351077298SobrienSun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au> 351177298Sobrien 351277298Sobrien * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots 351377298Sobrien for later PLT entries in large PLTs. 351477298Sobrien (ppc_elf_finish_dynamic_symbol): Allow for the extra slots. 351577298Sobrien 351677298SobrienSat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com) 351777298Sobrien 351877298Sobrien * elf32-ppc.c (ppc_elf_reload_section): Fix typo. 351977298Sobrien 352077298Sobrien1998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com> 352177298Sobrien 352277298Sobrien * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value. 352377298Sobrien * elflink.h (elf_collect_hash_codes): New function. This function is 352477298Sobrien called for each exported symbol and we compute the ELF hash value for 352577298Sobrien it. 352677298Sobrien (compute_bucket_value): New function. It is called from 352777298Sobrien size_dynamic_sections to determine the hash table size. When we are 352877298Sobrien optimizing a better, but slower, algorithm is used. 352977298Sobrien (size_dynamic_sections): Call compute_bucket_value. 353077298Sobrien 353177298Sobrien * elf.c (bfd_elf_hash): Optimize the hash function a bit. 353277298Sobrien 353377298SobrienMon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com> 353477298Sobrien 353577298Sobrien * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and 353677298Sobrien R_SH_GNU_VTENTRY. 353777298Sobrien (sh_elf_gc_mark_hook): New. 353877298Sobrien (sh_elf_gc_sweep_hook): New. 353977298Sobrien (sh_elf_check_relocs): New. 354077298Sobrien (elf_backend_can_gc_sections): Define. 354177298Sobrien 354277298SobrienMon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com> 354377298Sobrien 354477298Sobrien * acinclude.m4: undo previous gettext change 354577298Sobrien * aclocal.m4: rebuild with right version of aclocal. 354677298Sobrien 354777298SobrienMon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com> 354877298Sobrien 354977298Sobrien * acinclude.m4, aclocal.m4: move gettext-related fragments from 355077298Sobrien aclocal.m4 to acinclude.m4, so they don't get lost. 355177298Sobrien 355277298Sobrien * elfcore.h: rewrite for better corefile support. 355377298Sobrien * elf.c (elfcore_*): new functions. 355477298Sobrien * elf-bfd.h (elf_obj_tdata): new structure members. 355577298Sobrien * acconfig.h, acinclude.m4, configure.in: add feature-tests for 355677298Sobrien flavor of procfs. 355777298Sobrien * aclocal.m4, config.in, configure, Makefile.in: regenerated. 355877298Sobrien 355977298SobrienFri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com> 356077298Sobrien 356177298Sobrien * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT 356277298Sobrien and R_M32R_GNU_VTENTRY. 356377298Sobrien (elf_backend_can_gc_sections): Define. 356477298Sobrien (m32r_elf_check_relocs): New. 356577298Sobrien (m32r_elf_gc_mark_hook): New. 356677298Sobrien (m32r_elf_gc_sweep_hook): New. 356777298Sobrien (m32r_elf_relocate_section): Handle VT relocs. 356877298Sobrien 356977298SobrienMon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com> 357077298Sobrien 357177298Sobrien * coff-arm.c (arm_relocate_section): Remove redundant test. 357277298Sobrien 357377298Sobrien * bfd-in2.h (struct reloc_howto_struct): Improve comment to make 357477298Sobrien cleat that the 'bitsize' field is the size of the bitfield AFTER 357577298Sobrien relocation not before. 357677298Sobrien 357777298Sobrien * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield. 357877298Sobrien 357977298Sobrien * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo 358077298Sobrien relocs. 358177298Sobrien 358277298SobrienTue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com> 358377298Sobrien 358477298Sobrien * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and 358577298Sobrien R_SPARC_GNU_VTENTRY. 358677298Sobrien (elf32_sparc_check_relocs): Handle them. 358777298Sobrien (elf32_sparc_reloc_type_lookup): Likewise. 358877298Sobrien (elf32_sparc_relocate_section): Likewise. 358977298Sobrien (elf32_sparc_gc_mark_hook): New. 359077298Sobrien (elf32_sparc_gc_sweep_hook): New. 359177298Sobrien 359277298SobrienMon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com) 359377298Sobrien 359477298Sobrien * som.c (som_finish_writing): Perform some sanity checks when 359577298Sobrien writing an executable or shared library. 359677298Sobrien 359777298SobrienMon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com> 359877298Sobrien 359977298Sobrien * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line. 360077298Sobrien * configure.in (elf): Add dwarf1.lo. 360189857Sobrien * elf-bfd.h (elf_ob_tdata): Add dwarf1_find_line_info. 360277298Sobrien * elf.c (_bfd_elf_find_nearest_line): Add call to 360377298Sobrien _bfd_dwarf1_find_nearest_line. 360477298Sobrien * elf32-mips.c (_bfd_mips_elf_find_nearest_line): 360577298Sobrien Add call to _bfd_dwarf1_find_nearest_line. 360677298Sobrien * configure: Rebuilt. 360777298Sobrien 360877298SobrienMon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com> 360977298Sobrien 361077298Sobrien * elflink.h (elf_gc_sections): Do not allow garbage 361177298Sobrien collection if dynamic sections have been created. 361277298Sobrien 361377298SobrienMon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com> 361477298Sobrien 361577298Sobrien * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and 361677298Sobrien R_V850_GNU_VTENTRY. 361777298Sobrien (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs. 361877298Sobrien (v850_elf_perform_relocation): Likewise. 361977298Sobrien (v850_elf_final_link_relocate): Likewise. 362077298Sobrien (v850_elf_relocate_section): Likewise. 362177298Sobrien (v850_elf_gc_sweep_hook): New routine. 362277298Sobrien (v850_elf_gc_mark_hook): New routine. 362377298Sobrien (elf_backend_can_gc_sections): Define. 362477298Sobrien 362577298SobrienMon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com> 362677298Sobrien 362777298Sobrien * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume 362877298Sobrien that dynobj exists. 362977298Sobrien 363077298SobrienSun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu> 363177298Sobrien 363277298Sobrien * rs6000-core.c (rs6000coff_core_file_matches_executable_p): 363377298Sobrien Declare size as bfd_size_type. 363477298Sobrien (rs6000coff_get_section_contents): Declare count as bfd_size_type. 363577298Sobrien 363677298SobrienSun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com) 363777298Sobrien 363877298Sobrien * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch 363977298Sobrien structure. 364077298Sobrien * som.c (CPU_PA_RISC2_0): Define. 364177298Sobrien (_PA_RISC2_0_ID): Likewise. 364277298Sobrien (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed. 364377298Sobrien 364477298SobrienSun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com> 364577298Sobrien 364677298Sobrien * elflink.h (elf_link_add_object_symbols): When a versioned symbol 364777298Sobrien has a base which is already defined, only add the referenced 364877298Sobrien symbol to the dynamic symbol table if it is defined or referenced 364977298Sobrien by a regular file. 365077298Sobrien 365177298Sobrien * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs 365277298Sobrien correctly. 365377298Sobrien 365477298Sobrien1998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 365577298Sobrien 365677298Sobrien * elflink.h (elf_link_add_object_symbols): Undo last change. 365777298Sobrien 365877298SobrienWed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com> 365977298Sobrien 366077298Sobrien * elflink.h (elf_link_add_object_symbols): Don't record a dynamic 366177298Sobrien symbol for the indirect alias to a versioned symbol. 366277298Sobrien 366377298SobrienMon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com> 366477298Sobrien 366577298Sobrien * elf32-i386.c (elf32_i386_vtinherit_howto): New. 366677298Sobrien (elf32_i386_vtentry_howto): New. 366777298Sobrien (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto 366877298Sobrien or elf32_i386_vtinherit_howto on lookup. 366977298Sobrien 367077298SobrienSun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 367177298Sobrien 367277298Sobrien * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum 367377298Sobrien reloc_type. Rename R_68K__max to R_68K_max. 367477298Sobrien (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY 367577298Sobrien reloc. 367677298Sobrien 367777298SobrienSun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com> 367877298Sobrien 367977298Sobrien * libbfd.c (bfd_getb32): Rewrite expression to get better code. 368077298Sobrien (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise. 368177298Sobrien 368277298Sobrien * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not 368377298Sobrien after. 368477298Sobrien 368577298SobrienSat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com> 368677298Sobrien 368777298Sobrien * elflink.h (elf_link_add_object_symbols): Ensure that the warning 368877298Sobrien message has a null byte terminator. 368977298Sobrien 369077298SobrienFri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com> 369177298Sobrien 369277298Sobrien * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of 369377298Sobrien word subject to R_V850_32 relocation. 369477298Sobrien 369577298SobrienThu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com> 369677298Sobrien 369777298Sobrien * dwarf2.c: Add comment describing problem computing line numbers 369877298Sobrien for undefined symbols at link time. 369977298Sobrien 370077298SobrienThu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com> 370177298Sobrien 370277298Sobrien * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't 370377298Sobrien transform a defweak into a plt entry. 370477298Sobrien (elf64_alpha_calc_dynrel_sizes): Allow room for secondary 370577298Sobrien plt entry references to receive a RELATIVE reloc. 370677298Sobrien (elf64_alpha_finish_dynamic_symbol): Fill them in. 370777298Sobrien (elf64_alpha_relocate_section): Assert we don't overrun 370877298Sobrien the allocated relocation space. 370977298Sobrien 371077298SobrienWed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com> 371177298Sobrien 371277298Sobrien * elf.c (swap_out_syms): Always treat section symbols as 371377298Sobrien special, even if they are attached to a common section. 371477298Sobrien 371577298SobrienWed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com> 371677298Sobrien 371777298Sobrien * elf32-v850.c (v850_elf_symbol_processing): Move symbols in 371877298Sobrien sections with v850 common section attributes into named v850 371977298Sobrien common sections. 372077298Sobrien (v850_elf_add_symbol_hook): Move symbols in sections with v850 372177298Sobrien common section attributes into named v850 common sections. 372277298Sobrien 372377298SobrienWed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com> 372477298Sobrien 372577298Sobrien * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print 372677298Sobrien statement. 372777298Sobrien 372877298Sobrien1998-09-15 Geoff Keating <geoffk@ozemail.com.au> 372977298Sobrien 373077298Sobrien * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset 373177298Sobrien part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16 373277298Sobrien reloc to the wrong section a warning, not an error. .dynsbss 373377298Sobrien is not an output section, so there is no need to check for it. 373477298Sobrien 373577298SobrienTue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com> 373677298Sobrien 373777298Sobrien * elf-bfd.h: Add argument to elf_backend_get_symbol_type. 373877298Sobrien 373977298SobrienTue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com> 374077298Sobrien 374177298Sobrien * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type. 374277298Sobrien * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and 374377298Sobrien R_ARM_GNU_VTENTRY. 374477298Sobrien (elf32_arm_gc_mark_hook): New. 374577298Sobrien (elf32_arm_gc_sweep_hook): New. 374677298Sobrien (elf32_arm_check_relocs): New. 374777298Sobrien (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY 374877298Sobrien relocations. 374977298Sobrien (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY 375077298Sobrien relocations. 375177298Sobrien 375277298Sobrien1998-09-10 Geoff Keating <geoffk@ozemail.com.au> 375377298Sobrien 375477298Sobrien * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL, 375577298Sobrien assume there is no PLT or GOT. 375677298Sobrien 375777298SobrienWed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com> 375877298Sobrien 375977298Sobrien * elf32-arm.c (elf32_arm_find_nearest_line): New function: just 376077298Sobrien like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is 376177298Sobrien also accepted as a function symbol type. 376277298Sobrien 376377298SobrienMon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 376477298Sobrien 376577298Sobrien * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only. 376677298Sobrien 376777298SobrienSat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com> 376877298Sobrien 376977298Sobrien * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to 377077298Sobrien match definition of _bfd_gc_sections field. 377177298Sobrien * libbfd.h: Rebuild. 377277298Sobrien 377377298SobrienFri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com> 377477298Sobrien 377577298Sobrien * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust 377677298Sobrien the addend of a dynamic relocation referencing a section. 377777298Sobrien * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. 377877298Sobrien (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset. 377977298Sobrien 378077298SobrienThu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com> 378177298Sobrien 378277298Sobrien * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the 378377298Sobrien bed has a size_dynamic_sections routine before trying to use it. 378477298Sobrien 378577298SobrienMon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com> 378677298Sobrien 378777298Sobrien * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use 378877298Sobrien _bfd_elf_rel_vtable_reloc_fn. 378977298Sobrien 379077298SobrienMon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com> 379177298Sobrien 379277298Sobrien * Makefile.am: Add elf32-arm.c. 379377298Sobrien * Makefile.in: Rebuild. 379477298Sobrien * elf-bfd.h: Add elf_backend_get_symbol_type. 379577298Sobrien * elf.c (swap_out_syms): If defined, call 379677298Sobrien elf_backend_get_symbol_type. 379777298Sobrien * elf32-arm.c: Define elf_backend_get_symbol_type. 379877298Sobrien (elf32_arm_get_symbol-type): New routine. 379977298Sobrien (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC. 380077298Sobrien (bfd_elf32_arm_process_before_allocation): Change to 380177298Sobrien check for STT_ARM_TFUNC. 380277298Sobrien (elf32_arm_final_link_relocate): Likewise. 380377298Sobrien * elfxx-target.h: Add elf_backend_get_symbol_type. 380477298Sobrien 380577298SobrienFri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com> 380677298Sobrien 380777298Sobrien * archures.c (bfd_mach_alpha_ev[456]): New. 380877298Sobrien * cpu-alpha.c: Rework to match these types. 380977298Sobrien * bfd-in2.h: Rebuild. 381077298Sobrien 381177298SobrienFri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com> 381277298Sobrien 381377298Sobrien * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare. 381477298Sobrien * elf.c (_bfd_elf_rel_vtable_reloc_fn): New. 381577298Sobrien 381677298Sobrien * elf32-i386.c (elf_howto_table): Add vtable relocs. 381777298Sobrien (elf_i386_reloc_type_lookup): Recognize them. 381877298Sobrien (elf_i386_check_relocs): Pass them off to generic code. 381977298Sobrien (elf_i386_relocate_section): Ignore them. 382077298Sobrien (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New. 382177298Sobrien (elf_backend_can_gc_sections): True. 382277298Sobrien 382377298SobrienThu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com> 382477298Sobrien 382577298Sobrien * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL 382677298Sobrien before looking at owner field. 382777298Sobrien (elf32_arm_to_thumb_stub): Ditto. 382877298Sobrien (elf32_arm_relocate_section): Compute name before calling 382977298Sobrien elf32_arm_final_link_relocate(). 383077298Sobrien 383177298SobrienThu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com> 383277298Sobrien 383377298Sobrien * elf.c: comment and formatting cleanups. 383477298Sobrien * elfcore.h: ditto. 383577298Sobrien 383677298SobrienWed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com> 383777298Sobrien 383877298Sobrien * elfcode.h (elf_object_p): Reject files of header type ET_CORE 383977298Sobrien (core files are treated differently than object files). 384077298Sobrien * elf-bfd.h (_bfd_elf_write_corefile_contents, 384177298Sobrien bfd_elf_mkcorefile): declare. 384277298Sobrien * elfxx-target.h (_bfd_elf_write_corefile_contents, 384377298Sobrien bfd_elf_mkcorefile): add to bfd_target vector. 384477298Sobrien * elfcore.h (elf_core_file_p): save the program header table, 384577298Sobrien and set the bfd architecture from the elf file header. 384677298Sobrien * elf.c (bfd_elf_mkcorefile): new function. 384777298Sobrien (_bfd_elf_write_corefile_contents): new function. 384877298Sobrien (assign_file_positions_for_segments): add cases for handling 384977298Sobrien PT_NOTE segments. (assign_file_positions_except_relocs): 385077298Sobrien core files should be handled the same as exec files. 385177298Sobrien (prep_headers): identify core files as type ET_CORE. 385277298Sobrien (copy_private_bfd_data): identify the sections belonging to 385377298Sobrien the PT_NOTE segment. 385477298Sobrien 385577298Sobrien * elf32-sparc.c (elf32_sparc_final_write_processing): 385677298Sobrien add break statement to default case. 385777298Sobrien 385877298Sobrien1998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com> 385977298Sobrien 386077298Sobrien * elf32-ppc.c (ppc_elf_relocate_section): Check that output 386177298Sobrien section (not input) will be in sections ".sbss", ".sbss2", 386277298Sobrien ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL, 386377298Sobrien R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore 386477298Sobrien output_offset for correct evaluation of addend. 386577298Sobrien 386677298SobrienTue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com> 386777298Sobrien 386877298Sobrien * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking, 386977298Sobrien elf32_arm_allocate_interworking_sections and 387077298Sobrien elf32_arm_process_before_allocation. 387177298Sobrien 387277298SobrienTue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com> 387377298Sobrien 387477298Sobrien * bfd-in.h: Ammend prototype for 387577298Sobrien elf32_arm_process_before_allocation to remove surplus third 387677298Sobrien argument. 387777298Sobrien 387877298Sobrien * bfd-in2.h: Regenerate. 387977298Sobrien 388077298SobrienSat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com> 388177298Sobrien 388277298Sobrien * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols. 388377298Sobrien 388477298SobrienFri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com> 388577298Sobrien 388677298Sobrien * aoutx.h (aout_link_input_section_ext): Use the relocation already 388777298Sobrien calculated for RELOC_SPARC_REV32 case. 388877298Sobrien 388977298SobrienThu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com> 389077298Sobrien 389177298Sobrien * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking, 389277298Sobrien elf32_arm_allocate_interworking_sections and 389377298Sobrien elf32_arm_process_before_allocation. 389477298Sobrien * bfd-in2.h: Regenerated. 389577298Sobrien * elf32-arm.c Define elf32_arm_link_hash_table. 389677298Sobrien (insert_thumb_branch): New routine. 389777298Sobrien (find_thumb_glue): New routine. 389877298Sobrien (find_arm_glue): New routine. 389977298Sobrien (record_arm_to_thumb_glue): New routine. 390077298Sobrien (record_thumb_to_arm_glue): New routine. 390177298Sobrien (elf32_arm_link_hash_table_create): New routine. 390277298Sobrien (elf32_arm_get_bfd_for_interworking): New routine. 390377298Sobrien (elf32_arm_allocate_interworking_sections) New routine. 390477298Sobrien (elf32_arm_process_before_allocation) New routine. 390577298Sobrien (elf32_thumb_to_arm_stub): New routine. 390677298Sobrien (elf32_arm_to_thumb_stub): New routine. 390777298Sobrien (elf32_print_private_bfd_data): Fix typo. 390877298Sobrien (elf32_arm_final_link_relocate): Add argument sym_sec. 390977298Sobrien Check for branches to thumb symbols in case R_ARM_PC24. 391077298Sobrien Check for branches to arm symbols in case R_ARM_THM_PC22. 391177298Sobrien (elf32_arm_relocate_section): Pass symbol section to 391277298Sobrien elf32_arm_final_link_relocate. 391377298Sobrien 391477298SobrienWed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au> 391577298Sobrien 391677298Sobrien * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT 391777298Sobrien entries unless the symbol is defined in the executable; in 391877298Sobrien particular, undefined weak symbols get a PLT entry. 391977298Sobrien 392077298SobrienWed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com> 392177298Sobrien 392277298Sobrien * libaout.h: Remove nested comment to avoid warning. 392377298Sobrien 392477298SobrienWed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com> 392577298Sobrien 392677298Sobrien * elf32-arm.c (elf32_arm_final_link_relocate): Rework 392777298Sobrien R_ARM_PC24 relocation. 392877298Sobrien 392977298SobrienTue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com> 393077298Sobrien 393177298Sobrien * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused 393277298Sobrien argument is_local. Add argument sym_flags. Check sym_flags 393377298Sobrien in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case. 393477298Sobrien (elf32_arm_relocate_section): Don't pass local sym and pass 393577298Sobrien sym_flags to elf32_arm_final_link_relocate. 393677298Sobrien 393777298SobrienMon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com> 393877298Sobrien 393977298Sobrien * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change 394077298Sobrien to not count too few relocs for dynamicly linked executables. 394177298Sobrien 394277298SobrienMon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com> 394377298Sobrien 394477298Sobrien * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider 394577298Sobrien symbols without a dynamic index dynamic. Consider all weak 394677298Sobrien symbols dynamic. 394777298Sobrien (elf64_alpha_strip_section_from_output): Don't assume 1-1 394877298Sobrien correspondance between input and output sections. 394977298Sobrien 395077298SobrienMon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 395177298Sobrien 395277298Sobrien * elflink.h (elf_gc_common_finalize_got_offsets): For backends 395377298Sobrien that use a .got.plt section start the got offset at zero. 395477298Sobrien 395577298SobrienMon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com> 395677298Sobrien 395777298Sobrien * ieee.c (ieee_write_processor): Correct the processor ID written 395877298Sobrien out for bfd_arch_m68k, accommodating change of March 25. 395977298Sobrien 396077298SobrienSun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com> 396177298Sobrien 396277298Sobrien * elf32-arm.c (elf32_arm_final_link_relocate): Rework 396377298Sobrien R_ARM_THM_RPC22 relocations. 396477298Sobrien 396577298SobrienSat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com> 396677298Sobrien 396777298Sobrien * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols 396877298Sobrien are always dynamic. 396977298Sobrien (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE 397077298Sobrien .got relocs in -Bsymbolic shared objects. 397177298Sobrien 397277298SobrienWed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com> 397377298Sobrien 397477298Sobrien * elf32-arm.c: Add private flags to ELF header. 397577298Sobrien (elf32_arm_print_private_bfd_data): New Function. 397677298Sobrien (elf32_arm_set_private_flags): New Function. 397777298Sobrien (elf32_arm_copy_private_flags): New Function. 397877298Sobrien (elf32_arm_merge_private_bfd_data): New Function. 397977298Sobrien 398077298SobrienMon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com> 398177298Sobrien 398277298Sobrien * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against 398377298Sobrien a local symbol. 398477298Sobrien (elf32_sparc_relocate_section): Likewise. 398577298Sobrien 398677298SobrienSun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com> 398777298Sobrien 398877298Sobrien * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the 398977298Sobrien .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_. 399077298Sobrien (ppc_elf_relocate_section): Pull sgot and splt search to the start 399177298Sobrien of the function. Recognize no .plt as static linking. 399277298Sobrien 399377298Sobrien1998-08-01 Ulrich Drepper <drepper@cygnus.com> 399477298Sobrien 399577298Sobrien * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass 399677298Sobrien ".liblist" string through gettext. 399777298Sobrien 399877298SobrienFri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com> 399977298Sobrien 400077298Sobrien * Makefile.am: Add support for elf32-arm.lo. 400177298Sobrien * Makefile.in: Rebuild. 400277298Sobrien * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs. 400377298Sobrien (thumb-*-elf): Define targ_defvec and targ_selvecs. 400477298Sobrien * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec. 400577298Sobrien * configure: Regenerate. 400677298Sobrien * elf.c: (prep_headers): Support arch_type of EM_ARM. 400777298Sobrien * targets.c: Support new targets bfd_elf32_bigarm_vec and 400877298Sobrien bfd_target bfd_elf32_littlearm_vec. 400977298Sobrien * elf32-arm.c: New file. 401077298Sobrien 401177298SobrienTue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com> 401277298Sobrien 401377298Sobrien * libaout.h (M_SPARCLITE_LE): New machine. 401477298Sobrien * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE. 401577298Sobrien * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE. 401677298Sobrien (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le 401777298Sobrien * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32. 401877298Sobrien (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le 401977298Sobrien (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support. 402077298Sobrien * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map, 402177298Sobrien elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32 402277298Sobrien * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to 402377298Sobrien be BFD_RELOC_SPARC_REV32. 402477298Sobrien * reloc.c: Ditto. 402577298Sobrien * config.bfd (sparc86x-*-aout): New 402677298Sobrien 402777298SobrienFri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com> 402877298Sobrien 402977298Sobrien * linker.c (_bfd_generic_final_link): Allocate NULL symbol before 403077298Sobrien actually mapping the output sections. 403177298Sobrien 403277298SobrienFri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com) 403377298Sobrien 403477298Sobrien 403577298Sobrien * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry. 403677298Sobrien (mn10300_elf_reloc_map): Similarly. 403777298Sobrien (mn10300_elf_final_link_relocate): Handle R_MN10300_24. 403877298Sobrien 403977298SobrienFri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com> 404077298Sobrien 404177298Sobrien * elf32-mips.c (elf_mips_howto_table): Add reloc types used on 404277298Sobrien Irix 6. 404377298Sobrien (bfd_elf32_bfd_reloc_type_lookup): Add default case. 404477298Sobrien * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with 404577298Sobrien elf_mips_reloc_type defined in elf/mips.h. 404677298Sobrien 404777298Sobrien1998-07-24 Ulrich Drepper <drepper@cygnus.com> 404877298Sobrien 404977298Sobrien * elf64-mips.c: Remove reloc_type definition completely. It's now 405077298Sobrien in elf/mips.h. 405177298Sobrien 405277298SobrienThu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com> 405377298Sobrien 405477298Sobrien * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations 405577298Sobrien as they are defined in elf/mips.h now. 405677298Sobrien 405777298SobrienThu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com) 405877298Sobrien 405977298Sobrien 406077298Sobrien * Re-add lost change: 406177298Sobrien * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field 406277298Sobrien "movm_stack_size". 406377298Sobrien (mn10300_elf_relax_section): Include stack space for register saves 406477298Sobrien in the imm8 field of a "call" instruction. 406577298Sobrien (compute_function_info): Determine how much stack is allocated by 406677298Sobrien the movm instruction. Fix typo. 406777298Sobrien (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size. 406877298Sobrien 406977298SobrienThu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com> 407077298Sobrien 407177298Sobrien * elf32-sparc.c (elf_backend_got_header_size): Define as 4. 407277298Sobrien * elf64-sparc.c (elf_backend_got_header_size): Define as 8. 407377298Sobrien 407477298Sobrien1998-07-22 Ulrich Drepper <drepper@cygnus.com> 407577298Sobrien 407677298Sobrien * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type. 407777298Sobrien 407877298SobrienWed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com> 407977298Sobrien 408077298Sobrien * elf32-hppa.h: Let ELF header define the enum containing the 408177298Sobrien external reloc numbers. 408277298Sobrien * elf32-i386.h: Likewise. 408377298Sobrien 408477298Sobrien1998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com> 408577298Sobrien 408677298Sobrien * elf-m10300.c: Let ELF header now define the macros to get the enum. 408777298Sobrien * elf32-mips.c: Likewise. 408877298Sobrien * elf32-ppc.c: Likewise. 408977298Sobrien 409077298SobrienWed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com> 409177298Sobrien 409277298Sobrien * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in 409377298Sobrien bfd_coff_set_symbol_class(), in order to avoid K&R compatability 409477298Sobrien prblems. 409577298Sobrien * bfd-in.h: Regenerate. 409677298Sobrien * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class' 409777298Sobrien parameter to 'unsigned int' to avoid K&R compatability problems. 409877298Sobrien 409977298SobrienWed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com> 410077298Sobrien 410177298Sobrien * ieee.c (ieee_find_nearest_line): Change filename_ptr and 410277298Sobrien functionname_ptr to be const. Change line_ptr to be unsigned. 410377298Sobrien 410477298Sobrien * coffcode.h (coff_link_output_has_begun): Simplify handling when 410577298Sobrien macro is not defined. Change second parameter from bfd_link_info 410677298Sobrien to coff_final_link_info. Add prototype. 410777298Sobrien (coff_final_link_postscript): Simplify handling when macro is not 410877298Sobrien defined. Add prototype. 410977298Sobrien 411077298Sobrien1998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com> 411177298Sobrien 411277298Sobrien * elf-mn10300.c: Before include system specific ELF header define 411377298Sobrien START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS. 411477298Sobrien * elf32-mips.c: Likewise. 411577298Sobrien * elf32-ppc.c: Likewise. 411677298Sobrien 411777298SobrienWed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com> 411877298Sobrien 411977298Sobrien * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c 412077298Sobrien temporary patch over to elf64-mips.c as well. 412177298Sobrien 412277298Sobrien1998-07-21 Ulrich Drepper <drepper@cygnus.com> 412377298Sobrien 412477298Sobrien * elf32-mips.c (reloc_type): Temporarily disable definition of 412577298Sobrien standard relocation since they are now defined in elf/mips.h. 412677298Sobrien 412777298SobrienTue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com> 412877298Sobrien 412977298Sobrien * elf-m10200.c (mn10200_elf_final_link_relocate): 413077298Sobrien Modify range test for case R_MN10200_8. 413177298Sobrien 413277298Sobrien * elf-m10300.c (mn10300_elf_final_link_relocate): 413377298Sobrien Modify range test for case R_MN10300_8. 413477298Sobrien 413577298SobrienMon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com> 413677298Sobrien 413777298Sobrien * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size. 413877298Sobrien * elf32-i386.c (elf_backend_got_header_size): Define. 413977298Sobrien (elf_backend_plt_header_size): Define. 414077298Sobrien * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise. 414177298Sobrien * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise. 414277298Sobrien * elfxx-target.h: Provide a default of zero. 414377298Sobrien * elflink.c (_bfd_elf_create_got_section): Use got_header_size. 414477298Sobrien * elflink.h (elf_gc_common_finalize_got_offsets): Likewise. 414577298Sobrien 414677298Sobrien * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT 414777298Sobrien entry from an executable, even if the plt refcount goes to 0. 414877298Sobrien 414977298SobrienMon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 415077298Sobrien 415177298Sobrien * aoutx.h (NAME(aout,find_nearest_line)): Also remember the 415277298Sobrien directory name at the line number. 415377298Sobrien 415477298Sobrien * elf.c (_bfd_elf_find_nearest_line): Also consider symbols 415577298Sobrien with an unspecified type. 415677298Sobrien 415777298SobrienWed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com> 415877298Sobrien 415977298Sobrien * sunos.c: Add undef of valid to avoid problem on SunOS. 416077298Sobrien 416177298SobrienTue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com> 416277298Sobrien 416377298Sobrien * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize. 416477298Sobrien 416577298SobrienTue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 416677298Sobrien 416777298Sobrien * elf32-m68k.c (elf_m68k_check_relocs): Also reference count 416877298Sobrien R_68K_PCxx and R_68K_xx relocations. Make sure that 416977298Sobrien ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference. 417077298Sobrien (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and 417177298Sobrien R_68K_xx relocations. 417277298Sobrien (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol 417377298Sobrien that has no plt entry. 417477298Sobrien (elf_m68k_relocate_section): Ignore the plt offset in a static 417577298Sobrien link. 417677298Sobrien * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for 417777298Sobrien an ignored symbol. 417877298Sobrien (elf_gc_common_finalize_got_offsets): Set the got offsets also in 417977298Sobrien a static link. 418077298Sobrien 418177298Sobrien * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc 418277298Sobrien types. 418377298Sobrien (howto_table, reloc_map): Add entries for them. 418477298Sobrien (elf_m68k_check_relocs): Handle them. Implement reference 418577298Sobrien counting for got and plt entries. 418677298Sobrien (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions. 418777298Sobrien (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt 418877298Sobrien symbols. 418977298Sobrien (rtype_to_howto_rel, elf_info_to_howto_rel): Delete. 419077298Sobrien (elf_m68k_relocate_section): Handle the new reloc types. 419177298Sobrien (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook, 419277298Sobrien elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define. 419377298Sobrien * elflink.h (elf_link_add_object_symbols): When creating an 419477298Sobrien indirect reference for symbol versioning also copy the plt 419577298Sobrien offset. 419677298Sobrien (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT 419777298Sobrien flag also reset the plt offset. 419877298Sobrien (elf_link_assign_sym_version): Likewise. 419977298Sobrien (elf_gc_common_finalize_got_offsets): Increment the got offset by 420077298Sobrien the size of the entry in bytes. 420177298Sobrien (elf_gc_allocate_got_offsets): Likewise. 420277298Sobrien 420377298SobrienTue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com> 420477298Sobrien 420577298Sobrien * elflink.h (elf_gc_sections): Return true rather than falling off 420677298Sobrien the bottom. 420777298Sobrien 420877298Sobrien * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not 420977298Sobrien xmalloc. 421077298Sobrien 421177298SobrienMon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com> 421277298Sobrien 421377298Sobrien * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a 421477298Sobrien comment describing when it should be enabled. 421577298Sobrien Changed definition of USER_LABEL_PREFIX to "", to fall into line 421677298Sobrien with GCC sources. 421777298Sobrien 421877298SobrienMon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com> 421977298Sobrien 422077298Sobrien * ieee.c (ieee_slurp_external_symbols): Handle call optimization 422177298Sobrien information ATN records. 422277298Sobrien 422377298SobrienFri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com> 422477298Sobrien 422577298Sobrien * ieee.c (ieee_slurp_external_symbols): Select an appropriate 422677298Sobrien section for an absolute symbol in a fully linked file. Based on 422777298Sobrien patch from Christian Holland <CHolland@de.lucent.com>. 422877298Sobrien 422977298SobrienWed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de> 423077298Sobrien 423177298Sobrien * coff-m88k.c (m88k_special_reloc): Don't lose the information 423277298Sobrien that a symbol is undefined. 423377298Sobrien 423477298SobrienTue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com) 423577298Sobrien 423677298Sobrien * som.c (som_bfd_gc_sections): Define. 423777298Sobrien 423877298SobrienMon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com> 423977298Sobrien 424077298Sobrien * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about 424177298Sobrien overflows in ARM_26D patches, since they have already been 424277298Sobrien implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk> 424377298Sobrien 424477298SobrienSat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com> 424577298Sobrien 424677298Sobrien * coffcode.h (coff_write_object_contents): If we have any long 424777298Sobrien section names, call coff_write_symbols even if there are no 424877298Sobrien symbols. 424977298Sobrien 425077298SobrienFri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com> 425177298Sobrien 425277298Sobrien * elf.c (copy_private_bfd_data): Only set phdr_included once for a 425377298Sobrien PT_LOAD segment, rather than only setting it once for the entire 425477298Sobrien file. 425577298Sobrien 425677298Sobrien * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA, 425777298Sobrien rather than ignoring every phdr with a p_paddr of 0, ignore all 425877298Sobrien the phdrs if they all have a p_paddr of 0. 425977298Sobrien 426077298Sobrien * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr 426177298Sobrien section was discarded from the link. 426277298Sobrien 426377298SobrienFri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk> 426477298Sobrien 426577298Sobrien * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number. 426677298Sobrien 426777298SobrienFri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk> 426877298Sobrien 426977298Sobrien * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with 427077298Sobrien floating point operations. 427177298Sobrien 427277298SobrienThu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com> 427377298Sobrien 427477298Sobrien * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global 427577298Sobrien function symbols. 427677298Sobrien 427777298SobrienThu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de> 427877298Sobrien 427977298Sobrien Merge of vax/vms (read-only) support 428077298Sobrien * configure.com: Support Vax target. 428177298Sobrien * makefile.vms: Support Vax target. 428277298Sobrien * vms.h: Renamed from evax.h, merged vax/vms (read-only) support. 428377298Sobrien * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only) 428477298Sobrien support. 428577298Sobrien * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only) 428677298Sobrien support. 428777298Sobrien * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only) 428877298Sobrien support. 428977298Sobrien * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only) 429077298Sobrien support. 429177298Sobrien * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only) 429277298Sobrien support. 429377298Sobrien * libbfd.c (real_read): Use unbuffered read on VMS/Vax. 429477298Sobrien * targets.c (bfd_target_ovax_flavour): New flavour. 429577298Sobrien (vms_alpha_vec): Renamed from evax_alpha_vec. 429677298Sobrien (vms_vax_vec): New. 429777298Sobrien (target_vector): Update accordingly. 429877298Sobrien * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not 429977298Sobrien evax_alpha_vec. 430077298Sobrien (vax*-*-*vms*): New target. 430177298Sobrien * Makefile.am: Update for renamed files. Rebuild dependencies. 430277298Sobrien * bfd-in2.h: Rebuild. 430377298Sobrien * configure.in, Makefile.in, aclocal.m4: Rebuild. 430477298Sobrien 430577298SobrienThu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com> 430677298Sobrien 430777298Sobrien Based on patch from Matt Semersky <matts@scd.hp.com>: 430877298Sobrien * linker.c (_bfd_generic_final_link): Force a trailing NULL 430977298Sobrien pointer on abfd->outsymbols. 431077298Sobrien (generic_add_output_symbol): Handle NULL sym parameter. 431177298Sobrien 431277298SobrienWed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com> 431377298Sobrien 431477298Sobrien * elf.c (copy_private_bfd_data): Add support for changing VMA or 431577298Sobrien LMA of sections. 431677298Sobrien 431777298SobrienWed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com> 431877298Sobrien 431977298Sobrien * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons 432077298Sobrien when handling 32 bit immediate relocs. 432177298Sobrien * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise. 432277298Sobrien 432377298SobrienTue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com) 432477298Sobrien 432577298Sobrien * section.c (STD_SECTION): Account for recently added gc_mark 432677298Sobrien field in struct asection. 432777298Sobrien 432877298Sobrien * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function. 432977298Sobrien (bfd_elf32_bfd_merge_private_bfd_data): Define. 433077298Sobrien 433177298SobrienThu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com> 433277298Sobrien 433377298Sobrien ELF Section-level Garbage Collection: 433477298Sobrien * bfd.c (bfd_gc_sections): New. 433577298Sobrien * aout-adobe.c: Hook to default implementation. 433677298Sobrien * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise. 433777298Sobrien * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise. 433889857Sobrien * evax-alpha.c: Likewise. 433989857Sobrien * i386msdos.c: Likewise. 434089857Sobrien * i386os9k.c: Likewise. 434189857Sobrien * ieee.c: Likewise. 434277298Sobrien * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise. 434377298Sobrien * tekhex.c, versados.c: Likewise. 434477298Sobrien * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New. 434577298Sobrien * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections. 434677298Sobrien 434777298Sobrien * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New. 434877298Sobrien (bfd_generic_gc_sections): New. 434977298Sobrien * section.c (SEC_KEEP): New. 435077298Sobrien (asection): Add gc_mark member. 435177298Sobrien 435277298Sobrien * elfcode.h (elf_gc*): New name remappings. 435377298Sobrien * elflink.h (elf_link_input_bfd): Don't set contents on stabs 435477298Sobrien sections to be excluded. 435577298Sobrien (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New. 435677298Sobrien (elf_gc_propogate_vtable_entries_used): New. 435777298Sobrien (elf_gc_smash_unused_vtentry_relocs): New. 435877298Sobrien (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New. 435977298Sobrien (elf_gc_common_finalize_got_offsets): New. 436077298Sobrien (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New. 436177298Sobrien * elfxx-target.h: Add and default gc hooks. 436277298Sobrien 436377298Sobrien * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset 436477298Sobrien for unions. 436577298Sobrien (struct elf_obj_tdata): Likewise for local_got_offsets. 436677298Sobrien * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses. 436777298Sobrien * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise. 436877298Sobrien * elf64-sparc.c, elflink.h: Likewise. 436977298Sobrien 437077298Sobrien * elf-bfd.h (struct elf_link_hash_entry): Add vtable members. 437177298Sobrien (ELF_LINK_HASH_MARK): Define. 437277298Sobrien (struct elf_backend_data): Add GC hooks. 437377298Sobrien * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members. 437477298Sobrien 437577298Sobrien * elf-m10300.c (mn10300_elf_check_relocs): New. 437677298Sobrien (mn10300_elf_gc_mark_hook): New. 437777298Sobrien (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New. 437877298Sobrien (elf_mn10300_howto, mn10300_reloc_map): Handle them. 437977298Sobrien (mn10300_elf_final_link_relocate): Likewise. 438077298Sobrien (mn10300_elf_relocate_section): Likewise. 438177298Sobrien (elf_backend_can_gc_sections): Define. 438277298Sobrien * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New. 438377298Sobrien (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New. 438477298Sobrien (bfd_elf32_bfd_reloc_type_lookup): Handle them. 438577298Sobrien (mips_info_to_howto_rel): Likewise. 438677298Sobrien (mips_elf_relocate_section): Likewise. 438777298Sobrien (mips_elf_check_relocs): Likewise. 438877298Sobrien (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New. 438977298Sobrien (elf_backend_can_gc_sections): Define. 439077298Sobrien * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New. 439177298Sobrien (ppc_elf_howto_raw): Handle them. 439277298Sobrien (ppc_elf_reloc_type_lookup): Likewise. 439377298Sobrien (ppc_elf_relocate_section): Likewise. 439477298Sobrien (ppc_elf_check_relocs): Reference count .got and .plt entries. 439577298Sobrien Handle new vtable relocs. 439677298Sobrien (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries. 439777298Sobrien (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New. 439877298Sobrien (elf_backend_can_gc_sections): Define. 439977298Sobrien 440077298SobrienFri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com) 440177298Sobrien 440277298Sobrien * archures.c (bfd_mach_mn10300): Define. 440377298Sobrien * elf-m10300.c: Include elf/mn10300.h 440477298Sobrien (elf_mn10300_mach): New function. 440577298Sobrien (_bfd_mn10300_elf_final_write_processing): Likewise. 440677298Sobrien (_bfd_mn10300_elf_object_p): Likewise. 440777298Sobrien (elf_backendfinal_write_processing): Define. 440877298Sobrien (elf_backend_object_p): Likewise. 440977298Sobrien 441077298SobrienThu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com> 441177298Sobrien 441277298Sobrien * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S 441377298Sobrien relocation. 441477298Sobrien 441577298SobrienWed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com> 441677298Sobrien 441777298Sobrien * elflink.h (elf_bfd_final_link): Loop over input_bfds using the 441877298Sobrien link_next field, not the next field. 441977298Sobrien 442077298SobrienSun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com> 442177298Sobrien 442277298Sobrien * elf.c (map_sections_to_segments): Check the section address 442377298Sobrien against the phdr size both with and without a modulo of 442477298Sobrien maxpagesize. 442577298Sobrien 442677298SobrienFri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com> 442777298Sobrien 442877298Sobrien * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a 442977298Sobrien linker created empty input section if the output section has the 443077298Sobrien same name. 443177298Sobrien 443277298Sobrien * elflink.h (elf_link_output_extsym): Print an error message if 443377298Sobrien _bfd_elf_section_from_bfd_section fails. 443477298Sobrien 443577298Sobrien * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on 443677298Sobrien failure. 443777298Sobrien 443877298SobrienTue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com> 443977298Sobrien 444077298Sobrien * elf.c (copy_private_bfd_data): Improve handling of Solaris 444177298Sobrien native linker output. Avoid putting an empty section in more than 444277298Sobrien one segment. 444377298Sobrien 444477298SobrienFri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com> 444577298Sobrien 444677298Sobrien * po/Make-in (all-yes): If maintainer mode, depend on .pot file. 444777298Sobrien ($(PACKAGE).pot): Unconditionally depend on POTFILES. 444877298Sobrien 444977298SobrienFri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com> 445077298Sobrien 445177298Sobrien * elf.c (swap_out_syms): New arg relocatable_p. 445277298Sobrien Don't add section VMA to symbols for relocatable output. 445377298Sobrien (_bfd_elf_compute_section_file_positions): Update call to 445477298Sobrien swap_out_syms. 445577298Sobrien 445677298SobrienMon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com> 445777298Sobrien 445877298Sobrien * elf32-v850.c (v850_elf_perform_relocation): Make comparisons 445977298Sobrien against 'addend' be signed rather than unsigned. 446077298Sobrien 446177298SobrienSat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com> 446277298Sobrien 446377298Sobrien * elf32-m32r.c: Add prototyps for static functions. 446477298Sobrien 446577298Sobrien * coff-arm.c: Add prototypes for static functions. 446677298Sobrien 446777298SobrienFri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com> 446877298Sobrien 446977298Sobrien * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the 447077298Sobrien LMA is used to order sections in a segment. 447177298Sobrien 447277298Sobrien * elf32-v850.c: Add prototypes for static functions. 447377298Sobrien Change type of addend parameter to bfd_vma in various functions. 447477298Sobrien 447577298SobrienFri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com> 447677298Sobrien 447777298Sobrien * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use 447877298Sobrien complain_overflow_signed instead of complain_overflow_bitfield. 447977298Sobrien 448077298SobrienFri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 448177298Sobrien 448277298Sobrien * elf.c (elf_map_symbols): Don't add section VMA to symbol value 448377298Sobrien when comparing against 0. 448477298Sobrien 448577298SobrienWed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com> 448677298Sobrien 448777298Sobrien * Makefile.am (config.status): New target. 448877298Sobrien * Makefile.in: Rebuild. 448977298Sobrien 449077298SobrienWed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com> 449177298Sobrien 449277298Sobrien * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an 449377298Sobrien error if previous object endianness doesn't match current object. 449477298Sobrien 449577298SobrienTue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com> 449677298Sobrien 449777298Sobrien * elf32-v850.c (v850_elf_print_private_bfd_data): Call 449877298Sobrien _bfd_elf_print_private)bfd_data (). 449977298Sobrien 450077298SobrienTue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com> 450177298Sobrien 450277298Sobrien * elflink.h (elf_merge_symbol): Don't always set type_change_ok 450377298Sobrien and size_change_ok. 450477298Sobrien (elf_link_add_object_symbols): Set type_change_ok and 450577298Sobrien size_change_ok before calling elf_merge_symbol. 450677298Sobrien 450777298Sobrien * elf32-mips.c (mips_elf_relocate_section): If we issue an 450877298Sobrien undefined symbol error, don't also issue an overflow error. 450977298Sobrien 451077298SobrienTue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au> 451177298Sobrien 451277298Sobrien * elf32-ppc.c (ppc_elf_relocate_section): The target of an 451377298Sobrien R_PPC_LOCAL24PC relocation should be local; if not, print an error 451477298Sobrien message instead of crashing. 451577298Sobrien 451677298SobrienMon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il> 451777298Sobrien 451877298Sobrien * archures.c (bfd_mach_cpu32): Define. 451977298Sobrien (bfd_default_scan): Add case for 68060. Fix 68332 case to use 452077298Sobrien bfd_mach_cpu32. 452177298Sobrien * cpu-m68k.c (arch_info_struct): Add m68k:cpu32. 452277298Sobrien * ieee.c: Include <ctype.h>. 452377298Sobrien (ieee_object_p): Parse out process ID string to make it more 452477298Sobrien likely to be acceptable for bfd_scan_arch. 452577298Sobrien * bfd-in2.h: Rebuild. 452677298Sobrien 452777298SobrienMon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com> 452877298Sobrien 452977298Sobrien * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call 453077298Sobrien _bfd_elf_print_private_bfd_data() so that the program header will 453177298Sobrien be displayed. 453277298Sobrien 453377298SobrienMon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com> 453477298Sobrien 453577298Sobrien * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than 453677298Sobrien 0x68. Reindent. Add some comments. 453777298Sobrien 453877298SobrienFri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com> 453977298Sobrien 454077298Sobrien * elf.c (copy_private_bfd_data): Adjust physical address of 454177298Sobrien segment in output BFD to contain LMAs of its sections. 454277298Sobrien 454377298SobrienTue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com> 454477298Sobrien 454577298Sobrien * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map, 454677298Sobrien elf32_sparc_relocate_section): Added R_SPARC_32LE for little 454777298Sobrien endian data 32 bit relocations. 454877298Sobrien (elf32_sparc_merge_private_bfd_data): Check if linking little 454977298Sobrien endian objects with big endian objects. 455077298Sobrien (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le. 455177298Sobrien (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags. 455277298Sobrien * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE. 455377298Sobrien * reloc.c: Same. 455477298Sobrien * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le 455577298Sobrien * archures.c (bfd_mach_sparc_sparclite_le): New. 455677298Sobrien * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New. 455777298Sobrien 455877298SobrienThu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com> 455977298Sobrien 456077298Sobrien * peicode.h (add_data_entry): Fix precedence of operators in if () 456177298Sobrien statement. 456277298Sobrien 456377298SobrienTue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com> 456477298Sobrien 456577298Sobrien * bfd-in.h: Move over patch to bfd-in2.h. 456677298Sobrien 456777298Sobrien * reloc.c (bfd_check_overflow): Add casts before shifts which may 456877298Sobrien not fit in 32 bits. 456977298Sobrien (_bfd_relocate_contents): Likewise. 457077298Sobrien 457177298SobrienMon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com> 457277298Sobrien 457377298Sobrien * peicode.h (add_data_entry): If the section has no private data 457477298Sobrien then do not create a Data Dictionary entry for it. 457577298Sobrien 457677298SobrienMon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com> 457777298Sobrien 457877298Sobrien * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes. 457977298Sobrien (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots, 458077298Sobrien elf64_alpha_size_got_sections): Rewrite, handling multiple got 458177298Sobrien subsections during relaxation more correctly. 458277298Sobrien 458377298SobrienThu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com> 458477298Sobrien 458577298Sobrien * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class (). 458677298Sobrien Add extra argument to bfd_arm_process_before_allocation (). 458777298Sobrien * bfd-in.h: Reflect changes made in bfd-in2.h. 458877298Sobrien * coffgen.c (bfd_coff_set_symbol_class): New function. Set the 458977298Sobrien coff class of a BFD symbol. 459077298Sobrien * coff-arm.c: Add support for interworking between Thumb code and 459177298Sobrien non-interworking aware ARM code. 459277298Sobrien 459377298SobrienSun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com) 459477298Sobrien 459577298Sobrien * po/Make-in (install-info): New target. 459677298Sobrien 459777298SobrienThu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com> 459877298Sobrien 459977298Sobrien * filemode.c: Remove; not used. 460077298Sobrien 460177298Sobrien If sysdep.h includes a header file, don't include it again: 460277298Sobrien * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or 460377298Sobrien <errno.h>. 460477298Sobrien * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than 460577298Sobrien <sysdep.h>. 460677298Sobrien * archive.c: Don't include <string.h> or <errno.h>. 460789857Sobrien * evax-alpha.c: Don't include <stdio.h>. 460877298Sobrien * evax-egsd.c: Likewise. 460977298Sobrien * evax-etir.c: Likewise. 461077298Sobrien * evax-misc.c: Likewise. 461177298Sobrien * evax-emh.c: Likewise. Also, don't include <sys/types.h>. 461277298Sobrien * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or 461377298Sobrien <errno.h>. 461477298Sobrien * hpux-core.c: Likewise. 461577298Sobrien * netbsd-core.c: Likewise. 461677298Sobrien * som.c: Likewise. 461777298Sobrien * libbfd.c: Don't include <sys/types.h>. 461877298Sobrien * nlmcode.h: Don't include <string.h>. 461977298Sobrien * osf-core.c: Don't include <string.h> or <stdio.h>. 462077298Sobrien * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>, 462177298Sobrien <errno.h>, or <unistd.h>. 462277298Sobrien * trad-core.c: Don't include <stdio.h> or <sys/types.h>. 462377298Sobrien 462477298SobrienThu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de> 462577298Sobrien 462677298Sobrien * configure.com: If the version number can not be found in 462777298Sobrien configure.in, set it to "unknown" rather than "2.8.1". 462877298Sobrien 462977298SobrienWed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com> 463077298Sobrien 463177298Sobrien * elf32-mips.c (elf_mips_mach): New. 463277298Sobrien (_bfd_mips_elf_object_p): Use elf_mips_mach. 463377298Sobrien (_bfd_mips_elf_final_write_processing): Use the names 463477298Sobrien of machines, rather than the numbers. Set both the ARCH 463577298Sobrien and MACH in e_flags. Handle a few more specific machines. 463677298Sobrien (_bfd_mips_elf_merge_private_bfd_data): Merge both 463777298Sobrien EF_MIPS_ARCH and EF_MIPS_MACH. 463877298Sobrien 463977298SobrienTue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com> 464077298Sobrien 464177298Sobrien * syms.c (bfd_is_local_label): Revert last change. 464277298Sobrien * srec.c (srec_write_symbols): Discard debugging symbols. 464377298Sobrien 464477298SobrienTue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com> 464577298Sobrien 464677298Sobrien * som.c: Include <ctype.h>. 464777298Sobrien * som.h: Don't include sysdep.h. 464877298Sobrien 464977298SobrienTue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com> 465077298Sobrien 465177298Sobrien * libbfd.h: Rebuilt. 465277298Sobrien * libbfd-in.h: Removed gettext includes and defines. 465377298Sobrien * sysdep.h: Moved gettext-related includes and defines here. 465477298Sobrien 465577298SobrienTue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com> 465677298Sobrien 465777298Sobrien * srec.c (srec_write_symbols): Use bfd_is_local_label rather than 465877298Sobrien an ad-hoc test. Kill bogus #if 0 code. 465977298Sobrien * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local. 466077298Sobrien 466177298SobrienMon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com> 466277298Sobrien 466377298Sobrien * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address 466477298Sobrien when generating a normal executable for a symbol defined in a 466577298Sobrien regular file. When copying a reloc into the output file, adjust 466677298Sobrien the addend for a PC relative reloc against a global symbol. 466777298Sobrien 466877298SobrienMon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com> 466977298Sobrien 467077298Sobrien * libbfd.h: Rebuilt. 467177298Sobrien * libbfd-in.h (_): Define as dgettext. 467277298Sobrien 467377298SobrienMon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com> 467477298Sobrien 467577298Sobrien * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma, 467677298Sobrien not signed. 467777298Sobrien * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS 467877298Sobrien when declaring parameter types. 467977298Sobrien (pe_saved_coff_bfd_copy_private_bfd_data): Likewise. 468077298Sobrien 468177298SobrienWed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com> 468277298Sobrien 468377298Sobrien * config.bfd: If we include any ELF targets in targ_defvec and/or 468477298Sobrien targ_selvecs, then add the generic ELF targets to targ_selvecs. 468577298Sobrien * elf32-gen.c (dummy): New static const variable. 468677298Sobrien (elf_generic_info_to_howto): New static function. 468777298Sobrien (elf_generic_info_to_howto_rel): New static function. 468877298Sobrien (elf_info_to_howto): Define as elf_generic_info_to_howto. 468977298Sobrien (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel. 469077298Sobrien * elf64-gen.c: Same changes as elf32-gen.c. 469177298Sobrien * elfcode.h (elf_object_p): For the generic target, ignore a 469277298Sobrien failure of bfd_default_set_arch_mach. Fix indentation a bit. 469377298Sobrien 469477298SobrienTue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com> 469577298Sobrien 469677298Sobrien * configure.in (WIN32LIBADD): Add -lintl on cygwin32. 469777298Sobrien * configure: Rebuild. 469877298Sobrien 469977298SobrienTue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com) 470077298Sobrien 470177298Sobrien * config.bfd: Update OSR5/Unixware patterns. 470277298Sobrien 470377298SobrienMon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com> 470477298Sobrien 470577298Sobrien * elf.c (assign_file_positions_for_segments): Allow for holes 470677298Sobrien between sections added by a link script. 470777298Sobrien 470877298SobrienMon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com> 470977298Sobrien 471077298Sobrien * configure.in: Change version number to 2.9.4 471177298Sobrien * configure: Rebuild. 471277298Sobrien 471377298Sobrien Based on patch from H.J. Lu <hjl@gnu.org>: 471477298Sobrien * elf.c (bfd_elf_get_bfd_needed_list): New function. 471577298Sobrien * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare. 471677298Sobrien * bfd-in2.h: Rebuild. 471777298Sobrien 471877298SobrienSat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com> 471977298Sobrien 472077298Sobrien * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other. 472177298Sobrien Change all users. 472277298Sobrien 472377298SobrienSat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com> 472477298Sobrien 472577298Sobrien * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members. 472677298Sobrien (elf64_alpha_relax_section): Fill them in. 472777298Sobrien (elf64_alpha_relax_opt_call): Implement more than a stub. 472877298Sobrien (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default 472977298Sobrien alignment on .scommon. 473077298Sobrien (elf64_alpha_merge_gots): Merge use counts as well. 473177298Sobrien 473277298SobrienSat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com> 473377298Sobrien 473477298Sobrien * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section 473577298Sobrien for calculating a local symbol's address. 473677298Sobrien (elf64_alpha_calc_got_offsets): Skip entries with 0 use count. 473777298Sobrien Set the .got's cooked size as well as the raw size. 473877298Sobrien 473977298SobrienFri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com> 474077298Sobrien 474177298Sobrien * elf32-v850.c (v850_elf_print_private_bfd_data): Add 474277298Sobrien internationalisation of printed information. 474377298Sobrien 474477298Sobrien * coff-arm.c (coff_arm_print_private_bfd_data): Add 474577298Sobrien internationalisation of printed information. 474677298Sobrien 474777298SobrienFri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com> 474877298Sobrien 474977298Sobrien * syms.c (struct indexentry): Change directory_name, file_name, 475077298Sobrien and function_name fields to char *. 475177298Sobrien (struct stab_find_info): Change cached_file_name field to char *. 475277298Sobrien 475377298SobrienThu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com> 475477298Sobrien 475577298Sobrien * peicode.h (dir_names): Add missing N_() macros to dir_names array. 475677298Sobrien 475777298SobrienWed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com> 475877298Sobrien 475977298Sobrien * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir). 476077298Sobrien 476177298SobrienWed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com> 476277298Sobrien 476377298Sobrien * Makefile.am (install-data-local): Make $(includedir). 476477298Sobrien * Makefile.in: Rebuild. 476577298Sobrien 476677298SobrienWed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com> 476777298Sobrien 476877298Sobrien * libbfd-in.h: Use `gettext' and not `dgettext' for now. 476977298Sobrien 477077298SobrienWed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com> 477177298Sobrien 477277298Sobrien * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl. 477377298Sobrien * Makefile.in: Rebuild. 477477298Sobrien 477577298Sobrien * bfd-in2.h: Rebuild for Nick's changes. 477677298Sobrien 477777298SobrienTue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com> 477877298Sobrien 477977298Sobrien * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last 478077298Sobrien change wrt length == max_namelen. 478177298Sobrien 478277298SobrienTue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com> 478377298Sobrien 478477298Sobrien * Many files: Added gettext invocations around user-visible 478577298Sobrien strings. 478677298Sobrien * libbfd-in.h: Added gettext includes and defines. 478777298Sobrien * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY, 478877298Sobrien HAVE_LC_MESSAGES): Define. 478977298Sobrien * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and 479077298Sobrien po/Makefile. 479177298Sobrien * Makefile.am (SUBDIRS): Added po. 479277298Sobrien (POTFILES): New macro. 479377298Sobrien (po/POTFILES.in): New target. 479477298Sobrien (SOURCE_HFILES): New macro. 479577298Sobrien (HFILES): Use it. 479677298Sobrien * po/Make-in, po/POTFILES.in, po/bfd.pot: New files. 479777298Sobrien 479877298SobrienTue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 479977298Sobrien 480077298Sobrien * elfcore.h (bfd_prstatus): Copy core_prstatus from the first 480177298Sobrien NT_PRSTATUS note section encountered, it contains the status of 480277298Sobrien the currently executing thread when the core file was written. 480377298Sobrien 480477298SobrienTue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com> 480577298Sobrien 480677298Sobrien * libcoff.h: Add extra parameter to 480777298Sobrien bfd_coff_link_output_has_begun overrideable function. 480877298Sobrien * cofflink.c: Pass extra parameter to 480977298Sobrien bfd_coff_link_output_has_begun function. 481077298Sobrien * bfd-in.h: Add prototypes for exported ARM interworking 481177298Sobrien functions. 481277298Sobrien * peicode.h: ARM specific code reorganised to conform to BFD 481377298Sobrien coding conventions. 481477298Sobrien * coffcode.h: ARM specific code reorganised to conform to BFD 481577298Sobrien coding conventions. 481677298Sobrien * coff-arm.c: Code reorganised to conform to the BFD coding 481777298Sobrien conventions. Global variables have been moved into an ARM 481877298Sobrien specific hash table structure and a new function: 481977298Sobrien bfd_arm_get_bfd_for_interworking() has been created which is 482077298Sobrien called from the linker scripts. 482177298Sobrien 482277298SobrienTue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com> 482377298Sobrien 482477298Sobrien * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test. 482577298Sobrien 482677298Sobrien * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from 482777298Sobrien elf64_alpha_relax_find_reloc_ofs. Changed all callers. 482877298Sobrien (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss. 482977298Sobrien (elf64_alpha_size_got_sections): Don't merge .got sections twice. 483077298Sobrien 483177298SobrienSat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com> 483277298Sobrien 483377298Sobrien * config.bfd: Added sparc86x support. 483477298Sobrien 483577298SobrienFri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com> 483677298Sobrien 483777298Sobrien * elf32-mips.c (mips_elf_relocate_section): Do not complain about 483877298Sobrien an out of range pc-relative jump/call to an undefined weak symbol. 483977298Sobrien 484077298SobrienThu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com> 484177298Sobrien 484277298Sobrien * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp 484377298Sobrien comparisons signed. 484477298Sobrien 484577298SobrienThu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com> 484677298Sobrien 484777298Sobrien * archive.c (bfd_generic_archive_p): If a slurp subroutine returns 484877298Sobrien an error other than bfd_error_system_call, set the error to 484977298Sobrien bfd_error_wrong_format. 485077298Sobrien 485177298Sobrien * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add 485277298Sobrien bfd_elf32_powerpcle_vec. 485377298Sobrien 485477298Sobrien * elf.c (copy_private_bfd_data): If all the p_paddr fields in the 485577298Sobrien program segments are zero, don't set p_paddr_valid. 485677298Sobrien 485777298SobrienWed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com> 485877298Sobrien 485977298Sobrien * elf64-alpha.c: Initial implementation of relaxation -- 486077298Sobrien (struct alpha_elf_link_hash_entry): Add use_count member. 486177298Sobrien (elf64_alpha_check_relocs): Initialize and increment it. 486277298Sobrien (elf64_alpha_can_merge_gots): Check it when considering merging. 486377298Sobrien (elf64_alpha_merge_gots): Drop entries with zero use. 486477298Sobrien (elf64_alpha_calc_got_offsets_for_symbol): Likewise. 486577298Sobrien (elf64_alpha_always_size_sections): Split out got sizing ... 486677298Sobrien (elf64_alpha_size_got_sections): ... here. New function. 486777298Sobrien (elf64_alpha_relax_find_reloc_ofs): New function. 486877298Sobrien (elf64_alpha_relax_with_lituse): Likewise. 486977298Sobrien (elf64_alpha_relax_without_lituse): Likewise. 487077298Sobrien (elf64_alpha_relax_opt_call): Likewise. 487177298Sobrien (elf64_alpha_relax_section): Likewise. 487277298Sobrien (elf64_alpha_add_symbol_hook): Likewise. 487377298Sobrien (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16. 487477298Sobrien (elf64_alpha_relocate_section): Likewise. 487577298Sobrien (bfd_elf64_bfd_relax_section): Define. 487677298Sobrien (elf_backend_add_symbol_hook): Likewise. 487777298Sobrien 487877298SobrienWed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com> 487977298Sobrien 488077298Sobrien * elf.c (prep_headers): Use new EM_SPARCV9 symbol. 488177298Sobrien * elf64-sparc.c (ELF_MACHINE_CODE): Likewise. 488277298Sobrien (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64. 488377298Sobrien 488477298SobrienWed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com> 488577298Sobrien 488677298Sobrien * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32. 488777298Sobrien * configure: Rebuild. 488877298Sobrien 488977298SobrienMon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com> 489077298Sobrien 489177298Sobrien * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@. 489277298Sobrien (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@. 489377298Sobrien * configure.in: Define and substitute WIN32LDFLAGS and 489477298Sobrien WIN32LIBADD. 489577298Sobrien * aclocal.m4: Rebuild with new libtool. 489677298Sobrien * configure, Makefile.in: Rebuild. 489777298Sobrien 489877298SobrienFri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com> 489977298Sobrien 490077298Sobrien * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol 490177298Sobrien before any other symbols in the same section. 490277298Sobrien 490377298SobrienWed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com> 490477298Sobrien 490577298Sobrien * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF 490677298Sobrien systems. 490777298Sobrien 490877298SobrienTue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com> 490977298Sobrien 491077298Sobrien * dwarf2.c (comp_unit): Move it earlier in the source. Add 491177298Sobrien addr_size. 491277298Sobrien (read_address): Replace 'bdf*' argument with 'comp_unit*' argument. 491377298Sobrien Use addr_size for address size, rather than sizeof(bfd_vma). 491477298Sobrien (read_attribute): Replace bdf* argument with 'comp_unit*' argument. 491577298Sobrien Fix call to read_address. 491677298Sobrien (decode_line_info): Replace bdf* argument with 'comp_unit*' argument. 491777298Sobrien Scrap other unneeded arguments. Fix call to read_address. 491877298Sobrien (scan_unit_for_functions): Fix call to read_attribute. 491977298Sobrien (parse_comp_unit): We now handle more values for addr_size. 492077298Sobrien Set addr_size in unit. Fix call to read_attribute and 492177298Sobrien decode_line_info. 492277298Sobrien 492377298SobrienTue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com> 492477298Sobrien 492577298Sobrien * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null. 492677298Sobrien 492777298SobrienTue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com> 492877298Sobrien 492977298Sobrien * archures.c (bfd_default_scan): Add m68k cases back to default 493077298Sobrien switch, reverting patch of March 25, since IEEE support depends 493177298Sobrien upon them. 493277298Sobrien 493377298SobrienMon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com> 493477298Sobrien 493577298Sobrien * Makefile.am (diststuff): New target. 493677298Sobrien * Makefile.in: Rebuild. 493777298Sobrien 493877298SobrienSun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com) 493977298Sobrien 494077298Sobrien * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of 494177298Sobrien som_offset when we have an extended name table. 494277298Sobrien 494377298SobrienSun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org> 494477298Sobrien 494577298Sobrien * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before 494677298Sobrien trying to copy it. 494777298Sobrien * Makefile.in: Rebuild. 494877298Sobrien 494977298SobrienFri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 495077298Sobrien 495177298Sobrien * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section 495277298Sobrien symbols when creating a shared library. 495377298Sobrien (elf_m68k_adjust_dynindx): New function, used by above code. 495477298Sobrien (elf_m68k_finish_dynamic_sections): Initialize the section 495577298Sobrien symbols. 495677298Sobrien (elf_m68k_relocate_section): Change abort to BFD_ASSERT. 495777298Sobrien 495877298SobrienWed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com> 495977298Sobrien 496077298Sobrien * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant 496177298Sobrien value 11. 496277298Sobrien 496377298SobrienWed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 496477298Sobrien 496577298Sobrien * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix 496677298Sobrien assertion. 496777298Sobrien 496877298SobrienTue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com) 496977298Sobrien 497077298Sobrien * elf-m10300.c (mn10300_elf_relax_section): Correctly handle 497177298Sobrien absolute symbols. 497277298Sobrien 497377298SobrienMon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com> 497477298Sobrien 497577298Sobrien * configure.in: Set version to 2.9.1. 497677298Sobrien * configure: Rebuild. 497777298Sobrien 497877298Sobrien * Branched binutils 2.9. 497977298Sobrien 498077298SobrienMon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org> 498177298Sobrien 498277298Sobrien * syms.c (ENABLE_CACHING): Define. 498377298Sobrien (struct indexentry): Define. 498477298Sobrien (struct stab_cache): Remove. 498577298Sobrien (cmpindexentry): New static function. 498677298Sobrien (struct stab_find_info): Add new fields: indextable, 498777298Sobrien indextablesize, cached_indexentry, cached_offset, cached_stab, and 498877298Sobrien cached_file_name. Remove fields: file_cache, function_cache, and 498977298Sobrien line_cache. 499077298Sobrien (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted 499177298Sobrien index table and search it. 499277298Sobrien 499377298SobrienMon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com> 499477298Sobrien 499577298Sobrien * elf.c (_bfd_elf_copy_private_section_data): Call 499677298Sobrien copy_private_bfd_data once we've seen the last SEC_ALLOC section. 499777298Sobrien 499877298Sobrien * cpu-mips.c: Remove trailing comma at end of enumeration list. 499977298Sobrien 500077298SobrienSat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com> 500177298Sobrien 500277298Sobrien * coff-arm.c: Define all globally visible variables and functions 500377298Sobrien only when COFF_WITH_PE is not defined. 500477298Sobrien * configure.in (armpe_little_vec, armpe_big_vec): Add 500577298Sobrien coff-arm.lo. 500677298Sobrien * configure: Rebuild. 500777298Sobrien 500877298SobrienFri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com> 500977298Sobrien 501077298Sobrien Fix some gcc -Wall warnings: 501177298Sobrien * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings. 501277298Sobrien * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise. 501377298Sobrien * archures.c (bfd_default_scan): Likewise. 501477298Sobrien * bfd.c (bfd_scan_vma): Likewise. 501577298Sobrien * binary.c (mangle_name): Likewise 501677298Sobrien * coff-arm.c (aoutarm_fix_pcrel_26): Likewise. 501777298Sobrien * coff-sh.c (sh_relocate_section): Likewise. 501877298Sobrien * coff-stgo32.c (create_go32_stub): Likewise. 501977298Sobrien * coffcode.h (coff_slurp_line_table): Likewise. 502077298Sobrien * ecoff.c (_bfd_ecoff_write_armap): Likewise. 502177298Sobrien * elf.c (_bfd_elf_make_section_from_shdr): Likewise. 502277298Sobrien (assign_file_positions_for_segments): Likewise. 502377298Sobrien * elf32-mips.c (mips_elf_relocate_section): Likewise. 502477298Sobrien * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise. 502577298Sobrien * oasys.c (oasys_write_sections): Likewise. 502677298Sobrien * ppcboot.c (ppcboot_object_p): Likewise. 502777298Sobrien (mangle_name): Likewise. 502877298Sobrien * riscix.c (riscix_fix_pcrel_26): Likewise. 502977298Sobrien * srec.c (srec_scan): Likewise. 503077298Sobrien * stabs.c (_bfd_write_section_stabs): Likewise. 503177298Sobrien * sunos.c (sunos_add_dynamic_symbols): Likewise. 503277298Sobrien * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to 503377298Sobrien switch. Declare parameters for function pointers. 503477298Sobrien * archures.c (bfd_default_scan): Add braces to avoid ambiguous if 503577298Sobrien warning. 503677298Sobrien * elf.c (elf_sort_sections): Likewise. 503777298Sobrien * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation. 503877298Sobrien Add default cases to switches. 503977298Sobrien (coff_arm_relocate_section): Remove unused local variables. 504077298Sobrien Always set rstat. 504177298Sobrien (coff_arm_bfd_set_private_flags): Change flag variable to type 504277298Sobrien flagword. 504377298Sobrien * coff-mips.c (mips_relocate_section): Initialize use_lo. 504477298Sobrien * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int. 504577298Sobrien (dump_toc): Change cat to const, and initialize it. 504677298Sobrien * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff. 504777298Sobrien * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise. 504877298Sobrien (sh_elf_relocate_section): Initialize r_symndx. 504977298Sobrien * coffcode.h (coff_compute_section_file_positions): Only declare 505077298Sobrien old_sofar if ALIGN_SECTIONS_IN_FILE. 505177298Sobrien (coff_write_object_contents): Initialize csym. 505277298Sobrien * coffgen.c (coff_pointerize_aux): Make type and class unsigned. 505377298Sobrien * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to 505477298Sobrien switch. 505577298Sobrien * dwarf2.c: Include libiberty.h. 505677298Sobrien (read_2_signed_bytes, read_4_signed_bytes): Comment out. 505777298Sobrien (decode_line_info): Remove unused local variables. 505877298Sobrien * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise. 505977298Sobrien (m32r_elf_relocate_section): Likewise. 506077298Sobrien * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise. 506177298Sobrien (v850_elf_reloc): Likewise. 506277298Sobrien * elf-bfd.h (elf_linker_section_t): Make alignment unsigned. 506377298Sobrien (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned. 506477298Sobrien * elf.c (assign_file_positions_for_segments): Always set adjust. 506577298Sobrien * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully 506677298Sobrien parenthesize expression. 506777298Sobrien * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h. 506877298Sobrien (m32r_elf_object_p): Return a value. 506977298Sobrien (m32r_elf_print_private_bfd_data): Change fprintf format string. 507077298Sobrien * elf32-mips.c (mips_elf_final_link): Initialize last. 507177298Sobrien (mips_elf_finish_dynamic_sections): Initialize last and dindx. 507277298Sobrien * elf32-v850.c (v850_elf_object_p): Return a value. 507377298Sobrien (v850_elf_print_private_bfd_data): Change fprintf format string. 507477298Sobrien * elfcode.h (elf_slurp_symbol_table): Change symcount and i to 507577298Sobrien unsigned long. 507677298Sobrien * elflink.h (elf_link_add_object_symbols): Change vernum to 507777298Sobrien unsigned int, and initialize it. Change fprintf format string. 507877298Sobrien (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type 507977298Sobrien when setting or comparing to soname_indx. 508077298Sobrien (elf_create_pointer_linker_section): Change num_symbols to 508177298Sobrien unsigned int. 508277298Sobrien * libcoff-in.h (coff_data_type): Change flags to flagword. 508377298Sobrien * peicode.h (pe_print_idata): Initialize idx. Change j to 508477298Sobrien bfd_size_type. Initialize hint_member. Remove useless test to 508577298Sobrien time_stamp. 508677298Sobrien (pe_print_edata): Change num_functions and num_names in struct 508777298Sobrien EDT_type to unsigned long. Remove cast. Change fprintf format 508877298Sobrien string. 508977298Sobrien * ppcboot.c (ppcboot_object_p): Change i to size_t. 509077298Sobrien * reloc.c (bfd_get_reloc_size): Change return type to unsigned 509177298Sobrien int. 509277298Sobrien * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to 509377298Sobrien int *. Update uses. Change j to long. 509477298Sobrien * bfd-in2.h, libcoff.h: Rebuild. 509577298Sobrien 509677298SobrienFri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com> 509777298Sobrien 509877298Sobrien * elf32-v850.c Remove definition of USE_REL. 509977298Sobrien (v850_elf_info_to_howto_rela): New function. 510077298Sobrien (v850_elf_perform_relocation): Renamed from 510177298Sobrien v850_elf_store_addend_in_insn. Removed replace argument. 510277298Sobrien (v850_elf_reloc): store the relocation in the addend field instead 510377298Sobrien of the insn. 510477298Sobrien (v850_elf_final_link_relocate): Now calls 510577298Sobrien v850_elf_perform_relocation. 510677298Sobrien (v850_elf_relocate_section): Remove code to generate REL 510777298Sobrien relocations. 510877298Sobrien 510977298SobrienThu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com> 511077298Sobrien 511177298Sobrien * coffcode.h (coff_new_section_hook): Set the type and storage 511277298Sobrien class in the native symbol information allocated for a new section 511377298Sobrien symbol. 511477298Sobrien 511577298SobrienThu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com> 511677298Sobrien 511777298Sobrien * peicode.h: Chain together calls to 511877298Sobrien coff_bfd_copy_private_bfd_data and 511977298Sobrien coff_bfd_print_private_bfd_data. 512077298Sobrien 512177298Sobrien * coff-arm.c: Add prototypes for 512277298Sobrien coff_arm_bfd_print_private_bfd_data and 512377298Sobrien coff_arm_bfd_copy_private_bfd_data. 512477298Sobrien 512577298SobrienWed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com> 512677298Sobrien 512777298Sobrien * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE 512877298Sobrien build. 512977298Sobrien 513077298Sobrien * peicode.h: Call arm-coff private data functions after handling 513177298Sobrien pe private data. 513277298Sobrien 513377298Sobrien * coff-arm.c: Turn statics into globals so that they can be shared 513477298Sobrien both pe and pei backends. 513577298Sobrien 513677298SobrienWed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com> 513777298Sobrien 513877298Sobrien * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than 513977298Sobrien plain numbers. 514077298Sobrien (sunos_write_object_contents): Likewise. 514177298Sobrien * aoutx.h (NAME(aout,machine_type)): Likewise. 514277298Sobrien * coffcode.h (coff_set_arch_mach_hook): Likewise. 514377298Sobrien 514477298SobrienWed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 514577298Sobrien 514677298Sobrien * archures.c (bfd_mach_m68*): Add definitions for various m68k 514777298Sobrien variants. 514877298Sobrien (bfd_default_scan): Remove m68k special cases. 514977298Sobrien * bfd-in2.h: Rebuild. 515077298Sobrien * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather 515177298Sobrien than plain numbers. 515277298Sobrien * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise. 515377298Sobrien * cpu-m68k.c (arch_info_struct): Likewise. Add entry for 515477298Sobrien m68k:68000. 515577298Sobrien (bfd_m68k_arch): Set mach field to zero to signal no explicit 515677298Sobrien selection, change printable_name to just "m68k" and make that the 515777298Sobrien default instead of m68k:68020. 515877298Sobrien 515977298Sobrien * aout-tic30.c (NAME): Define this to avoid multiple definitions 516077298Sobrien from aoutx.h. 516177298Sobrien (MY_get_section_contents): Define as aout_32_get_section_contents 516277298Sobrien rather than NAME(aout,get_section_contents). 516377298Sobrien 516477298Sobrien * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast. 516577298Sobrien 516677298Sobrien * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha 516777298Sobrien and call bfd_default_set_arch_mach to do the real work. 516877298Sobrien 516977298SobrienWed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com> 517077298Sobrien 517177298Sobrien * bout.c (BALX): Include return register g14 as part of the insn. 517277298Sobrien (BALX_MASK): New. 517377298Sobrien (calljx_callback): Use it. 517477298Sobrien 517577298SobrienWed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com> 517677298Sobrien 517777298Sobrien * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma. 517877298Sobrien * libbfd.h: Rebuild. 517977298Sobrien 518077298Sobrien * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change 518177298Sobrien byte_count to unsigned int. 518277298Sobrien (mn10300_elf_relax_section): Initialize internal_relocs. Remove 518377298Sobrien unused local variables. 518477298Sobrien 518577298Sobrien * evax-alpha.c (evax_close_and_cleanup): Remove unused local 518677298Sobrien variables er and er1. 518777298Sobrien 518877298Sobrien * cpu-v850.c: Include <ctype.h>. 518977298Sobrien (scan): Case isdigit argument to unsigned char. 519077298Sobrien 519177298Sobrien From Yan Meroth <YAN.MEROTH@st.com>: 519277298Sobrien * ihex.c (ihex_scan): Add extbase variable so that getting an 519377298Sobrien extended linear address record does not ignore any previous 519477298Sobrien extended address. 519577298Sobrien (ihex_write_object_contents): When writing out an extended linear 519677298Sobrien address record, zero out any previous extended address. 519777298Sobrien 519877298SobrienTue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de> 519977298Sobrien 520077298Sobrien * ieee.c (do_one): Check section before dereferencing it. 520177298Sobrien (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr. 520277298Sobrien (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive. 520377298Sobrien 520477298SobrienMon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com> 520577298Sobrien 520677298Sobrien * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF. 520777298Sobrien 520877298SobrienMon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com> 520977298Sobrien 521077298Sobrien * coff-arm.c: Add interworking functions to pe backends. 521177298Sobrien 521277298SobrienFri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com> 521377298Sobrien 521477298Sobrien * configure.in: Use AM_DISABLE_SHARED. 521577298Sobrien * aclocal.m4, configure: Rebuild with libtool 1.2. 521677298Sobrien 521777298SobrienFri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com> 521877298Sobrien 521977298Sobrien * coff-arm.c (coff_arm_relocate_section): Better error messages 522077298Sobrien when interowrking conflucts occur. Courtesy of Jonathan Walton 522177298Sobrien and Tony Thompson. 522277298Sobrien (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted 522377298Sobrien relocations. Patch courtesy of Jonathan Walton and Tony 522477298Sobrien Thompson. 522577298Sobrien 522677298SobrienFri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com> 522777298Sobrien 522877298Sobrien * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert 522977298Sobrien part of Feb 22 change controling when to override the existing 523077298Sobrien symbol with the .plt entry. 523177298Sobrien 523277298SobrienWed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com> 523377298Sobrien 523477298Sobrien * config.bfd (targ_cpu): Add thumb-pe target. 523577298Sobrien 523677298Sobrien * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external 523777298Sobrien functions in PE build. 523877298Sobrien 523977298SobrienSun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com> 524077298Sobrien 524177298Sobrien * config.bfd (sparclite-*-elf*): Added. 524277298Sobrien 524377298SobrienMon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com> 524477298Sobrien 524577298Sobrien * configure.in: Add elf.lo to elf shell variable. 524677298Sobrien * Makefile.am (BFD_LIBS): Remove elf.lo. 524777298Sobrien (BFD_LIBS_CFILES): Remove elf.c. 524877298Sobrien (BFD32_BACKENDS): Add elf.lo. 524977298Sobrien (BFD32_BACKENDS_CFILES): Add elf.c. 525077298Sobrien * configure, Makefile.in: Rebuild. 525177298Sobrien 525277298Sobrien1998-02-23 15:53 Richard Henderson <rth@cygnus.com> 525377298Sobrien 525477298Sobrien * elf32-i386.c (elf_i386_relocate_section): A pc-relative 525577298Sobrien relocation against a non-local symbol should not have a dynamic 525677298Sobrien relocation. 525777298Sobrien 525877298SobrienMon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com> 525977298Sobrien 526077298Sobrien * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in 526177298Sobrien COFF filehdr flags. 526277298Sobrien (pe_print_private_bfd_data): Print PE flags. From Mikey 526377298Sobrien <jeffdb@netzone.com>. 526477298Sobrien 526577298SobrienSun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com> 526677298Sobrien 526777298Sobrien * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create 526877298Sobrien a plt entry when we can determine that we authoritatively define 526977298Sobrien the symbol. 527077298Sobrien 527177298SobrienSun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com> 527277298Sobrien 527377298Sobrien * configure.in (COREFILE selection): Remove sparc-*-linux*. They 527477298Sobrien don't actually use trad-core, but a SunOS-style core file handled 527577298Sobrien by gdb directly. 527677298Sobrien * hosts/sparclinux.h: Remove. 527777298Sobrien 527877298SobrienWed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com> 527977298Sobrien 528077298Sobrien * peicode.h (pe_print_idata): If there is no .idata section, look 528177298Sobrien for the import tables in some other section. Make the initial 528277298Sobrien label line up better with the data. Print the import address 528377298Sobrien table even if there is no import name table. If the import 528477298Sobrien address table holds actual addresses, print them. 528577298Sobrien 528677298SobrienTue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com> 528777298Sobrien 528877298Sobrien * libbfd.c (bfd_seek): If fseek fails, save errno around call to 528977298Sobrien bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not 529077298Sobrien bfd_error_system_call. 529177298Sobrien 529277298SobrienFri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com> 529377298Sobrien 529477298Sobrien * Makefile.am (AUTOMAKE_OPTIONS): Define. 529577298Sobrien * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e. 529677298Sobrien 529777298Sobrien From H.J. Lu <hjl@gnu.org>: 529877298Sobrien * Makefile.am (libbfd_la_LDFLAGS): Define. 529977298Sobrien * Makefile.in: Rebuild. 530077298Sobrien 530177298SobrienThu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com> 530277298Sobrien 530377298Sobrien NetBSD patches from Gordon W. Ross <gwr@mc.com>: 530477298Sobrien * netbsd.h (MACHTYPE_OK): Define. 530577298Sobrien (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when 530677298Sobrien calling N_SET_MACHTYPE, rather than having a switch. 530777298Sobrien * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD, 530877298Sobrien and M_ALPHA_NETBSD. 530977298Sobrien * i386netbsd.c (MACHTYPE_OK): Don't define. 531077298Sobrien (DEFAULT_MID): Define. 531177298Sobrien * m68k4knetbsd.c (SEGMENT_SIZE): Don't define. 531277298Sobrien (MACHTYPE_OK): Don't define. 531377298Sobrien (DEFAULT_MID): Define. 531477298Sobrien * m68knetbsd.c: (MACHTYPE_OK): Don't define. 531577298Sobrien (DEFAULT_MID): Define. 531677298Sobrien * ns32knetbsd.c (MACHTYPE_OK): Don't define. 531777298Sobrien (DEFAULT_MID): Define. 531877298Sobrien * sparcnetbsd.c (MACHTYPE_OK): Don't define. 531977298Sobrien (DEFAULT_MID): Define. 532077298Sobrien 532177298Sobrien NetBSD patches from Gordon W. Ross <gwr@mc.com>: 532277298Sobrien * vaxnetbsd.c: New file. 532377298Sobrien * netbsd-core.c: Clean up. Remove unused macros. Use netbsd 532477298Sobrien rather than netbsd_core. 532577298Sobrien * targets.c (vaxnetbsd_vec): Declare. 532677298Sobrien (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is 532777298Sobrien defined, add netbsd_core_vec. 532877298Sobrien * configure.in: Set COREFILE for alpha*-*-netbsd* and 532977298Sobrien powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is 533077298Sobrien netbsd-core.lo, set COREFLAG to -DNETBSD_CORE. 533177298Sobrien * config.bfd (alpha*-*-netbsd*): New target. 533277298Sobrien * Makefile.am: Rebuild dependencies. 533377298Sobrien (BFD32_BACKENDS): Add vaxnetbsd.lo. 533477298Sobrien (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c. 533577298Sobrien * configure, Makefile.in: Rebuild. 533677298Sobrien 533777298Sobrien * configure.host: Remove the old shared library build stuff. We 533877298Sobrien now use libtool instead. 533977298Sobrien 534077298SobrienWed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com> 534177298Sobrien 534277298Sobrien * tekhex.c (tekhex_write_object_contents): Call tekhex_init. 534377298Sobrien 534477298SobrienTue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org> 534577298Sobrien 534677298Sobrien * configure.in: Take stab-syms.lo out of sparclinux_vec list. 534777298Sobrien * configure: Rebuild. 534877298Sobrien 534977298SobrienTue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com> 535077298Sobrien * elf32-v850.c (remember_hi16s_reloc): New function. 535177298Sobrien (find_remembered_hi16s_reloc): New function. 535277298Sobrien (v850_elf_store_addend_in_insn): Use the above new functions to 535377298Sobrien match up HI6S relocs with LO16 relocs. 535477298Sobrien 535577298SobrienTue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com> 535677298Sobrien 535777298Sobrien * configure.in: Change -linux* to -linux-gnu*. 535877298Sobrien * config.bfd, configure.host: Likewise. 535977298Sobrien * configure: Rebuild. 536077298Sobrien 536177298SobrienMon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com> 536277298Sobrien 536377298Sobrien * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another 536477298Sobrien LO16/HI16S bug and improve comments about what is going on. 536577298Sobrien 536677298SobrienSat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com> 536777298Sobrien 536877298Sobrien * configure, aclocal.m4: Rebuild with new libtool. 536977298Sobrien 537077298SobrienFri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com> 537177298Sobrien 537277298Sobrien * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain 537377298Sobrien when merging v850 code into v850e/v850ea code. Do not initialise 537477298Sobrien output flags if the input is the default architecture. 537577298Sobrien 537677298SobrienFri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com) 537777298Sobrien 537877298Sobrien * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR 537977298Sobrien get the size from bfd_arch_bits_per_address instead of directly 538077298Sobrien from the isa. 538177298Sobrien 538277298SobrienThu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com> 538377298Sobrien 538477298Sobrien * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address 538577298Sobrien to wrap, just return all 1's bits instead. 538677298Sobrien * libbfd.h: Regenerate. 538777298Sobrien 538877298SobrienThu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com> 538977298Sobrien 539077298Sobrien * coff-i386.c (coff_pe_i386_relocate_section): New static function 539177298Sobrien if COFF_WITH_PE. 539277298Sobrien (coff_relocate_section): If COFF_WITH_PE, define as 539377298Sobrien coff_pe_i386_relocate_section. 539477298Sobrien * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE, 539577298Sobrien skip empty sections, to match coff_write_object_contents. 539677298Sobrien 539777298Sobrien * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend, 539877298Sobrien rather than swapping out r_offset twice. From Luke Deller 539977298Sobrien <luked@cse.unsw.edu.au>. 540077298Sobrien 540177298SobrienWed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com> 540277298Sobrien 540377298Sobrien * configure.in: Set libtool_enable_shared rather than 540477298Sobrien libtool_shared. Remove diversion hack. 540577298Sobrien * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild 540677298Sobrien with new libtool. 540777298Sobrien 540877298SobrienWed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org> 540977298Sobrien 541077298Sobrien * syms.c (struct stab_cache): Define. 541177298Sobrien (struct stab_find_info): Remove cached_offset, cached_stab, 541277298Sobrien cached_str, and cached_stroff fields. Add file_cache, 541377298Sobrien function_cache, and line_cache fields. 541477298Sobrien (_bfd_stab_section_find_nearest_line): Use extensive caching to 541577298Sobrien speed up searches. 541677298Sobrien 541777298SobrienWed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com> 541877298Sobrien 541977298Sobrien * peicode.h (pe_print_idata): Check for import of ordinal rather 542077298Sobrien than name. 542177298Sobrien (pe_print_edata): If there is no .edata section, look for the 542277298Sobrien export data in some other section. 542377298Sobrien 542477298SobrienMon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com) 542577298Sobrien 542677298Sobrien * configure.in: Change version to 2.8.4. 542777298Sobrien * configure: Regenerated. 542877298Sobrien 542977298SobrienMon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU> 543077298Sobrien 543177298Sobrien Add tms320c30 support: 543277298Sobrien * cpu-tic30.c: New file. 543377298Sobrien * aout-tic30.c: New file. 543477298Sobrien * coff-tic30.c: New file. 543577298Sobrien * archures.c (bfd_arch_tic30): Define. 543677298Sobrien (bfd_tic30_arch): Declare. 543777298Sobrien (bfd_archures_list): Add bfd_tic30_arch. 543877298Sobrien * targets.c (bfd_target_vector): Add tic30_aout_vec and 543977298Sobrien tic30_coff_vec. 544077298Sobrien * reloc.c (BFD_RELOC_TIC30_LDP): Define. 544177298Sobrien * coffcode.h (coff_set_arch_mach_hook): Add tic30 case. 544277298Sobrien (coff_set_flags): Likewise. 544377298Sobrien * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets. 544477298Sobrien * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors. 544577298Sobrien * Makefile.am: Rebuild dependencies. 544677298Sobrien (ALL_MACHINES): Add cpu-tic30.lo. 544777298Sobrien (ALL_MACHINES_CFILES): Add cpu-tic30.c. 544877298Sobrien (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo. 544977298Sobrien (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c. 545077298Sobrien * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild. 545177298Sobrien 545277298SobrienMon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com> 545377298Sobrien 545477298Sobrien * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc 545577298Sobrien to lag behind LO16 reloc by a couple of instructions. 545677298Sobrien 545777298SobrienMon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com> 545877298Sobrien 545977298Sobrien * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force 546077298Sobrien make to reexamine the file timestamp. 546177298Sobrien ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise. 546277298Sobrien 546377298Sobrien * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from 546477298Sobrien 0x100000. 546577298Sobrien 546677298SobrienFri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au> 546777298Sobrien 546877298Sobrien * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure 546977298Sobrien to create .dynsbss and .rela.sbss sections. 547077298Sobrien (ppc_elf_adjust_dynamic_symbol): Put space for small data to be 547177298Sobrien copied from dynamic objects into .sbss. 547277298Sobrien (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't 547377298Sobrien use it. Correct typo of .rela.sdata2. 547477298Sobrien (ppc_elf_finish_dynamic_symbol): Generate reloc to where we 547577298Sobrien put the data, which may now be in .sbss. 547677298Sobrien (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss. 547777298Sobrien (elf_backend_create_dynamic_sections): Define as 547877298Sobrien ppc_elf_create_dynamic_sections. 547977298Sobrien 548077298Sobrien * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs 548177298Sobrien against _GLOBAL_OFFSET_TABLE_. 548277298Sobrien (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in 548377298Sobrien shared libraries which refer to local symbols. Make sure that the 548477298Sobrien test for allocating space for a reloc in a shared object is the 548577298Sobrien same as the test for emitting a reloc. 548677298Sobrien 548777298SobrienThu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl> 548877298Sobrien 548977298Sobrien * config.bfd (i[3456]-*-mingw32*): New target. 549077298Sobrien * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32. 549177298Sobrien * aclocal.m4, configure: Rebuild. 549277298Sobrien 549377298SobrienWed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com> 549477298Sobrien 549577298Sobrien * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we 549677298Sobrien have a bfd_object. 549777298Sobrien 549877298SobrienTue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com> 549977298Sobrien 550077298Sobrien Sparc v9 ABI compliant PLT: 550177298Sobrien * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries. 550277298Sobrien (plt_templates, sparc64_elf_build_plt_entry): Delete. 550377298Sobrien (LARGE_PLT_THRESHOLD): New define. 550477298Sobrien (GOT_RESERVED_ENTRIES): V9 ABI only uses 1. 550577298Sobrien (sparc64_elf_build_plt): New function. 550677298Sobrien (sparc64_elf_plt_entry_offset): Likewise. 550777298Sobrien (sparc64_elf_plt_ptr_offset): Likewise. 550877298Sobrien (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to 550977298Sobrien contain the index for convenience. Skip the initial entries 551077298Sobrien in .rela.plt. 551177298Sobrien (sparc64_elf_size_dynamic_sections): Zero the allocated contents 551277298Sobrien memory for the benefit of .rela.plt. 551377298Sobrien (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset. 551477298Sobrien (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use 551577298Sobrien sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc. 551677298Sobrien (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt. 551777298Sobrien Call sparc64_elf_build_plt. 551877298Sobrien (elf_backend_want_got_plt): No. 551977298Sobrien (elf_backend_plt_readonly): No. 552077298Sobrien (elf_backend_plt_alignment): 8. 552177298Sobrien 552277298Sobrien * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab. 552377298Sobrien * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it. 552477298Sobrien * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it 552577298Sobrien to be called. 552677298Sobrien 552777298SobrienTue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com) 552877298Sobrien 552977298Sobrien * archures.c (bfd_mach_mips*): Add definitions for various MIPS 553077298Sobrien processors. 553177298Sobrien * cpu-mips.c (arch_info_struct): Add mips variants. 553277298Sobrien * bfd-in2.h: Rebuilt. 553377298Sobrien 553477298SobrienTue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com> 553577298Sobrien 553677298Sobrien * coff-arm.c (coff_arm_relocate_section): Preserve the contents of 553777298Sobrien t2a3_b_insn. 553877298Sobrien 553977298SobrienTue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com> 554077298Sobrien 554177298Sobrien * config.bfd (i[3456]86-sco3.2v5*): ELF now the default. 554277298Sobrien (i[3456]86sco3.2v5*coff): New target. 554377298Sobrien 554477298SobrienMon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com> 554577298Sobrien 554677298Sobrien * bfd-in2.h: Rebuild with changes to chew--tab expansion. 554777298Sobrien 554877298SobrienThu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com> 554977298Sobrien 555077298Sobrien * bfd.c (bfd_get_error_handler): Add orthogonal function. 555177298Sobrien * bfd-in2.h: Regenerate. 555277298Sobrien 555377298SobrienThu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com> 555477298Sobrien 555577298Sobrien * tekhex.c (tekhex_write_object_contents): Check for no symbols. 555677298Sobrien 555777298SobrienWed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com> 555877298Sobrien 555977298Sobrien * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't 556077298Sobrien adjust addend for an output common symbol (from Jimmy Blair 556177298Sobrien <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative 556277298Sobrien defined symbol to counteract adjustment made in generic relocation 556377298Sobrien code. 556477298Sobrien 556577298Sobrien * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h. 556677298Sobrien 556777298SobrienWed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de> 556877298Sobrien 556977298Sobrien * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name. 557077298Sobrien (GET_SCNDHR_NLNNO): Likewise. 557177298Sobrien 557277298SobrienMon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com> 557377298Sobrien 557477298Sobrien * cpu-sh.c (arch_info_struct): Correct next field of sh3e. 557577298Sobrien 557677298SobrienWed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com> 557777298Sobrien 557877298Sobrien * elf32-m32r.c: Add macros to handle NOP insertion. 557977298Sobrien 558077298SobrienWed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com> 558177298Sobrien 558277298Sobrien * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section. 558377298Sobrien (xcoff_mark): Likewise. 558477298Sobrien (xcoff_build_ldsyms): Mark absolute symbols. 558577298Sobrien 558677298SobrienWed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com> 558777298Sobrien 558877298Sobrien * bout.c (b_out_write_object_contents): Sort symbols before output 558977298Sobrien to keep {CALL,BAL}NAME symbols adjacent. 559077298Sobrien (b_out_symbol_cmp): New function. 559177298Sobrien 559277298SobrienFor older changes see ChangeLog-9697 559377298Sobrien 559477298SobrienLocal Variables: 559577298Sobrienmode: change-log 559677298Sobrienleft-margin: 8 559777298Sobrienfill-column: 74 559877298Sobrienversion-control: never 559977298SobrienEnd: 5600