ChangeLog-9193 revision 89857
160484SobrienFri Dec 31 16:23:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 260484Sobrien 360484Sobrien Minor cleanups suggested by CodeCenter. 460484Sobrien * aoutx.h, coffgen.c, ecoff.c, ecofflink.c, elf.c, libbfd.c, 560484Sobrien linker.c, reloc.c, section.c, srec.c: Added /*ARGSUSED*/ as 660484Sobrien appropriate. 760484Sobrien * aoutx.h (struct external_exec): Removed unnecessary declaration. 860484Sobrien (NAME(aout,some_aout_object_p)): Set some tdata pointers to NULL. 960484Sobrien (adjust_z_magic): Removed useless variable data_vma. 1060484Sobrien (stringtab_init): Initialize hash_zero. 1160484Sobrien (add_to_stringtab): Removed unused fourth argument. 1260484Sobrien (NAME(aout,swap_std_reloc_out)): Removed useless variable 1360484Sobrien r_addend. 1460484Sobrien (aout_link_input_section): Added some casts. 1560484Sobrien * archive.c (get_extended_arelt_filename, do_slurp_coff_armap, 1660484Sobrien bfd_ar_hdr_from_filesystem, bsd_write_armap, coff_write_armap): 1760484Sobrien Minor code rewriting to make it more C like. 1860484Sobrien (do_slurp_bsd_armap): Added some casts. 1960484Sobrien * ecoff.c (ecoff_write_object_contents): Removed useless variable 2060484Sobrien scn_base. 2160484Sobrien (ecoff_write_armap): Added some casts. Use "" rather than "\0". 2260484Sobrien * ecofflink.c (bfd_ecoff_write_debug): Added a cast. 2360484Sobrien * libaout.h (struct internal_exec): Removed unnecessary 2460484Sobrien declaration. 2560484Sobrien * linker.c (_bfd_generic_indirect_link_order): Added a cast. 2660484Sobrien * opncls.c (new_bfd): Removed a cast. 2760484Sobrien * reloc.c (bfd_generic_get_relocated_section_contents): Added 2860484Sobrien some casts. 2960484Sobrien * srec.c (internal_srec_write_object_contents): Removed useless 3060484Sobrien variable bytes_written. 3160484Sobrien 3260484SobrienFri Dec 31 11:46:13 1993 David J. Mackenzie (djm@thepub.cygnus.com) 3360484Sobrien 3460484Sobrien * i386mach3.c (N_TXTADDR): Don't define after all. 3560484Sobrien (TEXT_START_ADDR): Don't include exec header size in value. 3660484Sobrien 3760484SobrienThu Dec 30 15:47:54 1993 David J. Mackenzie (djm@thepub.cygnus.com) 3860484Sobrien 3960484Sobrien * i386mach3.c (N_TXTADDR): Define. 4060484Sobrien 4160484SobrienThu Dec 30 13:37:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 4260484Sobrien 4360484Sobrien Extensive changes to move the bulk of the linker into BFD so that 4460484Sobrien more efficient backend code can be written for specific object 4560484Sobrien files. Only existing efficient backend is a.out. 4660484Sobrien * seclet.c, seclet.h: Removed. 4760484Sobrien * hash.c, linker.c, genlink.h: New files. 4860484Sobrien * bfd-in.h: Removed bfd_error_vector. Declared hash table 4960484Sobrien structures and functions. 5060484Sobrien (JUMP_TABLE): Removed bfd_seclet_link, added 5160484Sobrien bfd_link_hash_table_create, bfd_link_add_symbols and 5260484Sobrien bfd_final_link. 5360484Sobrien * All backends: Changed accordingly. 5460484Sobrien * bfd-in2.h: Rebuilt. 5560484Sobrien * bfd.c (struct _bfd): Added link_next and archive_pass fields. 5660484Sobrien Removed ld_symbols field. 5760484Sobrien (bfd_nonrepresentable_section, bfd_undefined_symbol, 5860484Sobrien bfd_reloc_value_truncated, bfd_reloc_is_dangerous, 5960484Sobrien bfd_error_vector): Removed. 6060484Sobrien (bfd_default_error_trap, bfd_error_trap, 6160484Sobrien bfd_error_nonrepresentabltrap): Removed. 6260484Sobrien (bfd_get_relocated_section_contents): Pass link_info. Pass 6360484Sobrien link_order instead of seclet. Pass symbols. 6460484Sobrien (bfd_relax_section): Pass link_info. 6560484Sobrien (bfd_seclet_link): Removed. 6660484Sobrien (bfd_link_hash_table_create, bfd_link_add_symbols, 6760484Sobrien bfd_final_link): New macros. 6860484Sobrien * libbfd-in.h: If __GNUC__ is defined and alloca is not, define 6960484Sobrien alloca as __builtin_alloca. Declare internal linking functions. 7060484Sobrien * libbfd.h: Rebuilt. 7160484Sobrien * libbfd.c (bfd_seek): Comment out fseek assertion. It's worked 7260484Sobrien for months. 7360484Sobrien * reloc.c (reloc_howto_type): Added error_message argument to 7460484Sobrien special_function field. Changed all callers and all definitions. 7560484Sobrien (bfd_get_reloc_size): Make argument a const pointer. 7660484Sobrien (bfd_perform_relocation): Add error_message argument to hold 7760484Sobrien string set if return value if bfd_reloc_dangerous. Changed all 7860484Sobrien callers. 7960484Sobrien (_bfd_final_link_relocate, _bfd_relocate_contents): New functions. 8060484Sobrien * section.c (asection): Renamed seclets_head and seclets_tail to 8160484Sobrien link_order_head and link_order_tail. 8260484Sobrien * targets.c (bfd_target): Replaced seclet argument with link_info 8360484Sobrien and link_order and symbols arguments in 8460484Sobrien bfd_get_relocated_section_contents. Added symbols argument to 8560484Sobrien bfd_relax_section. Removed bfd_seclet_link. Added 8660484Sobrien bfd_link_hash_table_create, bfd_link_add_symbols and 8760484Sobrien bfd_final_link. 8860484Sobrien * libaout.h (struct aoutdata): Added external_syms, 8960484Sobrien external_sym_count, external_strings, sym_hashes fields. 9060484Sobrien (obj_aout_external_syms, obj_aout_external_sym_count, 9160484Sobrien obj_aout_external_strings, obj_aout_sym_hashes): New accessor 9260484Sobrien macros. 9360484Sobrien (WRITE_HEADERS): Only output symbols if outsymbols is not NULL. 9460484Sobrien * aoutx.h: Wrote new back end linker routines. 9560484Sobrien (translate_to_native_sym_flags): Return boolean value. Don't use 9660484Sobrien bfd_error_vector. 9760484Sobrien (NAME(aout,write_syms)): Return boolean value. Check return value 9860484Sobrien of translate_to_native_sym_flags and bfd_write. 9960484Sobrien * aout-target.h (final_link_callback): New function. 10060484Sobrien (MY_bfd_final_link): New function. 10160484Sobrien * aout-adobe.c (aout_adobe_write_object_contents): Check return 10260484Sobrien value of aout_32_write_syms. 10360484Sobrien * hp300hpux.c (MY(write_object_contents)): Likewise. 10460484Sobrien * i386lynx.c (WRITE_HEADERS): Likewise. 10560484Sobrien * libaout.h (WRITE_HEADERS): Likewise. 10660484Sobrien * bout.c: Changed functions to use link_info->callbacks rather 10760484Sobrien than bfd_error_vector, and link_orders rather than seclets. 10860484Sobrien * coff-alpha.c: Likewise. 10960484Sobrien * coff-h8300.c: Likewise. 11060484Sobrien * coff-h8500.c: Likewise. 11160484Sobrien * coff-sh.c: Likewise. 11260484Sobrien * coff-z8k.c: Likewise. 11360484Sobrien * elf32-hppa.c: Likewise. 11460484Sobrien * reloc16.c: Likewise. 11560484Sobrien * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Look 11660484Sobrien up _gp in the hash table rather than in outsymbols. 11760484Sobrien * coff-a29k.c (a29k_reloc): Pass errors back in new error_message 11860484Sobrien argument rather than printing them. 11960484Sobrien * coffcode.h (bfd_coff_reloc16_extra_cases): Take link_info and 12060484Sobrien link_order arguments rather than seclet. Changed all uses and 12160484Sobrien definitions. 12260484Sobrien (bfd_coff_reloc16_estimate): Pass link_info arguments. Changed 12360484Sobrien all uses and definitions. 12460484Sobrien * libcoff.h: Rebuilt. 12560484Sobrien * ecoff.c (ecoff_get_extr): If symbol is defined by linker, but 12660484Sobrien not by ECOFF, make it scAbs. 12760484Sobrien (ecoff_bfd_final_link): Renamed from ecoff_bfd_seclet_link and 12860484Sobrien rewritten. 12960484Sobrien * elf32-mips.c (mips_elf_final_link): Renamed from 13060484Sobrien mips_elf_seclet_link and rewritten. 13160484Sobrien * elf32-hppa.c (elf32_hppa_stub_description): Added link_info 13260484Sobrien field. 13360484Sobrien (new_stub, add_stub_by_name, hppa_elf_build_arg_reloc_stub, 13460484Sobrien hppa_elf_build_long_branch_stub, hppa_look_for_stubs_in_section): 13560484Sobrien Added link_info arguments. Changed all callers. 13660484Sobrien * elfcode.h (elf_slurp_symbol_table): Don't quit if outsymbols is 13760484Sobrien not NULL. 13860484Sobrien * oasys.c (oasys_write_sections): Return boolean value rather than 13960484Sobrien using bfd_error_vector. 14060484Sobrien (oasys_write_object_contents): Check return value of 14160484Sobrien oasys_write_sections. 14260484Sobrien * hosts/std-host.h: Don't declare qsort or strtol. 14360484Sobrien * Makefile.in: Rebuild dependencies. 14460484Sobrien (BFD_LIBS): Removed seclet.o. Added hash.o and linker.o. 14560484Sobrien (CFILES): Removed seclet.c. Added hash.c and linker.c. 14660484Sobrien (HFILES): Removed seclet.h. Added genlink.h. 14760484Sobrien 14860484SobrienThu Dec 30 07:41:36 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 14960484Sobrien 15060484Sobrien * section.c (bfd_get_section_contents): Return zero filled buffer 15160484Sobrien if section has no contents. 15260484Sobrien 15360484SobrienTue Dec 28 12:43:54 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 15460484Sobrien 15560484Sobrien * elf.c (bfd_elf_generic_reloc): If this is not an inplace reloc, 15660484Sobrien then skip bfd_perform_relocation even if the addend is non-zero. 15760484Sobrien 15860484SobrienTue Dec 21 09:22:19 1993 Ken Raeburn (raeburn@rtl.cygnus.com) 15960484Sobrien 16060484Sobrien * coffcode.h (coff_write_relocs) [SWAP_OUT_RELOC_OFFSET]: Copy 16160484Sobrien addend to r_offset field. 16260484Sobrien 16360484Sobrien * Makefile.in (CFILES): Added coff-sparc.c. Rebuild dependencies. 16460484Sobrien 16560484Sobrien * coff-sparc.c (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET, 16660484Sobrien CALC_ADDEND): Define. 16760484Sobrien 16860484Sobrien * aix386-core.c (aix386_core_file_p): Use cd_regs[0] for computing 16960484Sobrien the offsetof because AIX /bin/cc does not like to take the address 17060484Sobrien of an array. (From Minh Tran-Le.) 17160484Sobrien 17260484SobrienThu Dec 16 13:06:32 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 17360484Sobrien 17460484Sobrien * Thu Dec 16 15:41:06 1993 Peter Hoogenboom (hoogen@cs.utah.edu) 17560484Sobrien 17660484Sobrien * elf32-hppa.c (hppa_elf_build_arg_reloc_stub): Make sure to copy 17760484Sobrien the return pointer into %r2 if no jump-in-call-delay-slot 17860484Sobrien optimization was done. 17960484Sobrien 18060484Sobrien * hosts/hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD. 18160484Sobrien 18260484SobrienWed Dec 15 08:04:16 1993 David J. Mackenzie (djm@thepub.cygnus.com) 18360484Sobrien 18460484Sobrien * hosts/std-host.h: (time): Don't declare; conflicts on Mach3. 18560484Sobrien 18660484Sobrien * hosts/i386mach3.h (HOST_PAGE_SIZE): Set to 1 to avoid padding. 18760484Sobrien (HOST_SEGMENT_SIZE): Set to 0 for same reason. 18860484Sobrien 18960484Sobrien * i386mach3.c (PAGE_SIZE, SEGMENT_SIZE): Same changes as above. 19060484Sobrien (TEXT_START_ADDR): Correct. 19160484Sobrien (MY_backend_data): Define. 19260484Sobrien 19360484Sobrien * aoutx.h (adjust_o_magic, adjust_z_magic, adjust_n_magic): 19460484Sobrien New functions; code moved from aout_<size>_adjust_sizes_and_vmas. 19560484Sobrien 19660484SobrienTue Dec 14 21:48:33 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 19760484Sobrien 19860484Sobrien * som.c (som_begin_writing): Fix thinkos in auxiliary header 19960484Sobrien support. 20060484Sobrien (bfd_som_attach_aux_hdr): Likewise. 20160484Sobrien 20260484SobrienMon Dec 13 23:34:48 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 20360484Sobrien 20460484Sobrien * elf32-hppa.c (hppa_elf_gen_reloc_type): Handle 'T' field 20560484Sobrien selectors for PIC code. 20660484Sobrien 20760484Sobrien * som.c (hppa_som_gen_reloc_type): Handle 'T' field selectors. 20860484Sobrien (som_write_fixups): Handle R_DLT_REL, R_FSEL, R_RSEL, R_LSEL 20960484Sobrien relocations needed by PIC. 21060484Sobrien 21160484SobrienTue Dec 7 15:47:51 1993 Stu Grossman (grossman at cygnus.com) 21260484Sobrien 21360484Sobrien * nlmcode.h: Fixes to avoid compiler warnings... 21460484Sobrien 21560484SobrienTue Dec 7 15:10:54 1993 Ian Lance Taylor (ian@cygnus.com) 21660484Sobrien 21760484Sobrien * libnlm.h (nlm_backend_data): Removed macro definition. 21860484Sobrien (nlm_alpha_backend_data): Adjusted accordingly. 21960484Sobrien 22060484SobrienSun Dec 5 19:32:08 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 22160484Sobrien 22260484Sobrien * som.c (som_begin_writing): Flesh out code for handling simple 22360484Sobrien auxiliary headers. 22460484Sobrien (bfd_som_attach_aux_hdr): New function. 22560484Sobrien 22660484Sobrien * som.h (struct somdata): Add fields for attaching version and 22760484Sobrien copyright headers. Add accessor macros. 22860484Sobrien 22960484Sobrien * som.c (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Add protected 23060484Sobrien definitions for old versions of HPUX which fail to define them. 23160484Sobrien (som_hppa_howto_talbe): Add R_DLT_REL, R_AUX_UNWIND, and R_SEC_STMT 23260484Sobrien now that they're safe. Delete bogus R_STATEMENT relocations. 23360484Sobrien 23460484Sobrien * som.c (som_hppa_howto_table): Add missing R_END_TRY. Delete 23560484Sobrien extra R_DATA_OVERRIDE. 23660484Sobrien (hppa_som_gen_reloc_type): Generate a relocation for the rounding 23760484Sobrien mode selector if needed. 23860484Sobrien (som_write_fixups): Handle requests for a change in the default 23960484Sobrien rounding mode. Rounding modes do not consume input bytes, but 24060484Sobrien are just markers much like R_ENTRY and R_EXIT. 24160484Sobrien 24260484SobrienSat Dec 4 19:40:32 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 24360484Sobrien 24460484Sobrien Fri Dec 3 09:55:17 1993 Pete Hoogenboom (hoogen@cs.utah.edu) 24560484Sobrien 24660484Sobrien * elf32-hppa.c: (hppa_elf_reloc): Do not do code reordering when 24760484Sobrien the branch instruction as originally been nullified. 24860484Sobrien hppa_elf_reloc): Avoid useless call to bfd_put_32 () in the 24960484Sobrien case of no code reordering due to an LDO instruction in the 25060484Sobrien delay slot of the branch. Make sure to relocate the correct 25160484Sobrien instruction. Do not perform instruction reordering for millicode 25260484Sobrien calls. 25360484Sobrien (hppa_elf_build_arg_reloc_stub): Change the relocation type 25460484Sobrien to R_HPPA_STUB_CALL_17 when special processing might be needed. 25560484Sobrien (hppa_elf_build_long_branch_stub): Prevent code reordering on 25660484Sobrien a call from a linker stub to another linker stub and for millicode 25760484Sobrien calls. Do not trash the return register for calls from one linker 25860484Sobrien stub to a second linker stub. 25960484Sobrien 26060484Sobrien * elf32-hppa.c: (elf_hppa_howto_table): PLABEL and DLT 26160484Sobrien relocations are not pc-relative. 26260484Sobrien 26360484Sobrien * hppa_stubs.h: (BLE_N_XXX_0_31): New instruction used in 26460484Sobrien linker stub code. 26560484Sobrien (COPY_2_31): Likewise. 26660484Sobrien 26760484SobrienFri Dec 3 18:40:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 26860484Sobrien 26960484Sobrien * config/solaris2.mh (HDEFINES): Remove -Dconst= 27060484Sobrien * hosts/solaris.h: If not __GNUC__, define const as empty. 27160484Sobrien 27260484SobrienThu Dec 2 15:43:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 27360484Sobrien 27460484Sobrien * ecoff.c: Added various casts for 32/64 bit cross targeting. 27560484Sobrien (ecoff_mkobject_hook): Set SEC_SHARED_LIBRARY for the .reginfo 27660484Sobrien section so that the linker ignores it. 27760484Sobrien * ecofflink.c: Added various casts for 32/64 bit cross targeting. 27860484Sobrien (ecoff_add_bytes): Changed need argument to size_t. 27960484Sobrien (bfd_ecoff_debug_link_other): Check return value of 28060484Sobrien ecoff_add_string. 28160484Sobrien 28260484Sobrien * libbfd-in.h (new_bfd): Use void rather than an empty parameter 28360484Sobrien list. 28460484Sobrien * libbfd.h: Rebuilt. 28560484Sobrien 28660484Sobrien * libnlm.h (struct nlm_obj_tdata): New field backend_data. 28760484Sobrien (nlm_backend_data, nlm_alpha_backend_data): New accessor macros. 28860484Sobrien (struct nlm_backend_data): New field no_uninitialized_data. 28960484Sobrien (nlm_no_uninitialized_data): New accessor macro. 29060484Sobrien * nlmcode.h (nlm_compute_section_file_positions): Handle 29160484Sobrien no_uninitialized_data. 29260484Sobrien (nlm_external_reloc_compare): Sort relocs by address for a 29360484Sobrien particular symbol, to make the sort more stable. 29460484Sobrien (nlm_write_object_contents): Cast the arguments to qsort. Get the 29560484Sobrien value of a debugging symbol the same way we get the value of a 29660484Sobrien normal symbol. 29760484Sobrien * nlm32-alpha.c: Various changes. Write out GP and .lita relocs. 29860484Sobrien Set no_uninitialized_data to true. 29960484Sobrien * nlm32-i386.c (nlm32_i386_backend), nlm32-sparc.c 30060484Sobrien (nlm32_sparc_backend): Set no_uninitialized_data field false. 30160484Sobrien * nlmswap.h (nlm_swap_fixed_header_out): Zero out destination 30260484Sobrien before filling it in. 30360484Sobrien 30460484SobrienWed Dec 1 21:47:58 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 30560484Sobrien 30660484Sobrien * som.c (som_section_type, som_decode_symcalss): New functions. 30760484Sobrien (som_get_symbol_info): Use them. 30860484Sobrien (som_slurp_symbol_table): Set the section of common and undefined 30960484Sobrien symbols correctly. 31060484Sobrien 31160484SobrienWed Dec 1 14:15:10 1993 Ken Raeburn (raeburn@cygnus.com) 31260484Sobrien 31360484Sobrien * elfcode.h (write_relocs): Initialize local var LAST_SYM_IDX, to 31460484Sobrien make gcc happy. 31560484Sobrien 31660484Sobrien * mipsbsd.c: Changes from Ralph Campbell: 31760484Sobrien (mips_howto_table_ext): MIPS_RELOC_LO16 should use 31860484Sobrien complain_overflow_dont. 31960484Sobrien (aout_mips_*_vec): Make name use "a.out" instead of "aout", to 32060484Sobrien make gdb happy. 32160484Sobrien 32260484Sobrien * bfd.c (bfd_errmsgs): Reword invalid-target message. 32360484Sobrien 32460484Sobrien * config.bfd: For sparc*-*-coff, use sparc-coff. 32560484Sobrien * configure.in: Handle sparccoff_vec. 32660484Sobrien * targets.c (sparccoff_vec): Declare. 32760484Sobrien 32860484Sobrien * reloc.c (bfd_get_reloc_size): New function. 32960484Sobrien (struct reloc_howto_type): Update documentation of size field. 33060484Sobrien 33160484SobrienWed Dec 1 14:39:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 33260484Sobrien 33360484Sobrien * nlm32-alpha.c: New file; preliminary Alpha NetWare support. 33460484Sobrien * config.bfd (alpha-*-netware*): New target; use alpha-nlm. 33560484Sobrien * config/alpha-nlm.mt: New file. 33660484Sobrien * configure.in (nlm32_alpha_vec): New vector; use nlm32-alpha.o, 33760484Sobrien nlm32.o, and nlm.o. 33860484Sobrien * Makefile.in (BFD32_BACKENDS): Added nlm32-alpha.o. 33960484Sobrien (CFILES): Added nlm32-alpha.c. 34060484Sobrien Rebuilt dependencies. 34160484Sobrien * targets.c (nlm32_alpha_vec): Declare. 34260484Sobrien 34360484Sobrien * libnlm.h (struct nlm_backend_data): New fields 34460484Sobrien optional_prefix_size, nlm_backend_object_p, nlm_write_prefix, 34560484Sobrien nlm_set_public_section, nlm_get_public_offset. Removed unused 34660484Sobrien nlm_write_reloc field. Changed nlm_write_import to remove 34760484Sobrien unnecessary symbol argument. Renamed nlm_write_externals to 34860484Sobrien nlm_write_external, and changed cound argument from bfd_vma to 34960484Sobrien bfd_size_type. 35060484Sobrien (nlm_optional_prefix_size, nlm_backend_object_p_func, 35160484Sobrien nlm_write_prefix_func, nlm_set_public_section_func, 35260484Sobrien nlm_get_public_offset_func): New accessor macros. 35360484Sobrien (nlm_write_reloc_func): Removed. 35460484Sobrien (nlm_write_external_func): Adjusted for field renaming. 35560484Sobrien * nlm32-i386.c (nlm_i386_write_import): Renamed from 35660484Sobrien nlm_i386_write_reloc. Removed old nlm_i386_write_import which 35760484Sobrien just called old nlm_i386_write_reloc. 35860484Sobrien (nlm_i386_write_external): Renamed from nlm_i386_write_externals. 35960484Sobrien Declared. Changed second argument from bfd_vma to bfd_size_type. 36060484Sobrien (nlm32_i386_backend): Adjusted for changes to fields and names. 36160484Sobrien * nlm32-sparc.c (nlm_sparc_mangle_relocs): Removed unused, 36260484Sobrien ifdeffed out code. 36360484Sobrien (nlm_sparc_write_import): Removed second argument. 36460484Sobrien (nlm_sparc_write_external): Renamed from 36560484Sobrien nlm_sparc_write_externals. Changed second argument from bfd_vma 36660484Sobrien to bfd_size_type. 36760484Sobrien (nlm32_sparc_backend): Adjusted for changes to fields and names. 36860484Sobrien * nlmcode.h: Removed some unused code. 36960484Sobrien (nlm_object_p): Don't destroy tdata pointer. Call 37060484Sobrien backend_object_p function if it exists. 37160484Sobrien (nlm_slurp_symbol_table): Removed unused variable rcount. Call 37260484Sobrien set_public_section_func if it exists instead of checking 37360484Sobrien NLM_HIBIT. 37460484Sobrien (nlm_compute_section_file_positions): Account for 37560484Sobrien optional_prefix_size. 37660484Sobrien (nlm_write_object_contents): Account for optional_prefix_size. 37760484Sobrien Removed useless variable write_reloc_func. Changed declaration 37860484Sobrien and call of write_import_func. Call write_prefix_func if it 37960484Sobrien exists. Removed unused variables len and temp. Call 38060484Sobrien get_public_offset_func if it exists rather than setting NLM_HIBIT. 38160484Sobrien * nlmswap.h: Declare functions. 38260484Sobrien 38360484Sobrien * bfd-in.h (uint64_typeLOW, uint64_typeHIGH): Fully parenthesize 38460484Sobrien for clarity. 38560484Sobrien (fprintf_vma, sprintf_vma): Use %lx, not %x. 38660484Sobrien * bfd-in2.h: Rebuilt. 38760484Sobrien * hosts/alphaosf.h (uint64_typeLOW, uint64_typeHIGH): Cast results 38860484Sobrien to unsigned long. 38960484Sobrien 39060484Sobrien * config.bfd: Don't set target64 here, as the setting is ignored. 39160484Sobrien * configure.in (ecoffalpha_little_vec): Set target64. 39260484Sobrien 39360484Sobrien * config/alphaosf.mt (TDEFINES): Removed; setting host parameters 39460484Sobrien in TDEFINES is wrong. 39560484Sobrien 39660484Sobrien * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): 39760484Sobrien Remove unused variable output_section. 39860484Sobrien 39960484SobrienTue Nov 30 16:45:23 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 40060484Sobrien 40160484Sobrien * irix-core.c: New file for Irix 4 and Irix 5 core support. 40260484Sobrien Functions taken out of coff-mips.c. Handle vmap type VMAPFILE. 40360484Sobrien * coff-mips.c: Irix 4 core file support moved to irix-core.c. 40460484Sobrien * targets.c: If IRIX_CORE defined, include irix_core_vec in 40560484Sobrien target_vector. 40660484Sobrien * config/irix4.mh (HDEFINES): Add -DIRIX_CORE. 40760484Sobrien (HDEPFILES): Define to be irix-core.o. 40860484Sobrien * config/irix5.mh (HDEFINES): Define to be -DIRIX_CORE. 40960484Sobrien (HDEPFILES): Define to be irix-core.o. 41060484Sobrien * Makefile.in (OPTIONAL_BACKENDS): Added irix-core.o. Removed 41189857Sobrien sco5-core.o, which no longer exists. 41260484Sobrien (CFILES): Added all *-core.c files. 41360484Sobrien Rebuilt dependencies. 41460484Sobrien 41560484SobrienWed Nov 24 02:02:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 41660484Sobrien 41760484Sobrien * elfcode.h (map_program_segments): Restore check of file_size != 41860484Sobrien mem_size, but only if SHT_PROGBITS. 41960484Sobrien 42060484Sobrien * ecofflink.c: New file to hold ECOFF debug information linking 42160484Sobrien routines. 42260484Sobrien * ecoff.c (ecoff_clear_output_flags, ecoff_rel, ecoff_dump_seclet, 42360484Sobrien ecoff_add_string, ecoff_get_debug): Removed. Functionality now in 42460484Sobrien ecofflink.c. 42560484Sobrien (ecoff_get_extr, ecoff_set_index): New functions. 42660484Sobrien (ecoff_slurp_symbolic_info): Don't save raw_size. 42760484Sobrien (ecoff_bfd_seclet_link): Rewrote to use ecofflink.c functions. 42860484Sobrien (ecoff_compute_section_file_positions): Don't set EXEC_P just 42960484Sobrien because there is a start address. 43060484Sobrien (ecoff_write_object_contents): Handle external symbols here. Use 43160484Sobrien ecofflink.c functions to write out debugging information. 43260484Sobrien * elf32-mips.c (mips_elf_read_ecoff_info, mips_elf_get_extr, 43360484Sobrien mips_elf_set_index): New functions. 43460484Sobrien (mips_elf_seclet_link): Discard empty sections, the .options 43560484Sobrien section and .gptab sections. Handle linking .mdebug section. 43660484Sobrien * libecoff.h (ecoff_data_type): Removed raw_size and ifdbase. 43760484Sobrien * libelf.h (elf_symbol_type): Added mips_extr to tc_data union. 43860484Sobrien * bfd-in.h: Added prototypes for routines in ecofflink.c (some are 43960484Sobrien called by gas, so they are public). 44060484Sobrien * bfd-in2.h: Rebuilt. 44160484Sobrien * Makefile.in (BFD_LIBS): Added ecofflink.o. 44260484Sobrien (CFILES): Added ecofflink.c. 44360484Sobrien (ecofflink.o): New target. Rebuilt dependencies. 44460484Sobrien 44560484SobrienMon Nov 22 22:26:42 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 44660484Sobrien 44760484Sobrien * som.c (hppa_object_p): Also recognize SHARED_MAGIC_CNX as 44860484Sobrien a valid magic number if it's been defined. 44960484Sobrien 45060484SobrienMon Nov 22 14:17:36 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 45160484Sobrien 45260484Sobrien * ecoff.c (ecoff_mkobject): Don't create .scommon section; linker 45360484Sobrien no longer requires it. 45460484Sobrien (ecoff_bfd_seclet_link, ecoff_sizeof_headers, 45560484Sobrien ecoff_write_object_contents): Don't treat .scommon section 45660484Sobrien specially. 45760484Sobrien 45860484SobrienMon Nov 22 10:54:27 1993 Fred Fish (fnf@cygnus.com) 45960484Sobrien 46060484Sobrien Merged changes from kev@spuds.geg.mot.com (Kevin A. Buettner): 46189857Sobrien * config/delta88.mh (HDEFINES): Define this to be -DPTRACE_CORE. 46289857Sobrien * config/delta88.mh (HDEPFILES): Defined to be ptrace-core.o. 46389857Sobrien * ptrace-core.c: New file for dealing with core files with 46460484Sobrien start with the ptrace_user structure found on BCS compliant systems. 46589857Sobrien * targets.c (ptrace_core_vec): New vector. 46660484Sobrien 46760484SobrienMon Nov 22 02:33:12 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 46860484Sobrien 46960484Sobrien * Minimal support for reading SOM fixup streams. Allows 47060484Sobrien objdump -r to do something reasonable. 47160484Sobrien * som.c (som_get_reloc_upper_bound): Implement. 47260484Sobrien (som_canonicalize_reloc): Implement. 47360484Sobrien (som_set_reloc_info, som_slurp_reloc_table): New functions. 47460484Sobrien 47560484SobrienSun Nov 21 13:46:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 47660484Sobrien 47760484Sobrien * hosts/lynx.h (FPRINTF_ALREADY_DECLARED): Define. 47860484Sobrien * hosts/sparclynx.h: Include lynx.h instead of duplicating it. 47960484Sobrien 48060484SobrienFri Nov 19 14:34:04 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 48160484Sobrien 48260484Sobrien * coff-a29k.c (a29k_reloc): For R_IREL, don't left shift 48360484Sobrien signed_value before sign extending it. Don't subtract out 48460484Sobrien reloc_entry->address. This makes it compatible with what gas is 48560484Sobrien generating. 48660484Sobrien 48760484Sobrien * elfcode.h (elf_fake_sections): Accept .sbss as the name for a 48860484Sobrien SHT_NOBITS sections. 48960484Sobrien (map_program_segments): Don't leave the loop after the first 49060484Sobrien SHT_NOBITS section. 49160484Sobrien (assign_file_positions_except_relocs): Only force sh_offset and 49260484Sobrien sh_addr to match modulo maxpagesize for a section which is not 49360484Sobrien SHT_NOBITS. Changed the method used to force page alignment after 49460484Sobrien a SHT_NOBITS section to only do it for the last such consecutive 49560484Sobrien section, and to really force page alignment. 49660484Sobrien 49760484SobrienFri Nov 19 04:02:01 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 49860484Sobrien 49960484Sobrien * coffcode.h (coff_slurp_symbol_table): Print more verbose message 50060484Sobrien in the case of an unknown (or unhandled) storage class. 50160484Sobrien 50260484Sobrien * config/i386-lynx.mt (TDEFINES): FPRINTF_ALREADY_DECLARED should 50360484Sobrien not be defined here, since it is a host attribute, not a target 50460484Sobrien one. 50560484Sobrien * config/m68k-lynx.mt, config/sparc-lynx.mt: Ditto. 50660484Sobrien 50760484Sobrien * coffcode.h (coff_bfd_reloc_type_lookup): Don't define if already 50860484Sobrien defined. 50960484Sobrien 51060484Sobrien * coff-sparc.c: Define some relocations, based on ELF relocations. 51160484Sobrien (enum reloc_type, bfd_coff_generic_reloc, coff_sparc_howto_table, 51260484Sobrien struct coff_reloc_map, sparc_reloc_map, 51360484Sobrien coff_sparc_reloc_type_lookup): Borrowed from elf32-sparc.c and 51460484Sobrien elf.c, renamed. 51560484Sobrien (coff_bfd_reloc_type_lookup): Define to be coff_sparc_reloc_.... 51660484Sobrien (rtype2howto): Index into coff_sparc_howto_table using 51760484Sobrien dst->r_type. 51860484Sobrien 51960484SobrienThu Nov 18 11:45:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 52060484Sobrien 52160484Sobrien * config.bfd (mips*-*-irix5*): New target; use mipsbelf. 52260484Sobrien * configure.host (mips-sgi-irix5*) New host; use irix5 (no 52360484Sobrien hosts/irix5.h created; just use std-host.h). 52460484Sobrien * config/irix5.mh: New file; like irix4.mh, but don't use -G or 52560484Sobrien -lmalloc. 52660484Sobrien * Makefile.in: Rebuilt dependencies. 52760484Sobrien 52860484Sobrien * ecoffswap.h: Changed type of internal pointers for swap out 52960484Sobrien functions to const *. 53060484Sobrien 53160484Sobrien * elf32-mips.c (mips_elf_got16_reloc): New function. Handle GOT16 53260484Sobrien correctly for assembler, but linker support not implemented. 53360484Sobrien (elf_mips_howto_table): Use mips_elf_got16_reloc for GOT16. 53460484Sobrien (mips_elf_sym_is_global): New function; at least on Irix 5, all 53560484Sobrien non section symbols are considered global. 53660484Sobrien (elf_backend_sym_is_global): Define. 53760484Sobrien (mips_elf_final_write_processing): New function. Set the MIPS 53860484Sobrien architecture level correctly. 53960484Sobrien (elf_backend_final_write_processing): Define. 54060484Sobrien (mips_elf_section_from_shdr): Handle SHT_MIPS_OPTIONS. 54160484Sobrien (mips_elf_fake_sections): Set entsize of .mdebug or .reginfo 54260484Sobrien section to 1. Handle .options section. 54360484Sobrien (mips_elf_acom_section, mips_elf_acom_symbol, 54460484Sobrien mips_elf_acom_symbol_ptr): New static variables, used to build a 54560484Sobrien generic .acommon section to hold SHN_MIPS_ACOMMON symbols. 54660484Sobrien (mips_elf_symbol_processing): Handle SHN_MIPS_ACOMMON symbols by 54760484Sobrien putting them all in a global .acommon section. 54860484Sobrien 54960484Sobrien * elfcode.h (bfd_section_from_shdr): Don't dump core if target 55060484Sobrien section has no ELF section data. 55160484Sobrien (elf_make_sections): Set addralign of reloc section to 4. 55260484Sobrien (elf_fake_sections): Likewise. 55360484Sobrien (map_program_segments): Don't consider section 0. 55460484Sobrien (assign_file_positions_except_relocs): Don't consider section 0. 55560484Sobrien In the main loop, skip the symtab and strtab sections, since their 55660484Sobrien positions are set elsewhere. 55760484Sobrien (swap_out_syms): Set addralign of symtab section to 4. Set 55860484Sobrien addralign of strtab sections to 1. 55960484Sobrien (assign_file_positions_for_relocs): Don't consider section 0. 56060484Sobrien (write_object_contents): Don't write out section 0. 56160484Sobrien 56260484Sobrien * libelf.h (struct elf_backend_data): Added fields 56360484Sobrien elf_backend_sym_is_global and elf_backend_final_write_processing. 56460484Sobrien * elf32-target.h (elf32_bed): Added corresponding initializers. 56560484Sobrien * elf64-target.h (elf64_bed): Likewise. 56660484Sobrien * elfcode.h (sym_is_global): Take abfd argument. Call 56760484Sobrien elf_backend_sym_is_global if it is not NULL. 56860484Sobrien (elf_map_symbols): Pass abfd to sym_is_global. 56960484Sobrien (write_object_contents): Call elf_backend_final_write_processing 57060484Sobrien if it is defined. 57160484Sobrien 57260484SobrienWed Nov 17 18:43:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 57360484Sobrien 57460484Sobrien * libecoff.h: Include coff/ecoff.h. 57560484Sobrien (struct ecoff_backend_data): Move external debugging information 57660484Sobrien fields into a single field pointing to an ecoff_debug_swap 57760484Sobrien structure. 57860484Sobrien (ecoff_data_type): Move debugging information fields into a single 57960484Sobrien field pointing to an ecoff_debug_info structure. 58060484Sobrien * coff-alpha.c, coff-mips.c, ecoff.c: Corresponding changes. 58160484Sobrien 58260484SobrienWed Nov 17 17:38:58 1993 Sean Eric Fagan (sef@cygnus.com) 58360484Sobrien 58460484Sobrien * nlmswap.h: New file to swap fixed header. Included by NLM 58560484Sobrien backends. 58660484Sobrien * libnlm.h (struct reloc_and_sec): Define. 58760484Sobrien (struct nlm_backend_data): Add fields fixed_header_size, 58860484Sobrien nlm_read_import, nlm_write_import, nlm_swap_fhdr_in, 58960484Sobrien nlm_swap_fhdr_out. 59060484Sobrien (nlm_fixed_header_size, nlm_read_import_func, 59160484Sobrien nlm_write_import_func, nlm_swap_fixed_header_in_func, 59260484Sobrien nlm_swap_fixed_header_out_func, nlm_write_external_func): New 59360484Sobrien accessor macros. 59460484Sobrien * nlmcode.h: Use new functions. 59560484Sobrien * nlm32-i386.c: Provide new functions. 59660484Sobrien * nlm32-sparc.c: New file; SPARC NLM backend. 59760484Sobrien 59860484SobrienWed Nov 17 13:56:10 1993 Stan Shebs (shebs@rtl.cygnus.com) 59960484Sobrien 60060484Sobrien * i386lynx.c (swap_std_reloc_in, swap_ext_reloc_in): Ignore 60160484Sobrien garbage bits appearing in the upper end of symbolnums. 60260484Sobrien 60360484Sobrien * config/sparc-lynx.mt (TDEFINES): Add -DFPRINTF_ALREADY_DECLARED. 60460484Sobrien 60560484SobrienTue Nov 16 17:03:41 1993 Stu Grossman (grossman at cygnus.com) 60660484Sobrien 60760484Sobrien * lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc. 60860484Sobrien * m68klynx.c: Define core file macros. 60960484Sobrien * hosts/i386lynx.h, hosts/m68klynx.h, hosts/lynx.h: Move all 61060484Sobrien non-architecture specific stuff into lynx.h. 61160484Sobrien 61260484SobrienTue Nov 16 15:45:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 61360484Sobrien 61460484Sobrien * i386linux.c: Define new macro ZMAGIC_DISK_BLOCK_SIZE to 1024, and 61560484Sobrien change PAGE_SIZE to 4096. 61660484Sobrien 61760484SobrienMon Nov 15 11:48:08 1993 Ken Raeburn (raeburn@rtl.cygnus.com) 61860484Sobrien 61960484Sobrien * Makefile.in (diststuff): New target. 62060484Sobrien 62160484Sobrien * VERSION: Updated. 62260484Sobrien 62360484SobrienSun Nov 14 23:33:01 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 62460484Sobrien 62560484Sobrien * som.c (som_object_setup): Do not create dummy ".text", ".data", 62660484Sobrien and ".bss" sections. 62760484Sobrien (setup_sections): Do not set SEC_HAS_CONTENTS if a section's size 62860484Sobrien is zero. Recognize BSS type sections and turn off SEC_LOAD and 62960484Sobrien SEC_DATA (so binutils/size works). Set the correct value for 63060484Sobrien a section's _raw_size. 63160484Sobrien (som_slurp_symbol_table): Program entry points, and millicode are 63260484Sobrien also functions. Mark them as such. Also mark L$* symbols as 63360484Sobrien debugging symbols. 63460484Sobrien 63560484Sobrien * bfd-in2.h: Rebuilt. 63660484Sobrien 63760484SobrienSat Nov 13 15:27:15 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 63860484Sobrien 63960484Sobrien * som.c (som_bfd_reloc_type_lookup): Add missing prototype. Returns 64060484Sobrien a pointer to constant data. Delete bogus #define which made the 64160484Sobrien function useless. 64260484Sobrien 64360484Sobrien * som.c (som_prep_for_fixups): New function. 64460484Sobrien (som_write_fixups): New function. 64560484Sobrien (som_write_space_strings): New function. 64660484Sobrien (som_write_symbol_strings): New function. 64760484Sobrien (som_begin_writing): New function. 64860484Sobrien 64960484SobrienFri Nov 12 15:29:36 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 65060484Sobrien 65160484Sobrien * som.c (som_write_object_contents): Do not abort. Flesh out. 65260484Sobrien (som_set_section_contents): Do not abort. Flesh out. 65360484Sobrien 65460484Sobrien * som.c (som_write_headers): New function. 65560484Sobrien (som_prep_headers): New function. 65660484Sobrien (som_build_and_write_symbol_table): New function. 65760484Sobrien 65860484Sobrien * som.c (som_sizeof_headers): Add missing prototype. 65960484Sobrien (som_set_arch_mach): Do not abort. 66060484Sobrien 66160484Sobrien * som.c (som_count_spaces): New function. 66260484Sobrien (som_count_subspaces): New function. 66360484Sobrien (compare_syms): New function. 66460484Sobrien (som_compute_checksum): New function. 66560484Sobrien 66660484Sobrien * som.c (hppa_som_gen_reloc_type): New function. 66760484Sobrien (som_bfd_reloc_type_lookup): New function. 66860484Sobrien 66960484Sobrien * som.c (try_prev_fixup): New function. 67060484Sobrien (som_reloc_skip): New function. 67160484Sobrien (som_reloc_addend): New function. 67260484Sobrien (som_reloc_call): New function. 67360484Sobrien 67460484Sobrien * som.c (som_initialize_reloc_queue): New function. 67560484Sobrien (som_reloc_queue_insert): Likewise. 67660484Sobrien (som_reloc_queue_fix): Likewise. 67760484Sobrien (som_reloc_queue_find): Likewise. 67860484Sobrien 67960484Sobrien * som.c (som_hppa_howto_table): SOM howto relocation table. 68060484Sobrien (hppa_som_reloc): New function. 68160484Sobrien 68260484Sobrien * som.c (struct reloc_queue): New structure to keep track of 68360484Sobrien the last four multibyte relocations emitted. 68460484Sobrien (enum pa_symbol_type): Type to fully describe the symbol types 68560484Sobrien associated with .import/.export assembler directives. 68660484Sobrien 68760484Sobrien * som.c: Include libhppa.h 68860484Sobrien 68960484Sobrien * som.c (bfd_som_set_section_attributes): New function. 69060484Sobrien (bfd_som_set_subsection_attributes): Likewise. 69160484Sobrien (bfd_som_set_symboL_type): Likewise. 69260484Sobrien (bfd_som_attach_unwind_info): Likewise. 69360484Sobrien * som.h: Declare new exported functions. 69460484Sobrien 69560484Sobrien * som.h (struct som_symbol): Add new fields to hold additional 69660484Sobrien information needed to build/write symbol tables and fixup streams. 69760484Sobrien (struct som_section_data_struct): Add new fields to hold additional 69860484Sobrien information needed to build/write space and subspace headers. 69960484Sobrien (som_symbol_data): New accessor macro for SOM symbol information. 70060484Sobrien (R_HPPA_*): Basic relocation types to be used by the assembler. 70160484Sobrien 70260484SobrienFri Nov 12 11:00:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 70360484Sobrien 70460484Sobrien * trad-core.c (trad_unix_core_file_p): If new hook 70560484Sobrien TRAD_CORE_ALLOW_ANY_EXTRA_SIZE defined, then skip the check for the 70660484Sobrien corefile being too big. 70760484Sobrien * hosts/i386sco.h: Define it. 70860484Sobrien 70960484SobrienThu Nov 11 15:16:28 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 71060484Sobrien 71160484Sobrien * bfd.c (struct _bfd): Add hppabsd_core_data. 71260484Sobrien * targets.c (target_vector): Add hppabsd_core_vec. 71360484Sobrien * hpux-core.c (hpux_core_core_file_p): Fail if an unknown core 71460484Sobrien section is encountered during core section scanning. 71560484Sobrien * hppabsd-core.c: New file. 71660484Sobrien * config/hppabsd.mh: Enable HPPA BSD core files. 71760484Sobrien 71860484Sobrien * elf32-hppa.c (hppa_elf_reloc): Remove DEFUN crud. Remove code 71960484Sobrien which is either commented out or ifdef'd out. Add, update and 72060484Sobrien clean comments. Fix various indention and spacing problems. Handle 72160484Sobrien problems related to using "ble" to jump to a stub rather than "bl" 72260484Sobrien (%r31 is trashed by "ble", but not by "bl"). 72360484Sobrien (NEW_INSTRUCTION): Put inside curly braces. 72460484Sobrien (CURRENT_STUB_OFFSET): Fix indention problems. 72560484Sobrien (hppa_elf_build_arg_reloc_stub): Fix indention and spacing problems. 72660484Sobrien Add, update and clean comments. Handle "ble" %r31 lossage problems. 72760484Sobrien (hppa_elf_build_long_branch_stub): Likewise. 72860484Sobrien (hppa_look_for_stubs_in_section): Likewise. 72960484Sobrien (hppa_elf_stub_check): Remove obsolete function. 73060484Sobrien 73160484Sobrien * hppa_stubs.h: Add new instructions to deal with %r31 lossage 73260484Sobrien problems. Delete unused instructions. 73360484Sobrien 73460484SobrienTue Nov 9 11:40:27 1993 Stan Shebs (shebs@rtl.cygnus.com) 73560484Sobrien 73660484Sobrien * m68klynx.c (TARGET_IS_BIG_ENDIAN_P): Define. 73760484Sobrien 73860484SobrienTue Nov 9 11:26:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 73960484Sobrien 74060484Sobrien * elfcode.h (elf_object_p): Rather than looking through an array 74160484Sobrien of architectures, get the ELF EM_xxx code from the backend 74260484Sobrien information. Let the generic ELF target match any EM_xxx code not 74360484Sobrien matched by another ELF target. Call elf_backend_object_p to let 74460484Sobrien the backend do more checks and set global information. 74560484Sobrien * libelf.h (struct elf_backend_data): Added elf_machine_code and 74660484Sobrien elf_backend_object_p fields. 74760484Sobrien (struct bfd_elf_arch_map): Removed. 74860484Sobrien (bfd_elf_arch_map, bfd_elf_arch_map_size): Don't declare. 74960484Sobrien * elf32-target.h, elf64-target.h: Initialize elf_machine_code 75060484Sobrien field with ELF_MACHINE_CODE. Initialize elf_backend_object_p 75160484Sobrien field with elf_backend_object_p (if it is defined). 75260484Sobrien * elf32-gen.c, elf32-hppa.c, elf32-i386.c, elf32-i860.c, 75360484Sobrien elf32-m68k.c, elf32-m88k.c, elf32-mips.c, elf32-sparc.c, 75460484Sobrien elf64-gen.c (ELF_MACHINE_CODE): Defined. 75560484Sobrien * elf32-mips.c: Include ecoffswap.h to get ECOFF swapping 75660484Sobrien routines. 75760484Sobrien (mips_elf_object_p): Set the right machine number. 75860484Sobrien (mips_elf_ecoff_debug_swap): Defined. 75960484Sobrien (elf_backend_object_p): Defined to be mips_elf_object_p. 76060484Sobrien (elf_backend_ecoff_debug_swap): Defined to be 76160484Sobrien mips_elf_ecoff_debug_swap. 76260484Sobrien * elf.c (bfd_elf_arch_map, bfd_elf_arch_map_size): Removed. 76360484Sobrien 76460484Sobrien * libbfd-in.h (target_vector, default_vector): Declare. 76560484Sobrien * libbfd.h: Rebuilt. 76660484Sobrien * format.c (target_vector, default_vector): Don't declare. 76760484Sobrien 76860484Sobrien * elf32-mips.c (elf_mips_howto_table): Don't complain on overflow 76960484Sobrien for R_MIPS_26. Correct overflow detection requires matching the 77060484Sobrien upper four bits of the destination against the PC. From Ted Lemon 77160484Sobrien <mellon@pepper.ncd.com>. 77260484Sobrien 77360484Sobrien * bout.c (b_out_reloc_type_lookup): Return type should point to 77460484Sobrien const data. 77560484Sobrien * coff-i960.c (coff_i960_reloc_type_lookup): Likewise. 77660484Sobrien * elf32-hppa.c (elf_hppa_reloc_type_lookup): Likewise. 77760484Sobrien * mipsbsd.c (MY(reloc_howto_type_lookup)): Likewise. 77860484Sobrien * coff-i386.c (coff_i386_reloc): Made howto const. 77960484Sobrien * oasys.c (oasys_write_data): Made how const. 78060484Sobrien 78160484Sobrien * libelf.h: Added some comments. 78260484Sobrien (struct elf_backend_data): Added elf_backend_ecoff_debug_swap 78360484Sobrien field. Removed unused write_relocs field. 78460484Sobrien * elf32-target.h: Adjusted elf_backend_data initialization 78560484Sobrien accordingly. 78660484Sobrien * elf64-target.h: Corrected elf_backend_data initialization to 78760484Sobrien fill in all fields and to set elf_64_p to 1. 78860484Sobrien 78960484SobrienMon Nov 8 18:13:14 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 79060484Sobrien 79160484Sobrien * elfcode.h (bfd_section_from_shdr): Remove duplicate assignment 79260484Sobrien to filepos in SHT_STRTAB case. 79360484Sobrien (assign_file_position_for_section): Set BFD section filepos as 79460484Sobrien well as ELF section sh_offset. 79560484Sobrien 79660484Sobrien * reloc.c: Use const instead of CONST. 79760484Sobrien (bfd_perform_relocation): Make variable howto a const pointer. 79860484Sobrien * bfd-in2.h, libbfd.h: Rebuilt. 79960484Sobrien 80060484SobrienMon Nov 8 12:19:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 80160484Sobrien 80260484Sobrien * Makefile.in (realclean): Don't remove generated headers. Reverts 80360484Sobrien change of 2 Jul 1993. 80460484Sobrien 80560484SobrienMon Nov 8 06:08:31 1993 D. V. Henkel-Wallace (gumby@cirdan.cygnus.com) 80660484Sobrien 80760484Sobrien * configure.bfd: make unixware equivalent to sysv4. 80860484Sobrien 80960484Sobrien * config/i386-nlm.mt: bring in elf config; make it the default. 81060484Sobrien 81160484SobrienSun Nov 7 20:21:38 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 81260484Sobrien 81360484Sobrien * libbfd.c (bfd_put_8): Add parens around reference to "val" 81460484Sobrien argument. 81560484Sobrien 81660484SobrienFri Nov 5 21:45:09 1993 David J. Mackenzie (djm@thepub.cygnus.com) 81760484Sobrien 81860484Sobrien * hosts/i386mach3.h (HOST_SEGMENT_SIZE), 81960484Sobrien i386mach3.c (SEGMENT_SIZE, TEXT_START_ADDR): Correct values (?). 82060484Sobrien 82160484SobrienFri Nov 5 15:17:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 82260484Sobrien 82360484Sobrien * coffcode.h (coff_write_object_contents): Zero out internal_a. 82460484Sobrien 82560484SobrienFri Nov 5 10:41:07 1993 David J. Mackenzie (djm@thepub.cygnus.com) 82660484Sobrien 82760484Sobrien * aoutx.h, archive.c, archures.c, bfd.c, cache.c, coffcode.h, 82860484Sobrien core.c, ctor.c, format.c, init.c, libbfd.c, opncls.c, reloc.c, 82960484Sobrien section.c, syms.c, targets.c: 83060484Sobrien Doc cleanup (spelling, punctuation, grammar, formatting). 83160484Sobrien * bfd-in2.h, libbfd.h: Rebuild. 83260484Sobrien 83360484SobrienThu Nov 4 14:46:14 1993 John Gilmore (gnu@rtl.cygnus.com) 83460484Sobrien 83560484Sobrien * bfd-in.h (bfd_get_cacheable, bfd_set_cacheable): New accessors. 83660484Sobrien * bfd.c, opncls.c: Improve comments on file descriptor cacheing. 83760484Sobrien 83860484SobrienThu Nov 4 08:54:30 1993 Jeffrey A. Law (law@snake.cs.utah.edu) 83960484Sobrien 84060484Sobrien * From Pete Hoogenboom (hoogen@cs.utah.edu) 84160484Sobrien * elf32-hppa.c (hppa_elf_get_section_contents): Fix logic error 84260484Sobrien in last change. Always rebuild symbol extension section the first 84360484Sobrien time though if output sections exist (fixes ld -r problems). 84460484Sobrien 84560484SobrienThu Nov 04 08:08:46 1993 Jeffrey Wheat (cassidy@cygnus.com) 84660484Sobrien 84760484Sobrien * Makefile.in: Add .PHONY for check and installcheck rules. 84860484Sobrien 84960484SobrienTue Nov 2 14:42:27 1993 Bill Cox (bill@tarkas.cygnus.com) 85060484Sobrien 85160484Sobrien * libbfd-in.h (artdata): Use long, not time_t for portability, at 85260484Sobrien least to HPUX. File below is a derived file. 85360484Sobrien 85460484SobrienTue Nov 2 14:42:27 1993 Bill Cox (bill@tarkas.cygnus.com) 85560484Sobrien 85660484Sobrien * libbfd.h (artdata): Use long, not time_t for portability, at 85760484Sobrien least to HPUX. 85860484Sobrien 85960484SobrienTue Nov 2 09:32:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 86060484Sobrien 86160484Sobrien * config.bfd: Use bigmips for mips*-*-bsd*. 86260484Sobrien 86360484SobrienMon Nov 1 14:30:09 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 86460484Sobrien 86560484Sobrien * elfcode.h (elf_slurp_reloca_table, elf_slurp_reloc_table): 86660484Sobrien Handle symbol number of zero. 86760484Sobrien 86860484Sobrien * reloc.c (enum bfd_reloc_code_real): Added 86960484Sobrien BFD_RELOC_MIPS_LITERAL, BFD_RELOC_MIPS_GOT16, 87060484Sobrien BFD_RELOC_MIPS_CALL16, BFD_RELOC_MIPS_GPREL32. 87160484Sobrien * bfd-in2.h: Rebuilt. 87260484Sobrien * coff-mips.c (mips_bfd_reloc_type_lookup): Handle 87360484Sobrien BFD_RELOC_MIPS_LITERAL. 87460484Sobrien * elf32-mips.c (mips_reloc_map): Handle new relocs. 87560484Sobrien (mips_elf_hi16_reloc, mips_elf_lo16_reloc): Rearrange _gp_disp 87660484Sobrien checks slightly. 87760484Sobrien 87860484Sobrien * aout-target.h (MY_bfd_debug_info_start, MY_bfd_debug_info_end, 87960484Sobrien MY_bfd_debug_info_accumulat [sic]): Remove unused definitions. 88060484Sobrien (MY_bfd_get_relocated_section_contents, MY_bfd_relax_section, 88160484Sobrien MY_bfd_seclet_link): Define. 88260484Sobrien (MY_bfd_reloc_type_lookup): Rename from 88360484Sobrien MY_reloc_howto_type_lookup. 88460484Sobrien (MY_bfd_make_debug_symbol): Rename from MY_make_debug_symbol. 88560484Sobrien (MY(vec)): Use JUMP_TABLE rather than listing functions. 88660484Sobrien * hp300hpux.c (MY_get_symtab, MY_get_symtab_upper_bound, 88760484Sobrien MY_canonicalize_reloc, MY_write_object_contents): Don't define in 88860484Sobrien terms of MY, because that causes a recusive invocation of CAT when 88960484Sobrien expanded within JUMP_TABLE, and ANSI compilers don't expand 89060484Sobrien recursive macros. 89160484Sobrien * mipsbsd.c (MY_bfd_reloc_type_lookup): Rename from 89260484Sobrien MY_reloc_howto_type_lookup, and don't define in terms of MY. 89360484Sobrien (MY_canonicalize_reloc): Don't define in terms of MY. 89460484Sobrien (aout_mips_little_vec, aout_mips_big_vec): Use JUMP_TABLE rather 89560484Sobrien than listing functions. 89660484Sobrien 89760484SobrienMon Nov 1 09:12:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 89860484Sobrien 89960484Sobrien * config.bfd: Use m68k-elf for m68*-*-sysv4*. 90060484Sobrien 90160484SobrienSun Oct 31 09:35:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 90260484Sobrien 90360484Sobrien * targets.c: Move enum target_flavour outside of struct and change 90460484Sobrien the name to enum bfd_flavour. This means bfd clients can use it. 90560484Sobrien * bfd-in.h: Add macro bfd_get_flavour. 90660484Sobrien * bfd-in2.h: Rebuilt. 90760484Sobrien 90860484Sobrien * som.c: Add comment about how abort() on corrupt executable is evil. 90960484Sobrien 91060484SobrienSat Oct 30 12:27:09 1993 David J. Mackenzie (djm@thepub.cygnus.com) 91160484Sobrien 91260484Sobrien * aoutx.h (aout,slurp_reloc_table): Avoid a goto. 91360484Sobrien 91460484SobrienFri Oct 29 16:04:33 1993 David J. Mackenzie (djm@thepub.cygnus.com) 91560484Sobrien 91660484Sobrien * gen-aout.c, libbfd.c: exit(1) instead of exit(-1). 91760484Sobrien 91860484SobrienFri Oct 29 13:17:21 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 91960484Sobrien 92060484Sobrien * bfd-in.h: Added commands for object file flag values. 92160484Sobrien * bfd-in2.h: Rebuilt. 92260484Sobrien * elfcode.h (elf_object_p): If type is ET_DYN, set DYNAMIC flag, 92360484Sobrien not EXEC_P. 92460484Sobrien * bout.c, coff-h8300.c, coff-sh.c: Add BFD_IS_RELAXABLE to 92560484Sobrien object_flags field for target vector. 92660484Sobrien * aix386-core.c, aout-adobe.c, aout-target.h, bout.c, coff-a29k.c, 92760484Sobrien coff-alpha.c, coff-apollo.c, coff-h8300.c, coff-h8500.c, 92860484Sobrien coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c, coff-mips.c, 92960484Sobrien coff-rs6000.c, coff-sh.c, coff-we32k.c, coff-z8k.c, hpux-core.c, 93060484Sobrien ieee.c, mipsbsd.c, nlm-target.h, oasys.c, osf-core.c, som.c, 93160484Sobrien srec.c, tekhex.c, trad-core.c: Remove DYNAMIC from object_flags 93260484Sobrien field for target vector. 93360484Sobrien 93460484SobrienThu Oct 28 20:02:31 1993 David J. Mackenzie (djm@thepub.cygnus.com) 93560484Sobrien 93660484Sobrien * hosts/std-host.h: Don't declare time; causes error on mach3. 93760484Sobrien * configure.in (i386mach3_vec): Require aout32.o stab-syms.o. 93860484Sobrien 93960484SobrienThu Oct 28 16:33:26 1993 Stan Shebs (shebs@rtl.cygnus.com) 94060484Sobrien 94160484Sobrien LynxOS and Sparc LynxOS changes: 94260484Sobrien * config.bfd: Recognize sparc-*-lynxos*. 94360484Sobrien * configure.host: Recognize sparc-*-lynxos*. 94460484Sobrien * configure.in: Recognize Sparc Lynx vectors. 94560484Sobrien * targets.c (sparclynx_aout_vec): Declare. 94660484Sobrien (sparclynx_coff_vec): Declare. 94760484Sobrien (target_vector): Add them. 94860484Sobrien * cf-i386lynx.c: New file, renamed from i386lynx-cf.c. 94960484Sobrien * cf-m68klynx.c: New file, renamed from m68klynx-cf.c. 95060484Sobrien * cf-sparclynx.c: New file, support for coff in Sparc LynxOS. 95160484Sobrien * coff-sparc.c: New file, basic Sparc coff support. 95260484Sobrien * sparclynx.c: New file, support for a.out in Sparc LynxOS. 95360484Sobrien * Makefile.in: Change filenames appropriately, add Sparc rules. 95460484Sobrien * coffcode.h (coff_set_arch_mach_hook): Recognize Sparc magic 95560484Sobrien number. 95660484Sobrien (coff_set_flags): Use LynxOS magic number for i386, m68k, and 95760484Sobrien Sparc LynxOS, set Sparc magic number for Sparcs. 95860484Sobrien * config/m68k-lynx.mt (SELECT_VECS): Remove redundant vector. 95960484Sobrien * config/sparc-lynx.mt: New file. 96060484Sobrien * hosts/i386lynx.h: Cosmetic improvements. 96160484Sobrien * hosts/m68klynx.h: Add ifdefs, #define of cfree. 96260484Sobrien * hosts/sparclynx.h: New file. 96360484Sobrien 96460484SobrienThu Oct 28 16:23:40 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 96560484Sobrien 96660484Sobrien gcc -Wall lint: 96760484Sobrien * coff-h8300.c (h8300_reloc16_estimate): Declare return type. 96860484Sobrien Remove useless statement probably left by code copy. 96960484Sobrien * cpu-i960.c (compatible): Fully bracket matrix initializer. 97060484Sobrien * elf32-hppa.c (hppa_elf_build_arg_reloc_stub): Use bfd_xmalloc 97160484Sobrien rather than xmalloc. Use realloc and check the return value 97260484Sobrien rather than xrealloc. 97360484Sobrien (hppa_elf_get_section_contents): Add some casts. 97460484Sobrien * elf32-i386.c (elf_i386_reloc_type_lookup): Remove unused 97560484Sobrien variable. Add default case to switch. 97660484Sobrien * hp300hpux.c: Declare aout_32_write_syms. 97760484Sobrien * i386bsd.c, i386linux.c, netbsd386.c (N_SHARED_LIB): Define as 0 97860484Sobrien (definition from aout/aout64.h is always 0 anyhow). 97960484Sobrien * i386lynx.c (swap_std_reloc_in): Remove unused variable. 98060484Sobrien * ieee.c (ieee_write_id): length can never be negative. 98160484Sobrien (read_id): Likewise. 98260484Sobrien (ieee_archive_p): Remove unused variable. 98360484Sobrien * libcoff-in.h (bfd_perform_slip): Declare. 98460484Sobrien * libcoff.h: Rebuilt. 98560484Sobrien * oasys.c (oasys_write_sections): Remove zero initialization of 98660484Sobrien static structure. 98760484Sobrien * reloc16.c: Indentation change. 98860484Sobrien 98960484SobrienWed Oct 27 16:51:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 99060484Sobrien 99160484Sobrien * configure.in, config/i386-mach3.mt: Update for new configuration 99260484Sobrien (--with-targets and so on). 99360484Sobrien * hosts/i386mach3.h: Declare errno. 99460484Sobrien * targets.c: Declare i386mach3_vec. 99560484Sobrien 99660484SobrienWed Oct 27 12:18:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 99760484Sobrien 99860484Sobrien * nlmcode.h (nlm_swap_auxiliary_headers_in, 99960484Sobrien nlm_swap_auxiliary_headers_out): Handle sharedDebugRecordOffset 100060484Sobrien and sharedDebugRecordCount fields. 100160484Sobrien 100260484SobrienTue Oct 26 16:21:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 100360484Sobrien 100460484Sobrien * targets.c (target_vector): Remove SCO_CORE. On Sep 11 1993, 100560484Sobrien we started using trad-core.c for SCO instead. 100660484Sobrien 100760484Sobrien * targets.c (target_vector): Re-enable generic ELF and NLM targets. 100860484Sobrien 100960484SobrienTue Oct 26 16:53:12 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 101060484Sobrien 101160484Sobrien * elfcode.h (assign_file_position_for_section): Align sh_offset to 101260484Sobrien sh_addralign (this is what UnixWare does, and it shouldn't hurt). 101360484Sobrien 101460484SobrienTue Oct 26 10:16:54 1993 Ken Raeburn (raeburn@cygnus.com) 101560484Sobrien 101660484Sobrien From Jeff Law and Pete Hoogenboom at Utah: 101760484Sobrien 101860484Sobrien * elf32-hppa.h (hppa_elf_stub_finish): Add prototype. 101960484Sobrien (ELF32_HPPA_R_ARG_RELOC): Renamed without the ELF32 prefix 102060484Sobrien and moved into libhppa.h. All references changed. 102160484Sobrien (ELF32_HPPA_R_CONSTANT, ELF32_HPPA_R_ADDEND): Likewise. 102260484Sobrien (get_opcode and opcode defines): Move into libhppa.h 102360484Sobrien * elf32-hppa.c (hppa_elf_insn2fmt): Rename and move info 102460484Sobrien libhppa.h. 102560484Sobrien * libhppa.h (HPPA_R_*): Moved here. Reformatted slightly to make 102660484Sobrien for easier reading. 102760484Sobrien (get_opcode): Moved here. FIXME! this really should be a C function 102860484Sobrien inside the opcode library! 102960484Sobrien (bfd_hppa_insn2fmt): Likewise. 103060484Sobrien 103160484Sobrien * targets.c (target_vector): Enable elf32-hppa vector. 103260484Sobrien 103360484Sobrien * elf32-hppa.c (hppa_elf_get_section_contents): Add new comments 103460484Sobrien and clarify existing comments. Do not use DEFUN to declare this 103560484Sobrien function. Fix numerous indention problems. Correctly handle cases 103660484Sobrien where symbol extension section may need to be read from disk, 103760484Sobrien read from memory, or built then read from memory. 103860484Sobrien 103960484Sobrien * elf32-hppa.h: Reformat with gnu-indent and hand fix numerous 104060484Sobrien formatting and indention problems gnu-indent can not handle. 104160484Sobrien Clarify some comments about relocation types. Comment basic 104260484Sobrien relocation "classes". Group PARAM declarations together. 104360484Sobrien (HPPA_SXT_{NULL, SYMNDX, RG_RELOC}): Make members of a new 104460484Sobrien enumerated type rather than #defines. 104560484Sobrien 104660484SobrienTue Oct 26 02:40:46 1993 Stu Grossman (grossman at cygnus.com) 104760484Sobrien 104860484Sobrien * som.c (hppa_object_setup): Set SEC_CODE for .text section so 104960484Sobrien that GDB can figure out text_start and text_end. 105060484Sobrien 105160484SobrienMon Oct 25 16:05:23 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 105260484Sobrien 105360484Sobrien Fix up warnings from gcc -Wall: 105460484Sobrien * coffgen.c (coff_print_symbol): Use %lx and cast n_value to 105560484Sobrien unsigned long. Use %ld for tagndx. Use %lx for offset + vma and 105660484Sobrien cast it to unsigned long. 105760484Sobrien * ecoff.c (ecoff_emit_aggregate): Use %ld. 105860484Sobrien (ecoff_print_symbol): Use %ld, and cast indx and sym_base to long. 105960484Sobrien * coffcode.h (dummy_reloc16_estimate): Specify return type. 106060484Sobrien 106160484Sobrien * libbfd.c (bfd_write): If not everything is written out, set 106260484Sobrien bfd_error to system_call_error. If the return value is 106360484Sobrien non-negative, set errno to ENOSPC (if ENOSPC is defined). 106460484Sobrien (bfd_seek): If the seek fails, set bfd_error to system_call_error. 106560484Sobrien (bfd_generic_set_section_contents): For a bad offset + count, set 106660484Sobrien bfd_error to bad_value. 106760484Sobrien * seclet.c (rel): Don't abort. Instead, return false. 106860484Sobrien 106960484SobrienMon Oct 25 09:59:37 1993 Ken Raeburn (raeburn@cygnus.com) 107060484Sobrien 107160484Sobrien * aoutx.h (reloc_type_lookup): Handle BFD_RELOC_SPARC_WDISP22. 107260484Sobrien 107360484SobrienFri Oct 22 20:35:54 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 107460484Sobrien 107560484Sobrien * config.bfd: handle mips*-* instead of mips-*, use mips*el 107660484Sobrien instead of mips-*-*l 107760484Sobrien 107860484SobrienFri Oct 22 14:03:33 1993 Mark Eichin (eichin@cygnus.com) 107960484Sobrien 108060484Sobrien * m68k-lynx.mt, i386-lynx.mt (TDEFINES): set 108160484Sobrien FPRINTF_ALREADY_DECLARED because the objdump.c declaration of 108260484Sobrien fprintf collides with the native one. 108360484Sobrien 108460484SobrienFri Oct 22 11:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 108560484Sobrien 108660484Sobrien * targets.c (target_vector): Enable MIPS ELF vectors. 108760484Sobrien 108860484SobrienFri Oct 22 07:51:51 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 108960484Sobrien 109060484Sobrien * config.bfd: Use bigmips for mips-sony-bsd*. 109160484Sobrien 109260484Sobrien * configure.host, config.bfd: Add * to end of all OS names. 109360484Sobrien 109460484SobrienThu Oct 21 12:16:26 1993 Ken Raeburn (raeburn@cygnus.com) 109560484Sobrien 109660484Sobrien * elfcode.h (FILE_ALIGN): Renamed from EALIGN, to avoid conflict 109760484Sobrien with Ultrix header files. 109860484Sobrien 109960484Sobrien * som.h (struct som_section_data_struct): Renamed from 110060484Sobrien som_section_data to avoid conflict with macro by that name. 110160484Sobrien 110260484Sobrien Changes from Jeff Law and Peter Hoogenboom at Utah: 110360484Sobrien 110460484Sobrien * elf32-hppa.c (hppa_elf_reloc): Target register for a 'jump 110560484Sobrien in delay slot' optimization in combination with a long call 110660484Sobrien stub should always be r31. 110760484Sobrien 110860484Sobrien * elf32-hppa.c: (hppa_elf_relocate_insn): To be consistent 110960484Sobrien across all relocation types, retrieve instruction addends from 111060484Sobrien the relocation entry rather than from the instruction itself. 111160484Sobrien 111260484Sobrien * elf32-hppa.c: (hppa_elf_relocate_insn): Fix a relocation 111360484Sobrien error that only occurred when the addend of an 'addil' or 111460484Sobrien 'ldil' was larger than 21 bits and very close to a 2K byte 111560484Sobrien boundary. 111660484Sobrien 111760484Sobrien * elf32-hppa.c: (hppa_elf_reloc): Handle the optimization in 111860484Sobrien which a jump is placed in the delay slot of a function call. 111960484Sobrien The jump was being accomplished via an adjustment to the 112060484Sobrien return pointer. This optimization would break the long call 112160484Sobrien stub code, if there was any. 112260484Sobrien 112360484Sobrien * elf32-hppa.c: (hppa_elf_build_long_branch_stub): Corrections 112460484Sobrien to long branch stubs to avoid use of general register 2. 112560484Sobrien 112660484Sobrien * hppa_stubs.h: New stub instructions. 112760484Sobrien 112860484Sobrien * elfcode.h: Declare bfd_elf_find_section. 112960484Sobrien 113060484Sobrien * som.h (som_section_data): Add new "subspace_index" field. 113160484Sobrien 113260484Sobrien * som.c (setup_sections): Save the original SOM subspace index 113360484Sobrien in the BFD section associated with that subspace. 113460484Sobrien (som_get_symtab_upper_bound): Implement. 113560484Sobrien (som_get_symtab): Implement. 113660484Sobrien (som_print_symbol): Implement. 113760484Sobrien (som_slurp_string_table): New function to read a string table 113860484Sobrien from a SOM object file. 113960484Sobrien (som_section_from_subspace_index): New function to return the 114060484Sobrien section which corresponds to a SOM subspace index. 114160484Sobrien (som_slurp_symbol_table): New function to read the symbol 114260484Sobrien table from a SOM object file. 114360484Sobrien (som_make_empty_symbol): Check for errors from bfd_zalloc. 114460484Sobrien (som_new_section_hook): Initialize subspace_index field to 114560484Sobrien -1 instead of 0. 114660484Sobrien 114760484Sobrien * som.c (som_object_setup): Fix polarity of test to set HAS_RELOC. 114860484Sobrien Set EXEC_P for executables. 114960484Sobrien (setup_sections): Correctly identify when a section has 115060484Sobrien relocations. 115160484Sobrien (log2): New function. 115260484Sobrien (setup_sections): Correctly convert between SOM alignments and BFD 115360484Sobrien alignments. 115460484Sobrien 115560484Sobrien * som.c (setup_sections): Do not set SEC_ALLOC or SEC_LOAD 115660484Sobrien for sections which correspond to SOM spaces, doing so confuses 115760484Sobrien many utilities. Set assorted SEC_* flags for SOM subspaces 115860484Sobrien which correspond to BFD sections. 115960484Sobrien 116060484Sobrien * elf32-hppa.c: (elf32_hppa_backend_fake_sections): The stab 116160484Sobrien string table should have sh_type == SHT_STRTAB. Add 116260484Sobrien processing to make it so. 116360484Sobrien 116460484Sobrien * elfcode.h: (bfd_section_from_shdr): String tables (other 116560484Sobrien than .strtab) were not getting the file offsets recorded, so 116660484Sobrien they could not be read from disk. 116760484Sobrien 116860484Sobrien * elfcode.h: (elf_make_sections): Leave the sh_addr field of 116960484Sobrien the section header and the vma field of a section at 0 if the 117060484Sobrien section is not part of the program execution image. (e.g., 117160484Sobrien .stab) 117260484Sobrien 117360484Sobrien * som.[hc]: Change target vector prefix from "hppa" to "som". 117460484Sobrien Consistently use obj_som prefix to access fields in backend data 117560484Sobrien structures. Fix all callers/references. 117660484Sobrien 117760484Sobrien * som.h: Do not include files only needed for core file reading here. 117860484Sobrien Include a.out for both HOST_HPPAHPUX and HOST_HPPABSD. Delete 117960484Sobrien forward structure declarations, they are unnecessary. 118060484Sobrien (struct somdata): Delete aux_hdr, and hp_symbol_entry_size fields. 118160484Sobrien Change "symbols" to "symtab". Add "stringtab" and "reloc_filepos" 118260484Sobrien fields for future use. Change obj_som_* macros as appropriate. 118360484Sobrien (som_section_data): New structure to keep SOM specific information 118460484Sobrien about BFD sections (for future use). 118560484Sobrien 118660484Sobrien * som.c: Provide PARAMS declarations for all functions currently 118760484Sobrien in this file. 118860484Sobrien (struct container): Delete unwanted structure definition. 118960484Sobrien (som_object_setup): Add comments. Use som_mkobject to allocate 119060484Sobrien SOM specific information in the BFD; use information from the 119160484Sobrien file and (possibly empty) auxiliary headers to initialize this 119260484Sobrien information. Delete redundant bfd_get_symcount (abfd) "calls". 119360484Sobrien (setup_sections): Return type is now boolean, fix return statements. 119460484Sobrien "Fix" handling of BSS like subspaces in the computation of the 119560484Sobrien containing space's size. If the subspace has relocations, set the 119660484Sobrien appropriate BFD section flags and record the index into and the 119760484Sobrien size of the fixup stream. Always return a value. 119860484Sobrien (som_object_p): Set bfd_error appropriately if errors are detected 119960484Sobrien from bfd_{read,seek} functions. Handle EXECLIBMAGIC type files. 120060484Sobrien Do not try to read a non-existant auxiliary header. 120160484Sobrien (som_mkobject): Flesh out. 120260484Sobrien (som_section_hook): Allocate space to hold SOM specific information 120360484Sobrien about sections. 120460484Sobrien 120560484SobrienThu Oct 21 12:41:34 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 120660484Sobrien 120760484Sobrien gcc -Wall lint: 120860484Sobrien * coff-h8300.c, coffcode.h: Change shrink parameter 120960484Sobrien in *_reloc16_estimate to unsigned to match prototype. 121060484Sobrien * archive.c: Avoid "/*" in comment. 121160484Sobrien 121260484SobrienThu Oct 21 13:05:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 121360484Sobrien 121460484Sobrien * dep-in.sed: Create our own line breaks for a more aesthetic 121560484Sobrien Makefile. 121660484Sobrien * Makefile.in: Rebuilt dependencies. 121760484Sobrien 121860484Sobrien * elf32-mips.c: Include "seclet.h". 121960484Sobrien (mips_elf_fake_sections): Force size of .reginfo section to sizeof 122060484Sobrien Elf32_External_RegInfo. 122160484Sobrien (mips_elf_seclet_link): New function. Link the .reginfo section 122260484Sobrien specially, and pass everything else to the generic routine. 122360484Sobrien (bfd_elf32_bfd_seclet_link): Define macro. 122460484Sobrien * elf32-target.h: If bfd_elf32_bfd_seclet_link is already defined, 122560484Sobrien don't override it. 122660484Sobrien 122760484SobrienWed Oct 20 12:22:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 122860484Sobrien 122960484Sobrien * libnlm.h (nlm_backend_data): Added signature field. 123060484Sobrien (nlm_signature): New macro. 123160484Sobrien * nlmcode.h (nlm_object_p, nlm_write_object_contents): Use the NLM 123260484Sobrien signature from the backend rather than the constant NLM_SIGNATURE. 123360484Sobrien * nlm32-i386.c (nlm32_i386_backend): Initialize signature field. 123460484Sobrien 123560484Sobrien * aoutf1.h (MACHTYPE_OK): Accept M_UNKNOWN. 123660484Sobrien (NAME(sunos,set_arch_mach)): Treat M_UNKNOWN as 68000, not 68020. 123760484Sobrien 123860484SobrienWed Oct 20 10:28:27 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 123960484Sobrien 124060484Sobrien * hosts/i386bsd.h [__bsdi__]: Define HOST_DATA_START_ADDR. 124160484Sobrien 124260484SobrienWed Oct 20 10:10:07 1993 Ken Raeburn (raeburn@cygnus.com) 124360484Sobrien 124460484Sobrien * Makefile.in (HFILES): New variable, for use in "make dep". 124560484Sobrien (.dep): Depend on $(CFILES) and $(HFILES). Delete .dep1 and 124660484Sobrien remake it, so that "$?" is complete. 124760484Sobrien (.dep1): Don't need to remove .dep1 first. 124860484Sobrien (dep.sed): Depend on config.status, not Makefile. 124960484Sobrien (CFILES): Add nlm.c. 125060484Sobrien 125160484SobrienTue Oct 19 15:26:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 125260484Sobrien 125360484Sobrien * coff-alpha.c: Implemented reloc handling for the linker, made 125460484Sobrien various other related changes. 125560484Sobrien * libecoff.h (ecoff_backend_data): Added rdata_in_text field. 125660484Sobrien Renamed finish_reloc to adjust_reloc_in. Added adjust_reloc_out 125760484Sobrien field. 125860484Sobrien (ecoff_bfd_get_relocated_section_contents): Don't define. 125960484Sobrien * ecoff.c (ecoff_sec_to_styp_flags, ecoff_styp_to_sec_flags): 126060484Sobrien Handle .lita section. 126160484Sobrien (ecoff_slurp_reloc_table): Handle RELOC_SECTION_FINI. 126260484Sobrien finish_reloc backend field renamed to adjust_reloc_in. 126360484Sobrien (ecoff_bfd_seclet_link): Adjust number of aux entries to 126460484Sobrien debug_align boundary. 126560484Sobrien (ecoff_compute_section_file_positions): If rdata_in_text put 126660484Sobrien .rdata section in text segment, not data segment. Put .pdata 126760484Sobrien section in text segment. 126860484Sobrien (ecoff_write_object_contents): Likewise. Also, call 126960484Sobrien adjust_reloc_out, and handle .lita, .xdata, .pdata, .fini and 127060484Sobrien absolute sections when writing out relocs. 127160484Sobrien * coffswap.h (coff_swap_aouthdr_out): For ALPHAECOFF, output 2 for 127260484Sobrien bldrev field, as on Alpha OSF/1. Padding field is now 2 bytes. 127360484Sobrien * coff-mips.c (mips_ecoff_swap_reloc_out): Added assertion. 127460484Sobrien (mips_adjust_reloc_in): Renamed from mips_finish_reloc. 127560484Sobrien (mips_adjust_reloc_out): New function (does nothing). 127660484Sobrien (mips_ecoff_backend_data): Initialize new fields. 127760484Sobrien (ecoff_bfd_get_relocation_section_contents): Define to be 127860484Sobrien bfd_generic_get_relocated_section_contents. 127960484Sobrien 128060484Sobrien * reloc.c (bfd_perform_relocation): Added casts to avoid Alpha 128160484Sobrien OSF/1 cc bug. 128260484Sobrien 128360484SobrienThu Oct 14 01:10:35 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 128460484Sobrien 128560484Sobrien * reloc.c (bfd_perform_relocation): Add comments attempting to 128660484Sobrien explain PC relative relocations. 128760484Sobrien 128860484Sobrien * coffcode.h (styp_to_sec_flags): Don't set SEC_DEBUGGING until it 128960484Sobrien is made to work. 129060484Sobrien (coff_compute_section_file_positions): Remove check for 129160484Sobrien USE_DISCARDED_SECTIONS_COUNT. 129260484Sobrien * coff-i386.c: Don't define USE_DISCARDED_SECTIONS_COUNT. Basing 129360484Sobrien it on host defines is wrong. 129460484Sobrien 129560484Sobrien * ecoff.c (ecoff_bfd_seclet_link): Don't link a .reginfo section. 129660484Sobrien (ecoff_write_object_contents): Don't require the .reginfo section 129760484Sobrien to be a particular size. 129860484Sobrien 129960484SobrienWed Oct 13 18:39:03 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 130060484Sobrien 130160484Sobrien * Makefile.in (dep-in): New rule, for editing dependencies into 130260484Sobrien Makefile.in in $(srcdir). Use move-if-change. 130360484Sobrien (.dep1, dep): Use move-if-change. 130460484Sobrien (CFILES): Add coff-apollo.c. 130560484Sobrien 130660484Sobrien Sun Oct 10 18:02:56 1993 Troy Rollo (troy@cbme.unsw.EDU.AU) 130760484Sobrien 130860484Sobrien * Makefile.in: Recognise new file, coff-apollo.o 130960484Sobrien 131060484Sobrien * coff-apollo.c: New file 131160484Sobrien 131260484Sobrien * coffcode.h: Recognise apollo magic numbers and writable text 131360484Sobrien 131460484Sobrien * coffswap.h: Swap Apollo optional header entries 131560484Sobrien 131660484Sobrien * config.bfd: Add line for Apollo 131760484Sobrien 131860484Sobrien * configure.host: Replace apollo68b and apollo68v with Apollo 131960484Sobrien 132060484Sobrien * configure.in: Recognise apollocoff_vec 132160484Sobrien 132260484Sobrien * targets.c: Likewise 132360484Sobrien 132460484Sobrien * config/apollo.mh, config/apollo.mt: New files 132560484Sobrien 132660484Sobrien * hosts/apollo68.h: Remove inclusion of strings.h 132760484Sobrien 132860484SobrienWed Oct 13 14:28:17 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 132960484Sobrien 133060484Sobrien * coff-i386.c (i3coff_object_p): Now static. 133160484Sobrien 133260484Sobrien * Makefile.in: Updated dependencies. 133360484Sobrien (.dep, .dep1, dep.sed): New targets, to make "make dep" work 133460484Sobrien better. 133560484Sobrien * dep-in.sed: New file. 133660484Sobrien 133760484Sobrien * m68klynx-cf.c (ONLY_DECLARE_RELOCS): Define, to avoid name 133860484Sobrien conflicts when "--with-targets=all". 133960484Sobrien * coff-m68k.c (m68kcoff_howto_table, m68k_rtype2howto, 134060484Sobrien m68k_howto2rtype): Rename via macros to keep namespace clean. 134160484Sobrien * configure.in: For m68klynx_coff_vec, include coff-m68k.o for 134260484Sobrien now. 134360484Sobrien 134460484SobrienTue Oct 12 17:03:27 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 134560484Sobrien 134660484Sobrien * elf32-mips.c: Extensive additions to do relocations and to 134760484Sobrien handle MIPS specific sections. 134860484Sobrien * libelf.h (elf_backend_data): Pass fourth argument to 134960484Sobrien elf_backend_section_from_bfd_section to permit it to control the 135060484Sobrien section index to use. 135160484Sobrien (elf_obj_tdata): Add gp and gp_size fields. 135260484Sobrien (elf_gp, elf_gp_size): New accessor macros. 135360484Sobrien * elfcode.h: Removed a number of unused local variables. 135460484Sobrien (elf_fake_sections): Clear section header before calling 135560484Sobrien elf_backend_fake_sections, not after. 135660484Sobrien (prep_headers): Return true at end. 135760484Sobrien (elf_section_from_bfd_section): Pass retval argument to 135860484Sobrien elf_backend_section_from_bfd_section. 135960484Sobrien * elf32-hppa.c (elf32_hppa_backend_section_from_bfd_section): 136060484Sobrien Accept and ignore new retval argument. 136160484Sobrien * bfd.c: Include libelf.h. 136260484Sobrien (bfd_set_gp_size): Handle ELF targets. 136360484Sobrien * Makefile.in (bfd.o): Depends upon libelf.h. 136460484Sobrien (elf32-mips.o): Depends upon $(INCDIR)/elf/mips.h. 136560484Sobrien 136660484SobrienMon Oct 11 17:25:18 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 136760484Sobrien 136860484Sobrien * ecoff.c (ecoff_mkobject): Check bfd_make_section return value. 136960484Sobrien (ecoff_mkobject_hook): New function. 137060484Sobrien (ecoff_new_section_hook, ecoff_sizeof_headers, 137160484Sobrien ecoff_compute_section_file_positions, ecoff_set_section_contents, 137260484Sobrien ecoff_write_object_contents): Handle dummy REGINFO section. 137360484Sobrien (ecoff_get_section_contents): New function to handle reading 137460484Sobrien REGINFO section. 137560484Sobrien * libecoff.h (ecoff_get_section_contents): Change from macro 137660484Sobrien definition to function prototype. 137760484Sobrien (ecoff_mkobject_hook): New prototype. 137860484Sobrien * coff-alpha.c (alpha_ecoff_mkobject_hook): Removed. 137960484Sobrien (alpha_ecoff_backend_data): Use ecoff_mkobject_hook. 138060484Sobrien * coff-mips.c (mips_ecoff_mkobject_hook): Removed. 138160484Sobrien (mips_ecoff_backend_data): Use ecoff_mkobject_hook. 138260484Sobrien 138360484SobrienFri Oct 8 15:25:33 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 138460484Sobrien 138560484Sobrien * libbfd.c (bfd_get*32, bfd_get*64): Prevent ANSI sign extension 138660484Sobrien by casting the most significant byte to bfd_vma. 138760484Sobrien 138860484SobrienFri Oct 8 02:34:21 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 138960484Sobrien 139060484Sobrien * configure.in: Do not define SELECT_VECS, SELECT_ARCHITECTURES 139160484Sobrien if configuring --with-targets=all. 139260484Sobrien 139360484SobrienThu Oct 7 17:34:07 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 139460484Sobrien 139560484Sobrien * aoutx.h (howto_table_std): Correct the "size" field in some 139660484Sobrien entries. 139760484Sobrien 139860484Sobrien * reloc.c (reloc_howto_type): Change documentation to dispel any 139960484Sobrien notion that the "size" field is a power-of-two indicator. 140060484Sobrien 140160484SobrienThu Oct 7 10:50:38 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 140260484Sobrien 140360484Sobrien * coffswap.h: (bfd_swap_reloc_in): a symndx is signed. 140460484Sobrien 140560484Sobrien Make support for relaxing more generic. 140660484Sobrien * reloc16.c: Add new target entry - bfd_coff_reloc16_estimate, 140760484Sobrien fix bit rot. 140860484Sobrien * libcoff.h, libcoff-in.h: declarations. Prototypes 140960484Sobrien * coffcode.h (bfd_coff_std_swap_table): Add calls to 141060484Sobrien coff_reloc_16_extra_cases and coff_reloc16_estimate. 141160484Sobrien (dummy_reloc16_estimate): New function. 141260484Sobrien * coff-h8300.c (h8300_reloc16_estimate): New function 141360484Sobrien 141460484SobrienThu Oct 7 14:24:13 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 141560484Sobrien 141660484Sobrien * elfcode.h (EALIGN): Define, dependent on ARCH_SIZE. 141760484Sobrien (align_file_position): New function. 141860484Sobrien (elf_locate_sh): Disabled function deleted. 141960484Sobrien (assign_file_positions_for_symtab_and_strtabs): Align position, 142060484Sobrien then place symtab, then do other sections. 142160484Sobrien (map_program_segments): Align program header. 142260484Sobrien (assign_file_positions_except_relocs): Align section headers. 142360484Sobrien (assign_file_positions_for_relocs): Align relocation sections. 142460484Sobrien 142560484SobrienTue Oct 5 10:44:32 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 142660484Sobrien 142760484Sobrien * configure.host: Recognize hppa*-*-hiux* (currently synonym for hpux). 142860484Sobrien Change other hppa entries to use -*- not -hp-. 142960484Sobrien * config.bfd: Recognize hppa*-*-hiux* (currently synonym for hpux). 143060484Sobrien 143160484Sobrien * coff-rs6000.c, cpu-rs6000.c, rs6000-core.c: Change non-ASCII 143260484Sobrien characters in comment to octal escapes. 143360484Sobrien 143460484SobrienSun Oct 3 12:35:15 1993 Stan Shebs (shebs@rtl.cygnus.com) 143560484Sobrien 143660484Sobrien * coff-i386lynx.c: Removed, name too long. 143760484Sobrien * i386lynx-cf.c: New file, was coff-i386lynx.c. 143860484Sobrien * configure.in: Reflect file name changes. 143960484Sobrien * Makefile.in: Mention Lynx-related files. 144060484Sobrien 144160484Sobrien * i386lynx.c (lynx_32_swap_ext_reloc_in): get reloc bits in i386 144260484Sobrien Lynx-specific way. 144360484Sobrien 144460484Sobrien * m68klynx-cf.c: New file, defines coff format for M68K LynxOS. 144560484Sobrien * m68klynx.c: Remove coff vector definition, now in m68klynx-cf.c. 144660484Sobrien 144760484Sobrien * coffcode.h (sec_to_styp_flags): Set section flag to STYP_INFO 144860484Sobrien for .stab, .stabstr and .debug sections, and set SEC_DEBUGGING for 144960484Sobrien sections of type STYP_INFO. (from Minh Tran-Le) 145060484Sobrien (coff_compute_section_file_positions): Add discarded_sections_count 145160484Sobrien to abfd->section_count, which helps `strip' keep the size 145260484Sobrien of the executable header constant. 145360484Sobrien * coff-i386.c (discarded_sections_count): New variable, initialized 145460484Sobrien to zero. For use by `strip'. Currently being used only in aix386 145560484Sobrien coff, but may be useful for other coff systems. (from Minh Tran-Le) 145660484Sobrien 145760484Sobrien * coffswap.h (coff_swap_filehdr_out): Added a missing cast. 145860484Sobrien 145960484Sobrien * archive.c: Cosmetic improvements. 146060484Sobrien * opncls.c: Cosmetic improvements. 146160484Sobrien (new_bfd): Removed redundant structure slot init. 146260484Sobrien 146360484SobrienSat Oct 2 18:48:17 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 146460484Sobrien 146560484Sobrien * config/news-mips.mh, hosts/news-mips.h: New files. 146660484Sobrien * configure.host: Use news-mips for mips-sony-bsd*. 146760484Sobrien 146860484SobrienFri Oct 1 13:14:17 1993 Stan Shebs (shebs@rtl.cygnus.com) 146960484Sobrien 147060484Sobrien * configure.in: i386lynx_coff_vec requires coff-i386lynx.o. 147160484Sobrien * coff-i386lynx.c: New file, defines Lynx target vector and name, 147260484Sobrien includes coff-i386.c. 147360484Sobrien * coff-i386.c (i386coff_vec): Allow redefinition of target vector 147460484Sobrien symbol and name, if TARGET_SYM and/or TARGET_NAME are defined. 147560484Sobrien * i386lynx.c: Remove coff vector definition entirely. 147660484Sobrien (lynx_32_swap_ext_reloc_in): Define. 147760484Sobrien (lynx_32_swap_std_reloc_in): Define, get reloc bits in i386 147860484Sobrien Lynx-specific way. 147960484Sobrien (lynx_32_swap_ext_reloc_out): Define. 148060484Sobrien (lynx_32_swap_std_reloc_out): Define. 148160484Sobrien (lynx_32_slurp_reloc_table): Define, call Lynx swapping fns. 148260484Sobrien (lynx_32_squirt_out_relocs): Define, call Lynx swapping fns. 148360484Sobrien (lynx_32_canonicalize_reloc): Define, call Lynx swapping fns. 148460484Sobrien (WRITE_HEADERS): Define, call Lynx swapping fns. 148560484Sobrien 148660484Sobrien * config/i386-lynx.mt (SELECT_VECS): Remove redundant vector. 148760484Sobrien 148860484SobrienThu Sep 30 17:50:52 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 148960484Sobrien 149060484Sobrien * reloc.c (bfd_reloc_code_type): Add linkage-table relative 149160484Sobrien relocations of size 8, 16, 32. Sort generic relocs by type rather 149260484Sobrien than size. Added a little documentation too. 149360484Sobrien 149460484Sobrien * aoutx.h (howto_table_std): Add BASE16 and BASE32 relocs. 149560484Sobrien (TABLE_SIZE): New macro. 149660484Sobrien (reloc_type_lookup): Handle BFD_RELOC_{16,32}_BASEREL for std 149760484Sobrien relocs. 149860484Sobrien (swap_std_reloc_out): Write baserel relocs correctly. 149960484Sobrien (swap_std_reloc_in): Handle r_baserel field. Assert that 150060484Sobrien r_jmptable and r_relative fields are clear, and that the computed 150160484Sobrien index does refer to a defined entry of the howto table. 150260484Sobrien 150360484SobrienTue Sep 28 14:47:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 150460484Sobrien 150560484Sobrien * section.c (bfd_make_section_anyway): New function. 150660484Sobrien * section.c: Change comments to say several sections can have 150760484Sobrien the same name. 150860484Sobrien * bfd-in2.h: Re-generate to reflect above change. 150960484Sobrien * coffgen.c (make_a_section_from_file): Call bfd_make_section_anyway 151060484Sobrien if still no section after the bfd_coff_make_section_hook. 151160484Sobrien * coffcode.h: Add comment about TWO_DATA_SECS. 151260484Sobrien 151360484SobrienTue Sep 28 03:22:24 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 151460484Sobrien 151560484Sobrien * ecoff.c (ecoff_slurp_symbolic_info): Always determine raw_size 151660484Sobrien explicitly. 151760484Sobrien * ecoff.c (ecoff_sec_to_styp_flags, ecoff_styp_to_sec_flags): Handle 151860484Sobrien .fini section. 151960484Sobrien 152060484SobrienMon Sep 27 18:29:18 1993 Stan Shebs (shebs@rtl.cygnus.com) 152160484Sobrien 152260484Sobrien * config.bfd configure.host: Match on *-lynxos* for LynxOS, 152360484Sobrien add m68*-*-lynxos*. 152460484Sobrien * configure.in : Replaced i386lynx_vec with i386lynx_aout_vec 152560484Sobrien and i386lynx_coff_vec. 152660484Sobrien Added m68klynx_aout_vec and m68klynx_coff_vec. 152760484Sobrien * targets.c (target_vector): Removed i386lynx_vec, added 152860484Sobrien {i386,m68k}lynx_{aout,coff}_vec. 152960484Sobrien * i386lynx.c: Added copy of i386coff.c, renamed bfd target to 153060484Sobrien i386lynx_coff_vec. 153160484Sobrien * m68klynx.c: New file. 153260484Sobrien * config/i386-lynx.mt: Replaced i386lynx_vec with i386lynx_aout_vec 153360484Sobrien and i386lynx_coff_vec. 153460484Sobrien * config/m68k-lynx.mt: New file. 153560484Sobrien * hosts/i386lynx.h: Added definition of cfree as free (from Eichin). 153660484Sobrien * hosts/m68klynx.h: New file. 153760484Sobrien 153860484SobrienMon Sep 27 18:00:41 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 153960484Sobrien 154060484Sobrien * archive.c: Define offsetof here. 154160484Sobrien * hosts/*.h: Don't define it here. 154260484Sobrien 154360484SobrienMon Sep 27 19:09:27 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 154460484Sobrien 154560484Sobrien * elfcode.h (bfd_section_from_shdr): Set filepos for SHT_STRTAB 154660484Sobrien section. 154760484Sobrien 154860484SobrienFri Sep 24 15:47:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 154960484Sobrien 155060484Sobrien * hpux-core.c: Add comment about hpux version 7. 155160484Sobrien 155260484SobrienFri Sep 24 16:50:26 1993 Stu Grossman (grossman at cygnus.com) 155360484Sobrien 155460484Sobrien * lynx-core.c (lynx_core_file_p): Change per-thread register 155560484Sobrien section names from .regXXX to .reg/XXX to avoid parsing ambiguity 155660484Sobrien in gdb/corelow.c. Create alias .reg section for the currently 155760484Sobrien running thread. 155860484Sobrien 155960484SobrienFri Sep 24 13:22:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 156060484Sobrien 156160484Sobrien * libecoff.h (ecoff_backend_data): Removed big_magic and 156260484Sobrien little_magic fields. 156360484Sobrien * coff-alpha.c (alpha_ecoff_backend_data): Removed initialization 156460484Sobrien of big_magic and little_magic. 156560484Sobrien * coff-mips.c (mips_ecoff_bad_format_hook): Make sure magic number 156660484Sobrien matches endianess of bfd. 156760484Sobrien (mips_ecoff_backend_data): Removed initialization of big_magic and 156860484Sobrien little_magic. 156960484Sobrien * ecoff.c (ecoff_set_arch_mach_hook): Set MIPS machine number 157060484Sobrien based on magic number. Support r4000 magic numbers. 157160484Sobrien (ecoff_get_magic): New function. 157260484Sobrien (ecoff_write_object_contents): Use ecoff_get_magic, not fields in 157360484Sobrien the backend structure. 157460484Sobrien * cpu-mips.c (arch_info_struct): Added case for r6000. 157560484Sobrien 157660484Sobrien For MIPS configurations put both big and little endian versions in 157760484Sobrien the list of targets; the code is getting compiled in anyhow. 157860484Sobrien * bigmips.mt (SELECT_VECS): Define to be ecoff_little_vec. 157960484Sobrien * decstation.mt (SELECT_VECS): Define to be ecoff_big_vec. 158060484Sobrien * mipsbelf.mt (SELECT_VECS): Define to be bfd_elf32_littlemips_vec. 158160484Sobrien * mipslelf.mt (SELECT_VECS): Define to be bfd_elf32_bitmips_vec. 158260484Sobrien * riscos.mt (SELECT_VECS): Define to be ecoff_little_vec. 158360484Sobrien 158460484SobrienFri Sep 24 00:42:23 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 158560484Sobrien 158660484Sobrien * osf-core.c: New file for OSF/1 core file support. 158760484Sobrien * config/alphaosf.mh (HDEFINES): Add -DOSF_CORE. 158860484Sobrien (HDEPFILES): Set to osf-core.o. 158960484Sobrien * bfd-in2.h (union tdata): Add osf_core_data member. 159060484Sobrien * targets.c: If OSF_CORE is defined, add osf_core_vec to target list. 159160484Sobrien * Makefile.in (OPTIONAL_BACKENDS): Add osf-core.o. 159260484Sobrien (osf-core.o): New dependency. 159360484Sobrien 159460484SobrienThu Sep 23 21:04:53 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 159560484Sobrien 159660484Sobrien * TODO: Remove note about making --with-bfd-targets use canonical 159760484Sobrien target configuration name (already done); reword item about 159860484Sobrien separating reading and writing stuff to not refer to a 159960484Sobrien non-existent item. 160060484Sobrien 160160484Sobrien * ecoff.h (ecoff_set_arch_mach_hook): Accept MIPS_MAGIC_LITTLE2 160260484Sobrien and MIPS_MAGIC_BIG2. 160360484Sobrien 160460484SobrienThu Sep 23 11:06:34 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 160560484Sobrien 160660484Sobrien * gen-aout.c (main): Output newline after end of comment, not 160760484Sobrien before. (Reported by Jonathan Stone, 160860484Sobrien jonathan@oscar.stanford.edu). 160960484Sobrien 161060484SobrienThu Sep 23 10:48:27 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 161160484Sobrien 161260484Sobrien * archive.c (compute_and_write_armap): Put weak symbols in the 161360484Sobrien armap. 161460484Sobrien 161560484Sobrien * elfcode.h (fix_up_strtabs): Set sh_entsize for the .stab 161660484Sobrien section, not the .stabstr section. Set the type of the .stabstr 161760484Sobrien section to SHT_STRTAB. 161860484Sobrien (elf_section_from_bfd_section): Handle SHT_STRTAB sections. 161960484Sobrien 162060484Sobrien * section.c (SEC_DEBUGGING): New section flag. 162160484Sobrien * elfcode.h (bfd_section_from_shdr): If section is SHT_PROGBITS, 162260484Sobrien and the name starts with .debug, .line or .stab, set 162360484Sobrien SEC_DEBUGGING. If SHT_STRTAB, check for .debug and .stab. 162460484Sobrien * elf32-target.h (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Added 162560484Sobrien SEC_DEBUGGING to section_flags. 162660484Sobrien * elf64-target.h (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Added 162760484Sobrien SEC_DEBUGGING and SEC_CODE to section_flags. 162860484Sobrien * bfd-in2.h: Updated. 162960484Sobrien 163060484SobrienWed Sep 22 16:34:14 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 163160484Sobrien 163260484Sobrien * bfd.c (tdata): Add lynx_core_data. 163360484Sobrien 163460484Sobrien * ecoff.c (ecoff_compute_section_file_positions): Set filepos for 163560484Sobrien sections with SEC_LOAD set, even if SEC_HAS_CONTENTS is clear. 163660484Sobrien (ecoff_write_object_contents): Don't set scnptr to zero just 163760484Sobrien because size of section is zero. Needed for Irix 4.0.5F. 163860484Sobrien 163960484SobrienWed Sep 22 09:49:32 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 164060484Sobrien 164160484Sobrien * config.bfd: Use i960-bout, not i960-coff for i960-*-nindy*. 164260484Sobrien 164360484SobrienWed Sep 22 07:34:09 1993 Stu Grossman (grossman at cygnus.com) 164460484Sobrien 164560484Sobrien * Makefile.in (OPTIONAL_BACKENDS): Add lynx-core.o. 164660484Sobrien * bfd-in2.h (tdata): Add lynx_core_data; 164760484Sobrien * config.bfd configure.host: Get rid of superfluous netbsd and 164860484Sobrien lynxos entries. 164960484Sobrien * configure.in: Add lynx-core.o to Lynx config. 165060484Sobrien * i386lynx.c: Add defs for core file support. 165160484Sobrien * lynx-core.c: New file with Lynx core file support. 165260484Sobrien * hosts/i386lynx.h: Move lots of host specific includes to here. 165360484Sobrien Add def of HOST_LYNX. Remove unnecessary defs. 165460484Sobrien 165560484SobrienMon Sep 20 19:18:10 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 165660484Sobrien 165760484Sobrien * elfcode.h (bfd_section_from_shdr): Only set SEC_DATA for a 165860484Sobrien SHF_PROGBITS or SHT_STRTAB section if SEC_ALLOC is set. Never set 165960484Sobrien SEC_DATA for a SHF_NOBITS section. 166060484Sobrien 166160484Sobrien * nlm32-i386.c (nlm_i386_mangle_relocs): Check SEC_LOAD rather 166260484Sobrien than SEC_CODE | SEC_DATA. Add some casts to avoid warnings. 166360484Sobrien * nlmcode.h: Add some casts to avoid warnings. 166460484Sobrien (nlm_write_object_contents): Ignore relocs for sections that are 166560484Sobrien neither code nor data. Just use the symbol value for debugging 166660484Sobrien symbols; don't offset by the section vma. 166760484Sobrien 166860484SobrienFri Sep 17 18:08:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 166960484Sobrien 167060484Sobrien * reloc.c (bfd_perform_relocation): Don't return an error when 167160484Sobrien performing a reloc against an undefined weak symbol. 167260484Sobrien * syms.c (bfd_print_symbol_vandf): Show value of BSF_WEAK rather 167360484Sobrien than obsolete BSF_EXPORT. 167460484Sobrien 167560484SobrienFri Sep 17 02:04:31 1993 John Gilmore (gnu@cygnus.com) 167660484Sobrien 167760484Sobrien * hosts/{alphaosf.h, amix.h, apollo68.h, apollov68.h, 167860484Sobrien decstation.h, delta88.h, dgux.h, dose.h, go32.h, harris.h, 167960484Sobrien hp300.h, hp300bsd.h, hppabsd.h, hppahpux.h, i386aix.h, i386bsd.h, 168060484Sobrien i386linux.h, i386lynx.h, i386v.h, i386v4.h, irix3.h, irix4.h, 168160484Sobrien mipsbsd.h, ncr3000.h, rs6000.h, rtbsd.h, solaris2.h, sparc-ll.h, 168260484Sobrien std-host.h, stratus.h, sun3.h, sysv4.h, tahoe.h, ultra3.h, 168360484Sobrien vaxult.h, vaxult2.h, we32k.h}: Make sure that "offsetof" is 168460484Sobrien defined on all hosts, now that archive.c uses it. 168560484Sobrien 168660484SobrienThu Sep 16 18:20:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 168760484Sobrien 168860484Sobrien * elfcode.h (elf_map_symbols): Create section symbols for all 168960484Sobrien sections, not just allocated sections; debugging sections can have 169060484Sobrien relocs. 169160484Sobrien (elf_symbol_from_bfd_symbol): If there is an output section, use 169260484Sobrien the section index from that rather than the input section. 169360484Sobrien 169460484SobrienThu Sep 16 12:20:50 1993 Ken Raeburn (raeburn@cygnus.com) 169560484Sobrien 169660484Sobrien * libbfd-in.h (bfd_flush, bfd_stat): Reflect John's changes to 169760484Sobrien libbfd.h, which is regenerated from this file. 169860484Sobrien 169960484Sobrien * bfd-in.h (symtype): Deleted typedef. 170060484Sobrien 170160484SobrienWed Sep 15 11:48:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 170260484Sobrien 170360484Sobrien * libbfd.c (COERCExx): Cast x to bfd_signed_vma before doing the 170460484Sobrien xor and subtract. Otherwise it will not sign extend if the type 170560484Sobrien of bfd_vma is larger than int. 170660484Sobrien 170760484Sobrien * ecoffswap.h (ecoff_swap_pdr_in): Get regoffset, iopt, fregoffset 170860484Sobrien and frameoffset as signed numbers. From Peter Schauer. 170960484Sobrien 171060484SobrienTue Sep 14 18:20:36 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 171160484Sobrien 171260484Sobrien * elf32-i386.c (elf_howto_table): Add bfd_elf_generic_reloc 171360484Sobrien special function for all reloc entries. 171460484Sobrien * elf32-target.h (TARGET_LITTLE_SYM): Add SEC_CODE to 171560484Sobrien section_flags. 171660484Sobrien * libelf.h (elf_symbol_type): Remove desc, type and other fields. 171760484Sobrien * Makefile.in (elf32-*.o): These depend upon elf32-target.h. 171860484Sobrien 171960484SobrienTue Sep 14 14:34:45 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 172060484Sobrien 172160484Sobrien * libbfd-in.h (struct artdata): Add armap_timestamp and 172260484Sobrien armap_datepos here too. 172360484Sobrien 172460484SobrienMon Sep 13 21:03:18 1993 John Gilmore (gnu@cacophony.cygnus.com) 172560484Sobrien 172660484Sobrien Improve timestamp support in BSD archive files to avoid linker 172760484Sobrien warnings. 172860484Sobrien 172960484Sobrien * libbfd.h (struct artdata): Add armap_timestamp and armap_datepos. 173060484Sobrien (bfd_flush, bfd_stat): Add prototypes. 173160484Sobrien * libbfd.c (bfd_flush): Add, does fflush on a BFD. 173260484Sobrien (bfd_stat): Add, does fstat on a BFD. 173360484Sobrien 173460484Sobrien * archive.c (_bfd_write_archive_contents): At end of file writing, 173560484Sobrien verify and possibly update the timestamp in the armap, if a BSD 173660484Sobrien archive. FIXME! Kludge recognizes BSD archive, rather than 173760484Sobrien vectoring properly. Should add to xvec. 173860484Sobrien (compute_and_write_armap): Move prototype to top, avoid PROTO. 173960484Sobrien (bsd_write_armap): Save timestamp and file location thereof, when 174060484Sobrien writing the armap in a BSD file. 174160484Sobrien (bsd_update_armap_timestamp): New function to check and 174260484Sobrien rewrite the timestamp. 174360484Sobrien 174460484Sobrien * hosts/std-host.h (offsetof): Define, if not already, for archive.c. 174560484Sobrien 174660484SobrienSat Sep 11 18:13:42 1993 Jim Kingdon (kingdon@poseidon.cygnus.com) 174760484Sobrien 174860484Sobrien * hosts/i386sco.h: Define a bunch of stuff for core files. 174960484Sobrien * sco-core.c: Remove, replace by trad-core.c. 175060484Sobrien * trad-core.c: If HOST_STACK_START_ADDR is defined, use it. 175160484Sobrien * config/i386sco.mh: Use trad-core not sco-core. 175260484Sobrien * hosts/i386isc.h, config/i386isc.mh: Remove. 175360484Sobrien * configure.host: Use i386sco for isc. 175460484Sobrien * config/i386-sco.mt: Remove, identical to i386-coff.mt. 175560484Sobrien * config.bfd: Use i386-coff not i386-sco. 175660484Sobrien 175760484Sobrien * config.bfd: Recognize i[34]86-*-solaris2* specifically rather 175860484Sobrien than using *-*-solaris2* (i486-unknown-solaris2 is i386-elf, not 175960484Sobrien i486-elf which doesn't exist). 176060484Sobrien 176160484SobrienFri Sep 10 12:56:36 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 176260484Sobrien 176360484Sobrien * coffswap.h (coff_swap_aouthdr_out): For ALPHAECOFF, force 176460484Sobrien padding field to zero. 176560484Sobrien 176660484Sobrien * config.bfd (i[34]86-*-netbsd*): New target; use i386-netbsd. 176760484Sobrien * configure.in: Remove bogus netbsd386 handling. 176860484Sobrien 176960484Sobrien * coff-mips.c: Don't warn about overflow for MIPS_R_JMPADDR reloc. 177060484Sobrien Correct overflow detection requires matching the upper four bits 177160484Sobrien of the destination against the PC. 177260484Sobrien 177360484SobrienThu Sep 9 16:57:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 177460484Sobrien 177560484Sobrien * configure.in: Make 64-bit stuff work with "--with-targets=all". 177660484Sobrien 177760484SobrienTue Sep 7 14:17:02 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 177860484Sobrien 177960484Sobrien * libbfd-in.h: Removed swapping routines declarations. 178060484Sobrien * bfd-in.h: Added swapping routine declarations, and renamed them 178160484Sobrien from _do_* to bfd_*. 178260484Sobrien * libbfd.c: Renamed swapping routines from _do_* to _bfd_*. 178360484Sobrien * Changed all callers. 178460484Sobrien * libbfd.h, bfd-in2.h: Rebuilt. 178560484Sobrien 178660484SobrienMon Sep 6 15:28:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 178760484Sobrien 178860484Sobrien * elf32-i386.c (elf_howto_table): Set pcrel_offset to true for 178960484Sobrien R_386_PC32. 179060484Sobrien 179160484SobrienFri Sep 3 13:06:12 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 179260484Sobrien 179360484Sobrien * configure.in: Reorganized setting of makefile variables so 179460484Sobrien 64-bit stuff works again. 179560484Sobrien 179660484Sobrien * libbfd-in.h (_do_get*, _do_put*): Renamed via macros to clean up 179760484Sobrien namespace. 179860484Sobrien 179960484Sobrien * libelf.h (elf32_symbol_type, elf64_symbol_type): Deleted 180060484Sobrien "native_elf_sym" field, merged to make new type "elf_symbol_type". 180160484Sobrien (struct elf_obj_tdata): Field symbols is now elf_symbol_type*. 180260484Sobrien Deleted field raw_syms. 180360484Sobrien (obj_symbols): Remove cast. 180460484Sobrien (obj_raw_syms): Deleted. 180560484Sobrien * elfcode.h (elf_slurp_symbol_table): Don't set raw_syms or 180660484Sobrien native_elf_sym fields. 180760484Sobrien * elf32-hppa.c: Changed uses of elf32_symbol_type to 180860484Sobrien elf_symbol_type. 180960484Sobrien 181060484Sobrien From Pete Hoogenboom and Jeff Law: 181160484Sobrien 181260484Sobrien * elf32-hppa.c (ELF_MAXPAGESIZE): Define. 181360484Sobrien 181460484Sobrien * elf32-hppa.c (elf_hppa_tc_symbol): If the argument relocation 181560484Sobrien bits are zero (e.g., they specify no relocations), then do not 181660484Sobrien even bother adding their entries to the symextn section. 181760484Sobrien 181860484Sobrien * elf32-hppa.c (elf_hppa_tc_symbol): Any function, regardless 181960484Sobrien of scope can have an argument relocation stub. 182060484Sobrien 182160484Sobrien * elf32-hppa.c: (Elf32_hppa_Stub_description): Rename this 182260484Sobrien structure and type to elf32_hppa_stub_description. This makes 182360484Sobrien it consistent with the GNU coding conventions. 182460484Sobrien (elf32_hppa_stub_description): Added a 'next' field to allow 182560484Sobrien linking of stub description structures. 182660484Sobrien (elf32_hppa_stub_description): Added a 'stub_listP' field to 182760484Sobrien keep track of individual stubs. 182860484Sobrien (Elf32_hppa_Stub_list, Elf32_hppa_Stub_list_struct): Removed. 182960484Sobrien Combined with the elf32_hppa_stub_description structure. 183060484Sobrien (elf32_hppa_stub_name_list): New type to keep track of 183160484Sobrien individual stubs. 183260484Sobrien (add_stub): Removed. 183360484Sobrien (add_stub_by_name): New function. 183460484Sobrien (find_stub_by_name): New function. 183560484Sobrien (hppa_elf_build_arg_reloc_stub): Allow reusing stubs that 183660484Sobrien already exist. 183760484Sobrien (hppa_elf_build_long_branch_stub): Allow reusing stubs that 183860484Sobrien already exist. 183960484Sobrien 184060484Sobrien * elf32-hppa.c: (retval_mismatches): The direction of argument 184160484Sobrien relocation was reversed. 184260484Sobrien (hppa_elf_build_arg_reloc_stub): Return address was not being 184360484Sobrien restored. 184460484Sobrien (hppa_elf_arg_reloc_needed_p): Add argument containing caller 184560484Sobrien argument relocation bits so this function can be used in the check 184660484Sobrien for plabel stubs. 184760484Sobrien (hppa_elf_stub_check): Pass caller argument relocation bits into 184860484Sobrien hppa_elf_arg_reloc_needed_p(). 184960484Sobrien (hppa_look_for_stubs_in_section): Add check for plabel stubs and 185060484Sobrien pass caller argument relocation bits into 185160484Sobrien hppa_elf_arg_reloc_needed_p(). 185260484Sobrien 185360484SobrienThu Sep 2 00:59:55 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 185460484Sobrien 185560484Sobrien * libhppa.h (hppa_field_adjust): Remove unused `init_value' variable. 185660484Sobrien 185760484Sobrien * hosts/delta88v4.h: New for SVR4. 185889857Sobrien * configure.host: Use it. 185960484Sobrien 186060484SobrienWed Sep 1 14:23:32 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 186160484Sobrien 186260484Sobrien * libaout.h, netbsd386.c: Change M_I386 to M_386_NETBSD. M_I386 186360484Sobrien is an SCO pre-define. 186460484Sobrien 186560484SobrienTue Aug 31 12:50:19 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 186660484Sobrien 186760484Sobrien * nlmcode.h (nlm_object_p): Set HAS_SYMS if there are external 186860484Sobrien references. 186960484Sobrien (nlm_swap_auxiliary_headers_{in,out}): The copyright length is 187060484Sobrien only one byte. 187160484Sobrien (nlm_get_symtab_upper_bound): Include debugging symbols in symbol 187260484Sobrien count. 187360484Sobrien (nlm_slurp_symbol_table): Make symlength unsigned. Read debugging 187460484Sobrien symbols as BFD local symbols. 187560484Sobrien (nlm_write_object_contents): Don't bother writing out exported 187660484Sobrien symbols more than once; they now appear in the symbol table more 187760484Sobrien than once (with and without a prefix) if necessary. Set offset 187860484Sobrien values to be non-zero as NLMLINK does. 187960484Sobrien 188060484SobrienTue Aug 31 12:07:43 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 188160484Sobrien 188260484Sobrien * libhppa.h: Restore #undefs of e_fsel and other e_* symbols. 188360484Sobrien 188460484SobrienFri Aug 27 16:43:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 188560484Sobrien 188660484Sobrien * section.c (struct sec): Move position of user_set_vma, and 188760484Sobrien document it. 188860484Sobrien (SEC_BALIGN): Disable for now. I don't think it's currently used. 188960484Sobrien 189060484Sobrien * elf32-hppa.c (elf_hppa_howto_table): Now static. 189160484Sobrien (symext_rootP, symext_lastP, global_value, GOT_value, 189260484Sobrien global_symbol, global_sym_defined, symextn_contents, 189360484Sobrien symextn_contents_real_size, elf_hppa_stub_rootP, 189460484Sobrien elf32_hppa_symextn_map, elf32_hppa_symextn_map_size): Rely on 189560484Sobrien default initialization. 189660484Sobrien (hppa_elf_gen_reloc_type): Macro "UNDEFINED" doesn't need a 189760484Sobrien trailing semicolon. 189860484Sobrien (hppa_look_for_stubs_in_section): Introduce temporaries to make 189960484Sobrien code more readable in 80 columns. 190060484Sobrien 190160484Sobrien * libhppa.h (all functions): Now inline under GNU C. 190260484Sobrien 190360484Sobrien More patches from Jeff Law: 190460484Sobrien 190560484Sobrien * elf32-hppa.c (AR_WARN): Give argument which caused the 190660484Sobrien invalid argument relocation. 190760484Sobrien (AR_UNIMP): Delete unused macro. 190860484Sobrien (hppa_elf_set_section_contents): Always return a value. 190960484Sobrien (elf32_hppa_backend_table_processing): Likewise. 191060484Sobrien (elf32_hppa_backend_section_processing: Likewise. 191160484Sobrien 191260484Sobrien * som.c: New file containing SOM specific code extracted 191360484Sobrien from hppa.c 191460484Sobrien 191560484Sobrien * som.h: New file containing SOM specific code extracted 191660484Sobrien from libhppa.h 191760484Sobrien 191860484Sobrien * hppa.c: Deleted. 191960484Sobrien 192060484Sobrien * libhppa.h: Delete SOM specific code. Add generic PA 192160484Sobrien code which can be shared by both SOM and ELF backends. 192260484Sobrien 192360484Sobrien * Makefile.in: Replace hppa.c with som.c. elf32-hppa.o 192460484Sobrien depends on libhppa.h now. 192560484Sobrien 192660484Sobrien * configure.in (hppa_vec): Needs som.o module instead of 192760484Sobrien hppa.o. 192860484Sobrien 192960484Sobrien * elf32-hppa.c: Include libhppa.h. Do not define 193060484Sobrien BYTES_IN_WORD. 193160484Sobrien 193260484Sobrien * elf32-hppa.h (hppa_reloc_field_selector_type): Delete 193360484Sobrien now lives in libhppa.h. 193460484Sobrien (hppa_reloc_field_selector_type_alt): Likewise. 193560484Sobrien 193660484Sobrien * hosts/hppabsd.h: Include <stdlib.h> and <unistd.h>. Do not 193760484Sobrien define malloc or free. 193860484Sobrien 193960484Sobrien * config/hppa-elf.mt (SELECT_ARCHITECTURES): Don't define 194060484Sobrien SELECT_VECS. 194160484Sobrien 194260484Sobrien * elf32-hppa.c (hppa_elf_relocate_unwind_table): Delete unused 194360484Sobrien variables. 194460484Sobrien (elf_hppa_reloc_type_lookup): Likewise. 194560484Sobrien (elf_hppa_tc_make_sections): Likewise. 194660484Sobrien (hppa_elf_arg_reloc_needed_p): Likewise. 194760484Sobrien (hppa_elf_build_long_branch_stub): Likewise. 194860484Sobrien (elf_reloc_map): Delete, no longer used. 194960484Sobrien (elf_hppa_reloc_map): Likewise. 195060484Sobrien (elf32_hppa_symextn_map_max_size): Likewise. 195160484Sobrien (elf32_hppa_get_sym_extn): Abort if type is bogus. 195260484Sobrien 195360484Sobrien * elf32-hppa.c (elf32_hppa_backend_fake_sections): Add processing 195460484Sobrien of the .hppa_unwind section. 195560484Sobrien 195660484SobrienWed Aug 25 16:13:49 1993 K. Richard Pixley (rich@sendai.cygnus.com) 195760484Sobrien 195860484Sobrien * config.bfd: recognize m88110. 195960484Sobrien 196060484SobrienTue Aug 24 16:32:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 196160484Sobrien 196260484Sobrien Merged changes from Jeff Law and Pete Hoogenboom at Utah: 196360484Sobrien 196460484Sobrien * elfcode.h (elf_section_from_bfd_section): Add detection of 196560484Sobrien SHT_NOTE sections. 196660484Sobrien 196760484Sobrien * elf32-hppa.c: 196860484Sobrien (hppa_elf_build_long_branch_stub,hppa_elf_long_branch_needed_p): 196960484Sobrien New functions for support of long branch stubs. 197060484Sobrien (hppa_elf_stub_check,hppa_look_for_stubs_in_section): Add 197160484Sobrien check for long branch stubs. 197260484Sobrien (hppa_look_for_stubs): Unused function. Removed. 197360484Sobrien (hppa_elf_set_section_contents): Implement a PA/ELF-specific 197460484Sobrien version of bfd_set_section_contents. 197560484Sobrien (hppa_elf_long_branch_needed_p): Only output debugging diagnostics 197660484Sobrien when BFD is configured for debugging. 197760484Sobrien 197860484Sobrien * elf32-hppa.c: (elf32_hppa_get_symextn_chain): New function 197960484Sobrien to return a list of symbols that have non-zero argument 198060484Sobrien relocation bits. 198160484Sobrien (hppa_elf_stub_finish): Make sure stub generation is done only 198260484Sobrien once. 198360484Sobrien 198460484Sobrien * elf32-hppa.c: (hppa_elf_stub_reloc): New function for 198560484Sobrien generation relocation entries within a stub. 198660484Sobrien (hppa_elf_build_arg_reloc_stub): Corrections to argument 198760484Sobrien relocation stubs. 198860484Sobrien 198960484Sobrien * elf32-hppa.c: New #define's for argument relocation types. 199060484Sobrien (mismatches, retval_mismatches): Updated to reflect new 199160484Sobrien argument relocation types. 199260484Sobrien (CURRENT_STUB_OFFSET): New macro. 199360484Sobrien 199460484Sobrien * elfcode.h (map_program_segments): Set the PF_X bit for data 199560484Sobrien segments. 199660484Sobrien 199760484Sobrien * elf32-hppa.c: (elf_hppa_howto_table): Add 199860484Sobrien R_HPPA_STUB_CALL_17 for support of linker stub generation. 199960484Sobrien (hppa_elf_reloc): Add support of R_HPPA_STUB_CALL_17 200060484Sobrien relocation type. 200160484Sobrien 200260484Sobrien * elf32-hppa.h: (elf32_hppa_reloc_type): Add 200360484Sobrien R_HPPA_STUB_CALL_17 for support of linker stub generation. 200460484Sobrien 200560484Sobrien * hppa_stubs.h: Add new instructions that are used in linker 200660484Sobrien stub generation. 200760484Sobrien 200860484Sobrien * elf32-hppa.c (hppa_elf_relocate_unwind_table): The offsets in an 200960484Sobrien unwind descriptor were incorrect. 201060484Sobrien 201160484Sobrien * libelf.h (bfd_elf_find_section): Declare. 201260484Sobrien 201360484Sobrien * elf32-hppa.c: (elf32_hppa_backend_symbol_processing): New 201460484Sobrien function in place of global_sym field in elf_backend_data 201560484Sobrien structure. 201660484Sobrien (elf32_hppa_backend_symbol_table_processing, 201760484Sobrien elf32_hppa_backend_section_processing, 201860484Sobrien elf32_hppa_backend_fake_sections, 201960484Sobrien elf32_hppa_backend_section_from_shdr, 202060484Sobrien elf32_hppa_backend_section_from_bfd_section): New functions to 202160484Sobrien provide support of symbol extension sections and argument 202260484Sobrien relocation stubs. 202360484Sobrien (elf_info_to_howto): Remove call to abort(). 202460484Sobrien 202560484Sobrien * elf32-target.h: Support for special processing by the backend. 202660484Sobrien (struct elf_backend_data): Added elf_backend_symbol_processing, 202760484Sobrien elf_backend_symbol_table_processing, 202860484Sobrien elf_backend_section_processing, elf_backend_section_from_shdr, 202960484Sobrien elf_backend_fake_sections, and 203060484Sobrien elf_backend_section_from_bfd_section fields. 203160484Sobrien * elfcode.h: (bfd_section_from_shdr): Add a check for 203260484Sobrien processor-specific section types. 203360484Sobrien (elf_fake_sections): Add a check for processor-specific 203460484Sobrien section types. 203560484Sobrien (bfd_elf32_write_object_contents): Add a check to see if 203660484Sobrien there is any final section processing to be done by the 203760484Sobrien backend. 203860484Sobrien (elf_section_from_bfd_section): Add a check for 203960484Sobrien processor-specific section types. 204060484Sobrien (elf_slurp_symbol_table): Remove reference to global_sym in the 204160484Sobrien elf_backend_data structure. Replace it with a call to 204260484Sobrien elf_backend_symbol_processing. 204360484Sobrien * libelf.h: Remove global_sym field in the elf_backend_data 204460484Sobrien structure. Replace it with a series of backend-specific 204560484Sobrien functions. 204660484Sobrien 204760484Sobrien * elf32-hppa.c (hppa_elf_stub_branch_reloc): The formal argument 204860484Sobrien stub_sym should be called target_sym. 204960484Sobrien (hppa_elf_build_arg_reloc_stub): Refer to the stub bfd (abfd) 205060484Sobrien rather than the output bfd (output_bfd). 205160484Sobrien (hppa_elf_reloc): Get rid of references to the global_sym field in 205260484Sobrien the elf_backend_data structure. 205360484Sobrien 205460484Sobrien * elfcode.h (elf_fake_sections): Check the correct condition for 205560484Sobrien .bss. Also, detect the existence of a .note section. 205660484Sobrien 205760484Sobrien * elf32-hppa.c (hppa_elf_relocate_insn): r_format argument should 205860484Sobrien have been r_field. 205960484Sobrien 206060484Sobrien * hosts/hppabsd.h (HOST_MACHINE_ARCH): Reference to bfd_arch_m68k 206160484Sobrien should be a reference to bfd_arch_hppa. 206260484Sobrien 206360484Sobrien * hppa.c (hppa_vec): Replace bfd_false with _bfd_dummy_target in 206460484Sobrien the bfd_check_format structure to avoid a type mismatch. 206560484Sobrien 206660484SobrienMon Aug 23 1993 Sean Fagan (sef@cygnus.com) 206760484Sobrien and Jim Kingdon (kingdon@cygnus.com) 206860484Sobrien 206960484Sobrien Add NetBSD support: 207060484Sobrien * netbsd386.c: New file. 207160484Sobrien * aoutx.h: Make sym_is_debugger_info true for N_FN. 207260484Sobrien * Makefile.in, aout-target.h, config.bfd, configure.host, configure.in, 207360484Sobrien libaout.h, targets.c: Other changes. 207460484Sobrien 207560484SobrienFri Aug 20 17:04:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 207660484Sobrien 207760484Sobrien * config/m88k-elf.mt: New file. 207860484Sobrien * config.bfd: Use it for m88*-*-sysv4*. 207960484Sobrien 208060484SobrienFri Aug 20 15:16:58 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 208160484Sobrien 208260484Sobrien * elfcode.h (elf_build_phdrs): Unused function deleted. 208360484Sobrien (bfd_shdr_from_section): Ditto. 208460484Sobrien (write_relocs): Don't change section contents for addend. 208560484Sobrien (elf_locate_sh): Return type is now always elf_internal_shdr, 208660484Sobrien since the other types were really aliases for this type anyways. 208760484Sobrien Don't compile this function, since it is static and doesn't appear 208860484Sobrien to be used in this file. 208960484Sobrien (sym_is_global): Return non-zero for weak symbols. Abort if 209060484Sobrien section pointer is null. 209160484Sobrien (swap_out_syms): Reorder tests so function symbols can be weak. 209260484Sobrien (elf_slurp_symbol_table): Don't use BSF_EXPORT. 209360484Sobrien (elf_slurp_reloca_table): Make RELOC_PROCESSING section smaller by 209460484Sobrien extracting out some common code. Abort if BFD section symbol has 209560484Sobrien null name. 209660484Sobrien (elf_slurp_reloc_table): Translate ELF section symbols into BFD 209760484Sobrien section symbols. Don't read section contents to fill in addend 209860484Sobrien field. 209960484Sobrien 210060484Sobrien * elf32-i386.c (elf_howto_table): All partial_inplace fields 210160484Sobrien should be "true". 210260484Sobrien 210360484Sobrien * Merged from OSF: 210460484Sobrien 210560484Sobrien Tue Jun 15 14:38:32 1993 Michael Meissner (meissner@osf.org) 210660484Sobrien 210760484Sobrien * libelf.h (struct Elf_Sym_Extra): New structure to contain ELF 210860484Sobrien specific information for a symbol. Put in elf_sym_num, which 210960484Sobrien gives the external symbol number in the elf object file, since 211060484Sobrien local symbols must come before global symbols. 211160484Sobrien (elf_sym_extra): New macro. 211260484Sobrien (elf_symtab_map): Delete, in favor of using Elf_Sym_Extra. 211360484Sobrien * elfcode.h (elf_map_symbols): Use Elf_Sym_Extra to map internal 211460484Sobrien symbol number to external number. Store the address of the 211560484Sobrien Elf_Sym_Extra field for the symbol in the udata field. 211660484Sobrien (elf_write_object_contents): Use Elf_Sym_Extra to map out symbols. 211760484Sobrien 211860484Sobrien Sun Jun 20 16:30:11 1993 Michael Meissner (meissner@osf.org) 211960484Sobrien 212060484Sobrien * elfcode.h (elf_obj_tdata): Add field to count the size of the 212160484Sobrien array of pointers to section symbols. 212260484Sobrien (elf_map_symbols): Bump the max index of the section symbols so 212360484Sobrien that we don't overwrite memory. Store the max index into the 212460484Sobrien elf_obj_tdata field. 212560484Sobrien 212660484Sobrien Sat Jun 19 10:12:27 1993 Michael Meissner (meissner@osf.org) 212760484Sobrien 212860484Sobrien * elfcode.h (elf_obj_tdata): Add pointer to an array of pointers 212960484Sobrien to the section symbols we created. Remove unused field 213060484Sobrien internal_syms. 213160484Sobrien (elf_map_symbols): Fill in array of pointers to section symbols. 213260484Sobrien Only create section symbols for sections that have SEC_ALLOC set, 213360484Sobrien and have non-zero size. 213460484Sobrien (elf_symbol_from_bfd_symbol): If udata is NULL, and this is a 213560484Sobrien section symbol, look up the section in the list of section 213660484Sobrien symbols, and set the udata pointer appropriately. Otherwise, if 213760484Sobrien udata is still NULL, fail an assertion, and use 0, instead of 213860484Sobrien dropping core. 213960484Sobrien 214060484SobrienFri Aug 20 12:18:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 214160484Sobrien 214260484Sobrien * config.bfd (mips-*-elfl*, mips-*-elf*): New targets, using 214360484Sobrien mipslelf and mipsbelf respectively. 214460484Sobrien * config/mipslelf.mt, config/mipsbelf.mt: New files. 214560484Sobrien * elf32-mips.c: Added some reloc information. 214660484Sobrien * configure.in: Fixed error message. 214760484Sobrien 214860484Sobrien * ecoff.c (ECOFF_LONG_SIZE): Removed. Just use constants. 214960484Sobrien 215060484SobrienThu Aug 19 09:45:51 1993 David J. Mackenzie (djm@thepub.cygnus.com) 215160484Sobrien 215260484Sobrien * Makefile.in (BFD_LIBS, ALL_MACHINES, BFD32_BACKENDS, BFD64_BACKENDS, 215360484Sobrien OPTIONAL_BACKENDS): Alphabetize entries and add a few missing ones. 215460484Sobrien * archures.c: Alphabetize decls. 215560484Sobrien 215660484Sobrien * configure.in, targets.c: Add missing vectors to the tables. 215760484Sobrien * targets.c (target_vector) [!SELECT_VECS]: Add DEFAULT_VECTOR. 215860484Sobrien Remove hp300bsd_vec due to clash with sunos_big_vec. 215960484Sobrien 216060484SobrienTue Aug 17 18:12:32 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 216160484Sobrien 216260484Sobrien * hosts/i386{mach3,osf1mk}.h: New files, for Mach hosting. 216360484Sobrien * hosts/i386mach.h: removed, replaced by i386osf1mk.h. 216460484Sobrien * config/i386mach3.mt, i386mach3.c: New files, for Mach a.out format. 216560484Sobrien * Makefile.in, configure.host, config.bfd: Corresponding changes. 216660484Sobrien * hosts/decstation.h: Include <sys/param.h> not <machine/param.h>. 216760484Sobrien 216860484SobrienTue Aug 17 15:19:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 216960484Sobrien 217060484Sobrien * coffgen.c (coff_section_symbol): If section's output_section is 217160484Sobrien not yet set, point to itself. This is needed because this is 217260484Sobrien called on the output file, not the input file. 217360484Sobrien 217460484Sobrien * coff-rs6000.c (dummy_reloc, RTYPE2HOWTO): Set howto field to a 217560484Sobrien dummy value, rather than leaving it NULL. 217660484Sobrien 217760484Sobrien * archures.c (bfd_default_set_arch_mach): Set bfd_error on 217860484Sobrien failure. 217960484Sobrien * aoutx.h (NAME(aout,set_arch_mach)): Check return value of 218060484Sobrien bfd_default_set_arch_mach. 218160484Sobrien 218260484SobrienTue Aug 17 09:42:16 1993 David J. Mackenzie (djm@thepub.cygnus.com) 218360484Sobrien 218460484Sobrien * config.bfd (cpu): Extract from canonical name with sed. 218560484Sobrien * configure.in: Don't pass it. 218660484Sobrien 218760484SobrienSun Aug 15 20:45:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 218860484Sobrien 218960484Sobrien * bfd-in.h: Remove {BYTE,WORD,LONG}_SIZE; they are pointless and 219060484Sobrien BYTE_SIZE conflicts with a Mach header. 219160484Sobrien * ecoff.c: Change LONG_SIZE to ECOFF_LONG_SIZE and define it. 219260484Sobrien 219360484Sobrien * configure.host: Make sure all OS fields end in *. 219460484Sobrien 219560484SobrienFri Aug 13 16:33:33 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 219660484Sobrien 219760484Sobrien * ecoff.c (ecoff_slurp_reloc_table): Use bfd_abs_section for 219860484Sobrien RELOC_SECTION_NONE and RELOC_SECTION_ABS. If a reloc section 219960484Sobrien doesn't exist, don't try to create it. 220060484Sobrien 220160484Sobrien * nlmcode.h (nlm_write_object_contents): procedure offsets are 220260484Sobrien from start of code segment, not start of file. 220360484Sobrien * config/i386-nlm.mt (DEFAULT_VECTOR): It's nlm32_i386_vec, not 220460484Sobrien bfd_nlm32_i386_vec. 220560484Sobrien * configure.in (SELECT_VECS switch): Likewise. 220660484Sobrien 220760484SobrienThu Aug 12 10:32:47 1993 David J. Mackenzie (djm@thepub.cygnus.com) 220860484Sobrien 220960484Sobrien * format.c (bfd_check_format): If the target matches the default 221060484Sobrien target, set match_count to 1, to ignore any previous matches. 221160484Sobrien 221260484Sobrien * Makefile.in (BFD32_BACKENDS): Remove srec.o, add reloc16.o. 221360484Sobrien 221460484Sobrien * configure.in: Add reloc16.o when we add 221560484Sobrien coff-h8300.o, coff-h8500.o, coff-sh.o, coff-z8k.o. 221660484Sobrien Makefile.in (BFD_LIBS): Remove reloc16.o. 221760484Sobrien 221860484Sobrien * config/u68k-coff.mt: Fix typo, DEFAULT_TARGET for 221960484Sobrien DEFAULT_VECTOR. 222060484Sobrien 222160484Sobrien * config/h8300-coff.mt, h8500-coff.mt, sh-coff.mt, st2000.mt, 222260484Sobrien z8k-coff.mt (DEFAULT_VECTOR): Define. Don't explicitly add 222360484Sobrien S-records via SELECT_VECS. 222460484Sobrien 222560484Sobrien * targets.c (target_vector), Makefile.in (BFD_LIBS): Always 222660484Sobrien support S-records, for convenience. 222760484Sobrien 222860484SobrienThu Aug 12 08:30:05 1993 Ian Lance Taylor (ian@cygnus.com) 222960484Sobrien 223060484Sobrien * coff-alpha.c (alpha_howto_table, alpha_finish_reloc, 223160484Sobrien alpha_ecoff_swap_reloc_{in,out}, alpha_bfd_reloc_type_lookup): 223260484Sobrien Read and write Alpha relocs. Can't process them yet. 223360484Sobrien * ecoff.c (ecoff_slurp_reloc_table): Recognize new reloc sections. 223460484Sobrien If the section does not already exist, create it. 223560484Sobrien 223660484Sobrien * ecoffswap.h (ecoff_swap_pdr_{in,out}): Handle new fields defined 223760484Sobrien on the Alpha. 223860484Sobrien 223960484Sobrien * libecoff.h (ecoff_backend_data): Added constructor_reloc and 224060484Sobrien finish_reloc fields. 224160484Sobrien * ecoff.c: Move MIPS reloc support from here... 224260484Sobrien * coff-mips.c: to here. 224360484Sobrien * ecoff.c (ecoff_set_symbol_info): Get constructor reloc howto 224460484Sobrien from backend. 224560484Sobrien (ecoff_slurp_reloc_table): Removed MIPS specific stuff. Call 224660484Sobrien finish_reloc backend function. 224760484Sobrien (ecoff_write_object_contents): Removed MIPS specific assertions. 224860484Sobrien * coff-mips.c (mips_finish_reloc): New function. 224960484Sobrien (mips_ecoff_backend_data): Fill in new fields. 225060484Sobrien * coff-alpha.c (alpha_ecoff_backend_data): Use NULL for new 225160484Sobrien fields. 225260484Sobrien * targets.c: Added extern for ecoffalpha_little_vec. 225360484Sobrien 225460484Sobrien * bfd.c (_bfd_host_big_endian): Removed. 225560484Sobrien * bfd-in.h (HOST_BYTE_ORDER_BIG_P, bfd_header_twiddle_required): 225660484Sobrien Removed. 225760484Sobrien * bfd-in2.h: Regenerated. 225860484Sobrien 225960484SobrienWed Aug 11 12:11:23 1993 David J. Mackenzie (djm@thepub.cygnus.com) 226060484Sobrien 226160484Sobrien * config.bfd: New file, broken out of configure.in. 226260484Sobrien * configure.in: Use it, and use standard target names for 226360484Sobrien --with-targets, replacing --with-bfd-targets. 226460484Sobrien 226560484Sobrien * archures.c (archures_init_table): Add bfd_sh_arch. 226660484Sobrien 226760484Sobrien * configure.in: Include coff-m68k.o for m68kcoffun_vec. 226860484Sobrien Include nlm32.o and nlm.o for bfd_nlm32_i386_vec. 226960484Sobrien Fix error in error message. 227060484Sobrien 227160484Sobrien * oasys.c: Make bfd_error_vector extern. 227260484Sobrien 227360484Sobrien * configure.in: Include stab-syms.o for a.out/b.out targets 227460484Sobrien and hp300{bsd,hpux}. 227560484Sobrien 227660484SobrienWed Aug 11 06:40:51 1993 Ian Lance Taylor (ian@cygnus.com) 227760484Sobrien 227860484Sobrien * nlmcode.h (nlm_compute_section_file_positions): Add the .bss 227960484Sobrien section before setting output_has_begun. 228060484Sobrien (nlm_set_section_contents): Remove argument names from 228160484Sobrien mangle_relocs_func prototype. 228260484Sobrien (nlm_write_object_contents): Remove shadowing local variable. 228360484Sobrien Don't write out debugging symbols if debugInfoOffset is -1. Add 228460484Sobrien the codeImageOffset to the start, exit, and check procedure 228560484Sobrien offsets. 228660484Sobrien * nlm32-i386.c (nlm_i386_write_reloc, nlm_i386_mangle_relocs): 228760484Sobrien Don't check partial_inplace field; its value is irrelevant. 228860484Sobrien 228960484Sobrien * Base use of sco-core on host, not target. 229060484Sobrien * configure.host (i[34]86-*-sco*): Use i386sco rather than i386v. 229160484Sobrien * config/i386-sco.mt (TDEFINES): Removed. 229260484Sobrien * config/i386sco.mh: New file to use sco-core. 229360484Sobrien * hosts/i386sco.h: New file; just includes hosts/i386v.h. 229460484Sobrien 229560484Sobrien * ecoffswap.h (ecoff_swap_{hdr,ext}_{in,out}): Use signed 229660484Sobrien conversions for some fields. 229760484Sobrien 229860484SobrienTue Aug 10 13:32:23 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 229960484Sobrien 230060484Sobrien * ecoff.c (ecoff_gprel_reloc): If _gp is not defined, give an 230160484Sobrien error rather than aborting. 230260484Sobrien 230360484Sobrien * libnlm.h (struct nlm_backend_data): Added mach field. 230460484Sobrien (nlm_machine): New accessor macro. 230560484Sobrien * nlm.c (nlm_mkobject): Set architecture and machine from backend 230660484Sobrien information. 230760484Sobrien * nlm32-i386.c (nlm32_i386_backend): Initialize new mach field. 230860484Sobrien 230960484SobrienTue Aug 10 09:31:18 1993 David J. Mackenzie (djm@thepub.cygnus.com) 231060484Sobrien 231160484Sobrien * configure.in: Replace calls to sort with shell code 231260484Sobrien to uniq the lists. 231360484Sobrien 231460484SobrienTue Aug 10 06:23:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 231560484Sobrien 231660484Sobrien * configure.in: Include aout32.o for any a.out/b.out formats. 231760484Sobrien 231860484SobrienMon Aug 9 09:37:18 1993 David J. Mackenzie (djm@thepub.cygnus.com) 231960484Sobrien 232060484Sobrien * config/i386-linux.mt (SELECT_VECS): Support bfd_elf32_i386_vec. 232160484Sobrien * config/m68k-elf.mt (SELECT_VECS): Support m68kcoff_vec. 232260484Sobrien * config/i386-elf.mt (SELECT_VECS): Support i386coff_vec. 232360484Sobrien * config/hppa-elf.mt (SELECT_VECS): Support hppa_vec. 232460484Sobrien * config/sparc-elf.mt (SELECT_VECS): Support sunos_big_vec. 232560484Sobrien * config/i386-sco.mt (SELECT_VECS): Don't define; Ian says it was 232660484Sobrien just a hack. 232760484Sobrien 232860484SobrienMon Aug 9 13:15:00 1993 K. Richard Pixley (rich@sendai.cygnus.com) 232960484Sobrien 233060484Sobrien * config/m88k-coff.mt (DEFAULT_VEC -> DEFAULT_VECTOR): renamed. 233160484Sobrien 233260484SobrienMon Aug 9 14:26:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 233360484Sobrien 233460484Sobrien * syms.c (BSF_EXPORT): Now same as BSF_GLOBAL. 233560484Sobrien 233660484Sobrien * bfd.c (bfd_scan_vma): New function. 233760484Sobrien 233860484SobrienMon Aug 9 11:29:53 1993 Ian Lance Taylor (ian@cygnus.com) 233960484Sobrien 234060484Sobrien * bfd-in.h (bfd_get_architecture, bfd_get_machine): Removed 234160484Sobrien obsolete macros. 234260484Sobrien * bfd-in2.h: Updated. 234360484Sobrien 234460484Sobrien * ecoff.c (ecoff_slurp_armap): Correct bug in initialization of 234560484Sobrien stringbase. 234660484Sobrien 234760484SobrienSun Aug 8 12:21:13 1993 David J. Mackenzie (djm@thepub.cygnus.com) 234860484Sobrien 234960484Sobrien * configure.in: Remove unneeded test. 235060484Sobrien 235160484SobrienSun Aug 8 12:41:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 235260484Sobrien 235360484Sobrien * Makefile.in ({dist,real}clean): Use $(MAKE), not make. 235460484Sobrien 235560484SobrienSat Aug 7 09:14:21 1993 David J. Mackenzie (djm@thepub.cygnus.com) 235660484Sobrien 235760484Sobrien * config/st2000.mt (TDEFINES): Don't define MRI; not used. 235860484Sobrien 235960484Sobrien * PORTING, TODO, config/README: Update to reflect below changes. 236060484Sobrien 236160484Sobrien * configure.in: Replace MINIMIZE and --with-minimal-bfd with 236260484Sobrien --with-bfd-targets="target1,target2,..." and the special target 236360484Sobrien "all" to get the previous default behavior. 236460484Sobrien Figure out which architecture and backend .o files are needed from 236560484Sobrien DEFAULT_VECTOR, SELECT_VECS, and SELECT_ARCHITECTURES as set in 236660484Sobrien the .mt files. Define TDEFAULTS based on them, also. 236760484Sobrien 236860484Sobrien * Makefile.in: Remove references to MINIMIZE. 236960484Sobrien * archures.c, targets.c: Ditto. 237060484Sobrien 237160484Sobrien * config/*.mt: Define DEFAULT_VECTOR, SELECT_VECS, and 237260484Sobrien SELECT_ARCHITECTURES as variables rather than as -D arguments to 237360484Sobrien TDEFAULTS. 237460484Sobrien 237560484Sobrien * config/a29k-coff.mt,alphaosf.mt, i386-sco.mt, i960-bout.mt, 237660484Sobrien i960-coff.mt (TDEFAULTS): Don't put the default vector in 237760484Sobrien SELECT_VECS manually; it's automatic now. 237860484Sobrien 237960484Sobrien * config/i386-sco.mt (TDEFAULTS): Don't put &sco_core_vec in 238060484Sobrien SELECT_VECS manually; -DSCO_CORE does it automatically now. 238160484Sobrien 238289857Sobrien * config/h8300-coff.mt, config/h8500-coff.mt, config/sh-coff.mt, 238389857Sobrien config/st2000.mt, config/z8k-coff.mt (TDEFAULTS): Don't define 238489857Sobrien BFD; not used. 238560484Sobrien 238660484Sobrien * config/hppaosf.mh (HDEFINES): Don't define SELECT_ARCHITECTURES; 238760484Sobrien this is a host, not a target. 238860484Sobrien 238960484SobrienSat Aug 7 05:28:03 1993 Fred Fish (fnf@deneb.cygnus.com) 239060484Sobrien 239160484Sobrien * elfcode.h (elf_object_p): Add comment about what this function 239260484Sobrien does and to watch out for side effects. Add FIXME for memory leaks. 239360484Sobrien Fix comment about checking for matching byte order. Preserve 239460484Sobrien pointer to old tdata (if any), and restore it if we don't match 239560484Sobrien file with target vector. If we are going to use goto's, use them 239660484Sobrien consistently and maintainably. 239760484Sobrien * nlmcode.h (nlm_object_p): Expand comments about leaked memory 239860484Sobrien to note that the problem is even more serious than just leaked 239960484Sobrien memory. Replace goto with more traditional return. 240060484Sobrien 240160484SobrienFri Aug 6 12:00:03 1993 David J. Mackenzie (djm@thepub.cygnus.com) 240260484Sobrien 240360484Sobrien Fix incorrect or useless makefile variable definitions: 240460484Sobrien * config/news.mt, config/u68k-coff.mt (TDEFAULTS): Use this to 240560484Sobrien define DEFAULT_VECTOR, instead of TDEFINES. 240660484Sobrien * config/i386aix.mh (MINIMIZE): Don't define. 240760484Sobrien * config/hppaosf.mh (MINIMIZE): Don't conditionalize. 240860484Sobrien * config/rs6000.mh (ALLOCA), 240960484Sobrien * config/i386v.mh (ALLOCA), 241060484Sobrien * config/i386linux.mh (ALLOCA), 241160484Sobrien * config/i386isc.mh (ALLOCA), 241260484Sobrien * config/go32.mh (EXTRALIBS): Don't define; not used. 241360484Sobrien * config/solaris2.mh (HDEFINES): Renamed from H_DEFINES. 241460484Sobrien * config/alphaosf.mt (TDEFINES): Set it, not HDEFINES. 241560484Sobrien * config/z8k-coff.mt (CC): Don't define. It's a target, not a host. 241660484Sobrien 241760484Sobrien * config/README: New file, explaining the variables. 241860484Sobrien 241960484Sobrien * targets.c (target_vector): Add hp300_bsd_vec. 242060484Sobrien * Makefile.in (BFD32_BACKENDS, CFILES): Add hp300bsd. 242160484Sobrien (hp300bsd.o): New rule. 242260484Sobrien 242360484SobrienFri Aug 6 15:13:22 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 242460484Sobrien 242560484Sobrien * libelf.h (NAME): Provide a default definition, that's neither 242660484Sobrien for 32 bits nor for 64. 242760484Sobrien 242860484Sobrien Tue Jun 15 14:38:32 1993 Michael Meissner (meissner@osf.org) 242960484Sobrien 243060484Sobrien * libelf.h (elf_hash): Change declaration to bfd_elf_hash, since 243160484Sobrien that is what is in elf.c. 243260484Sobrien 243360484SobrienFri Aug 6 12:28:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 243460484Sobrien 243560484Sobrien * ecoff.c (ecoff_set_symbol_info): Removed special handling for 243660484Sobrien scBss and scSBss symbols, since it was wrong. 243760484Sobrien 243860484Sobrien * Makefile.in (coff-mips.o, coff-alpha.o): Don't depend on 243960484Sobrien coffcode.h. 244060484Sobrien 244160484Sobrien * coffcode.h (sec_to_styp_flags): Inspired by mb@tti.COM (Michael 244260484Sobrien Bloom): Only set STYP_BSS for SEC_ALLOC sections. 244360484Sobrien 244460484Sobrien * ecoff.c (ecoff_slurp_armap): From Arne Henrik Juul 244560484Sobrien <arnej@kari.fm.unit.no>: Handle a COFF style armap. 244660484Sobrien 244760484SobrienFri Aug 6 09:59:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 244860484Sobrien 244960484Sobrien * hpux-core.c: Cast return value from bfd_zalloc. 245060484Sobrien 245160484SobrienThu Aug 5 13:22:44 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 245260484Sobrien 245360484Sobrien * aoutx.h (log2): Delete i387-specific code. 245460484Sobrien 245560484Sobrien * Makefile.in (BFD_LIBS): Always include elf.o. 245660484Sobrien (BFD32_BACKENDS): Don't include elf.o here. 245760484Sobrien (ofiles): Delete references to ofiles2 and ofiles3. 245860484Sobrien (do_clean): Delete ofiles. 245960484Sobrien (BFDIN_H): Changed references to $(srcdir)/bfd-in2.h. 246060484Sobrien (stmp-bfd.h): Use bfd.h-new as temporary name, not bfd.h2. 246160484Sobrien (headers): Use bfd-in2.h-new as temporary name, not bfd.h-new. 246260484Sobrien 246360484Sobrien * bfd-in.h: Reworded comment to make it clear that bfd-in2.h is a 246460484Sobrien generated file. 246560484Sobrien 246660484Sobrien * reloc.c (enum bfd_reloc_code_real): Added i386-elf reloc types 246760484Sobrien (from Meissner's additions to bfd-in2.h). 246860484Sobrien 246960484Sobrien * elf32-i386.c (ELF_MAXPAGESIZE): Define. 247060484Sobrien 247160484Sobrien Merged: 247260484Sobrien 247360484Sobrien Wed Jun 23 06:05:58 1993 Michael Meissner (meissner@osf.org) 247460484Sobrien 247560484Sobrien * elfcode.h (elf_write_object_contents): Don't drop core if 247660484Sobrien elf_symbol_from returns a NULL pointer when processing a non-elf 247760484Sobrien symbol, use a 0 size instead. 247860484Sobrien 247960484Sobrien Tue Jun 15 14:38:32 1993 Michael Meissner (meissner@osf.org) 248060484Sobrien 248160484Sobrien * elfcode.h (elf_hash): Delete macro mapping elf_hash to 248260484Sobrien bfd_elf32_hash, since the hash table is independent of the 32/64 248360484Sobrien bit system. 248460484Sobrien 248560484Sobrien * libelf.h (elf_hash): Change declaration to bfd_elf_hash, since 248660484Sobrien that is what is in elf.c. 248760484Sobrien 248860484Sobrien Sat Jun 19 10:12:27 1993 Michael Meissner (meissner@osf.org) 248960484Sobrien 249060484Sobrien * elf32-i386.h (reloc_type): Reformat spacing. 249160484Sobrien (elf_howto_table): Add the rest of the 386/ELF relocations. 249260484Sobrien (elf_i386_reloc_type_lookup): Ditto. 249360484Sobrien (elf_i386_info_to_howto): Ditto. 249460484Sobrien (elf_i386_info_to_howto_rel): Ditto. 249560484Sobrien 249660484SobrienThu Aug 5 10:07:43 1993 Fred Fish (fnf@cygnus.com) 249760484Sobrien 249860484Sobrien * nlmcode.h (nlm_get_reloc_upper_bound): Test return value 249960484Sobrien of nlm_slurp_symbol_table as boolean, not pointer. 250060484Sobrien * nlmcode.h (nlm_canonicalize_reloc): Test return value 250160484Sobrien of nlm_slurp_reloc_fixups as boolean, not pointer. 250260484Sobrien 250360484SobrienWed Aug 4 16:22:55 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 250460484Sobrien 250560484Sobrien * config/go32.mh: remove HDEFINES; since __MSDOS__ and __GO32__ 250660484Sobrien are now predefined by GCC 250760484Sobrien 250860484SobrienWed Aug 4 16:06:29 1993 David J. Mackenzie (djm@thepub.cygnus.com) 250960484Sobrien 251060484Sobrien * coffgen.c (coff_print_symbol): Add the section offset to the 251160484Sobrien line number address, so it's printed the same way as the function 251260484Sobrien address. Only showed up for line numbers that aren't in the first 251360484Sobrien section (.text). 251460484Sobrien 251560484SobrienWed Aug 4 08:33:55 1993 Ian Lance Taylor (ian@cygnus.com) 251660484Sobrien 251760484Sobrien * libnlm.h (nlm_backend_data): Added nlm_mangle_relocs. 251860484Sobrien (nlm_mangle_relocs_func): New macro. 251960484Sobrien * nlm32-i386.c (nlm_i386_write_reloc): Rewrote correctly. 252060484Sobrien (nlm_i386_mangle_relocs): New function. 252160484Sobrien * nlmcode.h (nlm_compute_section_file_positions): Move all common 252260484Sobrien symbols into the .bss section. 252360484Sobrien (nlm_set_section_contents): Call the mangle_relocs function. 252460484Sobrien (nlm_write_object_contents): Treat a reloc against any defined 252560484Sobrien symbol as an internal reloc. Fix bug in external reloc counting. 252660484Sobrien Get the offset and debugging type right for .bss symbols. Only 252760484Sobrien output debugging symbols for defined symbols. 252860484Sobrien 252960484Sobrien * coff-h8500.c (rtype2howto): Do an fprintf to stderr rather than 253060484Sobrien using printf. 253160484Sobrien * coff-z8k.c (rtype2howto): Likewise. 253260484Sobrien * coffcode.h (dummy_reloc16_extra_cases): Likewise. 253360484Sobrien * elf32-i386.c (TRACE): Likewise. 253460484Sobrien * hp300hpux.c (convert_sym_type, swap_std_reloc_in): Likewise. 253560484Sobrien * rs6000-core.c (rs6000coff_get_section_contents): Likewise. 253660484Sobrien * coffgen.c (coff_print_symbol): Do an fprintf to the file 253760484Sobrien argument rather than using printf. 253860484Sobrien 253960484SobrienTue Aug 3 18:17:25 1993 Ian Lance Taylor (ian@cygnus.com) 254060484Sobrien 254160484Sobrien * coffswap.h: Added macros used when accessing several fields; 254260484Sobrien default is the same as before. 254360484Sobrien (coff_swap_aouthdr_{in,out}): Handle the Alpha ECOFF fields. 254460484Sobrien * coff-alpha.c: Defined macros to use the right sizes in 254560484Sobrien coffswap.h. 254660484Sobrien * libecoff.h: Backend information is now in target vector, not 254760484Sobrien BFD. Start of backend information is COFF backend information. 254860484Sobrien * coff-alpha.c, coff-mips.c: Changed accordingly. 254960484Sobrien * ecoff.c (ecoff_mkobject): New function. 255060484Sobrien (ARMAP_START): Changed into backend information, since Alpha uses 255160484Sobrien a different name. 255260484Sobrien (ecoff_slurp_armap): Don't overlay archive header. 255360484Sobrien * bfd.c: Include libcoff.h. 255460484Sobrien 255560484SobrienTue Aug 3 16:33:11 1993 David J. Mackenzie (djm@thepub.cygnus.com) 255660484Sobrien 255760484Sobrien * Makefile.in (install): Fix sh syntax error. 255860484Sobrien 255960484Sobrien * aoutf1.h: Make bfd_error_trap extern; it's defined in bfd.c. 256060484Sobrien 256160484SobrienTue Aug 3 15:19:09 1993 Fred Fish (fnf@deneb.cygnus.com) 256260484Sobrien 256389857Sobrien * nlmcode.h (nlm_slurp_symbol_table): Don't use '&' on arrays. 256460484Sobrien 256560484SobrienTue Aug 3 11:06:28 1993 Ian Lance Taylor (ian@cygnus.com) 256660484Sobrien 256760484Sobrien * ecoff.c: New file for generic ECOFF functions. 256860484Sobrien * ecoffswap.h: New file for ECOFF swapping functions which differ 256960484Sobrien only slightly for different targets. 257060484Sobrien * libecoff.h: Added prototypes for ecoff.c functions. 257160484Sobrien (ecoff_backend_data): New structure. 257260484Sobrien (ecoff_tdata): Added backend_data field. Changed external data 257360484Sobrien pointers to be PTR rather than to a particular struct. 257460484Sobrien (ecoff_symbol_struct): Moved in from coff-mips.c. 257560484Sobrien * coff-alpha.c, coff-mips.c: Moved common functions into ecoff.c. 257660484Sobrien Added ECOFF backend structures. Include ecoffswap.h. 257760484Sobrien * coff-msym.c: Removed; superseded by ecoffswap.h. 257860484Sobrien * bfd.c: Include coff/internal.h. 257960484Sobrien * Makefile.in (BFD_LIBS): Removed coff-mips.o and coff-msym.o. 258060484Sobrien Added ecoff.o. 258160484Sobrien (BFD64_BACKENDS): Added coff-alpha.o. 258260484Sobrien (CFILES): Removed coff-msym.c. Added ecoff.c. 258360484Sobrien (bfd.o): Added dependency on $(INCDIR)/coff/sym.h. 258460484Sobrien (coff-mips.o): Added dependency on ecoffswap.h and coff/ecoff.h. 258560484Sobrien (ecoff.o, coff-alpha.o): New targets. 258660484Sobrien (coff-msym.o): Removed target. 258760484Sobrien 258860484SobrienMon Aug 2 23:33:38 1993 John Gilmore (gnu@cygnus.com) 258960484Sobrien 259060484Sobrien * elf32-hppa.h, hosts/*: Remove (one more time) all occurrances 259160484Sobrien of EXFUN in the BFD sources. Heave ho! 259260484Sobrien 259360484SobrienMon Aug 2 16:45:57 1993 Stu Grossman (grossman at cygnus.com) 259460484Sobrien 259560484Sobrien * coffcode.h (coff_set_arch_mach_hook): Add check for I386LYNXMAGIC. 259660484Sobrien 259760484SobrienMon Aug 2 12:18:03 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 259860484Sobrien 259960484Sobrien * hosts/sun3.h: remove some more conflicting decls 260060484Sobrien 260160484SobrienMon Aug 2 11:48:23 1993 Stu Grossman (grossman at cygnus.com) 260260484Sobrien 260360484Sobrien * i386lynx.c: Remove unnecessary def of N_HEADER_IN_TEXT, 260460484Sobrien redefine TEXT_START_ADDR to be 0. 260560484Sobrien 260660484SobrienSun Aug 1 22:54:08 1993 Stu Grossman (grossman at cygnus.com) 260760484Sobrien 260860484Sobrien * configure.host, configure.in, hosts/i386lynx.h: Lynx/386 260960484Sobrien host and target info. 261060484Sobrien 261160484SobrienFri Jul 30 18:08:27 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 261260484Sobrien 261360484Sobrien * nlm32-i386.c: New file. First cut at i386 NLM code. 261460484Sobrien * libnlm.h: Added some more prototypes. 261560484Sobrien (struct nlm_relent): New structure. 261660484Sobrien (nlmNAME(symbol_type)): Added rcnt and relocs fields. 261760484Sobrien (struct nlm_obj_tdata): Added new fields: nlm_symbols, 261860484Sobrien nlm_text_low, nlm_data_low, nlm_reloc_fixups, 261960484Sobrien nlm_reloc_fixup_secs. 262060484Sobrien (struct nlm_backend_data): New structure, with accessor macros. 262160484Sobrien * nlmcode.h: Use NLM_HIBIT rather than MSB. 262260484Sobrien (nlm_object_p): Set SEC_RELOC for .text and .data. Don't set 262360484Sobrien SEC_DATA for .bss. Set HAS_RELOC and HAS_SYMS for abfd. Set the 262460484Sobrien architecture. 262560484Sobrien (nlm_swap_fixed_header_out, nlm_swap_variable_header_out, 262660484Sobrien find_nonzero, nlm_swap_auxiliary_headers_out): New outbound 262760484Sobrien swapping functions. 262860484Sobrien (nlm_get_symtab_upper_bound, nlm_slurp_symbol_table): Include 262960484Sobrien external references in symbol table as undefined symbols. 263060484Sobrien (nlm_get_symtab, nlm_slurp_symbol_table): Fill in alocation 263160484Sobrien argument in get_symtab rather than in slurp_symbol_table. 263260484Sobrien (nlm_slurp_symbol_table): Save symbol information in tdata. 263360484Sobrien (nlm_print_symbol): New function. 263460484Sobrien (nlm_slurp_reloc_fixups, nlm_get_reloc_upper_bound, 263560484Sobrien nlm_canonicalize_reloc): New functions to read relocs. 263660484Sobrien (nlm_compute_section_file_positions, nlm_set_section_contents, 263760484Sobrien nlm_external_reloc_compare, nlm_write_object_contents): New 263860484Sobrien functions to create NLM files. 263960484Sobrien * nlm-target.h: Define all the nlm functions here either as 264060484Sobrien default values or in terms of nlmNAME. Use JUMP_TABLE(nlm). Set 264160484Sobrien the backend_data field to TARGET_BACKEND_DATA. 264260484Sobrien * nlm32-gen.c, nlm64-gen.c: Don't define function macros here; 264360484Sobrien they are now in nlm-target.h. 264460484Sobrien (TARGET_BACKEND_DATA): Define as NULL. 264560484Sobrien * nlm.c (nlm_mkobject): Do allocate the tdata field. 264660484Sobrien (nlm_set_arch_mach): New function. 264760484Sobrien * targets.c: Added nlm32_i386_vec. 264860484Sobrien * Makefile.in (BFD32_BACKENDS): Added nlm32-i386.o. 264960484Sobrien (CFILES): Added nlm32-i386.c. 265060484Sobrien (nlm32-gen.o, nlm64-gen.o): Depend on nlm-target.h. 265160484Sobrien (nlm32-i386.o): New target. 265260484Sobrien 265360484SobrienThu Jul 29 20:20:39 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 265460484Sobrien 265560484Sobrien * hosts/sun3.h: remove some function decls that conflict w/ ANSI 265660484Sobrien C, and aren't needed anyway (return int) 265760484Sobrien 265860484SobrienWed Jul 28 15:46:38 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 265960484Sobrien 266060484Sobrien * elfcode.h: Use casts with bfd_alloc and alloca. 266160484Sobrien 266260484SobrienTue Jul 27 12:51:43 1993 Fred Fish (fnf@deneb.cygnus.com) 266360484Sobrien 266460484Sobrien * nlm{32,64}-gen.c (JUMP_TABLE_PREFIX): Delete. 266560484Sobrien * nlm{32,64}-gen.c (JUMP_TABLE_INIT): New macro that works with 266660484Sobrien older cpp's, that don't do additional replacement on the JUMP_TABLE 266760484Sobrien macro's argument. 266860484Sobrien * nlm-target.h (JUMP_TABLE_INIT): Use new macro in place of 266960484Sobrien JUMP_TABLE macro. 267060484Sobrien 267160484SobrienMon Jul 26 17:39:01 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 267260484Sobrien 267360484Sobrien Yet another trad-core variant: 267460484Sobrien * config/esix.mh, hosts/esix.h: New files. 267589857Sobrien * configure.host: Use them. 267660484Sobrien 267760484SobrienMon Jul 26 13:22:15 1993 Ian Lance Taylor (ian@cygnus.com) 267860484Sobrien 267960484Sobrien * reloc.c (bfd_perform_relocation): Handle the case of 268060484Sobrien complain_overflow_bitfield, rightshift > bitpos, and a negative 268160484Sobrien number. 268260484Sobrien 268360484SobrienMon Jul 26 14:40:10 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 268460484Sobrien 268560484Sobrien * elfcode.h: Reimplement segment writing. 268660484Sobrien (elf_write_phdrs): Use precomputed e_phoff rather than making 268760484Sobrien assumptions. 268860484Sobrien (elf_build_phdrs): Disabled, for now. 268960484Sobrien (assign_file_position_for_section): Don't change file offset for 269060484Sobrien SHT_NOBITS. 269160484Sobrien (assign_file_positions_for_symtab_and_strtabs): New function. 269260484Sobrien (struct seg_info): New type. 269360484Sobrien (map_program_segments): New function. 269460484Sobrien (assign_file_positions_except_relocs): For executables, leave 269560484Sobrien section headers &c for last, and properly align all sections with 269660484Sobrien flag SHF_ALLOC set. 269760484Sobrien (prep_headers): No longer abort when EXEC_P is set. 269860484Sobrien (write_shdrs_and_ehdr): Deleted all code relating to program 269960484Sobrien segments. 270060484Sobrien 270160484Sobrien * elfcode.h (various): Deleted some unused code, and debugging 270260484Sobrien "malloc(0)" calls. 270360484Sobrien (write_relocs): Cache value of last symbol looked up, to save 270460484Sobrien time if the symbol is referred to repeatedly. 270560484Sobrien (elf_fake_sections): Check only SEC_RELOC flag, not number of 270660484Sobrien relocs. 270760484Sobrien (assign_section_numbers): Likewise. 270860484Sobrien 270960484Sobrien * Makefile.in (ofiles): Stars in wildcards belong outside quotes. 271060484Sobrien 271160484Sobrien * libelf.h (struct elf_backend_data): New field, maxpagesize. 271260484Sobrien (struct elf_obj_tdata): New field, phdr. 271360484Sobrien * elf32-target.h (elf32_bed): Initialize maxpagesize from 271460484Sobrien ELF_MAXPAGESIZE. 271560484Sobrien (ELF_MAXPAGESIZE): Default to 1. 271660484Sobrien * elf64-target.h (elf64_bed, ELF_MAXPAGESIZE): Likewise. 271760484Sobrien * elf32-sparc.c (ELF_MAXPAGESIZE): Define. 271860484Sobrien (elf_sparc_howto_table): All relocs should have pcrel_offset=true. 271960484Sobrien Most should have length field of `2'. 272060484Sobrien 272160484Sobrien * reloc.c (bfd_perform_relocation): Handle 64-bit relocs. 272260484Sobrien 272360484Sobrien * config/sparc-aout.mt (TARGET_BACKENDS): Define. 272460484Sobrien 272560484SobrienMon Jul 26 08:56:16 1993 Ian Lance Taylor (ian@cygnus.com) 272660484Sobrien 272760484Sobrien * configure.in: Don't look in ${srcdir} for ${target_makefile_frag}; 272860484Sobrien the top level script has already adjusted for it. 272960484Sobrien 273060484SobrienMon Jul 26 08:09:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 273160484Sobrien 273260484Sobrien * srec.c (srec_write_symbols): Get CR LF in the right order. 273360484Sobrien 273460484SobrienMon Jul 26 02:08:41 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 273560484Sobrien 273660484Sobrien * hosts/vaxbsd.h: Include std-host.h. Don't include <machine/param.h>. 273760484Sobrien 273860484SobrienSat Jul 24 16:13:01 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 273960484Sobrien 274060484Sobrien * reloc.c (bfd_perform_relocation): Handle case of rightshift != 274160484Sobrien bitpos when overflow checking. 274260484Sobrien 274360484SobrienFri Jul 23 10:20:27 1993 Doug Evans (dje@canuck.cygnus.com) 274460484Sobrien 274560484Sobrien * bfd.c (bfd_nonrepresentable_section, bfd_undefined_symbol, 274660484Sobrien bfd_reloc_value_truncated, bfd_reloc_is_dangerous, bfd_assert): 274760484Sobrien Send error messages to stderr. 274860484Sobrien 274960484SobrienThu Jul 22 15:57:29 1993 Fred Fish (fnf@deneb.cygnus.com) 275060484Sobrien 275160484Sobrien * nlm{32,64}-target.h: Remove. 275260484Sobrien * nlm-target.h: New file, merged from nlm{32,64}-target.h 275360484Sobrien * libnlm.h (NLM_ARCH_SIZE): Define to ARCH_SIZE. 275460484Sobrien * nlm.c (ARCH_SIZE): Remove define to zero. 275560484Sobrien * nlm32-gen.c (ARCH_SIZE): Define to 32. 275660484Sobrien * nlm32-gen.c (JUMP_TABLE_PREFIX): Define to nlm32. 275760484Sobrien * nlm{32,64}-gen.c (nlm-target.h): Include. 275860484Sobrien * targets.c, libnlm.h, nlm.c, nlm{32,64}-gen.c, nlm{32,64}.c, 275960484Sobrien nlmcode.h: Convert prefixes from bfd_nlm<size> to just 276060484Sobrien nlm<size>, and use macros select size. 276160484Sobrien 276260484SobrienThu Jul 22 15:40:14 1993 K. Richard Pixley (rich@sendai.cygnus.com) 276360484Sobrien 276460484Sobrien * Makefile.in (Makefile): add configure.in, drop redundant 276560484Sobrien $(srcdir), drop redundant ./ 276660484Sobrien 276760484SobrienThu Jul 22 13:34:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 276860484Sobrien 276960484Sobrien * hpux-core.c: New file; backend for HP/UX style core files. 277060484Sobrien * bfd.c (struct _bfd): Renamed hppa_core_data field to 277160484Sobrien hpux_core_data. 277260484Sobrien * bfd-in2.h: Updated. 277360484Sobrien * hppa.c (make_bfd_asection, hppa_core_file_p, 277460484Sobrien hppa_core_file_failing_command, hppa_core_file_failing_signal, 277560484Sobrien hppa_core_file_matches_executable_p): Moved into hpux-core.c. 277660484Sobrien Removed from target vector. 277760484Sobrien * libhppa.h (struct hppa_core_struct and accessor macros): Moved 277860484Sobrien into hpux-core.c. 277960484Sobrien * targets.c: If HPUX_CORE is defined, add hpux_core_vec to 278060484Sobrien target list. 278160484Sobrien * config/hp300.mh (HDEFINES): Set to -DHPUX_CORE. 278260484Sobrien (HDEPFILES): Set to hpux-core.o. 278360484Sobrien * config/hppabsd.mh, config/hppahpux.mh: Likewise. 278460484Sobrien * hosts/hp300.h (HOST_HP300HPUX): Define. 278560484Sobrien * Makefile.in (OPTIONAL_BACKENDS): Added sco-core.o, 278660484Sobrien aix386-core.o, hpux-core.o. 278760484Sobrien (sco-core.o, aix386-core.o, hpux-core.o): New dependencies. 278860484Sobrien 278960484Sobrien * reloc.c (enum complain_overflow): New enumeration with the 279060484Sobrien various flavours of overflow checking. 279160484Sobrien (srtuct reloc_howto_struct): Changed complain_on_overflow field 279260484Sobrien from boolean to emum complain_overflow. Removed obsolete absolute 279360484Sobrien field. 279460484Sobrien (HOWTO): Removed absolute argument. 279560484Sobrien (bfd_perform_relocation): Do overflow checking on all types of 279660484Sobrien fields. 279760484Sobrien * bfd-in2.h: Updated accordingly. 279860484Sobrien * all targets: Updated initialization of reloc howto tables. 279960484Sobrien 280060484SobrienWed Jul 21 20:34:34 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 280160484Sobrien 280260484Sobrien * opncls.c (bfd_create): Don't use C++ keyword "template" as a C 280360484Sobrien variable name. 280460484Sobrien 280560484SobrienTue Jul 20 15:02:23 1993 Fred Fish (fnf@deneb.cygnus.com) 280660484Sobrien 280760484Sobrien * coff-m68k.c (m68k_howto2rtype): Make arg CONST to match callers. 280860484Sobrien 280960484Sobrien * elfcode.h: Fix several illegal pointer combination warnings for 281060484Sobrien usages of bfd_alloc and alloca. 281160484Sobrien 281260484Sobrien * libnlm.h (nlm_obj_tdata): Rename hidden struct members to avoid 281360484Sobrien apparent Sun C preprocessor recursion. Fix access macros. 281460484Sobrien * nlmcode.h: Remove spurious '&' before several array references. 281560484Sobrien 281660484SobrienTue Jul 20 14:36:27 1993 Jim Kingdon (kingdon@deneb.cygnus.com) 281760484Sobrien 281860484Sobrien * Rename for DOS uniqueness: coff-m68k-un.c -> coff-u68k.c 281960484Sobrien config/m68k-coffun.mt -> u68k-coff.mt. 282060484Sobrien * Makefile.in, configure.in: Corresponding changes. 282160484Sobrien 282260484SobrienTue Jul 20 16:21:52 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 282360484Sobrien 282460484Sobrien * elf32-sparc.c (elf_sparc_howto_table): Don't use "&" before 282560484Sobrien function name; it's valid without, and some compilers give 282660484Sobrien warnings with it there. 282760484Sobrien 282860484SobrienTue Jul 20 08:21:15 1993 Fred Fish (fnf@deneb.cygnus.com) 282960484Sobrien 283060484Sobrien * bfd-in.h: Apply some of the changes that were made to bfd-in2.h. 283160484Sobrien * bfd.c (union tdata): Add nlm_obj_data; 283260484Sobrien * targets.c (enum target_flavour): Add bfd_target_nlm_flavour. 283360484Sobrien 283460484SobrienMon Jul 19 20:46:18 1993 Fred Fish (fnf@deneb.cygnus.com) 283560484Sobrien 283660484Sobrien * configure.in (*-*-netware, i[34]86-*-netware): New configs. 283760484Sobrien * Makefile.in (BFD32_BACKENDS): Add nlm.o, nlm32.o, nlm32-gen.o. 283860484Sobrien * Makefile.in (BFD64_BACKENDS): Add nlm64.o, nlm64-gen.o. 283960484Sobrien * Makefile.in (CFILES): Add nlm{32,64}.c, nlm{32,64}-gen.c. 284060484Sobrien * Makefile.in (nlm.o, nlm{32,64}.o, nlm{32,64}-gen.o: New targets. 284160484Sobrien * bfd-in2.h (INLINE): Defines moved here. 284260484Sobrien * {aoutx.h, elf.c, elfcode.h}: Move INLINE defines to bfd-in2.h. 284360484Sobrien * libelf.h (CAT4): Move define to bfd-in2.h. 284460484Sobrien * bfd-in2.h (CAT4): Merge CAT4 macro with other CAT macros. 284560484Sobrien * bfd-in2.h (union tdata): Add nlm_obj_data. 284660484Sobrien * bfd-in2.h (enum target_flavour): Add bfd_target_nlm_flavour. 284760484Sobrien * targets.c (bfd_nlm{32,64}_{big,little}_vec): Add prototypes. 284860484Sobrien * targets.c (target_vector): Add bfd_nlm{32,64}_{big,little}_vec. 284960484Sobrien * (libnlm.h, nlm.c, nlmcode.h, nlm{32,64}-gen.c, 285060484Sobrien nlm{32,64}-target.h, nlm{32,64}.c, config/i386-nlm.mt): New files 285160484Sobrien for NLM support. 285260484Sobrien 285360484SobrienMon Jul 19 15:09:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 285460484Sobrien 285560484Sobrien * configure.{hosts,in}: add i[34]86-*-lynxos* support 285660484Sobrien 285760484SobrienMon Jul 19 14:53:30 1993 Ken Raeburn (raeburn@rtl.cygnus.com) 285860484Sobrien 285960484Sobrien * elf.c, elfcode.h, libelf.h: Serious reorganization. 286060484Sobrien Deleted `thunk' structure, merged into tdata, duplicate data 286160484Sobrien eliminated. 286260484Sobrien Rearranged functions, grouping by functionality. 286360484Sobrien Broke up many functions in elfcode.h, re-ordered many parts of 286460484Sobrien file writing to handle unpredictable state of section relocation 286560484Sobrien table as provided by various applications. 286660484Sobrien Still needs cleanup: Merge functions back together, split out 286760484Sobrien data structure with only data that is used only when writing out 286860484Sobrien object file. 286960484Sobrien 287060484Sobrien * elf.c (bfd_elf_generic_reloc): New function, taken from 287160484Sobrien coff-mips.c. 287260484Sobrien * elf32-sparc.c (elf_sparc_howto_table): Use it, to work around 287360484Sobrien bfd_perform_relocation lossage. 287460484Sobrien 287560484Sobrien * Makefile.in (BFD_LIBS): Include coff-mips.o and coff-msym.o, so 287660484Sobrien that gdb will link. 287760484Sobrien (ofiles): Don't use sort or uniq; do it with sh constructs. 287860484Sobrien 287960484SobrienSun Jul 18 19:42:14 1993 Jim Kingdon (kingdon@rtl.cygnus.com) 288060484Sobrien 288160484Sobrien * coffcode.h: Recognize I386PTXMAGIC. 288260484Sobrien * aoutf1.h, libaout.h: Add M_386_DYNIX. 288360484Sobrien * trad-core.c (TRAD_CORE_USER_OFFSET, TRAD_CORE_STACK_FILEPOS): 288460484Sobrien New macros; use it if defined. 288560484Sobrien * config/symmetry.mh, hosts/symmetry.h: New files. 288660484Sobrien 288760484SobrienFri Jul 16 14:56:31 1993 Jim Kingdon (kingdon@rtl.cygnus.com) 288860484Sobrien 288960484Sobrien * Rename elf{32,64}-generic.c to *-gen.c for 14 char filenames. 289060484Sobrien * Makefile.in: Change accordingly. 289160484Sobrien (CFILES): Add elf64-gen.c. 289260484Sobrien 289360484SobrienFri Jul 16 09:53:23 1993 Ian Lance Taylor (ian@cygnus.com) 289460484Sobrien 289560484Sobrien * coff-mips.c: Use MIPS_AOUT_{OZ}MAGIC rather than {OZ}MAGIC. 289660484Sobrien 289760484SobrienThu Jul 15 16:02:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 289860484Sobrien 289960484Sobrien * coff-m88k.c (howto_table): Corrected bitsize for R_PCR26L from 290060484Sobrien 16 to 26. 290160484Sobrien 290260484SobrienWed Jul 14 15:29:56 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 290360484Sobrien 290460484Sobrien * hppa.c [HOST_HPPABSD]: Use hpux-style core files. 290560484Sobrien * libhppa.h [HOST_HPPABSD]: Include hpux version of core.h 290660484Sobrien 290760484SobrienWed Jul 14 09:30:48 1993 Doug Evans (dje@canuck.cygnus.com) 290860484Sobrien 290960484Sobrien * configure.in: Recognize h8300h-*-*. 291060484Sobrien 291160484SobrienTue Jul 13 12:03:00 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 291260484Sobrien 291360484Sobrien * coff-h8500.c (reloc_processing, rtype2howto): New relocation 291460484Sobrien type R_H8500_HIGH_16. 291560484Sobrien * coff-sh.c (r_imm32): Get the width of the reloc right. 291660484Sobrien 291760484SobrienTue Jul 13 16:48:56 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr) 291860484Sobrien 291960484Sobrien * configure.in: Add new target m68k-coffun to the dpx/2. 292060484Sobrien * config/m68k-coffun.mt: New file, renamed from config/dpx2.mt. 292160484Sobrien 292260484SobrienMon Jul 12 10:42:49 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 292360484Sobrien 292460484Sobrien * reloc.c (enum bfd_reloc_code_real): Move SPARC_BASE13 reloc into 292560484Sobrien sparc-aout-specific list. 292660484Sobrien 292760484Sobrien * libelf.h (struct elf_obj_tdata): Add field `thunk'. 292860484Sobrien 292960484Sobrien * config/sparc-elf.mt (TARGET_BACKENDS): New make variable. 293060484Sobrien 293160484SobrienThu Jul 1 14:52:47 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr) 293260484Sobrien and Jim Kingdon (kingdon@cygnus.com) 293360484Sobrien 293460484Sobrien * elfcode.h: Use memset not bzero. 293560484Sobrien * trad-core.c: Don't include <sys/file.h>. 293660484Sobrien * i386linux.h: Include <sys/file.h>. 293760484Sobrien * coff-m68k-un.c: new file to handle names with underscores on 293860484Sobrien svr3 machines. 293960484Sobrien * coff-m68k.c (m68k_rtype2howto): added #ifdef ONLY_DECLARE_RELOCS 294060484Sobrien to not duplicate the function in the executable. 294160484Sobrien (TARGET_SYM, TARGET_NAME, NAMES_HAVE_UNDERSCORE): new macros needed 294260484Sobrien by coff-m68k-un.c. 294360484Sobrien * coffcode.h (MC68KBCSMAGIC): case added. 294460484Sobrien * targets.c: Add m68kcoffun_vec. 294560484Sobrien * configure.host: added support for Bull dpx/2. 294660484Sobrien * config/dpx2.mh, hosts/dpx2.h: new files. 294760484Sobrien * Makefile.in: added target coff-m68k-un. 294860484Sobrien 294960484SobrienFri Jul 9 00:43:06 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 295060484Sobrien 295160484Sobrien * aoutf1.h: Add definition of MACHTYPE_OK. 295260484Sobrien 295360484SobrienThu Jul 8 14:37:44 1993 David J. Mackenzie (djm@thepub.cygnus.com) 295460484Sobrien 295560484Sobrien * reloc.c (bfd_perform_relocation): Don't subtract the addend 295660484Sobrien again for coff. 295760484Sobrien 295860484Sobrien * syms.c, bfd-in2.h: Doc fix. 295960484Sobrien 296060484Sobrien * coffcode.h (CALC_ADDEND): Check for common section using the 296160484Sobrien section flag as well as the symbol flag. 296260484Sobrien 296360484SobrienThu Jul 8 13:43:52 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 296460484Sobrien 296560484Sobrien * hosts/i386bsd.h: Conditionalize HOST_STACK_END_ADDR on __bsdi__. 296660484Sobrien i386bsd.c: Remove defines of N_TXT*; the versions in aout64.h should 296760484Sobrien be sufficient. Define TEXT_START_ADDR. 296860484Sobrien 296960484SobrienWed Jul 7 10:56:21 1993 Ian Lance Taylor (ian@cygnus.com) 297060484Sobrien 297160484Sobrien * aoutx.h (translate_from_native_sym_flags): Removed statep 297260484Sobrien argument. Just let an indirect symbol point to the next symbol 297360484Sobrien without forcing the next symbol to be undefined. Changed all 297460484Sobrien callers. 297560484Sobrien * hp300hpux.c (slurp_symbol_table): Changed call to 297660484Sobrien translate_from_native_sym_flags. 297760484Sobrien * targets.c: Added hp300hpux_vec. 297860484Sobrien * Makefile.in (hp300hpux.o): Added dependencies. 297960484Sobrien 298060484SobrienTue Jul 6 13:24:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 298160484Sobrien 298260484Sobrien * reloc.c (enum bfd_reloc_code_real): Put simple power-of-two 298360484Sobrien relocs together, and add 64-bit versions. 298460484Sobrien (bfd_generic_get_relocated_section_contents): Argument to alloca 298560484Sobrien is size_t. 298660484Sobrien 298760484Sobrien * libbfd.c (bfd_xmalloc_by_size_t): New function. 298860484Sobrien * opncls.c (bfd_cache_init, bfd_open_file): Add prototypes to 298960484Sobrien declarations. 299060484Sobrien (obstack_chunk_alloc): Use bfd_xmalloc_by_size_t. 299160484Sobrien (new_bfd): Prototype-style definition, using DEFUN. 299260484Sobrien (bfd_alloc_grow, bfd_alloc, bfd_zalloc, bfd_realloc): Size 299360484Sobrien argument is type size_t, not bfd_size_type. 299460484Sobrien * ieee.c (obstack_chunk_alloc): Use bfd_xmalloc_by_size_t. 299560484Sobrien * bfd.c (bfd_default_error_trap, bfd_error_trap, 299660484Sobrien bfd_error_nonrepresentabltrap): Prototypes. 299760484Sobrien * libbfd-in.h (bfd_alloc, bfd_zalloc, bfd_realloc, 299860484Sobrien bfd_alloc_grow): Adjusted prototypes for arg type change. 299960484Sobrien * archive.c (get_elt_at_filepos, do_slurp_bsd_armap, normalize, 300060484Sobrien do_slurp_coff_armap, bfd_construct_extended_name_table): 300160484Sobrien Prototypes. 300260484Sobrien * elfcode.h (elf_string_from_elf_strtab): Prototypes. 300360484Sobrien * libelf.h (elf_string_from_elf_section, elf_get_str_section): 300460484Sobrien Prototypes. 300560484Sobrien 300660484Sobrien * Makefile.in (ALL_MACHINES): Renamed from BFD_MACHINES. 300760484Sobrien (ofiles): New target. Build a list of unique file names, in case 300860484Sobrien any got duplicated. 300960484Sobrien (TARGETLIB): Use list of files from ofiles. 301060484Sobrien * configure.in: Set BFD_MACHINES and BFD_BACKENDS depending on 301160484Sobrien minimal-bfd flag and target makefile frag contents. 301260484Sobrien 301360484Sobrien * elfcode.h (elf_read): Delete static declaration, since function 301460484Sobrien has moved. 301560484Sobrien (elf_map_symbols): Write out section symbols for all sections, for 301660484Sobrien now. 301760484Sobrien (elf_symbol_from_bfd_symbol): Allow match if both symbols are 301860484Sobrien section symbols for the same section. 301960484Sobrien (elf_find_nearest_line): Don't print message, just return false. 302060484Sobrien 302160484Sobrien * libelf.h (bfd_elf_locate_sh): Declaration deleted. 302260484Sobrien 302360484SobrienMon Jul 5 16:48:11 1993 Doug Evans (dje@canuck.cygnus.com) 302460484Sobrien 302560484Sobrien * cpu-h8300.c (h8300_scan): Fix parsing of architecture string. 302660484Sobrien 302760484SobrienFri Jul 2 18:27:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 302860484Sobrien 302960484Sobrien * Makefile.in (clean): Remove bfd.h and stmp-bfd.h. 303060484Sobrien (realclean): Remove generated headers. 303160484Sobrien 303260484SobrienFri Jul 2 14:51:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 303360484Sobrien 303460484Sobrien * section.c (bfd_set_section_content): Deny if file is not opened with 303560484Sobrien the proper mode, set output_has_begun if file is openened for update. 303660484Sobrien * aoutx.h (aout_*_set_section_content): Remove checks that are now 303760484Sobrien done in bfd_set_section_content. 303860484Sobrien 303960484SobrienFri Jul 2 09:25:20 1993 Ian Lance Taylor (ian@cygnus.com) 304060484Sobrien 304160484Sobrien * hosts/std-host.h: Removed declarations of printf, fprintf, 304260484Sobrien fcntl, fread and fwrite. They are all error prone for one reason 304360484Sobrien or another. Changed declaration of memchr from char * to PTR. 304460484Sobrien 304560484Sobrien * configure.in (mips-*-riscos*): New target; use riscos. 304660484Sobrien * configure.host (mips-*-riscos*): New host; use riscos. 304760484Sobrien * config/riscos.mh (HDEFINES): Add -G 4. 304860484Sobrien 304960484Sobrien * libaout.h (GET_SWORD): Use the bfd_h_get_signed entry points 305060484Sobrien rather than casting the result of bfd_h_get. 305160484Sobrien 305260484SobrienFri Jul 2 10:13:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 305360484Sobrien 305460484Sobrien * configure.in, hosts/delta68.h, config/delta68.mh: Add stuff for 305560484Sobrien Motorola Delta 68. 305660484Sobrien 305760484SobrienWed Jun 30 06:02:43 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 305860484Sobrien 305960484Sobrien * targets.c (bfd_elf64_{big,little}_generic_vec): Declare, and 306060484Sobrien include in search list if BFD64 is defined. 306160484Sobrien 306260484Sobrien * libelf.h (CAT4): Added a version for Saber-C, ANSI mode. 306360484Sobrien (bfd_elf64_*): Declarations for 64-bit versions of many routines. 306460484Sobrien 306560484SobrienTue Jun 29 22:50:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 306660484Sobrien 306760484Sobrien * elf64-target.h, elf64-generic.c: New files. 306860484Sobrien * Makefile.in (BFD64_BACKENDS): Include elf64-generic.o. 306960484Sobrien (elf64-generic.o): List dependencies. 307060484Sobrien 307160484Sobrien * Makefile.in: List target `all' explicitly before host/target 307260484Sobrien makefile fragments are included, in case they define any new 307360484Sobrien targets. 307460484Sobrien 307560484Sobrien * elfcode.h (ELF_R_INFO, ELF_R_SYM): Define as 32- or 64-bit 307660484Sobrien versions as appropriate. Uses updated. 307760484Sobrien (elf_debug_section): Declare before use. 307860484Sobrien (elf_debug_file): New function. 307960484Sobrien (bfd_section_from_shdr, bfd_shdr_from_section, elf_fake_sections): 308060484Sobrien Alignment value in section header is n_bytes, not log2. 308160484Sobrien (new_section_hook): Do nothing for now. 308260484Sobrien (bfd_section_from_shdr): Use Elf_External_Rel[a], not 32-bit 308360484Sobrien version explicitly. 308460484Sobrien (elf_core_file_p): Simplify check for correct class (word size). 308560484Sobrien (elf_make_sections, elf_fake_sections, elf_write_object_contents): 308660484Sobrien Initialize all fields when creating data structures. 308760484Sobrien (elf_locate_sh): Renamed from bfd_elfXX_locate_sh, made static. 308860484Sobrien (elf_compute_section_file_positions): Set correct class in output 308960484Sobrien file. 309060484Sobrien (elf_write_object_contents): Section symbols have empty names in 309160484Sobrien output file. 309260484Sobrien 309360484Sobrien * libbfd.c (bfd_xmalloc, zalloc): Be sure to cast malloc, memset 309460484Sobrien args to size_t before call. 309560484Sobrien (bfd_add_to_string_table): Cast zalloc arg to bfd_size_type. 309660484Sobrien 309760484SobrienTue Jun 29 10:49:42 1993 Ian Lance Taylor (ian@cygnus.com) 309860484Sobrien 309960484Sobrien * coff-mips.c (ecoff_find_nearest_line): If procedure has no line 310060484Sobrien number information, return 0 for line number. 310160484Sobrien 310260484SobrienMon Jun 28 10:45:02 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 310360484Sobrien 310460484Sobrien * aoutx.h (some_aout_object_p): If *oldrawptr is non-NULL, copy it 310560484Sobrien into *rawptr. 310660484Sobrien 310760484SobrienSun Jun 27 09:05:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 310860484Sobrien 310960484Sobrien * hosts/riscos.h: Define NBPG and UPAGES. 311060484Sobrien 311160484SobrienSun Jun 27 16:28:26 1993 Ken Raeburn (raeburn@cygnus.com) 311260484Sobrien 311360484Sobrien * elfcode.h (elf_slurp_symbol_table): Don't use obj_raw_syms as 311460484Sobrien lvalue; it contains a cast. 311560484Sobrien 311660484SobrienFri Jun 25 17:09:55 1993 David J. Mackenzie (djm@thepub.cygnus.com) 311760484Sobrien 311860484Sobrien * aoutx.h (hash, compare, struct stringtab_entry, add_to_stringtab): 311960484Sobrien Use unsigned hash values for better hashing. 312060484Sobrien (hash): Hash in the string length for long strings. 312160484Sobrien 312260484SobrienThu Jun 24 15:47:51 1993 David J. Mackenzie (djm@thepub.cygnus.com) 312360484Sobrien 312460484Sobrien * aoutx.h (compare): Replace 3 if's with a subtraction. 312560484Sobrien (translate_to_native_sym_flags, add_to_stringtab): Reorder tests 312660484Sobrien in decreasing order of success, as an optimization. 312760484Sobrien (hash): Take a length arg; ignore chars after #25, for speed. 312860484Sobrien (add_to_stringtab): Pass length to hash. 312960484Sobrien 313060484SobrienThu Jun 24 17:25:51 1993 Ken Raeburn (raeburn@poseidon.cygnus.com) 313160484Sobrien 313260484Sobrien * elf32-sparc.c (sparc_reloc_map): Add SPARC_WDISP22 reloc. 313360484Sobrien 313460484Sobrien * elfcode.h (elf_new_section_hook): Do nothing for now. 313560484Sobrien (elf_write_object_contents): Output common symbols the way ELF 313660484Sobrien wants them. 313760484Sobrien 313860484SobrienWed Jun 23 16:20:07 1993 Ken Raeburn (raeburn@poseidon.cygnus.com) 313960484Sobrien 314060484Sobrien * libelf.h (struct elf_obj_tdata and associated macros): Moved 314160484Sobrien here from elfcode.h. A couple of size-specific structure pointers 314260484Sobrien were changed to PTR; uses fixed appropriately. 314360484Sobrien (elf32_symbol_type, elf64_symbol_type): Separated definitions. 314460484Sobrien (bfd_elf_mkobject): Renamed from bfd_elf32_mkobject. 314560484Sobrien (bfd_elf32_mkobject, bfd_elf64_mkobject, elf_mkobject): New 314660484Sobrien temporary macros to ease name change. 314760484Sobrien * elf.c (elf_read, elf_mkobject, elf_get_str_section, 314860484Sobrien elf_string_from_elf_section, bfd_elf_find_section): Moved here 314960484Sobrien from elfcode.h. 315060484Sobrien * doc/Makefile.in (libbfd.h): Process elf.c too. 315160484Sobrien * Makefile.in (elf.o): Note new dependencies. 315260484Sobrien 315360484Sobrien * elfcode.h: Lots of stuff moved elsewhere. Deleted some unused 315460484Sobrien code, tweaked some debug hooks. 315560484Sobrien (elf_slurp_reloca_table): Translate ELF section symbols into BFD 315660484Sobrien section symbols. 315760484Sobrien 315860484SobrienWed Jun 23 11:34:21 1993 Jim Kingdon (kingdon@cygnus.com) 315960484Sobrien 316060484Sobrien * hosts/riscos.h: New file. 316160484Sobrien 316260484SobrienTue Jun 22 14:35:20 1993 Ken Raeburn (raeburn@poseidon.cygnus.com) 316360484Sobrien 316460484Sobrien * elfcode.h (bfd_section_from_shdr, case SHT_PROGBITS): Even if 316560484Sobrien section already exists, use its pointer to fill in rawdata slot. 316660484Sobrien 316760484SobrienTue Jun 22 16:36:51 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 316860484Sobrien 316960484Sobrien * hosts/std-host.h: Return value of puts and fputs is int not void. 317060484Sobrien 317160484SobrienTue Jun 22 14:25:58 1993 David J. Mackenzie (djm@thepub.cygnus.com) 317260484Sobrien 317360484Sobrien * aoutx.h (howto_table_ext): Comment the field names. 317460484Sobrien * reloc.c (bfd_perform_relocation): Fix max and min values. 317560484Sobrien 317660484SobrienMon Jun 21 18:19:14 1993 Ken Raeburn (raeburn@poseidon.cygnus.com) 317760484Sobrien 317860484Sobrien * elf32-target.h, elf32-hppa.c, elfcode.h: Use new 317960484Sobrien size-independent elf internal data structures. 318060484Sobrien * elfcode.h (put_word, get_word): Define as appropriate for 318160484Sobrien architecture word size. Structure swapping functions changed to 318260484Sobrien use them as appropriate. 318360484Sobrien 318460484Sobrien * configure.in: If compiling 64-bit back ends, do them before 318560484Sobrien 32-bit ones. 318660484Sobrien 318760484Sobrien * libelf.h: Use new size-independent versions of elf internal data 318860484Sobrien structures. 318960484Sobrien (symbol_type): Reordered to put any fields dependent on target 319060484Sobrien size at the end. 319160484Sobrien (elf_backend_data): Renamed from elf##_backend_data and made 319260484Sobrien size-independent. 319360484Sobrien (elf_sect_thunk): Now size-independent. 319460484Sobrien 319560484Sobrien * libbfd.c (bfd_log2): Now returns unsigned int. 319660484Sobrien 319760484SobrienMon Jun 21 12:30:47 1993 Jim Kingdon (kingdon@cygnus.com) 319860484Sobrien 319960484Sobrien * Rename config/m88k-aout.mt to config/noop.mt. 320060484Sobrien configure.in: Use it for mips-*-bsd*. 320160484Sobrien 320260484SobrienSun Jun 20 20:32:19 1993 Ken Raeburn (raeburn@poseidon.cygnus.com) 320360484Sobrien 320460484Sobrien * cpu-m68k.c (arch_info_struct): Eliminate "partially bracketed 320560484Sobrien initializer" warning from gcc. 320660484Sobrien * cpu-h8500.c (arch_info_struct): Likewise. 320760484Sobrien * cpu-sh.c (arch_info_struct): Likewise. 320860484Sobrien 320960484Sobrien * cpu-h8300.c (local_bfd_reloc_type_lookup, howto*_callback, 321060484Sobrien howto_*): Unused functions and variables commented out. 321160484Sobrien * cpu-z8k.c (local_bfd_reloc_type_lookup, howto*_callback, 321260484Sobrien howto_*): Likewise. 321360484Sobrien * cpu-h8500.c (compatible): Likewise. 321460484Sobrien * cpu-sh.c (compatible): Likewise. 321560484Sobrien 321660484Sobrien * hp300hpux.c (swap_std_reloc_in): Delete unused variables. 321760484Sobrien Always set a valid length value, even for invalid input. 321860484Sobrien 321960484Sobrien * srec.c (srec_write_symbols): Use sprintf_vma. 322060484Sobrien 322160484Sobrien * bfd-in.h (uint64_typeLOW, uint64_typeHIGH, int64_type, 322260484Sobrien uint64_type): Provide default definitions. 322360484Sobrien * hosts/std-host.h (int64 stuff): Remove them from here. 322460484Sobrien 322560484Sobrien * bfd-in.h (sprintf_vma): Define parallel to fprintf_vma. 322660484Sobrien 322760484Sobrien * elf32-i386.c (elf_i386_reloc_type_lookup): Delete unused 322860484Sobrien variable. Added default case to switch. 322960484Sobrien 323060484Sobrien * aoutx.h (translate_from_native_sym_flags): Before casting 323160484Sobrien pointers to integers, make sure the integer type is wide enough. 323260484Sobrien * coff-mips.c (ecoff_set_symbol_info): Ditto. 323360484Sobrien 323460484Sobrien * section.c (bfd_get_section_contents): Since `count' is unsigned, 323560484Sobrien don't bother comparing for less-than-zero. 323660484Sobrien (bfd_set_section_contents): Ditto. 323760484Sobrien 323860484Sobrien * elfcode.h (bfd_add_to_strtab): Now static. 323960484Sobrien (sym_is_global): New function. 324060484Sobrien (elf_map_symbols): Call it. Now returns void. Removed unused 324160484Sobrien local variable. 324260484Sobrien (bfd_section_from_shdr): Mark string tables other than for section 324360484Sobrien and symbol names as normal sections having contents. 324460484Sobrien (fix_up_strtabs): New function; fixes up ELF header fields for 324560484Sobrien stab sections with string tables associated. 324660484Sobrien (elf_write_object_contents): Map fix_up_strtabs over all BFD 324760484Sobrien sections. Reordered condition tests for symbol flags; default to 324860484Sobrien local-object value instead of global-object. 324960484Sobrien (elf_symbol_from_bfd_symbol): Hid conditionally-used variable 325060484Sobrien inside condition test. 325160484Sobrien (elf_print_symbol): Use fprintf_vma. 325260484Sobrien (elf_idx_of_sym, bfd_shdr_from_section): Unused functions 325360484Sobrien commented out. 325460484Sobrien 325560484Sobrien * bfd-in.h (int64_type, uint64_type): Define these if we fall 325660484Sobrien back to "long long" for HOST_64_BIT. 325760484Sobrien 325860484Sobrien * libelf.h (elfNAME, ElfNAME): New versions to get desired results 325960484Sobrien without using invalid ANSI C preprocessing tokens. 326060484Sobrien 326160484Sobrien * elf32-target.h (bfd_elf32_new_section_hook): Delete macro. 326260484Sobrien * libelf.h (bfd_elf32_new_section_hook): Declare. 326360484Sobrien * elfcode.h (new_section_hook): Define here. 326460484Sobrien 326560484Sobrien * hosts/sparc.h, hosts/std-host.h, hosts/i386bsd.h: Protect 326660484Sobrien against multiple inclusions. 326760484Sobrien 326860484Sobrien * hosts/news.h: Include hosts/std-host.h, not plain std-host.h. 326960484Sobrien 327060484Sobrien * Makefile.in (bfd.h): Generate into current directory by grabbing 327160484Sobrien 64-bit definition (if any) from sysdep.h. 327260484Sobrien * bfd-in.h: Put in marker for sysdep.h inclusion. 327360484Sobrien 327460484SobrienFri Jun 18 19:57:23 1993 David J. Mackenzie (djm@thepub.cygnus.com) 327560484Sobrien 327660484Sobrien * reloc.c (bfd_perform_relocation): Check for overflow on 327760484Sobrien pc-relative relocations if the howto asked for it. 327860484Sobrien 327960484SobrienFri Jun 18 16:00:20 1993 Jim Kingdon (kingdon@cygnus.com) 328060484Sobrien 328160484Sobrien * Makefile.in (stmp-bfd.h): Ignore nonzero exit status from grep. 328260484Sobrien 328360484SobrienFri Jun 18 16:54:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 328460484Sobrien 328560484Sobrien * config/riscos.m{h,t}: New files. 328660484Sobrien * configure.{host,in}: Use them. 328760484Sobrien 328860484SobrienFri Jun 18 12:55:10 1993 K. Richard Pixley (rich@cygnus.com) 328960484Sobrien 329060484Sobrien * elf32-mips.c: comment change. This is a mips file, not 88k. 329160484Sobrien 329260484SobrienMon Jun 14 14:02:41 1993 Jim Kingdon (kingdon@cygnus.com) 329360484Sobrien 329460484Sobrien * cache.c (bfd_cache_init): Increment open_files and call close_one 329560484Sobrien if necessary. 329660484Sobrien (bfd_open_file): Don't increment open_files here. 329760484Sobrien 329860484SobrienFri Jun 18 10:00:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 329960484Sobrien 330060484Sobrien * config/delta88.mh: Don't set CC. 330160484Sobrien 330260484Sobrien * Makefile.in: Add elf32-{mips,m88k,generic}. 330360484Sobrien elf32-{mips,m88k,generic}.c: New files. 330460484Sobrien targets.c (target_vector): Include bfd_elf32_{mips,m88k,generic}_vec. 330560484Sobrien elfcode.h (elf_object_p): Match elf32-generic for all machines which 330660484Sobrien don't match a different target. 330760484Sobrien 330860484SobrienFri Jun 18 03:12:12 1993 John Gilmore (gnu@cygnus.com) 330960484Sobrien 331060484Sobrien Eliminate "int8_type", "int16_type", "int32_type", and their 331160484Sobrien variants from the BFD universe. Leave the 64-bit types for now, 331260484Sobrien since they are in flux. 331360484Sobrien 331460484Sobrien * aoutx.h, hp300hpux.c: Eliminate needless (int32_type) casts. 331560484Sobrien * libaout.h (GET_SWORD): Convert (int32_type) to (int). 331660484Sobrien * ieee.c: Convert uint8e_type => unsigned char. 331760484Sobrien * oasys.c: Extensive changes to eliminate obsolete types. 331860484Sobrien These depend on changes in ../include/oasys.h as well. 331960484Sobrien * hosts/*.h: Remove declarations of all these types. 332060484Sobrien 332160484SobrienMon Jun 14 14:02:41 1993 Jim Kingdon (kingdon@cygnus.com) 332260484Sobrien 332360484Sobrien * hosts/delta88.h: #if 0 out some declarations which conflict with 332460484Sobrien system headers. 332560484Sobrien 332660484SobrienMon Jun 14 17:08:18 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com) 332760484Sobrien 332860484Sobrien * Makefile.in (install): remove parentdir cruft 332960484Sobrien 333060484SobrienMon Jun 14 19:04:09 1993 Stu Grossman (grossman@cygnus.com) 333160484Sobrien 333260484Sobrien * hppa.c (hppa_get_symbol_info): Remove redundant copy. 333360484Sobrien * Expurgate random DEFUNs that have crept in. 333460484Sobrien 333560484SobrienMon Jun 14 10:23:53 1993 Ian Lance Taylor (ian@cygnus.com) 333660484Sobrien 333760484Sobrien * coff-mips.c (ecoff_set_symbol_info): Constructor sections should 333860484Sobrien only be aligned to a 4 byte boundary. 333960484Sobrien 334060484SobrienSat Jun 12 16:13:17 1993 Jim Kingdon (kingdon@cygnus.com) 334160484Sobrien 334260484Sobrien * hosts/std-host.h (struct int64e_struct): Remove needless typedef 334360484Sobrien keyword. 334460484Sobrien 334560484SobrienFri Jun 11 14:25:34 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 334660484Sobrien 334760484Sobrien * aoutf1.h (sunos4_write_object_contents): set flags to 1, breaking 334860484Sobrien 1927 but fixing some other important things. 334960484Sobrien 335060484SobrienThu Jun 10 20:36:22 1993 Doug Evans (dje@canuck.cygnus.com) 335160484Sobrien 335260484Sobrien * hosts/std-host.h (int64e_type): Fix definition. 335360484Sobrien 335460484SobrienThu Jun 10 11:48:28 1993 Ian Lance Taylor (ian@cygnus.com) 335560484Sobrien 335660484Sobrien * coff-mips.c (ecoff_sec_to_styp_flags): Use STYP_MIPS_INIT for 335760484Sobrien section named _INIT. Don't set STYP_TEXT unless SEC_CODE is set. 335860484Sobrien (ecoff_styp_to_sec_flags): Treat a STYP_MIPS_INIT section like 335960484Sobrien a STYP_TEXT section. 336060484Sobrien 336160484SobrienWed Jun 9 16:48:13 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 336260484Sobrien 336360484Sobrien * Makefile.in (install, headers): don't put comments after a tab 336460484Sobrien in the actions section of a rule 336560484Sobrien 336660484SobrienWed Jun 9 15:00:01 1993 Ian Lance Taylor (ian@cygnus.com) 336760484Sobrien 336860484Sobrien * coff-mips.c (ecoff_mkobject_hook): Mark ZMAGIC files as D_PAGED. 336960484Sobrien (ecoff_write_object_contents): If not D_PAGED, don't add the 337060484Sobrien section headers to text_size. If not D_PAGED, set the magic 337160484Sobrien number to OMAGIC rather than ZMAGIC. If creating a D_PAGED 337260484Sobrien executable, the executable must fully occupy an even number of 337360484Sobrien pages. 337460484Sobrien (ecoff_set_symbol_info, make_bfd_asection, ecoff_little_vec, 337560484Sobrien ecoff_big_vec): Consistently set section alignment power to 4, 337660484Sobrien since ECOFF sections should be multiples of 16 bytes. 337760484Sobrien (ecoff_little_vec, ecoff_big_vec): Added D_PAGED to object_flags. 337860484Sobrien Made ar_pad_char and ar_max_namelen agree for both. 337960484Sobrien 338060484SobrienTue Jun 8 20:28:02 1993 Mark Eichin (eichin at tweedledumber) 338160484Sobrien 338260484Sobrien * elfcode.h (elf_slurp_symbol_table): subtract section vma from 338360484Sobrien symbol value, since bfd symbols are section relative, but ELF 338460484Sobrien symbols aren't. 338560484Sobrien 338660484SobrienTue Jun 8 12:08:27 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 338760484Sobrien 338860484Sobrien * cpu-i960.c, cpu-h8300.c (compatible): Make static. 338960484Sobrien 339060484SobrienTue Jun 8 14:27:56 1993 Jim Kingdon (kingdon@rtl.cygnus.com) 339160484Sobrien 339260484Sobrien * hosts/news.h, config/news.mh: New files. 339360484Sobrien 339460484SobrienTue Jun 8 12:08:27 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 339560484Sobrien 339660484Sobrien * bfd-in2.h, archures.c (bfd_mach_h8300[h]): new defines. 339760484Sobrien * coff-h8300.c: More addressing modes. 339860484Sobrien * coffcode.h (coff_set_arch_mach_hook): Cope with H8300 magic 339960484Sobrien number. 340060484Sobrien * cpu-h8300.c: Removed disassemble stuff. (h8300_scan): Recognise 340160484Sobrien H8/300H name. (compatible): New function. 340260484Sobrien * reloc16.c (bfd_coff_reloc16_get_relocated_sec): Cope with more 340360484Sobrien addressing modes. 340460484Sobrien 340560484SobrienTue Jun 8 10:30:13 1993 Ian Lance Taylor (ian@cygnus.com) 340660484Sobrien 340760484Sobrien * coff-mips.c (ecoff_compute_section_file_positions, 340860484Sobrien ecoff_write_object_contents): Only round to page boundaries if 340960484Sobrien D_PAGED flag is set for the output BFD. 341060484Sobrien 341160484SobrienFri Jun 4 15:47:52 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 341260484Sobrien 341360484Sobrien * coffcode.h (get_index, coff_slurp_symbol_table): Fix pointer 341460484Sobrien casts to work on machine where sizeof(long) != sizeof(int) != 341560484Sobrien sizeof(char *). 341660484Sobrien * coffgen.c (coff_get_normalized_symtab): Ditto. 341760484Sobrien * cpu-h8300.c coff-h8300.c: Support for H8/300-H. 341860484Sobrien 341960484SobrienFri Jun 4 15:24:27 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 342060484Sobrien 342160484Sobrien * coffgen.c (coff_write_symbols): For empty string table, write 342260484Sobrien out 4 in correct byte order. (from minyard@bnr.ca) 342360484Sobrien 342460484Sobrien * elf32-hppa.c: Don't include libhppa.h for now; define 342560484Sobrien BYTES_IN_WORD instead, until Utah sends a better fix. 342660484Sobrien (hppa_elf_build_arg_reloc_stub): Use xmalloc and xrealloc instead 342760484Sobrien of malloc and realloc. 342860484Sobrien 342960484SobrienFri Jun 4 07:49:01 1993 Ian Lance Taylor (ian@cygnus.com) 343060484Sobrien 343160484Sobrien * configure.in (mips-*-ecoffl*): New target; use decstation. 343260484Sobrien (mips-*-ecoff*): Added trailing '*'. 343360484Sobrien 343460484Sobrien * coff-mips.c (ecoff_get_debug): Get the offset from the first PDR 343560484Sobrien for the FDR, not from the first PDR in the file. 343660484Sobrien 343760484SobrienThu Jun 3 16:41:10 1993 Stu Grossman (grossman@cygnus.com) 343860484Sobrien 343960484Sobrien * hppa.c (hppa_get_symbol_info): New func needed for JUMP_TABLE. 344060484Sobrien 344160484SobrienThu Jun 3 15:33:57 1993 David J. Mackenzie (djm@rtl.cygnus.com) 344260484Sobrien 344360484Sobrien * hppa.c (hppa_get_symbol_info): New function. 344460484Sobrien 344560484SobrienThu Jun 3 13:07:42 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 344660484Sobrien 344760484Sobrien * elfcode.h (elf_map_symbols): Don't crash if no symbols have been 344860484Sobrien allocated yet. 344960484Sobrien 345060484Sobrien From Peter Hoogenboom (hoogen@schafer.cs.utah.edu): 345160484Sobrien * libhppa.h (MAXCOMLEN): Define unconditionally. 345260484Sobrien (_PA_RISC_ID): Only define if not already defined. 345360484Sobrien * elf32-hppa.c: Include libhppa.h. 345460484Sobrien 345560484Sobrien From Ralph Campbell: 345660484Sobrien * hosts/mipsbsd.h (HOST_DATA_START_ADDR): Delete definition. 345760484Sobrien 345860484Sobrien * elf32-hppa.h (symext_rootP, symext_lastP): Delete decls. 345960484Sobrien 346060484SobrienThu Jun 3 00:23:53 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 346160484Sobrien 346260484Sobrien * config/go32.mh: define EXTRALIBES to -lm (for binutils), also 346360484Sobrien remove defines of __MSDOS__ and __GO32__ (these are in the 346460484Sobrien compiler now). 346560484Sobrien 346660484SobrienWed Jun 2 17:57:13 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 346760484Sobrien 346860484Sobrien From Utah: 346960484Sobrien * hosts/hppabsd.h: Eliminate use of obsolete EXFUN. 347060484Sobrien * config/hppabsd.mh: Don't use ranlib. 347160484Sobrien 347260484SobrienTue Jun 1 04:15:57 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com) 347360484Sobrien 347460484Sobrien * elf.c: New file, for word-size independent code. 347560484Sobrien * elfcode.h (elf_hash): Moved to there, renamed bfd_elf_hash. 347660484Sobrien * Makefile.in: Include elf.o in standard objects. 347760484Sobrien 347860484Sobrien * bfd-in.h (CAT3): Define here. 347960484Sobrien * libaout.h, libelf.h: Not here. 348060484Sobrien 348160484Sobrien * libelf.h (struct strtab): Define here. 348260484Sobrien (bfd_elf_locate_sh): Declare here. 348360484Sobrien * elfcode.h (struct strtab): Definition deleted. 348460484Sobrien 348560484Sobrien * reloc.c (enum bfd_reloc_code_real): Added HPPA_PCREL_CALL_12. 348660484Sobrien 348760484Sobrien * Makefile.in: Make "all", not "bfd.h", be the default target. 348860484Sobrien (stmp-bfd.h): New target; prevents rebuilding world if bfd.h 348960484Sobrien hasn't really changed. 349060484Sobrien 349160484Sobrien Tue May 25 12:15:15 1993 Michael Meissner (meissner@osf.org) 349260484Sobrien 349360484Sobrien * elfcode.h (elf_hash): Provide elf standard hash function. 349460484Sobrien (various): Key off of the machines use_rela_p field to determine 349560484Sobrien whether to use REL or RELA relocations. 349660484Sobrien (elf_swap_reloc_out, elf_swap_reloc_in): New functions. 349760484Sobrien (elf_make_sections): Allocate a pointer to hold all data for a 349860484Sobrien given section, and copy each fragment into the data region. 349960484Sobrien Update the section's pointer with the REL implicit addends if the 350060484Sobrien machine uses REL relocation. 350160484Sobrien 350260484Sobrien * elf32-i386.c (elf_bfd_reloc_type_lookup): Rename to 350360484Sobrien elf_i386_bfd_reloc_type_lookup, and use cpp to map the name back 350460484Sobrien into was elf32-target.h expects. 350560484Sobrien (elf_info_to_howto): Rename to elf_i386_info_to_howto. 350660484Sobrien (elf_i386_bfd_reloc_type_lookup): Add relocation support. 350760484Sobrien (elf_i386_info_to_howto): Add minimal relocation support. 350860484Sobrien 350960484Sobrien * libelf.h (elf_backend_data): Add use_rela_p, elf_64_p, 351060484Sobrien elf_info_to_howto_rel fields. 351160484Sobrien 351260484Sobrien * elf32-target.h (elf_bed): Add support for new fields in 351360484Sobrien elf_backend_data. 351460484Sobrien 351560484Sobrien Sun May 30 16:38:24 1993 Peter Hoogenboom (hoogen@fast.cs.utah.edu) 351660484Sobrien 351760484Sobrien * elf32-hppa.c: Add symbol extension section support, fix 351860484Sobrien relocation howto table, add stub generation support. 351960484Sobrien 352060484Sobrien * elf32-hppa.h: Add symbol extension section support, fix 352160484Sobrien relocation howto table, add stub generation support. 352260484Sobrien 352360484Sobrien * elfcode.h (bfd_elf_locate_sh): New function to locate ELF 352460484Sobrien section header. 352560484Sobrien 352660484Sobrien * elfcode.h (bfd_add_to_strtab): Made non-static due to a call 352760484Sobrien from elf32-hppa.c. 352860484Sobrien 352960484Sobrien * elfcode.h (elf_idx_of_sym): Return STN_UNDEF instead of 0 when 353060484Sobrien the symbol is not found. 353160484Sobrien 353260484Sobrien * elfcode.h (elf_compute_section_file_positions): Not all section 353360484Sobrien file positions were computed. 353460484Sobrien 353560484Sobrien * elfcode.h (elf_get_sect_thunk): New function. 353660484Sobrien 353760484Sobrien * hppa.c (sign_ext): Reimplement. 353860484Sobrien 353960484Sobrien * hppa.c (round_down,round,round_up,L,R,LS,RS,LD,RD,LR,RR): Make 354060484Sobrien these functions static. 354160484Sobrien 354260484SobrienTue Jun 1 14:40:41 1993 Per Bothner (bothner@rtl.cygnus.com) 354360484Sobrien 354460484Sobrien * Makefile.in (bfd.h): Move closer to headers - and after 'all'! 354560484Sobrien 354660484Sobrien * aoutx.h (translate_from_native_sym_flags): Don't set 354760484Sobrien BSF_DEBUGGING for constructor symbols, only BSF_CONSTRUCTOR. 354860484Sobrien * aoutx.h (translate_to_native_sym_flags): Translate 354960484Sobrien constructor symbols properly. 355060484Sobrien 355160484SobrienThu May 27 16:09:04 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) 355260484Sobrien 355360484Sobrien * archures.c (bfd_default_arch_struct): use 4 byte alignment as a 355460484Sobrien minimum. 355560484Sobrien * aout-target.h (minimum_alignment): 8 byte alignment is right. 355660484Sobrien (fix ld/2680) 355760484Sobrien 355860484SobrienThu May 27 13:38:47 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 355960484Sobrien 356060484Sobrien * configure.in, Makefile.in: Build bfd-in2.h in source directory, 356160484Sobrien from bfd-in.h and .c files. Build bfd.h in build directory, 356260484Sobrien substituting in requested target word size. Insert word size into 356360484Sobrien makefile, and maybe enable 64-bit targets. 356460484Sobrien 356560484Sobrien * bfd-in.h, libbfd.c, demo64.c, targets.c: Define BFD64 if 64 bits 356660484Sobrien are available. Conditionalize on this. Assume HOST_64_BIT 356760484Sobrien will be defined if needed, so 64-bit targets are conditionalized 356860484Sobrien only in the Makefile. 356960484Sobrien 357060484SobrienTue May 25 14:03:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 357160484Sobrien 357260484Sobrien * libbfd.c (COERCE64): Rewrite to avoid out-of-range values. 357360484Sobrien 357460484Sobrien * coff-sh.c (rtype2howto): Put error message on stderr. 357560484Sobrien (extra_case): Delete unused variable. 357660484Sobrien 357760484Sobrien * coff-mips.c (ecoff_print_symbol): Cast bfd_vma values to long 357860484Sobrien before calling printf. 357960484Sobrien 358060484Sobrien * elfcode.h: New file, almost completely derived from old elf32.c. 358160484Sobrien * elf32.c: Now just define ARCH_SIZE and include elfcode.h. 358260484Sobrien * Makefile.in (elf64.o): List dependencies, don't build by 358360484Sobrien default. 358460484Sobrien (elf64.c): Add to list of sources. 358560484Sobrien (elf32.o): Update dependencies. 358660484Sobrien * elf32-*.c: Updated type/macro/structure names. Cleaned up 358760484Sobrien namespace pollution; rename vectors. 358860484Sobrien * targets.c, config/*-elf.mt: Updated. 358960484Sobrien * All uses of 32-bit versions of structures, routines, and macros 359060484Sobrien renamed. 359160484Sobrien 359260484Sobrien * Makefile.in (archures.o, targets.o): Depend on Makefile. 359360484Sobrien 359460484SobrienMon May 24 15:53:13 1993 Ken Raeburn (raeburn@cygnus.com) 359560484Sobrien 359660484Sobrien * elf32-i386.c (enum reloc_type): No comma after last enumerator. 359760484Sobrien 359860484Sobrien * elf32.c (elf_string_from_elf_section): Handle index of zero 359960484Sobrien specially. 360060484Sobrien (bfd_section_from_shdr, elf_slurp_symbol_table): Don't need to do 360160484Sobrien so here. 360260484Sobrien (elf_write_object_contents): Deleted one unused variable and 360360484Sobrien initialized another to avoid gcc warnings. 360460484Sobrien (elf_set_section_contents): Delete unused variable. 360560484Sobrien 360660484SobrienFri May 21 19:04:21 1993 Stu Grossman (grossman@cygnus.com) 360760484Sobrien 360860484Sobrien * i386lynx.c: New module for Lynx variant of a.out. 360960484Sobrien * Makefile.in (BFD_BACKENDS CFILES depends): Add i386lynx.c. 361060484Sobrien * gen-aout.c: Get rid of defunct endian stuff, print out true 361160484Sobrien pagesize. 361260484Sobrien * targets.c (target_vector): Add i386lynx_vec. 361360484Sobrien 361460484SobrienFri May 21 17:02:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 361560484Sobrien 361660484Sobrien * configure.in: Use i386-sco.mt for i[36]86-*-isc*. 361760484Sobrien 361860484SobrienFri May 21 13:44:18 1993 David J. Mackenzie (djm@rtl.cygnus.com) 361960484Sobrien 362060484Sobrien * aix386-core.c, aout-target.h, aoutx.h, coff-alpha.c, 362160484Sobrien coff-mips.c, coffgen.c, elf32.c, ieee.c, libaout.h, libcoff-in.h, 362260484Sobrien libelf.h, mipsbsd.c, oasys.c, sco-core.c, srec.c, tekhex.c, 362360484Sobrien trad-core.c: Define a TARGET_get_symbol_info function or macro. 362460484Sobrien Remove the bfd_print_symbol_nm case from TARGET_print_symbol. 362560484Sobrien 362660484Sobrien * bfd-in.h: Don't define bfd_print_symbol_nm. 362760484Sobrien Define symbol_info type. 362860484Sobrien (JUMP_TABLE): Set _get_symbol_info element. 362960484Sobrien 363060484Sobrien * syms.c (coff_section_type, bfd_symbol_info): New functions. 363160484Sobrien (bfd_decode_symclass): Use coff_section_type. 363260484Sobrien 363360484Sobrien * targets.c: Add bfd_get_symbol_info call. 363460484Sobrien 363560484SobrienWed May 19 15:30:52 1993 Stu Grossman (grossman@cygnus.com) 363660484Sobrien 363760484Sobrien * coff-i386.c (coff_i386_reloc): Use unsigned char to avoid 363860484Sobrien complaints from ancient gcc's. 363960484Sobrien 364060484SobrienWed May 19 15:51:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 364160484Sobrien 364260484Sobrien * trad-core.c: Check macro TRAD_CORE_EXTRA_SIZE_ALLOWED. 364360484Sobrien hosts/i386linux.h: Define it. 364460484Sobrien 364560484SobrienMon May 17 15:00:33 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 364660484Sobrien 364760484Sobrien * VERSION, bfd-in.h: Bump version number to 2.2. 364860484Sobrien 364960484Sobrien * hppa.c (assemble_3, dis_assemble_3, assemble_12, 365060484Sobrien dis_assemble_12, assemble_17, dis_assemble_17, assemble_21, 365160484Sobrien dis_assemble_21, sign_ext, ones, sign_unext, low_sign_ext, 365260484Sobrien low_sign_unext, round_down, round, round_up, L, R, LS, RS, LD, RD, 365360484Sobrien LR, RR, hppa_field_adjust): New functions. 365460484Sobrien 365560484SobrienMon May 17 10:04:16 1993 Ian Lance Taylor (ian@cygnus.com) 365660484Sobrien 365760484Sobrien * coff-mips.c (ecoff_set_symbol_info): Added support for indirect 365860484Sobrien stabs symbols, including new indirect_ptr_ptr argument. 365960484Sobrien (ecoff_slurp_symbol_table): Pass new argument in calls to 366060484Sobrien ecoff_set_symbol_info. 366160484Sobrien 366260484SobrienFri May 14 00:05:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 366360484Sobrien 366460484Sobrien * configure.in: For m68k sysv systems, use m68k-coff. 366560484Sobrien 366660484Sobrien * config/hppa-elf.mt (TDEFINES): Don't define DEFAULT_VECTOR here. 366760484Sobrien (TDEFAULTS): Define it here. Use the new name. 366860484Sobrien 366960484Sobrien * elf32-hppa.c (elf_hppa_backend_data): Delete; rely on default 367060484Sobrien values instead. 367160484Sobrien 367260484Sobrien * reloc.c (bfd_reloc_code_real_type): Add some HPPA reloc types. 367360484Sobrien 367460484Sobrien * aix386-core.c (NO_GETS): Fix PROTO invocation to have correct 367560484Sobrien number of arguments. 367660484Sobrien (aix386_core_file_p): Initialize core_size to correct value. 367760484Sobrien 367860484SobrienWed May 12 14:39:59 1993 Ian Lance Taylor (ian@cygnus.com) 367960484Sobrien 368060484Sobrien * Makefile.in (CC_FOR_BUILD): New variable, set to $(CC). 368160484Sobrien (FLAGS_TO_PASS): Pass down CC_FOR_BUILD. 368260484Sobrien 368360484Sobrien * bout.c (aout32_slurp_extended_name_table): Define to be 368460484Sobrien _bfd_slurp_extended_name_table rather than bfd_true. 368560484Sobrien 368660484Sobrien * coff-mips.c: Include libaout.h and aout/aout64.h to get 368760484Sobrien definitions for N_SET[ATDB]. 368860484Sobrien (ecoff_howto_table): Moved near top of file. 368960484Sobrien (ecoff_set_symbol_info): If a STABS symbol of type N_SET[ATDB] is 369060484Sobrien seen, cook up a constructor section of the same name and put in a 369160484Sobrien reloc pointing to the symbol. This lets the GNU linker build 369260484Sobrien global constructors and destructors without using collect. 369360484Sobrien 369460484SobrienTue May 11 00:33:31 1993 John Gilmore (gnu@cygnus.com) 369560484Sobrien 369660484Sobrien * coff-m88k.c (m88kbcs_vec): Symbols have underbars. 369760484Sobrien 369860484SobrienMon May 10 05:55:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com) 369960484Sobrien 370060484Sobrien * hosts/miniframe.h: New file. 370160484Sobrien * configure.host: Use it. 370260484Sobrien 370360484SobrienSun May 9 16:36:59 1993 Fred Fish (fnf@cygnus.com) 370460484Sobrien 370560484Sobrien * configure.in (hppa*-*-bsd): Change to hppa*-*-bsd* 370660484Sobrien * configure.in (hppa*-*-hpux): Change to hppa*-*-hpux* 370760484Sobrien * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd* 370860484Sobrien * configure.in (m68*-*-hpux): Change to m68*-*-hpux* 370960484Sobrien * configure.in (*-*-bsd): Change to *-*-bsd* 371060484Sobrien 371160484SobrienWed May 5 16:08:32 1993 Per Bothner (bothner@cygnus.com) 371260484Sobrien 371360484Sobrien * elf32-hppa.c (elf_hppa_reloc_type_lookup): Cast enums to 371460484Sobrien int, for the sake of the old Portable C Compiler. 371560484Sobrien 371660484SobrienMon May 3 14:37:01 1993 Stu Grossman (grossman@cygnus.com) 371760484Sobrien 371860484Sobrien * Makefile.in (CFILES): Add cpu-sh.c and coff-sh.c. 371960484Sobrien 372060484SobrienMon May 3 14:03:21 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 372160484Sobrien 372260484Sobrien * configure.in: Get target name right for m68*-*-hpux. 372360484Sobrien 372460484SobrienSun May 2 11:39:44 1993 Fred Fish (fnf@cygnus.com) 372560484Sobrien 372660484Sobrien * trad-core.c (NO_SIGNED_GET): New macro. 372760484Sobrien * trad-core.c (trad_core_vec): Use new NO_SIGNED_GET instead of 372860484Sobrien signed NO_GET, where appropriate. 372960484Sobrien 373060484Sobrien * configure.in (i[34]86-*-linux*): Add; bfd_target = i386-linux. 373160484Sobrien * configure.in (*-*-linux*): Remove until linux port for a 373260484Sobrien non-i386/i486 system is actually available. 373360484Sobrien 373460484SobrienFri Apr 30 20:04:10 1993 Stu Grossman (grossman@cygnus.com) 373560484Sobrien 373660484Sobrien * libhppa.h: #undef e_* symbols which come from <machine/som.h> 373760484Sobrien when compiling under HPUX. 373860484Sobrien 373960484SobrienFri Apr 30 17:25:23 1993 Stu Grossman (grossman@cygnus.com) 374060484Sobrien 374160484Sobrien * The following patches are from Jeffrey Law <law@cs.utah.edu>. 374260484Sobrien * hppa.c (hppa_core_file_p): Provide a temporary dummy routine 374360484Sobrien for HOST_HPPABSD. 374489857Sobrien * hosts/hppabsd.h: Fix declarations of malloc and free. 374589857Sobrien * libhppa.h: Include sysdep here. Conditionalize 374660484Sobrien includes based on HOST_HPPAHPUX or HOST_HPPABSD. 374760484Sobrien Provide definitions for MAXCOMLEN and _PA_RISC_ID suitable 374860484Sobrien for BSD. 374960484Sobrien 375060484SobrienFri Apr 30 17:34:11 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 375160484Sobrien 375260484Sobrien * elf32-hppa.c: Don't include a.out.h. Apparently not even the 375360484Sobrien GNU version is needed. 375460484Sobrien 375560484SobrienFri Apr 30 09:38:59 1993 Jim Kingdon (kingdon@cygnus.com) 375660484Sobrien 375760484Sobrien * coffcode.h: use dummy_reloc16_extra_cases rather than casting abort. 375860484Sobrien 375960484SobrienThu Apr 29 11:30:32 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 376060484Sobrien 376160484Sobrien * Makefile.in: Build elf32-hppa.o. 376260484Sobrien 376360484Sobrien * syms.c (BSF_FUNCTION): New symbol flag. 376460484Sobrien 376560484Sobrien * elf32-hppa.c: Fixed to work with elf32-target.h. 376660484Sobrien 376760484Sobrien * hp300hpux.c (NAME, NAME_swap_exec_header_in): Fix for 376860484Sobrien traditional C. 376960484Sobrien * libaout.h (NAME): Don't define if already defined. 377060484Sobrien 377160484Sobrien * libelf.h: Protect against multiple inclusions. 377260484Sobrien (elf_symbol_type): Moved here, added new fields. 377360484Sobrien (struct elf_backend_data): New field `global_sym'; I suspect this 377460484Sobrien may be misplaced. 377560484Sobrien * elf32.c (elf_symbol_type): Deleted from here. 377660484Sobrien (struct elf_obj_tdata): New fields raw_syms and internal_syms, to 377760484Sobrien point to backend versions of symbols. 377860484Sobrien (obj_symbols, obj_raw_syms, obj_internal_syms): New macros. 377960484Sobrien (elf_swap_phdr_out, elf_build_phdrs, elf_write_phdrs): New 378060484Sobrien functions. 378160484Sobrien (elf_write_object_contents): Write program headers if appropriate. 378260484Sobrien (bfd_section_from_shdr): Unnamed sections get empty string for 378360484Sobrien name, not "unnamed". Handle SHT_NOBITS separately from 378460484Sobrien SHT_PROGBITS, and set some different flags. 378560484Sobrien (elf_file_p): New routine. 378660484Sobrien (elf_object_p, elf_core_file_p): Call it. 378760484Sobrien (elf_object_p): Handle EM_HPPA. 378860484Sobrien (elf_symbol_from, elf_idx_of_sym): New functions. 378960484Sobrien (elf_make_sections): Get symbol number right for relocations. Set 379060484Sobrien SHF_ALLOC, SHF_WRITE, SHF_EXECINSTR when appropriate. 379160484Sobrien (elf_fake_sections): BSS section should be SHT_NOBITS, not 379260484Sobrien SHT_PROGBITS. Always generate symtab and strtab, not only if 379360484Sobrien relocations are needed. Set SHF_* flags as appropriate. 379460484Sobrien (elf_compute_section_file_positions): Handle bfd_arch_hppa. 379560484Sobrien (elf_write_object_contents): Fix off-by-one error in symbol count. 379660484Sobrien Store a correct value for the symbol; write the size field 379760484Sobrien properly; make some guesses about the type field. Set section 379860484Sobrien type correctly for string tables. 379960484Sobrien (section_from_elf_index): Check for absolute and common sections 380060484Sobrien first. 380160484Sobrien (elf_section_from_bfd_section): Ditto. 380260484Sobrien (elf_slurp_symbol_table): Use elf_symbol_type instead of asymbol. 380360484Sobrien Use empty string instead of "unnamed" for nameless symbols. 380460484Sobrien Handle STTY_FUNC type, and weirdness with "$global$" symbol for 380560484Sobrien HPPA (only?). Don't free raw symbols; keep the pointer around for 380660484Sobrien later. 380760484Sobrien (elf_set_arch_mach): Handle bfd_arch_hppa. 380860484Sobrien (elf_find_nearest_line): Just return false. 380960484Sobrien (elf_write_object_contents, elf_set_section_contents): Set 381060484Sobrien output_has_begun field after computing file positions. 381160484Sobrien (elf_set_section_contents): Write section contents immediately, 381260484Sobrien rather than caching the whole file and writing it at close time. 381360484Sobrien 381460484Sobrien * libhppa.h (enum hppa_reloc_field_selector_type, enum 381560484Sobrien hppa_reloc_field_selector_typ_alt, enum hppa_reloc_expr_type, enum 381660484Sobrien hppa_reloc_expr_type_alt): New enumerator types. 381760484Sobrien 381860484Sobrien * config/hppa-elf.mt,. config/hppaosf.mh: HP PA/OSF support. 381960484Sobrien * configure.in, configure.host: Use them. 382060484Sobrien 382160484SobrienWed Apr 28 23:21:01 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 382260484Sobrien 382360484Sobrien * elf32-target.h: Allow overrides of armap defaults. 382460484Sobrien 382560484Sobrien * elf32-hppa.c, elf32-hppa.h: New files. 382660484Sobrien 382760484Sobrien * config/hp300hpux.mt: New file. 382860484Sobrien 382960484SobrienTue Apr 27 05:39:40 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com) 383060484Sobrien 383160484Sobrien * aix386-core.c (NO_GETS): New macro; NO_GET for signed values. 383260484Sobrien (aix386_core_vec): Update for new fields. 383360484Sobrien 383460484Sobrien * archive.c (bfd_generic_archive_p): Call target-specific 383560484Sobrien slurp_armap code, instead of bfd_slurp_armap. 383660484Sobrien (bfd_slurp_bsd_armap_f2): New function. 383760484Sobrien * libbfd-in.h (bfd_slurp_bsd_armap_f2): Declare it. 383860484Sobrien * aout-target.h (AR_PAD_CHAR): Define it if not already defined. 383960484Sobrien (vec): Use it. 384060484Sobrien * libaout.h (struct aoutdata): New field for subformat, for 384160484Sobrien differentiating between highly similar a.out formats. 384260484Sobrien * aoutx.h (NAME_swap_exec_header_in): New macro, defaults to local 384360484Sobrien version of function. 384460484Sobrien (swap_exec_header_in): Don't define if NAME_swap_exec_header_in is 384560484Sobrien already defined. 384660484Sobrien * hp300hpux.c: New file. 384760484Sobrien * Makefile.in: Include it. 384860484Sobrien 384960484SobrienMon Apr 26 13:24:43 1993 Steve Chamberlain (sac@thepub.cygnus.com) 385060484Sobrien 385160484Sobrien * Makefile.in, archures.c, coffcode.h, targets.c: Support for 385260484Sobrien Hitachi SH. 385360484Sobrien 385460484SobrienMon Apr 26 13:55:42 1993 Jim Kingdon (kingdon@cygnus.com) 385560484Sobrien 385660484Sobrien * trad-core.c (trad_unix_core_file_p): Check the file size. 385760484Sobrien 385860484SobrienMon Apr 26 13:24:43 1993 Steve Chamberlain (sac@thepub.cygnus.com) 385960484Sobrien 386060484Sobrien * coff-alpha.c: Remove duplicate function and add warnings. 386160484Sobrien 386260484SobrienMon Apr 26 11:25:58 1993 Ian Lance Taylor (ian@cygnus.com) 386360484Sobrien 386460484Sobrien * sco-core.c (sco_core_vec): Add initializers for new target 386560484Sobrien fields. 386660484Sobrien 386760484SobrienSat Apr 24 21:33:45 1993 Jim Kingdon (kingdon@cygnus.com) 386860484Sobrien 386960484Sobrien * coffcode.h [_LIT]: Recognize .lit section. 387060484Sobrien 387160484SobrienFri Apr 23 19:00:36 1993 Steve Chamberlain (sac@thepub.cygnus.com) 387260484Sobrien 387360484Sobrien * coff-alpha.c, cpu-alpha.c, config/alphaosf.mt, 387460484Sobrien config/alphaosf.mt, hosts/alphaosf.h: New files. 387560484Sobrien 387660484SobrienFri Apr 23 16:48:46 1993 Stu Grossman (grossman@cygnus.com) 387760484Sobrien 387860484Sobrien * Merge in HPPA/BSD changes from Utah. 387960484Sobrien * hppa.c: Use this for both HPUX & BSD. 388060484Sobrien * targets.c: Enable hppa_vec for both HPUX & BSD. 388160484Sobrien * config/hppabsd.mt: TDEFINES => TDEFAULTS. 388260484Sobrien * hosts/hppabsd.h: #define HOST_HPPABSD. 388360484Sobrien 388460484SobrienWed Apr 21 01:50:10 1993 John Gilmore (gnu@cygnus.com) 388560484Sobrien 388660484Sobrien * libbfd.c: Whitespace changes around byteswap macros. 388760484Sobrien * libbfd-in.h: Whitespace changes around byteswap declarations. 388860484Sobrien 388960484SobrienTue Apr 20 15:59:07 1993 Stu Grossman (grossman@cygnus.com) 389060484Sobrien 389160484Sobrien * aoutf1.h (sunos4_core_file_p): Don't default bfd_error to 389260484Sobrien system_error anymore. It confuses bfd_check_format(). 389360484Sobrien 389460484SobrienMon Apr 19 23:03:08 1993 Stu Grossman (grossman@cygnus.com) 389560484Sobrien 389660484Sobrien * bfd.c: Add sgi_core_data to tdata union. 389760484Sobrien * coff-mips.c: Add Irix 4.x core file support. 389860484Sobrien * hosts/irix4.h: #define HOST_IRIX4. 389960484Sobrien 390060484SobrienMon Apr 19 18:52:52 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 390160484Sobrien 390260484Sobrien * aoutx.h (translate_from_native_sym_flags): Check that the 390360484Sobrien symbol's section does get set. 390460484Sobrien (slurp_symbol_table): Zero index means null-string name. 390560484Sobrien 390660484Sobrien * aoutx.h (struct stringtab_entry, struct stringtab_data): New 390760484Sobrien data structures. 390860484Sobrien (hash, stringtab_init, add_to_stringtab, emit_strtab, compare): 390960484Sobrien New functions. 391060484Sobrien (write_syms): Use them, to reduce string table size. 391160484Sobrien 391260484SobrienMon Apr 19 16:45:12 1993 Fred Fish (fnf@cygnus.com) 391360484Sobrien 391460484Sobrien * trad-core.c (trad_core_vec): Add 6 new initializers to match 391560484Sobrien new signed get/put fields. Minor reformatting to label 391660484Sobrien some fields. 391760484Sobrien 391860484SobrienMon Apr 19 06:09:41 1993 Jim Kingdon (kingdon@cygnus.com) 391960484Sobrien 392060484Sobrien * bfd-in.h: Insert comment about SVR3 compiler warnings. 392160484Sobrien 392260484Sobrien * hosts/{hp300,i386isc,i386v}.h: Remove unused #defines of {r,}index 392360484Sobrien (bfd uses strchr and the broken SVR3.2 cpp loses with the defines). 392460484Sobrien 392560484Sobrien * libbfd.c: bfd_put*: Remove casts to bfd_vma. 392660484Sobrien 392760484SobrienFri Apr 16 17:49:27 1993 Jim Kingdon (kingdon@cygnus.com) 392860484Sobrien 392960484Sobrien * aoutf1.h (internal_sunos_core): Make c_stacktop a bfd_vma. 393060484Sobrien (swapcore_sparc): Make sp a bfd_vma. 393160484Sobrien 393260484SobrienThu Apr 15 09:09:18 1993 Jim Kingdon (kingdon@cygnus.com) 393360484Sobrien 393460484Sobrien * libbfd.c: Add signed versions of bfd_{h_,}{get,put}_signed_<size>. 393560484Sobrien libbfd.c, libbfd-in.h: Add _do*signed*. 393660484Sobrien targets.c, all targets: Add bfd*signed*. 393760484Sobrien bfd-in.h: Add bfd_signed_vma. Add comments. 393860484Sobrien 393960484Sobrien * bfd-in.h (bfd_error), bfd.c (bfd_errmsgs): Add file_truncated. 394060484Sobrien 394160484Sobrien * format.c (bfd_check_error): Check error return from 394260484Sobrien _bfd_check_format routines. 394360484Sobrien 394460484SobrienWed Apr 14 23:48:25 1993 Jim Kingdon (kingdon@cygnus.com) 394560484Sobrien 394660484Sobrien * rs6000-core.c (rs6000coff_core_p): Improve error checking and 394760484Sobrien recognize .data section if present. 394860484Sobrien 394960484SobrienThu Apr 15 01:00:29 1993 John Gilmore (gnu@cygnus.com) 395060484Sobrien 395160484Sobrien * aoutx.h (aout_*_adjust_sizes_and_vmas): Avoid `sanity' 395260484Sobrien check for the case where the user sets the address of the BSS 395360484Sobrien section (and the file header can't specify this). Let the user 395460484Sobrien set it wherever they want, regardless of what goes in the header. 395560484Sobrien 395660484Sobrien * ieee.c (ieee_slurp_sections): Pass all ieee section names 395760484Sobrien straight through into BFD sections. Add comments. 395860484Sobrien 395960484SobrienWed Apr 14 20:34:54 1993 John Gilmore (gnu@cygnus.com) 396060484Sobrien 396160484Sobrien Cleanup in preparation for better 64-bit host support. 396260484Sobrien 396360484Sobrien * bfd-in.h (bfd_64_type): Remove. 396460484Sobrien * libbfd.c (_do_getb64, _do_putb64): Use bfd_vma, not bfd_64_type. 396560484Sobrien 396660484Sobrien * bfd-in.h (bfd_size): Remove. 396760484Sobrien 396860484Sobrien * bfd-in.h (bfd_offset): Remove, after fixing ld/ldlang.[ch]. 396960484Sobrien 397060484Sobrien * bfd-in.h (bfd_word): Remove. 397160484Sobrien * reloc.c (reloc_howto_type): Replace bfd_word with bfd_vma. 397260484Sobrien 397360484Sobrien * bfd-in.h (rawdata_offset): Remove. 397460484Sobrien * reloc.c (arelent): Replace rawdata_offset with bfd_size_type. 397560484Sobrien (bfd_perform_relocation): Lint. 397660484Sobrien (enum bfd_reloc_status): Comment cleanup. 397760484Sobrien 397860484Sobrien * aout-adobe.c, cpu-h8300.c, mipsbsd.c, srec.c: lint -Wall. 397960484Sobrien 398060484SobrienTue Apr 13 11:19:52 1993 Jim Kingdon (kingdon@cygnus.com) 398160484Sobrien 398260484Sobrien * aoutf1.h (swapcore_sparc): Guess the right value of USRSTACK. 398360484Sobrien 398460484SobrienMon Apr 12 14:18:00 1993 John Gilmore (gnu@cygnus.com) 398560484Sobrien 398660484Sobrien * elf32.c: Clean up old comments. 398760484Sobrien 398860484SobrienFri Apr 9 10:43:20 1993 Ian Lance Taylor (ian@cygnus.com) 398960484Sobrien 399060484Sobrien * config/sun3.h: String argument to fprintf is const. 399160484Sobrien 399260484Sobrien * coff-mips.c: Renamed PAGE_SIZE to ROUND_SIZE, to avoid confusion 399360484Sobrien on systems which define PAGE_SIZE in <limits.h>. 399460484Sobrien 399560484SobrienThu Apr 8 10:28:00 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 399660484Sobrien 399760484Sobrien * trad-core.c (trad_unix_core_file_failing_signal): Use new macro 399860484Sobrien TRAD_UNIX_CORE_FILE_FAILING_SIGNAL to allow host files to specify 399960484Sobrien the core file failing signal. 400060484Sobrien * hosts/decstation.h (TRAD_UNIX_CORE_FILE_FAILING_SIGNAL): Define 400160484Sobrien to supply the core file failing signal. 400260484Sobrien 400360484SobrienThu Apr 8 09:17:35 1993 Ian Lance Taylor (ian@cygnus.com) 400460484Sobrien 400560484Sobrien * coffcode.h (styp_to_sec_flags): Only set SEC_SHARED_LIBRARY for 400660484Sobrien a STYP_NOLOAD | STYP_BSS section if BSS_NOLOAD_IS_SHARED_LIBRARY 400760484Sobrien is defined. On many COFF targets STYP_BSS is always STYP_NOLOAD. 400860484Sobrien * coff-i386.h (BSS_NOLOAD_IS_SHARED_LIBRARY): Define. 400960484Sobrien 401060484SobrienWed Apr 7 11:33:06 1993 Ian Lance Taylor (ian@cygnus.com) 401160484Sobrien 401260484Sobrien * coff-mips.c (PAGESIZE): Correct value. 401360484Sobrien 401460484SobrienTue Apr 6 12:05:44 1993 Ian Lance Taylor (ian@cygnus.com) 401560484Sobrien 401660484Sobrien * coff-mips.c (ecoff_find_nearest_line): Address of first PDR is 401760484Sobrien an offset (patch from Jean-Daniel Fekete <jdf@lri.lri.fr>). 401860484Sobrien 401960484SobrienMon Apr 5 12:07:12 1993 Ian Lance Taylor (ian@cygnus.com) 402060484Sobrien 402160484Sobrien * coffcode.h (styp_to_sec_flags): Set SEC_SHARED_LIBRARY for a 402260484Sobrien STYP_NOLOAD | STYP_BSS section. Don't set SEC_NEVER_LOAD for a 402360484Sobrien STYP_INFO section. 402460484Sobrien (coff_compute_section_file_positions): Force vma and lma of _LIB 402560484Sobrien section to be zero. 402660484Sobrien (coff_set_section_contents): Count number of entries in new lma 402760484Sobrien field, not in vma. 402860484Sobrien * coffgen.c (make_a_section_from_file): Force lineno_count of 402960484Sobrien SEC_SHARED_LIBRARY section to be zero, since it is non-zero on the 403060484Sobrien SCO 3.2v4 shared library. 403160484Sobrien * seclet.c (rel): Copy over any section with contents, not just 403260484Sobrien loadable sections. 403360484Sobrien 403460484Sobrien * coff-mips.c (ecoff_make_empty_symbol): Zero out newly allocated 403560484Sobrien symbol. 403660484Sobrien 403760484Sobrien * coff-i386.c (coff_i386_reloc): New function, to generate 403860484Sobrien relocateable output correctly. 403960484Sobrien (howto_table): Use coff_i386_reloc for all reloc types. 404060484Sobrien (CALC_ADDEND): Use a more efficient hack to get the correct addend 404160484Sobrien for a common symbol. 404260484Sobrien (i386comm_value): Removed; no longer needed. 404360484Sobrien 404460484SobrienSun Apr 4 15:08:48 1993 Steve Chamberlain (sac@thepub.cygnus.com) 404560484Sobrien 404660484Sobrien * coffcode.h (coff_set_section_contents): Don't write out 404760484Sobrien sections without a filepos. 404860484Sobrien 404960484SobrienFri Apr 2 14:35:05 1993 Ian Lance Taylor (ian@cygnus.com) 405060484Sobrien 405160484Sobrien * seclet.c (seclet_dump_seclet): Correct SEC_HAS_CONTENTS test. 405260484Sobrien 405360484SobrienWed Mar 31 17:41:05 1993 Ian Lance Taylor (ian@cygnus.com) 405460484Sobrien 405560484Sobrien * reloc.c (bfd_reloc_code_real_type): Added BFD_RELOC_MIPS_GPREL. 405660484Sobrien * libecoff.h (ecoff_data_type): Added gp_size field. 405760484Sobrien * coff-mips.c (ecoff_mkobject_hook): Initialize gp_size to 8. 405860484Sobrien (ecoff_set_symbol_info): Compare against gp_size, not hardcoded 8. 405960484Sobrien Set flags to 0 for large common symbols. 406060484Sobrien (ecoff_gprel_reloc): Handle non-zero addend for external symbols, 406160484Sobrien which can occur for gas-generated relocs. 406260484Sobrien (ecoff_bfd_reloc_type_lookup): Added BFD_RELOC_MIPS_GPREL case. 406360484Sobrien * bfd.c (bfd_get_gp_size, bfd_set_gp_size): New functions. 406460484Sobrien * Makefile.in (bfd.o): Now depends on coff/sym.h and libecoff.h. 406560484Sobrien 406660484SobrienTue Mar 30 09:33:16 1993 Steve Chamberlain (sac@thepub.cygnus.com) 406760484Sobrien 406860484Sobrien * srec.c (srec_set_section_contents): Use lma field for load 406960484Sobrien address. 407060484Sobrien * section.c: Add declaration of lma field to section structure. 407160484Sobrien * coffcode.h (coff_write_object_contents): Use lma field for load 407260484Sobrien address. 407360484Sobrien * bfd-in.h (bfd_set_section_vma): Set lma along with vma. 407460484Sobrien 407560484Sobrien * aoutx.h (translate_from_native_sym_flags): Now handles indirect 407660484Sobrien symbols in a better way. (translate_to_native_sym_flag): Set the 407760484Sobrien N_INDR bit when necessary. (aout<>slurp_symbol_table): Maintain 407860484Sobrien indirect state. 407960484Sobrien * section.c: Added BFD_IND_SECTION_NAME and bfd_ind_section. 408060484Sobrien (bfd_make_section): Cope with new builtin section. 408160484Sobrien * syms.c (bfd_decode_symclass): Can now print indirect section 408260484Sobrien info. 408360484Sobrien 408460484SobrienWed Mar 24 13:36:33 1993 Per Bothner (bothner@rtl.cygnus.com) 408560484Sobrien 408660484Sobrien * aout-target.h (MY(object_p)): Fail if MACHTYPE_OK is 408760484Sobrien defined, and yields false. 408860484Sobrien * aout-mipsbsd.c, i386bsd.c: Define MACHTYPE_OK appropriately. 408960484Sobrien 409060484Sobrien * archive.c (snarf_ar_hdr): Add support for reading (only, 409160484Sobrien so far) BSD-4.4-style extended headers. 409260484Sobrien * archive.c: Some more comments. 409360484Sobrien 409460484SobrienWed Mar 24 02:05:10 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com) 409560484Sobrien 409660484Sobrien * Makefile.in: fix rule for dvi and info, so that the recursive 409760484Sobrien makes does the right thing, instead of always info 409860484Sobrien 409960484SobrienWed Mar 24 02:56:44 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 410060484Sobrien 410160484Sobrien * libbfd.c (bfd_seek): Disable optimized handling for archives and 410260484Sobrien archive members; they need more special reatment. For now, verify 410360484Sobrien that computed and actual file positions correspond. 410460484Sobrien 410560484SobrienTue Mar 23 08:45:33 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 410660484Sobrien 410760484Sobrien * mipsbsd.c: Renamed from aout-mipsbsd.c. 410860484Sobrien (set_arch_mach): Delete non-MIPS code. 410960484Sobrien (reloc_howto_type_lookup): Ditto. 411060484Sobrien * Makefile.in: Adjusted. 411160484Sobrien 411260484Sobrien * libbfd.c (bfd_tell): Update `where' field. 411360484Sobrien (bfd_seek): Don't do anything if we're not changing the file 411460484Sobrien position. If FILE_OFFSET_IS_CHAR_INDEX is defined, check `where' 411560484Sobrien field against a SEEK_SET request. Call bfd_tell to re-update 411660484Sobrien `where' field when done. 411760484Sobrien (bfd_read, bfd_write) [FILE_OFFSET_IS_CHAR_INDEX]: Maintain 411860484Sobrien `where' field. 411960484Sobrien * hosts/sparc.h: Define FILE_OFFSET_IS_CHAR_INDEX. 412060484Sobrien 412160484SobrienMon Mar 22 23:18:10 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 412260484Sobrien 412360484Sobrien * Makefile.in: added installcheck target 412460484Sobrien 412560484SobrienMon Mar 22 14:57:18 1993 Ian Lance Taylor (ian@cygnus.com) 412660484Sobrien 412760484Sobrien * coff-mips.c (ecoff_set_symbol_info): Relocate encapsulated stabs 412860484Sobrien if the type is not stNil. 412960484Sobrien 413060484SobrienTue Mar 16 10:35:27 1993 Ken Raeburn (raeburn@cygnus.com) 413160484Sobrien 413260484Sobrien * elf32.c (elf_little_vec, elf_big_vec): Delete now-invalid 413360484Sobrien forward declarations. 413460484Sobrien 413560484Sobrien * elf32-sparc.c (elf_sparc_howto_table): Don't use CONST here, 413660484Sobrien it's implied by the type. 413760484Sobrien 413860484SobrienFri Mar 12 18:58:08 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 413960484Sobrien 414060484Sobrien * configure.host: recognize sparc-sun-solaris2* instead of sparc-sun-solaris* 414160484Sobrien 414260484SobrienTue Mar 9 09:23:12 1993 Jim Kingdon (kingdon@cygnus.com) 414360484Sobrien 414460484Sobrien * rs6000-core.c: Add .ldinfo section. 414560484Sobrien 414660484SobrienFri Mar 12 11:57:52 1993 Ian Lance Taylor (ian@cygnus.com) 414760484Sobrien 414860484Sobrien * Makefile.in (MAKEOVERRIDES): Define to be empty. 414960484Sobrien 415060484SobrienFri Mar 12 08:32:11 1993 Steve Chamberlain (sac@thepub.cygnus.com) 415160484Sobrien 415260484Sobrien * section.c (bfd_set_section_contents): whitespace 415360484Sobrien * seclet.c (seclet_dump_seclet): Don't try and fill sections with 415460484Sobrien no contents. 415560484Sobrien 415660484SobrienThu Mar 11 19:26:15 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 415760484Sobrien 415860484Sobrien * hosts/go32.h: don't define POSIX_UTIME 415960484Sobrien 416060484SobrienTue Mar 9 10:52:01 1993 Fred Fish (fnf@cygnus.com) 416160484Sobrien 416260484Sobrien * elf32.c (elf_object_p): Use ELF_ARCH stored in xvec to match 416360484Sobrien against machine architecture stored in the ELF header, to resolve 416460484Sobrien ambiguities. 416560484Sobrien * elf32.c (bfd_section_from_shdr): Bfd_make_section can return 416660484Sobrien NULL, so only use results when non-NULL. 416760484Sobrien * targets.c (elf32_m68k_vec, elf32_i860_vec): Add extern decls 416860484Sobrien and add to vector of targets. 416960484Sobrien 417060484SobrienMon Mar 8 15:13:44 1993 Ian Lance Taylor (ian@cygnus.com) 417160484Sobrien 417260484Sobrien * coff-mips.c (ecoff_set_symbol_info): Encapsulated STABS symbols 417360484Sobrien are always just debugging symbols. 417460484Sobrien 417560484Sobrien * coff-mips.c (ecoff_[gs]et_sym_index): Moved macros from here... 417660484Sobrien libecoff.h (ecoff_[gs]et_sym_index): ...to here. 417760484Sobrien 417860484SobrienMon Mar 8 14:55:13 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 417960484Sobrien 418060484Sobrien * hppa.c (_PA_RISC_ID): Defined if not already defined (e.g., for 418160484Sobrien hpux 7). Patch from friedman@gnu.ai.mit.edu. 418260484Sobrien (hppa_object_p): Only check for DL_MAGIC and SHL_MAGIC if they're 418360484Sobrien defined, which they aren't in hpux 7.0. 418460484Sobrien 418560484Sobrien * aix386-core.c: Include uinfo.h and coredump.h. Patch from Minh 418660484Sobrien Tran-Le, tranle@intellicorp.com. 418760484Sobrien 418860484SobrienFri Mar 5 14:54:21 1993 Ian Lance Taylor (ian@cygnus.com) 418960484Sobrien 419060484Sobrien * coff-mips.c (ecoff_generic_reloc): If the addend is non-zero, go 419160484Sobrien ahead and do the relocation. 419260484Sobrien (ecoff_refhi_reloc): Don't to the relocation here, just remember 419360484Sobrien what needs to be done. 419460484Sobrien (ecoff_reflo_reloc): Do the REFHI relocation here. 419560484Sobrien 419660484SobrienThu Mar 4 14:44:01 1993 Ian Lance Taylor (ian@cygnus.com) 419760484Sobrien 419860484Sobrien * coff-mips.c (ecoff_bfd_reloc_type_lookup): New function. 419960484Sobrien (ecoff_write_object_contents): Added BFD_ASSERT calls to ensure 420060484Sobrien relocs are reasonable. 420160484Sobrien * coff-msym.c: Eliminated uses of DEFUN. 420260484Sobrien (ecoff_swap_tir_out): New function. 420360484Sobrien 420460484SobrienTue Mar 2 17:52:58 1993 Fred Fish (fnf@cygnus.com) 420560484Sobrien 420660484Sobrien (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>) 420760484Sobrien * configure.host (vax-*-ultrix2*): Add triplet. 420860484Sobrien * hosts/vaxult2.h: New file. 420960484Sobrien * config/vaxult2.mh: New file. 421060484Sobrien 421160484Sobrien * aoutx.h (string.h): Include for strchr and friends. 421260484Sobrien * archive.c (string.h): Include for memchr and friends. 421360484Sobrien * elf32.c (string.h): Include for strrchr and friends. 421460484Sobrien 421560484SobrienSat Feb 27 00:44:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 421660484Sobrien 421760484Sobrien * aoutf1.c (sunos4_reloc_type_lookup): Unused; deleted. 421860484Sobrien (MY_set_sizes): Use sunos4_set_sizes. 421960484Sobrien 422060484Sobrien * elf32.c: Renamed from elf.c. Several CPU-specific functions 422160484Sobrien deleted, as well as elf-big and elf-little targets. 422260484Sobrien * libelf.h: New file. 422360484Sobrien * elf32-sparc.c, elf32-i386.c, elf32-i860.c, elf32-m68k.c: New 422460484Sobrien files, new targets. 422560484Sobrien * Makefile.in, config/*-elf.mt, targets.c: Adjusted. 422660484Sobrien 422760484Sobrien * i386linux.c (TARGETNAME): Use hyphens instead of parentheses. 422860484Sobrien 422960484Sobrien * coffcode.h (coff_compute_section_file_positions): Don't need 423060484Sobrien variable "old_sofar" if compiling for i960. 423160484Sobrien 423260484Sobrien * reloc.c (bfd_default_reloc_type_lookup): First argument is now a 423360484Sobrien bfd pointer. 423460484Sobrien * libbfd.h: Updated. 423560484Sobrien 423660484Sobrien * ieee.c (exten, envi): "static" belongs first in declaration. 423760484Sobrien 423860484SobrienFri Feb 26 17:37:34 1993 Steve Chamberlain (sac@thepub.cygnus.com) 423960484Sobrien 424060484Sobrien * srec.c: add support for symbolsrec, srecords with symbols in 424160484Sobrien them. 424260484Sobrien 424360484SobrienThu Feb 25 11:43:30 1993 John Gilmore (gnu@cacophony.cygnus.com) 424460484Sobrien 424560484Sobrien * ieee.c: cast all arguments of ieee_write_byte to bfd_byte 424660484Sobrien to avoid lint complaints. 424760484Sobrien 424860484SobrienThu Feb 25 02:15:52 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 424960484Sobrien 425060484Sobrien * elf.c (elf_write_object_contents): Section ".shstrtab" should be 425160484Sobrien type SHT_STRTAB. Don't alter file offset for section 0. 425260484Sobrien (reloc_type_names): Now an array instead of a macro. Still inside 425360484Sobrien "#if 0", since it's used only in debugging code also in "#if 0". 425460484Sobrien (struct elf_reloc_map_elt, struct elf_reloc_map): New types. 425560484Sobrien (sort_reloc_map): New function. 425660484Sobrien (sparc_reloc_map): New variable. 425760484Sobrien (elf_bfd_reloc_type_lookup): New function. 425860484Sobrien 425960484SobrienTue Feb 23 12:17:16 1993 Ian Lance Taylor (ian@cygnus.com) 426060484Sobrien 426160484Sobrien * bfd-in.h (JUMP_TABLE): Added bfd_reloc_type_lookup and 426260484Sobrien bfd_make_debug_symbol; they were already in the target structure. 426360484Sobrien * Adjusted all uses of JUMP_TABLE. 426460484Sobrien * coffgen.c, libcoff-in.h (coff_bfd_make_debug_symbol): Renamed 426560484Sobrien from coff_make_debug_symbol. 426660484Sobrien * libcoff.h: Updated accordingly. 426760484Sobrien 426860484Sobrien * Minor cleanups provoked by gcc warnings: 426960484Sobrien * aoutx.h (NAME(aout, reloc_type_lookup)), 427060484Sobrien cpu-h8300.c (local_bfd_reloc_type_lookup), 427160484Sobrien cpu-z8k.c (local_bfd_reloc_type_lookup): Added default case to 427260484Sobrien switches. 427360484Sobrien * archive.c (do_slurp_bsd_armap, do_slurp_coff_armap), 427460484Sobrien ieee.c (ieee_slurp_section_data), 427560484Sobrien elf.c (elf_make_sections, elf_fake_sections, 427660484Sobrien elf_compute_section_file_positions, elf_write_object_contents): 427760484Sobrien Removed unused variables. 427860484Sobrien * archures.c: Removed /* from within comment. 427960484Sobrien * bout.c (b_out_squirt_out_relocs): Initialize r_extern. 428060484Sobrien * oasys.c (oasys_write_data): Initialize i. 428160484Sobrien 428260484SobrienMon Feb 22 18:40:06 1993 Per Bothner (bothner@rtl.cygnus.com) 428360484Sobrien 428460484Sobrien * libcoff.h (obj_raw_syment_coun): New macro. 428560484Sobrien * coffgen.c (coff_get_normalized_symtab): Initialize 428660484Sobrien raw_syment_count. 428760484Sobrien * coffgen.c (coff_find_nearest_line): Numerous little fixes. 428860484Sobrien 428960484SobrienMon Feb 22 15:03:07 1993 Ian Lance Taylor (ian@cygnus.com) 429060484Sobrien 429160484Sobrien * coff-mips.c (ecoff_set_symbol_info): stBlock symbols are always 429260484Sobrien debugging symbols. 429360484Sobrien (ecoff_get_debug): Offset the fdr adr by the adr of the first pdr, 429460484Sobrien for compatibility with tools from MIPS. 429560484Sobrien 429660484Sobrien * config/bigmips.mt: New file; default vector is ecoff_big_vec. 429760484Sobrien * config/irix3.mt, config/irix4.mt: Removed. 429860484Sobrien * configure.in (mips-*-ecoff): New target; uses bigmips.mt. 429960484Sobrien (mips-sgi-*, mips-big-*): Use bigmips rather than irix3. 430060484Sobrien 430160484SobrienWed Feb 17 23:40:41 1993 John Gilmore (gnu@cygnus.com) 430260484Sobrien 430360484Sobrien * hosts/hp300bsd.h: Add gross hack to determine whether we 430460484Sobrien are running on BSD 4.3 or BSD 4.4, and use appropriate include 430560484Sobrien files (and set other parameters) to match. 430660484Sobrien 430760484SobrienWed Feb 17 12:28:13 1993 K. Richard Pixley (rich@cygnus.com) 430860484Sobrien 430960484Sobrien * trad-core.c (trad_unix_make_empty_symbol): wrap PARAMS around an 431060484Sobrien ansi definition which otherwise confuses non-ansi compilers. 431160484Sobrien 431260484Sobrien * aout-adobe.c (aout_adobe_object_p): eliminate a warning from vax 431360484Sobrien ultrix cc by forward declaring getenv as is done in 431460484Sobrien bfd_find_target. 431560484Sobrien 431660484SobrienTue Feb 16 17:56:58 1993 K. Richard Pixley (rich@cygnus.com) 431760484Sobrien 431860484Sobrien * elf.c (elf_info_to_howto): cast an enum into unsigned char 431960484Sobrien avoiding a fatal error in vax ultrix 4.2 cc. 432060484Sobrien 432160484SobrienTue Feb 16 00:44:54 1993 John Gilmore (gnu@cygnus.com) 432260484Sobrien 432360484Sobrien * bfd-in.h, VERSION: Roll to version 2.1. 432460484Sobrien 432560484SobrienMon Feb 15 20:43:51 1993 John Gilmore (gnu@cygnus.com) 432660484Sobrien 432760484Sobrien * oasys.c (oasys_write_object_contents): Lint. 432860484Sobrien * srec.c: Whitespace cleanup. 432960484Sobrien 433060484SobrienFri Feb 12 14:23:07 1993 Ian Lance Taylor (ian@cygnus.com) 433160484Sobrien 433260484Sobrien * coffgen.c (coff_print_symbol): Print correct tagndx value; 433360484Sobrien cleaned up output formatting a bit. 433460484Sobrien 433560484SobrienFri Feb 12 08:28:56 1993 Steve Chamberlain (sac@thepub.cygnus.com) 433660484Sobrien 433760484Sobrien * coffcode.h (coff_set_arch_mach_hook): *FIXME* the H8/300 is always 433860484Sobrien relaxable. Should be moved somewhere else. 433960484Sobrien 434060484SobrienThu Feb 11 14:09:42 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 434160484Sobrien 434260484Sobrien * aout-mipsbsd.c: Eliminated uses of DEFUN. 434360484Sobrien (aout_mips_*_vec): Added seclet_link element. 434460484Sobrien 434560484Sobrien * Makefile.in (BFD_BACKENDS, CFILES, aout-mipsbsd.o): Added 434660484Sobrien support for aout-mipsbsd target. 434760484Sobrien 434860484Sobrien * bout.c (get_value): Don't truncate 32-bit addend to 16 bits. 434960484Sobrien 435060484SobrienFri Feb 5 08:08:43 1993 Steve Chamberlain (sac@thepub.cygnus.com) 435160484Sobrien 435260484Sobrien * cpu-h8500.c (scan_mach): return false if it's not an H8/500 435360484Sobrien 435460484SobrienThu Feb 4 12:52:40 1993 Steve Chamberlain (sac@thepub.cygnus.com) 435560484Sobrien 435660484Sobrien Add support for the H8/500 435760484Sobrien 435860484Sobrien * coff-h8500.c, cpu-h8500.c, archures.c, coffcode.h, targets.c 435960484Sobrien 436060484SobrienThu Feb 4 12:35:02 1993 Ian Lance Taylor (ian@cygnus.com) 436160484Sobrien 436260484Sobrien * libecoff.h: New file. Defines ECOFF backend data for gdb. 436360484Sobrien * coff-mips.c: Now includes libecoff.h. 436460484Sobrien (ecoff_data_type): Moved to libecoff.h. 436560484Sobrien (ecoff_slurp_symbolic_info): Made globally visible so that gdb can 436660484Sobrien call it. If there is ever another ECOFF target, this and the 436760484Sobrien swapping functions should be accessed via an ECOFF specific target 436860484Sobrien vector. 436960484Sobrien * Makefile.in (coff-mips.o): Depends on libecoff.h. 437060484Sobrien 437160484SobrienWed Feb 3 09:14:36 1993 Ian Lance Taylor (ian@cygnus.com) 437260484Sobrien 437360484Sobrien * coffcode.h: Removed MIPS specific information, since coff-mips.c 437460484Sobrien no longer includes this file. 437560484Sobrien 437660484Sobrien * coff-msym.c (ecoff_swap_fdr_in, ecoff_swap_ext_in): Set reserved 437760484Sobrien bits to 0 to make comparison test useful. 437860484Sobrien 437960484Sobrien * config/irix3.mh, config/irix4.mh (HDEFINES): Set to -G 4 to 438060484Sobrien avoid overflowing GP accessible sections in binutils/objdump. 438160484Sobrien 438260484SobrienTue Feb 2 15:36:55 1993 Per Bothner (bothner@cygnus.com) 438360484Sobrien 438460484Sobrien * aoutx.h (NAME(aout,slurp_symbol_table)): Made symbol 438560484Sobrien reading more robust: Fail if string index is out of string 438660484Sobrien table range. 438760484Sobrien 438860484SobrienTue Feb 2 11:43:25 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 438960484Sobrien 439060484Sobrien * bout.c (b_out_get_relocated_section_contents, cases PCREL24 and 439160484Sobrien PCREL13): Don't take dst_address into account; the input file has 439260484Sobrien already taken care of that. 439360484Sobrien 439460484SobrienTue Feb 2 11:41:06 1993 Ian Lance Taylor (ian@cygnus.com) 439560484Sobrien 439660484Sobrien * coff-mips.c: Completed support for linker and binutils. 439760484Sobrien 439860484SobrienMon Feb 1 14:45:38 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 439960484Sobrien 440060484Sobrien * bout.c (b_out_get_relocated_section_contents, case ABS32): Keep 440160484Sobrien original addend from section contents. 440260484Sobrien 440360484SobrienThu Jan 28 21:01:37 1993 John Gilmore (gnu@cygnus.com) 440460484Sobrien 440560484Sobrien Fix minor bugs reported by Carl Greco, <cgreco@parrot.creighton.edu>: 440660484Sobrien * hosts/delta88.h (strtol): Fix prototype. 440760484Sobrien * config/m88k-coff.mt (SELECT_ARCHITECTURES): Fix name. 440860484Sobrien 440960484SobrienWed Jan 27 17:16:51 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 441060484Sobrien 441160484Sobrien * elf.c: Get rid of "#ifdef sparc". 441260484Sobrien (RELOC_TYPE_NAMES): Never used (currently), so don't include it. 441360484Sobrien (elf_sparc_howto_table): Renamed from elf_howto_table, and always 441460484Sobrien used. 441560484Sobrien (elf_info_to_howto): Use runtime conditionals on CPU type, not 441660484Sobrien compile type conditionals on host CPU. 441760484Sobrien (elf_little_vec, elf_big_vec): Use bfd_default_reloc_type_lookup, 441860484Sobrien not null pointer. 441960484Sobrien (reloc_type, RELOC_TYPE_NAMES): Include i386 values. 442060484Sobrien 442160484SobrienTue Jan 26 11:43:14 1993 Ian Lance Taylor (ian@cygnus.com) 442260484Sobrien 442360484Sobrien * section.c (SEC_IS_COMMON): New section flag, needed for MIPS 442460484Sobrien ECOFF which has two common sections. 442560484Sobrien (bfd_com_section): Set SEC_IS_COMMON flag. 442660484Sobrien * bfd-in.h (bfd_is_com_section): New macro to test SEC_IS_COMMON. 442760484Sobrien * aoutx.h, archive.c, bout.c, coff-a29k.c, coff-m88k.c, 442889857Sobrien coff-mips.c, coffgen.c, ieee.c, oasys.c, reloc.c, syms.c: Use 442960484Sobrien bfd_is_com_section macro rather than checking for equality to 443060484Sobrien bfd_com_section. 443160484Sobrien 443260484SobrienMon Jan 25 15:27:36 1993 Ian Lance Taylor (ian@cygnus.com) 443360484Sobrien 443460484Sobrien * coffcode.h (_bfd_coff_mkobject_hook): Pass aouthdr argument. 443560484Sobrien (coff_mkobject_hook): Accept aouthdr argument. 443660484Sobrien * coffgen.c (coff_real_object_p): Pass aouthdr to mkobject_hook. 443760484Sobrien Handle NULL aouthdr argument. 443860484Sobrien (coff_object_p): If there is no aouthdr, pass it as NULL to 443960484Sobrien coff_real_object_p. 444060484Sobrien * libcoff.h: Rebuilt for mkobject_hook changes. 444160484Sobrien 444260484Sobrien * coffswap.h (coff_swap_aouthdr_in, coff_swap_aouthdr_in): Swap 444360484Sobrien additional MIPS ECOFF fields. 444460484Sobrien 444560484SobrienSat Jan 23 18:36:20 PST 1993 Ralph Campbell (ralphc@pyramid.com) 444660484Sobrien 444760484Sobrien * configure.host: added mips-dec-bsd* 444860484Sobrien * configure.in: added mips-dec-bsd* 444960484Sobrien * aout-mipsbsd.c: new file for mips-dec-bsd* 445060484Sobrien * aout-target.h: don't define '' if 'MY_BFD_TARGET' is defined. 445160484Sobrien * aoutx.h: added mips support. 445260484Sobrien * archures.c: added mips support to bfd_default_scan(). 445360484Sobrien * cpu-mips.c: added support for R4000 (untested). 445460484Sobrien * libaout.h: added MIPS1 & MIPS2 magic numbers. 445560484Sobrien * reloc.c: fix typo's in comments. Added BFD_RELOC entries which I 445660484Sobrien hope will make it into include/bfd.h. 445760484Sobrien * targets.c: added aout_mips_*_vec. 445860484Sobrien 445960484SobrienWed Jan 20 17:15:52 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 446060484Sobrien 446160484Sobrien * config/decstation.mt: Set DEFAULT_VECTOR to ecoff_little_vec. 446260484Sobrien 446360484SobrienTue Jan 19 09:06:14 1993 Ian Lance Taylor (ian@cygnus.com) 446460484Sobrien 446560484Sobrien * bfd-in.h (bfd_asymbol_value): Add needed parentheses. 446660484Sobrien 446760484Sobrien * libcoff-in.h: Update prototype for coff_count_linenumbers. 446860484Sobrien 446960484SobrienFri Jan 15 18:13:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 447060484Sobrien 447160484Sobrien * coff-msym.c (ecoff_swap_hdr_out, ecoff_swap_fdr_out, 447260484Sobrien ecoff_swap_pdr_out, ecoff_swap_sym_out, ecoff_swap_ext_out, 447360484Sobrien ecoff_swap_rndx_out, ecoff_swap_rfd_out, ecoff_swap_opt_in, 447460484Sobrien ecoff_swap_opt_out, ecoff_swap_dnr_in, ecoff_swap_dnr_out): New 447560484Sobrien functions. 447660484Sobrien * coffswap.h: If NO_COFF_RELOCS is defined, don't define 447760484Sobrien bfd_swap_reloc_in or coff_swap_reloc_out. 447860484Sobrien * coff-mips.c: Added code to link and write out symbolic debugging 447960484Sobrien information, and to swap relocs in and out. 448060484Sobrien 448160484SobrienThu Jan 14 15:51:58 1993 Steve Chamberlain (sac@thepub.cygnus.com) 448260484Sobrien 448360484Sobrien * libcoff.h, coffgen.c (coff_count_linenumbers), coffcode.h 448460484Sobrien (coff_write_object_contents): coff_count_linenumbers returns the 448560484Sobrien number of line number records it found. 448660484Sobrien 448760484Sobrien * coffgen.c (coff_write_linenumbers): only write out line numbers 448860484Sobrien in the section they belong to. 448960484Sobrien 449060484SobrienMon Jan 11 18:32:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 449160484Sobrien 449260484Sobrien * targets.c (bfd_target): Added relocateable argument to 449360484Sobrien _bfd_get_relocated_section_contents. Added _bfd_seclet_link 449460484Sobrien target vector for linker use. 449560484Sobrien * bfd.c (bfd_seclet_link): New macro. 449660484Sobrien * bfd-in.h (JUMP_TABLE): Added _bfd_seclet_link. 449760484Sobrien * seclet.c (rel, seclet_dump_seclet): Added relocateable argument 449860484Sobrien and boolean return value. Made static. 449960484Sobrien (bfd_generic_seclet_link): Renamed from seclet_dump. Added 450060484Sobrien relocateable argument. 450160484Sobrien * reloc.c (bfd_generic_get_relocated_section_contents): Added 450260484Sobrien relocateable argument (if relocateable, saves relocs). 450360484Sobrien * bout.c (b_out_get_relocated_section_contents), 450460484Sobrien reloc16.c (bfd_coff_reloc16_get_relocated_section_contents): Added 450560484Sobrien relocateable argument (if relocateable, just calls 450660484Sobrien bfd_generic_get_relocated_section_contents). 450760484Sobrien * libcoff-in.h (bfd_coff_reloc16_get_value): Added relocateable 450860484Sobrien argument to prototype. 450960484Sobrien * All targets: Set new _bfd_seclet_link vector to 451060484Sobrien bfd_generic_seclet_link. 451160484Sobrien 451260484SobrienSat Jan 9 21:29:32 1993 Stu Grossman (grossman at cygnus.com) 451360484Sobrien 451460484Sobrien * coffgen.c: #include seclet.h. 451560484Sobrien 451660484SobrienSat Jan 9 19:48:14 1993 Stu Grossman (grossman at cygnus.com) 451760484Sobrien 451860484Sobrien * hppa.c (hppa_object_setup): Get rid of all knowledge of stabs 451960484Sobrien debug info. Setup info about linker symbols only, and use 452060484Sobrien standard bfd fields to hold the info. 452160484Sobrien * (hppa_object_p): Remove unneeded decls. 452260484Sobrien * (hppa_new_section_hook): Get rid of most of this. 452360484Sobrien * libhppa.h (struct hppadata): Remove ten pounds of useless ugly 452460484Sobrien fat. Remove all knowledge of stabs, remove redundant knowledge of 452560484Sobrien linker symbols. 452660484Sobrien * Remove macros for accessing fields which are now gone. 452760484Sobrien 452860484SobrienFri Jan 8 15:20:00 1993 Steve Chamberlain (sac@thepub.cygnus.com) 452960484Sobrien 453060484Sobrien * coffcode.h (sec_to_styp_flags): allow SEC_NEVER_LOAD to turn on 453160484Sobrien STYP_NOLOAD bit. 453260484Sobrien * coff-z8k.c: delete unused reloc functions 453360484Sobrien 453460484SobrienFri Jan 8 15:47:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 453560484Sobrien 453660484Sobrien * bfd.c (struct _bfd): Added ecoff_tdata to tdata union. 453760484Sobrien * targets.c (enum target_flavour): Added bfd_target_ecoff_flavour. 453860484Sobrien * coff-msym.c: Use DEFUN for function definitons. 453960484Sobrien * coff-mips.c: Added code to read and print symbols, and to find 454060484Sobrien line numbers. 454160484Sobrien 454260484Sobrien * coffcode.h: Moved many generic functions into coffgen.c. Moved 454360484Sobrien swapping functions into coffswap.h for ECOFF use. Moved 454460484Sobrien relocation functions, only used by h8300 and z8k, into reloc16.c. 454560484Sobrien Added hooks for coffgen.c functions to backend data structure, and 454660484Sobrien added hook functions. Still more could be done. 454760484Sobrien * coffswap.h: New file to hold COFF swapping routines. 454860484Sobrien * coffgen.c: New file to hold generic COFF functions. 454960484Sobrien * reloc16.c: New file to hold h8300 and z8k specific relocation 455060484Sobrien functions. 455160484Sobrien * libcoff-in.h: Added declarations for functions in coffgen.c. 455260484Sobrien * libcoff.h: Rebuilt to incorporate changes. 455360484Sobrien * coff-h8300.c: Function name changes. 455460484Sobrien * coff-z8k.c: Function name changes. Use coff_reloc16_extra_cases 455560484Sobrien hook rather than defining EXTRA_CASES. 455660484Sobrien * Makefile.in: Build new files coffgen and reloc16. Added 455760484Sobrien dependencies of coff-*.o on coffswap.h and seclet.h. 455860484Sobrien 455960484SobrienThu Jan 7 16:16:26 1993 Per Bothner (bothner@cygnus.com) 456060484Sobrien 456160484Sobrien * ieee.c (ieee_slurp_sections): Add cast to avoid warning 456260484Sobrien about discarding const. 456360484Sobrien 456460484SobrienWed Jan 6 00:16:49 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 456560484Sobrien 456660484Sobrien * archive.c, seclet.c, elf.c use bfd_xmalloc instead of malloc 456760484Sobrien 456860484SobrienTue Jan 5 09:35:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) 456960484Sobrien 457060484Sobrien * configure.in (post-target): If --with-minimal-bfd is specified, 457160484Sobrien set MINIMIZE=1. 457260484Sobrien 457360484SobrienMon Jan 4 07:20:01 1993 Steve Chamberlain (sac@thepub.cygnus.com) 457460484Sobrien 457560484Sobrien * srec.c (srec_write_records): one of my boards wants a CR between 457660484Sobrien records. 457760484Sobrien 457860484SobrienWed Dec 30 12:46:30 1992 Ian Lance Taylor (ian@cygnus.com) 457960484Sobrien 458060484Sobrien * archive.c (do_slurp_coff_armap): set symdef_count correctly 458160484Sobrien (it broke a couple of weeks ago). 458260484Sobrien 458360484SobrienTue Dec 29 21:41:05 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 458460484Sobrien 458560484Sobrien * elf.c (bfd_elf_find_section): Switch back to "struct ..." for 458660484Sobrien return type, so libbfd.h doesn't reference undefined typedefnames. 458760484Sobrien 458860484SobrienTue Dec 29 13:54:35 1992 Ian Lance Taylor (ian@cygnus.com) 458960484Sobrien 459060484Sobrien * coffcode.h (coff_real_object_p): use name I386AIXMAGIC rather 459160484Sobrien than I386SVMAGIC. 459260484Sobrien (coff_pointerize_aux): don't pointerize a negative tagndx 459360484Sobrien (sometimes generated by SCO 3.2v4 cc). 459460484Sobrien 459560484Sobrien * bout.c (calljx_callback, callj_callback, 459660484Sobrien b_out_get_relocated_section_contents): warn if relocating against 459760484Sobrien an undefined symbol. 459860484Sobrien 459960484SobrienMon Dec 28 14:30:55 1992 Stu Grossman (grossman at cygnus.com) 460060484Sobrien 460160484Sobrien * hppa.c: Get rid of DEFUN, use more conventional prolog stuff. 460260484Sobrien Make a bunch more routines be static. 460360484Sobrien * hppa.c (fill_spaces): Get rid of this, replace with much better 460460484Sobrien written setup_sections(). 460560484Sobrien * (setup_sections): New routine to create BFD sections for each 460660484Sobrien space and subspace in SOM files. 460760484Sobrien * (hppa_object_setup): Use BFD sections created by 460860484Sobrien setup_sections() to locate GDB symbol table info. 460960484Sobrien * (make_unique_section): New routine to create a BFD section. It 461060484Sobrien ensures that the given name is unique, and will generate a unique 461160484Sobrien one if necessary. 461260484Sobrien * (hppa_object_p): Become much more paranoid about file header. 461360484Sobrien * (make_bfd_asection): Call bfd_make_section to do the dirty 461460484Sobrien work. Simplify code somewhat. 461560484Sobrien * (hppa_core_file_p): Use proper name for stack section. 461660484Sobrien * libhppa.h: Remove millicode_start, millicode_end decls. 461760484Sobrien 461860484SobrienMon Dec 28 11:03:22 1992 Ken Raeburn (raeburn@cygnus.com) 461960484Sobrien 462060484Sobrien * Makefile.in (coff-we32k.o, coff-z8k.o): Note dependencies. 462160484Sobrien 462260484Sobrien * reloc.c (bfd_perform_relocation): For normal 2- or 4-byte 462360484Sobrien relocs, don't bother doing the adjustment if the value to add is 462460484Sobrien zero. 462560484Sobrien 462660484SobrienSun Dec 27 17:45:05 1992 Fred Fish (fnf@cygnus.com) 462760484Sobrien 462860484Sobrien * bfd.c (bfd_get_size): New function that gets an upper bound 462960484Sobrien on the possible size of any object in a bfd. 463060484Sobrien * elf.c (bfd_elf_find_section, elf_get_str_section, 463160484Sobrien elf_get_symtab_upper_bound): Rewrite to avoid NULL pointer 463260484Sobrien dereferences. 463360484Sobrien * elf.c (elf_big_vec, elf_little_vec): Document last three 463460484Sobrien members initialized to NULL. 463560484Sobrien 463660484SobrienThu Dec 24 17:49:09 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 463760484Sobrien 463860484Sobrien * hppa.c: change a 'const' to 'CONST', or else HP C compiler dies 463960484Sobrien 464060484SobrienMon Dec 21 16:33:34 1992 Per Bothner (bothner@rtl.cygnus.com) 464160484Sobrien 464260484Sobrien * hosts/std-host.h: New file. Attempt at a generic/default 464360484Sobrien set of definitions, to discourage porting to new hosts by copying. 464460484Sobrien * hosts/news.h: Removed. 464560484Sobrien * hosts/sparc.h: Use std-host.h. 464660484Sobrien * bfd-in.h: New macros bfd_asymbol_bfd and bfd_asymbol_flavour; 464760484Sobrien perhaps we can later remove the the_bfd field from each symbol. 464860484Sobrien * syms.c (struct symbol_cache_entry): Remove unused field 464960484Sobrien app_data. Add comment noting that the_bfd is almost redundant, 465060484Sobrien but not quite. 465160484Sobrien * aoutx.h, coff-a29k.c, coff-i386.c, coff-i960.c, coffcode.h: 465260484Sobrien Use new macros bfd_asymbol_bfd and bfd_asymbol_flavour. 465360484Sobrien * hppa.c (fill_spaces): Make slightly more rebust. 465460484Sobrien * configure.in: Allow std-host as the "default" host. 465560484Sobrien 465660484SobrienMon Dec 21 17:24:13 1992 Stu Grossman (grossman at cygnus.com) 465760484Sobrien 465860484Sobrien * bfd.c: Add struct hppa_core_data to tdata union. 465960484Sobrien * hppa.c: Conditionalize on HOST_HPPAHPUX instead of hp9000s800. 466060484Sobrien Get rid of HPPA/BSD specific code. That will go somewhere else 466160484Sobrien someday. 466260484Sobrien * (fill_spaces): Don't spin forever and die if you don't find 466360484Sobrien $MILLICODE$ subspace. 466460484Sobrien * (hppa_object_p): Make sure that we have a real honest-to-cthulu 466560484Sobrien exec file! 466660484Sobrien * (hppa_core_file_failing_signal, hppa_core_file_failing_command): 466760484Sobrien Make these work for HPUX. 466860484Sobrien * (make_bfd_asection): New routine to make section creation a 466960484Sobrien little easier. 467060484Sobrien * (hppa_core_file_p): Completely rewrite, leave out bugs. 467160484Sobrien * libhppa.h: #include the right system files. Redefine all of 467260484Sobrien the structs/macros for hacking core files to use more sensible 467360484Sobrien HPUX core file structures. 467460484Sobrien * targets.c (target_vector): Conditionalize hppa_vec on 467560484Sobrien HOST_HPPAHPUX, not hp9000s800. 467660484Sobrien * hosts/hppahpux.h: #include stdlib.h to get correct decls for 467760484Sobrien malloc and realloc. #define HOST_HPPAHPUX. 467860484Sobrien 467960484SobrienMon Dec 21 12:40:10 1992 Ian Lance Taylor (ian@cygnus.com) 468060484Sobrien 468160484Sobrien * Patches from Minh Tran-le <mtranle@paris.intellicorp.com>. 468260484Sobrien * configure.in (i386-*-isc*, i386-*-aix*): New targets. 468360484Sobrien * configure.host (i386-*-isc*, i386-*-aix*): New hosts. 468460484Sobrien * hosts/i386isc.h, config/i386isc.mh: New files for Interactive 468560484Sobrien Unix. 468660484Sobrien * hosts/i386aix.h, config/i386aix.mh: New files for AIX on PS/2. 468760484Sobrien * aix386-core.c: New file for handling core files on AIX on PS/2. 468860484Sobrien * targets.c: if AIX386_CORE, use aix386_core_vec. 468960484Sobrien * coffcode.h (coff_real_object_p): check for I386SVMAGIC as well 469060484Sobrien as I386MAGIC. 469160484Sobrien 469260484SobrienFri Dec 18 10:20:27 1992 Steve Chamberlain (sac@thepub.cygnus.com) 469360484Sobrien 469460484Sobrien * aoutf1.h (sunos4_write_object_contents): set flags to 0, fixing 469560484Sobrien 1927. 469660484Sobrien 469760484SobrienThu Dec 17 19:35:32 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 469860484Sobrien 469960484Sobrien * Makefile.in: added dvi target 470060484Sobrien 470160484SobrienThu Dec 17 00:36:24 1992 John Gilmore (gnu@cygnus.com) 470260484Sobrien 470360484Sobrien * bfd.c: Use right name for tekhex tdata struct. 470460484Sobrien * tekhex.c: Insert leading_char (0) into bfd_target struct. Style. 470560484Sobrien * libcoff.h: Updated to get spacing change from coffcode.h. 470660484Sobrien * trad-core.c: leading_char is 0 (no symbols!), not '_'. 470760484Sobrien 470860484SobrienTue Dec 15 15:40:30 1992 Per Bothner (bothner@cygnus.com) 470960484Sobrien 471060484Sobrien * archive.c (do_slurp_bsd_armap, do_slurp_coff_armap): New 471160484Sobrien functions, with the "guts" of the old bfd_slurp_bsd_armap 471260484Sobrien and bfd_slurp_coff_armap, but assuming we've already checked 471360484Sobrien if the armap is present or not. 471460484Sobrien Also, rewrite a bit to avoid keeping around obstack data 471560484Sobrien that we don't need. 471660484Sobrien * archive.c (snarf_ar_header, _bfd_slurp_extended_name_table): 471760484Sobrien Various fixes to correctly handle COFF_style archives names. 471860484Sobrien (Note that because these have a trailing '/', the names can 471960484Sobrien have embedded spaces.) 472060484Sobrien * archive.c (bfd_slurp_armap): New function, replaces old 472160484Sobrien bfd_slurp_bsd_armap and bfd_slurp_coff_armap. Recognizes 472260484Sobrien _either_ format, and calls do_slurp_bsd_armap or 472360484Sobrien do_slurp_coff_armap if either form of map is seen. 472460484Sobrien * libbfd-in.h: Changed bfd_slurp_bsd_armap and 472560484Sobrien bfd_slurp_coff_armap into macro synonyms for bfd_slurp_armap. 472660484Sobrien * elf.c (elf_slurp_armap, elf_write_armap): Fix. 472760484Sobrien * Makefile.in (AR_FLAGS): Use rc instead of non-standard qc. 472860484Sobrien 472960484SobrienMon Dec 14 17:08:08 1992 Stu Grossman (grossman at cygnus.com) 473060484Sobrien 473160484Sobrien * hppa.c: #include "sysdep.h", not <sysdep.h>. 473260484Sobrien * libhppa.h: Make millicode_start and millicode_end be unsigned 473360484Sobrien int to be same type as CORE_ADDR in GDB. Why are these here? 473460484Sobrien 473560484SobrienSat Dec 12 15:54:36 1992 Ian Lance Taylor (ian@cygnus.com) 473660484Sobrien 473760484Sobrien * coff-i386.c (CALC_ADDEND): if reloc is PC relative, add the 473860484Sobrien vaddr of the section to the addend. 473960484Sobrien * targets.c: if MINIMIZE is 1, and SCO_CORE is defined, add 474060484Sobrien SCO_CORE to SELECT_VECS. 474160484Sobrien (target_vector): add sco_core_vec. 474260484Sobrien * sco-core.c (sco_core_vec): add leading underscore initializer. 474360484Sobrien * configure.in (i[34]86-*-sco*): use target i386-sco. 474460484Sobrien * config/i386-sco.mt: new file; define SCO_CORE. 474560484Sobrien 474660484SobrienThu Dec 10 02:13:15 1992 John Gilmore (gnu@cygnus.com) 474760484Sobrien 474860484Sobrien * aout-adobe.c (aout_adobe_object_p): Fix !strcmp thinko. 474960484Sobrien 475060484SobrienFri Dec 4 14:02:49 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 475160484Sobrien 475260484Sobrien * coffcode.h (bfd_coff_std_swap_table): Now static and const. 475360484Sobrien 475460484SobrienThu Dec 3 16:54:58 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 475560484Sobrien 475660484Sobrien * hosts/i386linux.h: Include unistd.h. 475760484Sobrien 475860484Sobrien * aoutx.h (print_symbol): aout_stab_name returns a constant 475960484Sobrien string. 476060484Sobrien * libaout.h (aout_stab_name): Fix prototype. 476160484Sobrien * stab-syms.c (aout_stab_names): Array is now const. 476260484Sobrien (aout_stab_name): Return value is now pointer to const. 476360484Sobrien 476460484Sobrien * aoutx.h, archive.c, archures.c, coffcode.h, ctor.c, reloc.c, 476560484Sobrien syms.c: Doc fixes. 476660484Sobrien 476760484Sobrien * syms.c (asymbol): Added new field "app_data", for data 476860484Sobrien particular to the application. Some of the linker flags ought to 476960484Sobrien get moved to this field someday. 477060484Sobrien 477160484Sobrien * archures.c (bfd_default_scan): Recognize a few more numbers: 477260484Sobrien 80486, 80960, and 960. 477360484Sobrien 477460484Sobrien * bfd-in.h (COFF_SWAP_TABLE): New is just address of 477560484Sobrien bfd_coff_std_swap_table, cast to PTR. 477660484Sobrien * bfd.c (bfd_coff_swap_*): Deleted macros. 477760484Sobrien * targets.c (struct bfd_target): Deleted COFF-specific swapping 477860484Sobrien routine pointers. 477960484Sobrien * coffcode.h (type bfd_coff_backend_data): New structure type, 478060484Sobrien contains pointers to the COFF-specific swapping routines. 478160484Sobrien (bfd_coff_std_swap_table): New data structure, to be used when 478260484Sobrien NO_COFF_SYMBOLS and NO_COFF_LINENOS are not defined. 478360484Sobrien (bfd_coff_swap_*): New macros. 478460484Sobrien * coff-mips.c (mips_coff_swap_table): New data structure. 478560484Sobrien (ecoff_big_vec): Use it. 478660484Sobrien * All COFF targets: Moved COFF_SWAP_TABLE to target-specific data. 478760484Sobrien * All other targets: Deleted coff-specific vector entries. 478860484Sobrien 478960484Sobrien * trad-core.c: Fixed some `PARAMS' uses that were missing 479060484Sobrien parentheses. 479160484Sobrien 479260484SobrienSun Nov 29 08:37:13 1992 Fred Fish (fnf@cygnus.com) 479360484Sobrien 479460484Sobrien * aoutx.h (some_aout_object_p): Protect arg prototype in 479560484Sobrien callback_to_real_object_p with PARAMS macro for non-ANSI compilers. 479660484Sobrien 479760484SobrienSat Nov 28 04:01:21 1992 John Gilmore (gnu@cygnus.com) 479860484Sobrien 479960484Sobrien * aout-target.h, aoutf1.h, trad-core.c, coffcode.h, libaout.h, 480060484Sobrien libbfd-in.h, bfd-in.h: Eliminate all PROTO calls, replace with 480160484Sobrien PARAMS for readability. 480260484Sobrien 480360484Sobrien * aoutx.h: Add type to callback parameter. 480460484Sobrien * coff-mips.c: Don't call trad-core.h, not needed. 480560484Sobrien * trad-core.c: Incorporate trad-core.h declarations. Fix comments. 480660484Sobrien * trad-core.h: Eliminate, unused. 480760484Sobrien 480860484SobrienWed Nov 18 13:16:17 1992 Steve Chamberlain (sac@thepub.cygnus.com) 480960484Sobrien 481060484Sobrien * format.c (bfd_check_format): if default target isn't found 481160484Sobrien then look through the entire list rather than return early. 481260484Sobrien 481360484SobrienMon Nov 16 14:33:03 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 481460484Sobrien 481560484Sobrien * config/i960-coff.mt: reorder vec to match bfd_check_format (from Per) 481660484Sobrien 481760484SobrienThu Nov 12 17:01:41 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 481860484Sobrien 481960484Sobrien * Makefile.in: pass down prefix and exec_prefix in FLAGS_TO_PASS 482060484Sobrien 482160484SobrienThu Nov 12 09:46:47 1992 Steve Chamberlain (sac@thepub.cygnus.com) 482260484Sobrien 482360484Sobrien * coff-z8k.c: checkpoint, more addressing modes handled 482460484Sobrien * coffcode.h (get_value): don't truncate reloc->addend field, it's 482560484Sobrien a long now. 482660484Sobrien 482760484SobrienWed Nov 11 23:57:55 1992 Brendan Kehoe (brendan@cygnus.com) 482860484Sobrien 482960484Sobrien * we32k.mt (TDEFAULTS): Use we32kcoff_vec, not i386coff_vec. 483060484Sobrien 483160484SobrienTue Nov 10 14:04:38 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 483260484Sobrien 483360484Sobrien * Makefile.in: minor tweaks to make $(CC) command lines more consistent 483460484Sobrien 483560484SobrienMon Nov 9 23:58:17 1992 John Gilmore (gnu@cygnus.com) 483660484Sobrien 483760484Sobrien * opncls.c (bfd_fdopenr, bfd_close): Add doc about cacheing 483860484Sobrien and about when file descriptors are closed. 483960484Sobrien 484060484SobrienSat Nov 7 00:42:20 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 484160484Sobrien 484260484Sobrien * bout.c (b_out_squirt_out_relocs): Make sure alignment relocs get 484360484Sobrien written out correctly. 484460484Sobrien 484560484SobrienThu Nov 5 15:34:19 1992 Ian Lance Taylor (ian@cygnus.com) 484660484Sobrien 484760484Sobrien * section.c: New section bit SEC_SHARED_LIBRARY. 484860484Sobrien coffcode.h (styp_to_sec_flags): if STYP_NOLOAD && (STYP_TEXT || 484960484Sobrien STYP_DATA), set SEC_SHARED_LIBRARY. This seems to be correct for 485060484Sobrien i386-sysv. 485160484Sobrien 485260484SobrienThu Nov 5 04:43:09 1992 John Gilmore (gnu@cygnus.com) 485360484Sobrien 485489857Sobrien * targets.c (struct bfd_target): Eliminate the SDEF and SDEF_FMT 485560484Sobrien macros; use PARAMS to declare the function pointers involved. 485660484Sobrien 485760484Sobrien * bfd-in.h, bfd.c, libbfd.h, reloc.c, seclet.h, section.c, 485860484Sobrien targets.c: Rename struct bfd_seclet_struct to struct bfd_seclet. 485960484Sobrien 486060484SobrienThu Nov 5 02:59:09 1992 John Gilmore (gnu@cygnus.com) 486160484Sobrien 486260484Sobrien Cleanup: Replace all uses of EXFUN in the BFD sources, with PARAMS. 486360484Sobrien 486460484Sobrien * archures.c, reloc.c, section.c, tekhex.c: Use PARAMS in 486560484Sobrien declaring pointers to functions. 486660484Sobrien * cache.c, elf.c: Move static function decls to top, use PARAMS. 486760484Sobrien * seclet.h: Declare external function with PARAMS. 486860484Sobrien 486960484Sobrien * doc/chew.c (exfunstuff): Eliminate. 487060484Sobrien (paramstuff): Replace exfunstuff with function to generate PARAMS. 487160484Sobrien * doc/proto.str: Use paramstuff rather than exfunstuff. 487260484Sobrien 487360484Sobrien * libbfd.h: Update, based on changes in source code and chew. 487460484Sobrien 487560484SobrienWed Nov 4 22:47:29 1992 John Gilmore (gnu@cygnus.com) 487660484Sobrien 487760484Sobrien * libieee.h: Add FIXME about removing limit on number of sections. 487860484Sobrien * bfd-in.h: Improve comments to make it clear that bfd.h is 487960484Sobrien the wrong place to edit this file. 488060484Sobrien * Makefile.in (install): Install ansidecl.h and obstack.h in the 488160484Sobrien same places where we install bfd.h. 488260484Sobrien 488360484SobrienWed Nov 4 13:40:23 1992 Sean Eric Fagan (sef@cygnus.com) 488460484Sobrien 488560484Sobrien * coffcode.h (coff_swap_aux_out, coff_swap_aux_in): check for 488660484Sobrien symbol type before blindly modifying the auxent. Specifically, 488760484Sobrien only modify the endndx fields for types that need it, and don't 488860484Sobrien set the array information for non-arrays. 488960484Sobrien 489060484SobrienWed Nov 4 09:30:50 1992 Ken Raeburn (raeburn@cygnus.com) 489160484Sobrien 489260484Sobrien * aoutx.h (some_aout_object_p): Section list should be set up 489360484Sobrien correctly anyways; don't have to set up "next" pointers manually. 489460484Sobrien 489560484SobrienMon Nov 2 12:36:14 1992 Ian Lance Taylor (ian@cygnus.com) 489660484Sobrien 489760484Sobrien * config/delta88.mh, config/hp300.mh, config/hppahpux.mh, 489860484Sobrien config/i386v.mh: removed -DUSG from HDEFINES. 489960484Sobrien hosts/delta88.h, hosts/hp300.h, hosts/hppahpux.h, hosts/i386v.h: 490060484Sobrien defined USE_UTIME. 490160484Sobrien hosts/i386v.h: don't define POSIX_UTIME. 490260484Sobrien 490360484SobrienFri Oct 30 16:13:52 1992 Steve Chamberlain (sac@thepub.cygnus.com) 490460484Sobrien 490560484Sobrien * ieee.c (ieee_slurp_sections): make a private copy of the 490660484Sobrien section's name before truncating it. 490760484Sobrien 490860484SobrienThu Oct 29 08:30:50 1992 Steve Chamberlain (sac@thepub.cygnus.com) 490960484Sobrien 491060484Sobrien * hppa.c: add symbol_leading_char entry in transfer vec 491160484Sobrien 491260484Sobrien,Wed Oct 28 16:11:57 1992 Steve Chamberlain (sac@thepub.cygnus.com) 491360484Sobrien 491460484Sobrien * ieee.c (get_symbol): can now cope when two symbols of a 491560484Sobrien different class, but the same index number occur consecutively. 491660484Sobrien (get_section_entry): nicer name for sections being forward 491760484Sobrien referenced. (ieee_archive_p): don't free the filename string, 491860484Sobrien since it was never malloced. 491960484Sobrien 492060484SobrienWed Oct 28 13:42:09 1992 John Gilmore (gnu@cygnus.com) 492160484Sobrien 492260484Sobrien * coffcode.h (coff_write_object_contents): Zero timestamp field. 492360484Sobrien 492460484SobrienTue Oct 27 12:24:34 1992 Ian Lance Taylor (ian@cygnus.com) 492560484Sobrien 492660484Sobrien * coffcode.h (coff_swap_aux_out): set the fcnary info before 492760484Sobrien optionally setting the dimen info, since they are in the same 492860484Sobrien memory locations. Also zero out external auxent. 492960484Sobrien (coff_write_symbol): don't zero external auxent; now done in 493060484Sobrien coff_swap_aux_out. 493160484Sobrien 493260484SobrienFri Oct 23 13:55:35 1992 Ian Lance Taylor (ian@cygnus.com) 493360484Sobrien 493460484Sobrien * Check fclose return value for errors. 493560484Sobrien libbfd.h: bfd_cache_close now returns a boolean. 493660484Sobrien cache.c (bfd_cache_delete): return fclose success value. 493760484Sobrien (bfd_cache_close): return bfd_cache_delete return value. 493860484Sobrien opncls.c (bfd_close, bfd_close_all_done): return result of 493960484Sobrien bfd_cache_close. 494060484Sobrien 494160484SobrienFri Oct 23 10:32:36 1992 Steve Chamberlain (sac@thepub.cygnus.com) 494260484Sobrien 494360484Sobrien * seclet.c (rel): don't load sections without the SEC_LOAD bit. 494460484Sobrien 494560484SobrienThu Oct 15 10:16:35 1992 Steve Chamberlain (sac@thepub.cygnus.com) 494660484Sobrien 494760484Sobrien * coff-m68k.c (m68k_howto2type, SELECT_RELOC): new function to 494860484Sobrien work out a coff relocation type from a howto's attributes rather 494960484Sobrien than using the input r_type field. This fixes PR1677 and allows 495060484Sobrien conversion of a.out relocs to coff relocs. 495160484Sobrien 495260484Sobrien * coffcode.h (coff_write_relocs): if supplied a relocation 495360484Sobrien relative to an absolute symbol, use the right symbol index. 495460484Sobrien 495560484Sobrien * reloc.c (bfd_perform_relocation): do a partial link for coff 495660484Sobrien relocs right. 495760484Sobrien 495860484SobrienFri Oct 23 08:15:56 1992 Ian Lance Taylor (ian@cygnus.com) 495960484Sobrien 496060484Sobrien * changes to support i386-sysv with shared libraries: 496160484Sobrien * coffcode.h (sec_to_styp_flags): if TWO_DATA_SECS is defined, 496260484Sobrien check for .data2; if _LIB is defined, check for it; map 496360484Sobrien SEC_NEVER_LOAD to STYP_NOLOAD. 496460484Sobrien (styp_to_sec_flags): map STYP_NOLOAD to SEC_NEVER_LOAD. 496560484Sobrien (make_a_section_from_file): if TWO_DATA_SECS, accept .data2. 496660484Sobrien (coff_write_object_contents): force vaddr of .lib to 0; set scnptr 496760484Sobrien if section has contents, not just if it is loadable; if 496860484Sobrien TWO_DATA_SECS, check for .data2 496960484Sobrien (coff_set_section_contents): set vma of .lib section to number of 497060484Sobrien .lib sections. 497160484Sobrien * coff-i386.c: define TWO_DATA_SECS; use a special CALC_ADDEND; 497260484Sobrien don't define coff_write_armap to bsd_write_armap. 497360484Sobrien * hosts/i386v.h: don't include <utime.h>, since it is not provided 497460484Sobrien by SVR3.2. 497560484Sobrien 497660484SobrienThu Oct 22 22:40:20 1992 Brendan Kehoe (brendan@lisa.cygnus.com) 497760484Sobrien 497860484Sobrien * solaris2.h: Get the definition of alloca from alloca.h if we 497960484Sobrien aren't using gcc. 498060484Sobrien 498160484SobrienThu Oct 22 03:07:28 1992 John Gilmore (gnu@cygnus.com) 498260484Sobrien 498360484Sobrien * configure.in (i960-*-{aout,bout}): Support these. 498460484Sobrien 498560484SobrienWed Oct 21 03:46:34 1992 John Gilmore (gnu@cygnus.com) 498660484Sobrien 498760484Sobrien * config/a29k-aout.mt (DEFAULT_TARGET): Set to one that exists. 498860484Sobrien 498960484SobrienThu Oct 15 15:05:39 1992 Per Bothner (bothner@cygnus.com) 499060484Sobrien 499160484Sobrien * apollo68.h, apollov68.h, hp300.h, i386v.h, irix3.h: Remove 499260484Sobrien no-longer-used definitions of L_SET and L_INCR. 499360484Sobrien * i386linux.h: Tweaks to smooth Linux build. 499460484Sobrien 499560484SobrienThu Oct 15 01:32:22 1992 John Gilmore (gnu@cygnus.com) 499660484Sobrien 499760484Sobrien * seclet.h: Add enum tag to bfd_seclet_enum_type. 499860484Sobrien 499960484Sobrien * bfd-in.h (file_ptr): Update comments, make FIXME re off_t. 500060484Sobrien 500160484Sobrien * aout-adobe.c, aoutf1.h, archive.c, bout.c, coff-rs6000.c, 500260484Sobrien coffcode.h, elf.c, ieee.c, libaout.h, libbfd.c, oasys.c, 500360484Sobrien sco-core.c: Lint: Second argument of bfd_seek is always file_ptr. 500460484Sobrien Third argument is SEEK_SET or SEEK_CUR. Result is always 0 or -1. 500560484Sobrien 500660484Sobrien * aout-adobe.c, aoutf1.h, aoutx.h, bout.c coff-m68k.c, coff-z8k.c, 500760484Sobrien coffcode.h, elf.c, libaout.h, libbfd-in.h, srec.c: Lint. 500860484Sobrien 500960484SobrienFri Oct 9 03:46:37 1992 John Gilmore (gnu@cygnus.com) 501060484Sobrien 501160484Sobrien * configure.host: New file, contains mapping of host configs 501260484Sobrien to host support file names for bfd, binutils, opcodes. 501360484Sobrien * configure.in: Use it. 501460484Sobrien * i386aout.c: Cleanup, dump TARGET_IS_LITTLE_ENDIAN_P. 501560484Sobrien * i386bsd.c: Cleanup, reformat. 501660484Sobrien * config/i386-bsd.mt: Comment changes. 501760484Sobrien * config/i386bsd.mh: New file for core file support. 501860484Sobrien * hosts/i386bsd.h: Merge changes from Peter Schauer. 501960484Sobrien * bout.c (ALIGN): Rename to ALIGNER, since system header files 502060484Sobrien on BSD 4.4 define ALIGN (sigh!). 502160484Sobrien 502260484SobrienThu Oct 8 22:18:10 1992 Mark Eichin (eichin at tweedledumber.cygnus.com) 502360484Sobrien 502460484Sobrien * libaout.h (aout_backend_data): added exec_header_not_counted 502560484Sobrien field. For ZMAGIC files only, when text_includes_header is set, by 502660484Sobrien default the length of the exec header is counted in the text 502760484Sobrien section size. For go32, exec header is mapped in but does *not* 502860484Sobrien contribute to the size of section. 502960484Sobrien * aoutx.h (aout_adjust_sizes_and_vmas): if exec_header_not_counted 503060484Sobrien is not set, but ztih is, add the size of the exec header to the 503160484Sobrien recorded size of the text section. 503260484Sobrien * aoutf1.h (sunos4_aout_backend): clear exec_header_not_counted. 503360484Sobrien * i386aout.c (i386aout_backend_data): set exec_header_not_counted. 503460484Sobrien Also set text_includes_header. 503560484Sobrien * aout-target.h (*_backend_data): cleare exec_header_not_counted 503660484Sobrien by default in MY(backend_data). 503760484Sobrien 503860484SobrienThu Oct 8 18:12:49 1992 Ken Raeburn (raeburn@cygnus.com) 503960484Sobrien 504060484Sobrien * aout-target.h (callback): Don't define this function if it won't be 504160484Sobrien used. 504260484Sobrien 504360484Sobrien * aoutx.h (some_aout_object_p): Restore old aout_data value if this 504460484Sobrien type doesn't match. Don't lose if file sections have already been 504560484Sobrien created. 504660484Sobrien (set_arch_mach): Set reloc_entry_size. 504760484Sobrien (slurp_symbol_table): Use bfd_h_get_{16,8} for reaeding symbol data. 504860484Sobrien 504960484Sobrien * hosts/i386bsd.h: New file. 505060484Sobrien * configure.in: Recognize i[34]86-*-bsd host. 505160484Sobrien 505260484Sobrien * aout-target.h (callback, write_object_contents): Delete unused 505360484Sobrien variables. 505460484Sobrien 505560484Sobrien * aoutx.h (reloc_type_lookup): New function. 505660484Sobrien * aout-target.h (MY_reloc_howto_type_lookup): Use it as default. 505760484Sobrien * aoutf1.h (sunos4_reloc_type_lookup): Deleted. 505860484Sobrien (MY_reloc_howto_type_lookup): Don't define it. 505960484Sobrien 506060484Sobrien * aoutx.h (adjust_sizes_and_vmas): Don't bother with padding for 506160484Sobrien OMAGIC files. 506260484Sobrien (slurp_symbol_table): Use header byte order, not target byte 506360484Sobrien order, for reading symbol data. 506460484Sobrien 506560484SobrienThu Oct 8 17:33:39 1992 John Gilmore (gnu@cygnus.com) 506660484Sobrien 506760484Sobrien * configure.in: Undo some brain damage in the host section. 506860484Sobrien * configure.in: Reformat the target section, test many configs. 506960484Sobrien * Makefile.in (make): Remove obsolete `make make'. 507060484Sobrien * aoutx.h (some_aout_object_p): Make defines line up. 507160484Sobrien 507260484SobrienThu Oct 8 08:52:48 1992 Steve Chamberlain (sac@thepub.cygnus.com) 507360484Sobrien 507460484Sobrien Now a bfd knows whether underscores are normally prepended 507560484Sobrien to symbols in its file format. 507660484Sobrien 507760484Sobrien * aout-adobe.c, aout-target.h, bout.c, coff-a29k.c, coff-h8300.c, 507860484Sobrien coff-z8k.c: targets set so they have leading underscore 507960484Sobrien * coff-i386.c, coff-i960.c, coff-m68k.c, coff-mips.c, coff-m88k.c, 508060484Sobrien coff-rs6000.c, coff-we32k.c, elf.c, ieee.c, srec.c: targets set 508160484Sobrien without leading underscore flag 508260484Sobrien * targets.c: add symbol leading char to xvec description 508360484Sobrien * bfd-in.h (bfd_get_symbol_leading_char): new macro. 508460484Sobrien 508560484SobrienMon Oct 5 14:32:55 1992 Per Bothner (bothner@cygnus.com) 508660484Sobrien 508760484Sobrien * archive.c: Make errno global. 508860484Sobrien * archive.c (_bfd_write_archive_contents): If read fails (and 508960484Sobrien errno!=0) set bfd_error to malformed_archive (since this probably 509060484Sobrien indicates a truncated archive), rather than system_call_error. 509160484Sobrien 509260484SobrienMon Oct 5 03:33:39 1992 Mark Eichin (eichin at tweedledumber.cygnus.com) 509360484Sobrien 509460484Sobrien * Makefile.in: added rules for i386bsd.c 509560484Sobrien * i386bsd.c: new file, supporting 386bsd. 509660484Sobrien * configure.in: recognize i386-*-bsd target. 509760484Sobrien * config/i386-bsd.mt: new file - 386bsd target configuration. 509860484Sobrien 509960484SobrienThu Oct 1 17:51:07 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 510060484Sobrien 510160484Sobrien * configure.in: re-arrange host section to use *-*-* notation, 510260484Sobrien clean up some of the target section as well 510360484Sobrien 510460484Sobrien * seclet.c: cast result of bfd_get_relocated_section_contents to 510560484Sobrien avoid compiler warnings 510660484Sobrien 510760484SobrienTue Sep 29 13:24:09 1992 Ken Raeburn (raeburn@cygnus.com) 510860484Sobrien 510960484Sobrien * coffcode.h (coff_section_symbol): Create section if it doesn't 511060484Sobrien already exist. 511160484Sobrien 511260484Sobrien * bout.c: Removed some unused variables. 511360484Sobrien 511460484SobrienTue Sep 29 08:30:21 1992 Ian Lance Taylor (ian@cygnus.com) 511560484Sobrien 511660484Sobrien * Portability fixes from p3: 511760484Sobrien coffcode.h (coff_write_relocs): removed sanity check until it 511860484Sobrien works on all targets (per advice from sac). 511960484Sobrien config/hp9000.mh: new file to define USG. 512060484Sobrien hppa.c: #undef hppa before the JUMP_TABLE. 512160484Sobrien hosts/hppahpux.h: #define NATIVE_HPPAHPUX_COMPILER if not 512260484Sobrien __STDC__. 512360484Sobrien targets.c (bfd_target_list): if NATIVE_HPPAHPUX_COMPILER, make 512460484Sobrien local variable target volatile to avoid mysterious bug in 512560484Sobrien HP9000/700 cc. 512660484Sobrien 512760484SobrienSat Sep 26 03:58:49 1992 John Gilmore (gnu@cygnus.com) 512860484Sobrien 512960484Sobrien * config/hppabsd.mh, config.hppahpux.mh: Remove various bogosity. 513060484Sobrien * hosts/hppahpux.h: Remove bcopy and index circumventions. 513160484Sobrien 513260484SobrienFri Sep 25 22:36:52 1992 John Gilmore (gnu@cygnus.com) 513360484Sobrien 513460484Sobrien * coff-z8k.c (func_da, func_jr): Lint. 513560484Sobrien * coffcode.h: Use memset rather than bzero. 513660484Sobrien * elf.c: Use memcpy rather than bcopy. 513760484Sobrien * tekhex.c: Use memset rather than bzero. 513860484Sobrien 513960484SobrienFri Sep 25 19:14:48 1992 John Gilmore (gnu@cygnus.com) 514060484Sobrien 514160484Sobrien Add Adobe a.out support. 514260484Sobrien 514360484Sobrien * aout-adobe.c: New file. So far, only reads a.out.adobe. FIXME. 514460484Sobrien * config/adobe.mt: Add. 514560484Sobrien * configure.in (*-adobe-* target): Add. 514660484Sobrien * targets.c (a_out_adobe_vec): Add. 514760484Sobrien * Makefile.in: add aout-adobe.c. 514860484Sobrien 514960484Sobrien * configure.in: Put two dashes in all entries to be matched. 515060484Sobrien Add comments to remind people to do this. 515160484Sobrien Reorder all entries that match manufacturer names, to occur 515260484Sobrien last, so they will only be matched if no more specific match 515360484Sobrien occurs. Remove manufacturers `aout', `bout', `coff', and `elf'. 515460484Sobrien 515560484SobrienFri Sep 25 15:03:22 1992 Brendan Kehoe (brendan@rtl.cygnus.com) 515660484Sobrien 515760484Sobrien * elf.c (section_from_elf_index): Return bfd_abs_section, not 0, 515860484Sobrien since we should never have a NULL section. 515960484Sobrien (elf_slurp_symbol_table): If st_shndx doesn't match any of our 516060484Sobrien tests, set the section to bfd_abs_section. 516160484Sobrien 516260484SobrienFri Sep 25 11:11:57 1992 Steve Chamberlain (sac@thepub.cygnus.com) 516360484Sobrien 516460484Sobrien * coff-z8k.c: getting closer 516560484Sobrien * coffcode.h (coff_get_relocated_section_contents): allow 516660484Sobrien EXTRA_CASES hooks for different arches to provide different reloc 516760484Sobrien types. 516860484Sobrien * seclet.h: #ifndef around it to allow multiple inclusion 516960484Sobrien * srec.c: minor doc fix 517060484Sobrien 517160484SobrienMon Sep 21 14:33:58 1992 Ian Lance Taylor (ian@cygnus.com) 517260484Sobrien 517360484Sobrien * hosts/hp9000.h, hosts/irix3.h: changes from WRS. 517460484Sobrien 517560484SobrienSun Sep 20 08:48:25 1992 Fred Fish (fnf@cygnus.com) 517660484Sobrien 517760484Sobrien * configure.in: Use i386-elf for all i386/i486 sysv4 hosts, not 517860484Sobrien just ncr. 517960484Sobrien 518060484SobrienThu Sep 17 06:40:46 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 518160484Sobrien 518260484Sobrien * bout.c (b_out_slurp_reloc_table): Clear howto field before 518360484Sobrien filling in reloc, in case immediately following code doesn't set 518460484Sobrien it. 518560484Sobrien 518660484SobrienFri Sep 11 15:37:06 1992 Ian Lance Taylor (ian@cygnus.com) 518760484Sobrien 518860484Sobrien * coffcode.h (coff_renumber_symbols): set the last renumbered 518960484Sobrien symbol pointer to NULL, as expected by coff_write_linenumbers. 519060484Sobrien (coff_write_relocs): apparently a non-zero addend is OK for reloc 519160484Sobrien type R_IHCONST used on the 29k. 519260484Sobrien 519360484SobrienThu Sep 10 13:28:24 1992 John Gilmore (gnu@cygnus.com) 519460484Sobrien 519560484Sobrien * opncls.c (bfd_fdopenr): Determine whether to fdopen for 519660484Sobrien update, based on how the underlying file was opened. Obsoletes 519760484Sobrien FASCIST_FDOPEN. 519860484Sobrien * hosts/rs6000.h, hosts/tahoe.h, hosts/vaxbsd.h: Remove 519960484Sobrien all FASCIST_FDOPEN config defines. 520060484Sobrien 520160484SobrienTue Sep 8 21:37:58 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 520260484Sobrien 520360484Sobrien * sparc-opc.c: Moved to opcodes library, now that we have one. 520460484Sobrien * Makefile: Don't compile it. 520560484Sobrien 520660484SobrienTue Sep 8 10:10:34 1992 Ian Lance Taylor (ian@cygnus.com) 520760484Sobrien 520860484Sobrien * aoutx.h: adjust_sizes_and_vmas did not return anything. 520960484Sobrien 521060484SobrienThu Sep 3 19:29:04 1992 Per Bothner (bothner@rtl.cygnus.com) 521160484Sobrien 521260484Sobrien * section.c (bfd_set_section_flags): Remove a sanity check. 521360484Sobrien It is unfortunately broken, and prevents strip from working. 521460484Sobrien 521560484SobrienThu Sep 3 16:14:40 1992 Jim Wilson (wilson@sphagnum.cygnus.com) 521660484Sobrien 521760484Sobrien * sparc-opc.c (condr): Remove extraneous, but harmless, backlash 521860484Sobrien created by last change. 521960484Sobrien 522060484SobrienThu Sep 3 13:52:38 1992 Per Bothner (bothner@rtl.cygnus.com) 522160484Sobrien 522260484Sobrien * reloc.c (reloc_howto_struct): Make size field be unsigned. 522360484Sobrien * bfd-in.h: Bump to version 2.0. 522460484Sobrien 522560484SobrienThu Sep 3 09:05:37 1992 Stu Grossman (grossman at cygnus.com) 522660484Sobrien 522760484Sobrien * bout.c, cpu-z8k.c: Use enums when initializing structs to keep 522860484Sobrien braindamaged HP/Apollo compiler happy. 522960484Sobrien 523060484SobrienWed Sep 2 02:53:29 1992 John Gilmore (gnu@cygnus.com) 523160484Sobrien 523260484Sobrien * format.c: Fix description of search for matching target. 523360484Sobrien * aoutx.h (some_aout_object_p): Set SEC_CODE and SEC_DATA. 523460484Sobrien * targets.c: Update description of search for matching target. 523560484Sobrien * Makefile.in (do_clean, clean): Fix infant mortality typo. 523660484Sobrien (docdir): Set to ./doc, not ${srcdir}/doc, which has no makefile. 523760484Sobrien (z8k and we32k files): `*.o: *.c': avoid Sun Make bug. 523860484Sobrien 523960484SobrienWed Sep 2 00:26:32 1992 Per Bothner (bothner@rtl.cygnus.com) 524060484Sobrien 524160484Sobrien * Makefile.in: Added mostlyclean/clean/distclean rules. 524260484Sobrien 524360484SobrienTue Sep 1 13:38:40 1992 Per Bothner (bothner@cygnus.com) 524460484Sobrien 524560484Sobrien * targets.c (target_vector): Take out oasys (unless that is 524660484Sobrien the default): Because there is no magic number in archives, 524760484Sobrien there can be annoying target mis-matches. 524860484Sobrien 524960484SobrienMon Aug 31 10:11:37 1992 Jim Wilson (wilson@sphagnum.cygnus.com) 525060484Sobrien 525160484Sobrien * sparc-opc.c: Rigorously updated to match architecture manual. 525260484Sobrien 525360484SobrienMon Aug 31 08:07:58 1992 Steve Chamberlain (sac@thepub.cygnus.com) 525460484Sobrien 525560484Sobrien * aoutx.h (aout<n>swap_ext_reloc_out), bout.c 525660484Sobrien (b_out_squirt_out_relocs): fix bug 1506 where abs symbols attached 525760484Sobrien to the built-in abs_section were not written out correctly. 525860484Sobrien 525960484SobrienFri Aug 28 16:29:15 1992 Ian Lance Taylor (ian@cygnus.com) 526060484Sobrien 526160484Sobrien * archive.c (bfd_slurp_bsd_armap): if the symdef_count is too 526260484Sobrien large, assume we're using a swapped byte order and fail with 526360484Sobrien wrong_format rather than dumping core. 526460484Sobrien 526560484SobrienThu Aug 27 13:05:28 1992 Brendan Kehoe (brendan@cygnus.com) 526660484Sobrien 526760484Sobrien Add preliminary support for the we32k: 526860484Sobrien 526960484Sobrien * Makefile.in, archures.c, coffocode.h, configure.in, targets.c: 527060484Sobrien Minor edits. 527160484Sobrien * coff-we32k.c, cpu-we32k.c, config/we32k.mt, hosts/we32k.h: New files. 527260484Sobrien 527360484SobrienWed Aug 26 14:20:16 1992 Steve Chamberlain (sac@thepub.cygnus.com) 527460484Sobrien 527560484Sobrien * bout.c: added support for relaxable alignment relocs. 527660484Sobrien 527760484Sobrien * seclet.c (rel, seclet_dump_seclet, seclet_dump): get the app to 527860484Sobrien pass down pointer to play area rather than use alloca 527960484Sobrien 528060484Sobrien * cpu-z8k.c (compatible): made static to reduce name space 528160484Sobrien polution. 528260484Sobrien 528360484SobrienTue Aug 25 08:39:10 1992 Steve Chamberlain (sac@thepub.cygnus.com) 528460484Sobrien 528560484Sobrien Add basic support for the z8k: 528660484Sobrien 528760484Sobrien * Makefile.in, archures.c, coffcode.h, configure.in, reloc.c, 528860484Sobrien section.c, targets.c, 528960484Sobrien 529060484Sobrien * syms.c: move mis-inserted patch. 529160484Sobrien 529260484SobrienFri Aug 14 15:39:29 PDT 1992 Howard Chu (hyc@hanauma.jpl.nasa.gov) 529360484Sobrien 529460484Sobrien Documentation fixes: 529589857Sobrien * ctor.c, format.c, section.c, reloc.c: append " -" to item tags. 529660484Sobrien * reloc.c, section.c, syms.c, targets.c: add DOCDD before @node 529760484Sobrien comments. 529860484Sobrien * reloc.c: break out addend item from surrounding text. 529960484Sobrien 530060484Sobrien * doc.str (DOCDD): Defined. Adds text to output. 530160484Sobrien (bodytext): Put bulletize before kill_bogus_lines. 530260484Sobrien * chew.c (bulletize): End itemization after a blank line, to 530360484Sobrien prevent following text from being swallowed up in an item. 530460484Sobrien 530560484SobrienMon Aug 24 20:50:22 1992 Stu Grossman (grossman at cygnus.com) 530660484Sobrien 530760484Sobrien * configure.in: Add sparclite as a target. 530860484Sobrien 530960484SobrienMon Aug 24 12:06:31 1992 Steve Chamberlain (sac@thepub.cygnus.com) 531060484Sobrien 531160484Sobrien * ieee.c (ieee_get_symtab): always null terminate the symbol list, 531260484Sobrien lint. 531360484Sobrien 531460484Sobrien * coffcode.h (coff_add_missing_symbols): if symbols don't come 531560484Sobrien from a coff file (csym is null), dont deref them 531660484Sobrien 531760484Sobrien * ieee.c (parse_expression): get the answer right when adding an 531860484Sobrien abs+(sec+off), (ieee_generic_stat_arch_elt): call ieee_object_p 531960484Sobrien on elts so that filename is filled in. 532060484Sobrien 532160484SobrienThu Aug 20 19:05:48 1992 Ken Raeburn (raeburn@cygnus.com) 532260484Sobrien 532360484Sobrien * bout.c (howto_align_table): New set of relocs, with enough 532460484Sobrien data for "objdump -r" to work. 532560484Sobrien (b_out_reloc_type_lookup): Recognize alignment relocs. 532660484Sobrien 532760484SobrienTue Aug 18 12:57:45 1992 Ian Lance Taylor (ian@cygnus.com) 532860484Sobrien 532960484Sobrien * Makefile.in: added FLAGS_TO_PASS, and used it for all recursive 533060484Sobrien invocations of make. Also, always create installation 533160484Sobrien directories. 533260484Sobrien 533360484Sobrien * config/apollov68.mh: removed -g from CC definition. 533460484Sobrien 533560484SobrienMon Aug 17 13:40:08 1992 Ken Raeburn (raeburn@cygnus.com) 533660484Sobrien 533760484Sobrien * config/decstation.mh (HDEFINES): Specify "-G 4" to avoid 533860484Sobrien overflowing gp-offset range. 533960484Sobrien 534060484SobrienMon Aug 17 11:44:28 1992 Steve Chamberlain (sac@thepub.cygnus.com) 534160484Sobrien 534260484Sobrien * srec.c (srec_set_section_contents): don't write out sections 534360484Sobrien without the LOAD and ALLOC attributes 534460484Sobrien 534560484SobrienMon Aug 17 11:55:07 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) 534660484Sobrien 534760484Sobrien * archures.c, cpu-m68k.c, cpu-sparc.c: Undo 16 June changes. 534860484Sobrien * libaout.h (struct aout_backend_data): New callback "set_sizes". 534960484Sobrien * aout-target.h (callback): Don't set page/seg sizes. 535060484Sobrien (mkobject): Ditto. 535160484Sobrien (set_sizes): New routine. 535260484Sobrien (backend_data): Point to it. 535360484Sobrien * aoutf1.h (sunos4_set_sizes): Heed architecture when setting sizes. 535460484Sobrien (sunos4_aout_backend): Point to it. 535560484Sobrien * aoutx.h (set_arch_mach): Call set_sizes callback. 535660484Sobrien 535760484SobrienFri Aug 14 19:22:18 1992 Per Bothner (bothner@cygnus.com) 535860484Sobrien 535960484Sobrien * aout-target.h: Make _bfd_slurp_extended_name_table be 536060484Sobrien the default. Given that we *write* the suckers (for long 536160484Sobrien archive member names), we really ought to be able to read them! 536260484Sobrien * trad-core.c: Don't include <machine/reg.h>. It doesn't 536360484Sobrien seem to be needed, and many machines don't have it. 536460484Sobrien 536560484SobrienThu Aug 13 09:53:39 1992 Steve Chamberlain (sac@thepub.cygnus.com) 536660484Sobrien 536760484Sobrien * coff-m68k.c (vector): read and write archives in coff format. 536860484Sobrien 536960484SobrienTue Aug 11 12:19:42 1992 Ken Raeburn (raeburn@cygnus.com) 537060484Sobrien 537160484Sobrien * opc-sparc.c: New file. 537260484Sobrien 537360484SobrienSat Aug 8 23:15:35 1992 Fred Fish (fnf@cygnus.com) 537460484Sobrien 537560484Sobrien * bout.c (bfd_reloc_status_type, callj_callback): Cast void* 537660484Sobrien pointers to bfd_byte* before performing arithmetic on them. Such 537760484Sobrien use with bare void* pointers is a gcc extension. 537860484Sobrien * cache.c (bfd_cache_delete): Forward decl with prototype form. 537989857Sobrien * archive.c (normalize): Add to CONST to match actual usages with 538060484Sobrien CONST. 538160484Sobrien 538260484SobrienMon Aug 3 00:35:29 1992 Fred Fish (fnf@cygnus.com) 538360484Sobrien 538460484Sobrien * configure.in: Recognize i486 host cpu, and use i386-elf 538560484Sobrien for i486-ncr-sysv4. 538660484Sobrien 538760484SobrienSat Aug 1 13:49:59 1992 Fred Fish (fnf@cygnus.com) 538860484Sobrien 538960484Sobrien * config/stratus.mt (CC): Remove definition. 539060484Sobrien * elf.c (bfd_section_from_shdr): Test for the possibility that 539160484Sobrien section_from_elf_index returns NULL and don't dereference it. 539260484Sobrien 539360484SobrienMon Jul 20 02:46:09 1992 D. V. Henkel-Wallace (gumby@cygnus.com) 539460484Sobrien 539560484Sobrien * add hppa_data to bfd tdata (indirectly via sef). 539660484Sobrien 539760484Sobrien * config/hppahpux.mh: hpux is -DUSG (patch by sef) 539860484Sobrien 539960484SobrienSat Jul 18 15:50:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 540060484Sobrien 540160484Sobrien * configure.in: error messages to stderr, not stdout 540260484Sobrien 540360484SobrienFri Jul 17 18:32:46 1992 K. Richard Pixley (rich@rtl.cygnus.com) 540460484Sobrien 540560484Sobrien * bfd.c, cache.c, coff-a29k.c, coff-i386.c, coff-i960.c, 540660484Sobrien coff-m68k.c, coff-m88k.c, demo64.c, libaout.h, libbfd.c, 540760484Sobrien oasys.c, opncls.c, sunos.c, targets.c: removed rcsid's. 540860484Sobrien 540960484SobrienFri Jul 17 17:06:56 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 541060484Sobrien 541160484Sobrien * configure.in: recognize hppa* instead of hppa 541260484Sobrien 541360484SobrienThu Jul 16 16:39:25 1992 Steve Chamberlain (sac@thepub.cygnus.com) 541460484Sobrien 541560484Sobrien * coff-m68k.c: added R_RELLONG_NEG reloc type, and changed 541660484Sobrien RTYPE2HOWTO to cope with same. 541760484Sobrien * reloc.c (bfd_perform_relocation): added support for size of -2 541860484Sobrien (subtract a word reloc type). Updated doc. 541960484Sobrien 542060484SobrienThu Jul 16 16:28:09 1992 K. Richard Pixley (rich@rtl.cygnus.com) 542160484Sobrien 542260484Sobrien * Makefile.in: merged changes from progressive, removed rcsid. 542360484Sobrien 542460484Sobrien * archures.c, archive.c, Makefile.dos: removed rcsid. 542560484Sobrien 542660484SobrienThu Jul 16 08:08:25 1992 Steve Chamberlain (sac@thepub.cygnus.com) 542760484Sobrien 542860484Sobrien * bfd-in.h : add BFD_IS_RELAXABLE flag 542960484Sobrien * bout.c (bout_swap_exec_header_[in_out]): new field in exec 543060484Sobrien header e_relaxable, major hackery in callbacks 543160484Sobrien * libaout.h : add space for a_relaxable. 543260484Sobrien * seclet.c (rel): don't relax empty sections 543360484Sobrien 543460484Sobrien 543560484SobrienWed Jul 15 07:57:46 1992 Steve Chamberlain (sac@thepub.cygnus.com) 543660484Sobrien 543760484Sobrien * section.c (STD_SECTION): add some casts to the initializers for 543860484Sobrien dumb compilers 543960484Sobrien 544060484SobrienTue Jul 14 14:06:28 1992 Stu Grossman (grossman at cygnus.com) 544160484Sobrien 544260484Sobrien * rs6000-core.c (rs6000coff_core_p): Greatly simplify expression, 544360484Sobrien and add appropriate casts to keep (picayune) aix-cc happy. 544460484Sobrien 544560484SobrienMon Jul 13 05:06:51 1992 John Gilmore (gnu at cygnus.com) 544660484Sobrien 544760484Sobrien * elf.c (elf_slurp_symbol_table): Now 2nd arg is where to write 544860484Sobrien symbol pointers. Punt expensive & useless bfd_realloc. Use 544960484Sobrien malloc for raw symbols, and free it before returning. 545060484Sobrien (bfd_section_from_shdr): Do not slurp symbol table until politely 545160484Sobrien asked. Do not even slurp string tables. 545260484Sobrien (elf_get_symtab_upper_bound): Count 'em without reading them. 545360484Sobrien (elf_get_symtab): This is how to politely ask. Schlurp! 545460484Sobrien This should probably just *become* elf_slurp_symbol_table, FIXME. 545560484Sobrien 545660484SobrienWed Jul 8 16:24:33 1992 Steve Chamberlain (sac@thepub.cygnus.com) 545760484Sobrien 545860484Sobrien * archive.c (bsd_write_armap): write the timestamp of the 545960484Sobrien archive header to be just a little bit later than the timestamp of 546060484Sobrien the file, otherwise the linker will complain that the index is 546160484Sobrien out of date. 546260484Sobrien 546360484SobrienTue Jul 7 00:23:23 1992 Fred Fish (fnf@cygnus.com) 546460484Sobrien 546560484Sobrien * configure.in: Add m68k-ericsson-*. 546660484Sobrien 546760484SobrienSat Jul 4 03:29:41 1992 John Gilmore (gnu at cygnus.com) 546860484Sobrien 546989857Sobrien * syms.c: Define BSF_FILE, update BSF_SECTION_SYM desc. 547060484Sobrien * elf.c: Remove unconditional debug printf's. 547160484Sobrien (elf_write_object_contents, elf_slurp_symbol_table): Handle 547260484Sobrien BSF_SECTION_SYM <=> STT_SECTION, BSF_FILE <=> STT_FILE. 547360484Sobrien (elf_slurp_symbol_table): Hand out symbols in forward, not 547460484Sobrien reverse order. Simplify duplicate code. 547560484Sobrien 547660484SobrienFri Jul 3 20:23:34 1992 Fred Fish (fnf@cygnus.com) 547760484Sobrien 547860484Sobrien * elf.c: Remove "(void)" casts from function calls where the 547960484Sobrien return value is ignored, in accordance with GNU coding standards. 548060484Sobrien 548160484SobrienTue Jun 30 16:49:12 1992 Fred Fish (fnf@cygnus.com) 548260484Sobrien 548360484Sobrien * hppa.c: Apply John's standard fix to avoid "empty translation 548460484Sobrien unit" warnings from some ANSI-C compilers. 548560484Sobrien 548660484SobrienThu Jun 25 04:39:25 1992 John Gilmore (gnu at cygnus.com) 548760484Sobrien 548860484Sobrien * hosts/solaris2.h: Configure same as sysv4. 548960484Sobrien 549060484SobrienTue Jun 23 21:54:44 1992 Fred Fish (fnf@cygnus.com) 549160484Sobrien 549260484Sobrien * libbfd.h, libbfd-in.h (bfd_seek): Make prototype match definition. 549360484Sobrien * reloc.c (bfd_default_reloc_type_lookup): Make cast on return 549460484Sobrien type match actual return type. 549589857Sobrien * section.c (elf_print_symbol): Make CONST. 549660484Sobrien 549760484SobrienMon Jun 22 17:35:24 1992 Per Bothner (bothner@cygnus.com) 549860484Sobrien 549960484Sobrien * i386linux.c, hosts/i386linux.h, config/i386-linux.mt: 550060484Sobrien New files, for Linux (a free Unix clone for 386 machines). 550160484Sobrien * Makefile.in, configure.in, targets.c: Update accordingly. 550260484Sobrien 550360484SobrienFri Jun 19 20:23:21 1992 Steve Chamberlain (sac@thepub.cygnus.com) 550460484Sobrien Lints for bfd_reloc_code_type->bfd_reloc_code_real_type, and 550560484Sobrien correct calling of howto special functions and fixes from Raeburn 550660484Sobrien for gas<>bfdness 550760484Sobrien * archures.c: nuke bfd_reloc_code_type 550860484Sobrien * bout.c, cpu-h8300.c, coff-i960.c, coff-m88k.c: special function lint 550960484Sobrien * coffcode.h (styp_to_sec_flags): STYP_INFO is marked as 551060484Sobrien SEC_NEVER_LOAD, various other bfdgas newness 551160484Sobrien * reloc.c->libbfd.h: change protype of bfd_default_reloc_type_lookup 551260484Sobrien * targets.c: change jump table vector to above 551360484Sobrien 551460484Sobrien 551560484SobrienFri Jun 19 19:00:45 1992 John Gilmore (gnu at cygnus.com) 551660484Sobrien 551760484Sobrien * elf.c (bfd_elf_find_section): Mark as INTERNAL_FUNCTION so 551860484Sobrien its prototype will be included in libbfd.h. Change result type 551960484Sobrien to struct * (rather than equivalent typedef) so it can be used in 552060484Sobrien the prototype, where they typedef won't be known. 552160484Sobrien * libbfd.h: Updated version. 552260484Sobrien 552360484SobrienFri Jun 19 15:21:56 1992 Stu Grossman (grossman at cygnus.com) 552460484Sobrien 552560484Sobrien * Makefile.in, archures.c, configure.in, cpu-hppa.c, hppa.c, libhppa.h, 552660484Sobrien targets.c: HPPA merge. 552760484Sobrien 552860484SobrienFri Jun 19 12:21:38 1992 John Gilmore (gnu at cygnus.com) 552960484Sobrien 553060484Sobrien * configure.in: Separate Solaris2 from SYSV4 on SPARC. 553160484Sobrien * config/solaris2.mh: Kludge around Sun compiler bug. 553260484Sobrien 553360484SobrienWed Jun 17 14:02:46 1992 Stu Grossman (grossman at cygnus.com) 553460484Sobrien 553560484Sobrien * libaout.h (aout_backend_data): Change defs of two bitfields to 553660484Sobrien be unsigned chars instead to get around rs6000 compiler problem. 553760484Sobrien 553860484SobrienWed Jun 17 13:55:31 1992 Fred Fish (fnf@cygnus.com) 553960484Sobrien 554060484Sobrien * elf.c (bfd_section_from_shdr, elf_slurp_symbol_table): 554160484Sobrien Correct misconception that there can be only one symbol table. 554260484Sobrien Only call elf_slurp_symbol_table on the full symbol table, not 554360484Sobrien the dynamic one which is only a subset of the full one. 554460484Sobrien 554560484SobrienWed Jun 17 15:54:57 1992 Ken Raeburn (Raeburn@Cygnus.COM) 554660484Sobrien 554760484Sobrien * coffcode.h (coff_compute_section_file_positions): For I960, 554860484Sobrien don't align sections in file. 554960484Sobrien 555060484SobrienTue Jun 16 06:28:21 1992 Ken Raeburn (Raeburn@Cygnus.COM) 555160484Sobrien 555260484Sobrien * targets.c (struct bfd_target): Added field for target-specific 555360484Sobrien (but not file-specific) data, for distinguishing minor 555460484Sobrien characteristics between (e.g.) a.out formats. 555560484Sobrien 555660484Sobrien * section.c (struct sec): New field user_set_vma indicates vma 555760484Sobrien field should be heeded, not assumed to be unset. 555860484Sobrien (STD_SECTION): Initialize that field of standard sections to zero. 555960484Sobrien * bfd-in.h (bfd_set_section_vma): Set user_set_vma to true. 556060484Sobrien 556160484Sobrien * coffcode.h (coff_write_relocs): Write out swapped reloc, not 556260484Sobrien pre-swapped version. 556360484Sobrien 556460484Sobrien * archures.c (struct bfd_arch_info): Fixed order of comment and 556560484Sobrien field decl. New fields indicate size of page and segment for 556660484Sobrien architecture. 556760484Sobrien * cpu-m68k.c (N): Fill in values. 556860484Sobrien * cpu-sparc.c (arch_info_struct): Ditto. 556960484Sobrien 557060484Sobrien * libaout.h (struct aout_backend_data): Various bits of data (not 557160484Sobrien all used currently) with characteristics of a.out implementation. 557260484Sobrien Important field for now is text_includes_header, indicating that 557360484Sobrien the text section starts immediately after the file header, which 557460484Sobrien gets mapped in with it. 557560484Sobrien (struct aout_data): New fields indicate whether vma has been 557660484Sobrien adjusted yet (not yet used), and what magic number will be used in 557760484Sobrien the output file (should go away in favor of vma_adjusted). 557860484Sobrien (WRITE_HEADERS): Code for dealing with section sizes and related 557960484Sobrien header fields replaced with call to adjust_sizes_and_vmas. 558060484Sobrien * aoutx.h (some_aout_object_p): Fill in magic number field. 558160484Sobrien Set WP_TEXT flag for ZMAGIC as well as NMAGIC files. 558260484Sobrien (set_arch_mach): Set page size and segment size once CPU 558360484Sobrien type is known. 558460484Sobrien (adjust_sizes_and_vmas): New function; has much code moved 558560484Sobrien from set_section_contents and WRITE_HEADERS. Sets or adjusts vma 558660484Sobrien and size parameters, as well as many header fields, after deciding 558760484Sobrien on magic number for output file. Checks to ensure that this 558860484Sobrien adjustment has only been done once. 558960484Sobrien (set_section_contents): Call adjust_sizes_and_vmas instead of 559060484Sobrien doing much of the work here. 559160484Sobrien 559260484Sobrien * aout-target.h (MY_make_debug_symbol, MY_backend_data): Provide 559360484Sobrien default (null) values of these fields. 559460484Sobrien * aoutf1.h (sunos4_write_object_contents): Don't override a_text 559560484Sobrien value in exec header. 559660484Sobrien (sunos4_aout_backend, MY_backend_data): Define backend data 559760484Sobrien indicating file header is included in text section. 559860484Sobrien 559960484Sobrien * aoutf1.h (MY_reloc_howto_type_lookup): Fix typo. 560060484Sobrien 560160484Sobrien * hosts/sparc.h (abort, exit): Hide these names if compiling with 560260484Sobrien gcc version 2, to avoid warnings. 560360484Sobrien 560460484SobrienMon Jun 15 12:26:56 1992 Fred Fish (fnf@cygnus.com) 560560484Sobrien 560660484Sobrien * config/ncr3000.mh (INSTALL, RANLIB): Don't use /usr/ucb/install, 560760484Sobrien it's broken on ncr 3000's. Use simple "true" for RANLIB. 560860484Sobrien 560960484SobrienSat Jun 13 09:16:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com) 561060484Sobrien 561160484Sobrien * configure.in (m680[01234]0-wrs-*): Fix typo in match pattern. 561260484Sobrien 561360484SobrienFri Jun 12 19:48:34 1992 John Gilmore (gnu at cygnus.com) 561460484Sobrien 561560484Sobrien * section.c (STD_SECTION): Remove extra semicolon in declarations. 561660484Sobrien * configure.in: Rewrite target parsing to use simple format. 561760484Sobrien Handle sparc-sun-solaris2 configuration. 561860484Sobrien * aout64.h: Avoid ANSI C brain death warning. 561960484Sobrien * elf.c: Avoid trigraph (???) or /* in comments. 562060484Sobrien 562160484SobrienFri Jun 12 14:51:14 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 562260484Sobrien 562360484Sobrien * config/sysv4.mh: new file, RANLIB=echo 562460484Sobrien 562560484Sobrien * configure.in: handle Solaris2 as -sysv4 or -solaris2 562660484Sobrien 562760484SobrienThu Jun 11 00:52:03 1992 John Gilmore (gnu at cygnus.com) 562860484Sobrien 562960484Sobrien * elf.c (elf_obj_tdata): Merge elf_obj_tdata_struct and 563060484Sobrien elf_core_tdata_struct into a single common struct. Core files 563160484Sobrien wouldn't have worked at all without this. 563260484Sobrien (bfd_elf_find_section): New function for GDB's undercover use 563360484Sobrien to find string sections that BFD hides from it. 563460484Sobrien (elf_get_str_section): Avoid multiple alloc&reads for same data; 563560484Sobrien lint. 563660484Sobrien (elf_object_p, elf_core_file_p): Allocate internal file header 563760484Sobrien storage dynamically. 563860484Sobrien * bfd.c (union {...} tdata): Remove elf_core_tdata_struct. 563960484Sobrien * demo64.c: Prevent "empty translation unit" warnings from idiots. 564060484Sobrien 564160484SobrienTue Jun 9 17:15:26 1992 Fred Fish (fnf at cygnus.com) 564260484Sobrien 564360484Sobrien * config/{i386v4.mh, ncr3000.mh}: Update RANLIB, add INSTALL. 564460484Sobrien 564560484SobrienSat Jun 6 17:02:51 1992 John Gilmore (gnu at cygnus.com) 564660484Sobrien 564760484Sobrien * configure.in: Handle Solaris2 as *-sun-sysv4 or as *-sun-sunos5. 564860484Sobrien 564960484SobrienSun May 31 05:45:00 1992 david d `zoo' zuhn (zoo@cygnus.com) 565060484Sobrien 565160484Sobrien * configure.in: handle m680[01234]0 as aliases for m68k 565260484Sobrien 565360484SobrienTue May 26 16:50:59 1992 Steve Chamberlain (sac@thepub.cygnus.com) 565460484Sobrien 565560484Sobrien * coff-a29k.c: do byte relocs correctly 565660484Sobrien * coffcode.h (styp_to_sec_flags): never load INFO sections 565760484Sobrien * seclet.c (rel): don't relocate INFO sections 565860484Sobrien 565960484SobrienWed May 20 08:18:18 1992 Ken Raeburn (Raeburn@Cygnus.COM) 566060484Sobrien 566160484Sobrien * section.c (bfd_*_symbol, bfd_*_section): Initialize statically. 566260484Sobrien Make the symbols unmodifiable. 566360484Sobrien (bfd_section_init): Deleted. 566460484Sobrien * init.c (bfd_init): Don't call bfd_section_init. 566560484Sobrien 566660484Sobrien * section.c (bfd_set_section_contents): Ensure that range to be 566760484Sobrien written is within section boundaries. 566860484Sobrien (bfd_get_section_contents): Likewise. Don't bother dispatching if 566960484Sobrien size is zero. 567060484Sobrien 567160484Sobrien * libbfd.c (bfd_xmalloc): Text of error message should be const. 567260484Sobrien 567360484Sobrien * coff-i960.c (howto_table): Deleted. 567460484Sobrien (howto_rellong, howto_iprmed, howto_optcall): New vars; 567560484Sobrien interesting entries from old howto_table. 567660484Sobrien (RTYPE2HOWTO): Adjusted to use switch. 567760484Sobrien (coff_i960_reloc_type_lookup): New function. 567860484Sobrien 567960484Sobrien * coffcode.h (coff_new_section_hook): Allocate storage for aux 568060484Sobrien records for section symbol. 568160484Sobrien (make_abs_section): Unused; deleted. 568260484Sobrien (renumber_symbols): Re-order symbols so undefined symbols come 568360484Sobrien last, as COFF format desires. 568460484Sobrien (coff_write_symbol): Put C_FILE symbols in debug section always. 568560484Sobrien (coff_section_symbol): New function; creates a symbol with the 568660484Sobrien same name as a section, and sets up aux records for it. 568760484Sobrien (coff_add_missing_symbols): New function; adds section symbols to 568860484Sobrien symbol table if they aren't there already. Should someday also 568960484Sobrien add a dummy C_FILE symbol if none is present. 569060484Sobrien (coff_write_object_contents): Add missing symbols before preparing 569160484Sobrien symbol table to be written. 569260484Sobrien (coff_slurp_reloc_table): Verify that symbol indices read in are 569360484Sobrien in a reasonable range. 569460484Sobrien * libcoff-in.h (struct coff_tdata): New field conv_table_size. 569560484Sobrien (obj_conv_table_size): Accessor macro. 569660484Sobrien 569760484Sobrien * bout.c (b_out_reloc_type_lookup): New function. Handles three 569860484Sobrien reloc types on i960. 569960484Sobrien 570060484Sobrien * bfd-in.h (bfd_get_section_name): New macro. Like 570160484Sobrien bfd_section_name, but returns rvalue, not lvalue. 570260484Sobrien (bfd_get_section_vma, bfd_get_section_alignment): Similar. 570360484Sobrien (bfd_get_section_flags): Now returns rvalue. 570460484Sobrien 570560484Sobrien * reloc.c (enum bfd_reloc_code_real): Add several new values, some 570660484Sobrien general, some specific to sparc or i960. 570760484Sobrien 570860484Sobrien * aoutx.h (set_section_contents): Set VMA for each section based 570960484Sobrien on previous section. If text section VMA doesn't appear to have 571060484Sobrien been set, make a best guess from the type of file. 571160484Sobrien 571260484Sobrien * aout-target.h (MY_reloc_howto_type_lookup): Define as zero if 571360484Sobrien not defined. 571460484Sobrien (MY(vec)): Initialize reloc_type_lookup field. 571560484Sobrien 571660484Sobrien * aoutx.h (howto_table_*): Export as aout_#_*_howto_table. 571760484Sobrien (bfd_error_trap, bfd_error_vector): Extern, not common. 571860484Sobrien 571960484Sobrien * aoutf1.h (sunos4_reloc_type_lookup): New function. Handles a 572060484Sobrien few types of relocs for sparc; will need enhancement. 572160484Sobrien 572260484Sobrien * bout.c (callj_callback): Use DEFUN macro in definition. 572360484Sobrien * coff-i960.c (optcall_callback): Likewise. 572460484Sobrien 572560484Sobrien * targets.c (bfd_target): Added fields reloc_type_lookup and 572660484Sobrien _bfd_make_debug_symbol. Also minor comment changes. 572760484Sobrien * syms.c (bfd_make_debug_symbol): New dispatching macro. 572860484Sobrien * reloc.c (bfd_reloc_type_lookup): Take a BFD ptr as arg rather 572960484Sobrien than arch info, and dispatch with BFD_SEND. Callers changed. 573060484Sobrien * archures.c (struct bfd_arch_info): Deleted field 573160484Sobrien reloc_type_lookup. 573260484Sobrien * cpu-*.c: Don't initialize that field. 573360484Sobrien 573460484Sobrien * bfd-in.h (enum bfd_error): Add new value "bad_value". 573560484Sobrien * bfd.c (bfd_errmsgs): Now const; added entry for bad_value. 573660484Sobrien (bfd_errmsg): Now returns ptr to const. 573760484Sobrien * bfd-in.h (bfd_errmsg): Fix prototype. 573860484Sobrien 573960484Sobrien * cache.c (BFD_CACHE_MAX_OPEN): Fix typo in doc. 574060484Sobrien * reloc.c (bfd_generic_relax_section): Ditto. 574160484Sobrien 574260484Sobrien * section.c (Section Output doc): Improve description of use of 574360484Sobrien output_section and output_offset. 574460484Sobrien 574560484SobrienTue May 19 23:42:10 1992 D. V. Henkel-Wallace (gumby@cygnus.com) 574660484Sobrien 574760484Sobrien * sco-core.c: new file from net. 574860484Sobrien * aoutx.h (translate_to_native_sym_flags): bugfix from net: 574960484Sobrien Now we have the hairy linker, it's possible to move symbols from 575060484Sobrien one section into another. Actually make that work! 575160484Sobrien 575260484SobrienSat May 16 17:57:59 1992 K. Richard Pixley (rich@rtl.cygnus.com) 575360484Sobrien 575460484Sobrien * hosts/sun3.h: fix declaration of free. 575560484Sobrien 575660484SobrienTue May 12 14:08:59 1992 Steve Chamberlain (sac@thepub.cygnus.com) 575760484Sobrien 575860484Sobrien * coff-a29k.c (perform_reloc): fix bug in jmp/call evaluation 575960484Sobrien * coff-h8300.c (reloc_processing): all relocs are relative to 576060484Sobrien section start. 576160484Sobrien * opncls.c: don't use fdopen on DOS systems 576260484Sobrien 576360484Sobrien short patches from Glenn Kasten (glenn@ready.com) 576489857Sobrien * targets.c: enabled oasys support 576560484Sobrien * oasys.c: Insert . when UNDERSCORE_HACK is enabled, 576660484Sobrien fix problem where a relocation which crossed a modification byte 576760484Sobrien boundary did not work. Fix problem where a relocation near the end 576860484Sobrien of a data record did not work. 576960484Sobrien 577060484Sobrien 577160484SobrienTue May 5 18:11:25 1992 Steve Chamberlain (sac@thepub.cygnus.com) 577260484Sobrien 577360484Sobrien * archive.c (bfd_slurp_coff_armap): old versions of BFD wrote 577460484Sobrien archvie header string counts the endian way, this heuristic sees 577560484Sobrien how big an archive string to read by trying it one way and if the 577660484Sobrien string table is unreasonably big, trying it the other. *FIXME*. 577760484Sobrien * opncls.c (bfd_fdopenr): can't do fdopens on VMS 577860484Sobrien 577960484SobrienTue May 5 14:18:24 1992 Per Bothner (bothner@rtl.cygnus.com) 578060484Sobrien 578160484Sobrien * bfd-in.h: Increase version number to 1.97, for consistency 578260484Sobrien with ../binutils. 578360484Sobrien * Makefile.in: docdir is ./doc, not ${srcdir}/doc. 578460484Sobrien 578560484SobrienMon May 4 11:49:15 1992 Steve Chamberlain (sac@thepub.cygnus.com) 578660484Sobrien 578760484Sobrien * bfd-in.h: bump version to 1.96 578860484Sobrien Major change; changed calling convention for 578960484Sobrien bfd_get_relocated_section_contents so that caller allocates 579060484Sobrien memory for section data. 579160484Sobrien * coffcode.h (bfd_coff_get_relocated_section_contents), reloc.c, 579260484Sobrien seclet.c, targets.c, bfd.c: reflect new convention. 579360484Sobrien * coffcode.h (styp_to_sec_flags): if styp_flags is not a special 579460484Sobrien case, then use reasonable default values for SEC_* flags. 579560484Sobrien 579660484SobrienFri May 1 12:58:34 1992 Steve Chamberlain (sac@thepub.cygnus.com) 579760484Sobrien 579860484Sobrien * coffcode.h (coff_write_object_contents): use RELSZ to work out 579960484Sobrien size of output reloc struct. 580060484Sobrien * targets.c, Makefile.in: comment out tekhex for the moment. 580160484Sobrien * ieee.c: if some places where null pointers were used instead of &bfd_abs_section. 580260484Sobrien * configure.in: tandem target is st2000 580360484Sobrien * coff-m68k.c: rename static howto_table to global 580460484Sobrien m68kcoff_howto_table. 580560484Sobrien * bout.c: remove unnecessary abort 580660484Sobrien * coff-a29k.c: various changes to the way relocations work to cope 580760484Sobrien with the "new order" and latent bugs. 580860484Sobrien * coffcode.h: lint 580960484Sobrien 581060484SobrienWed Apr 29 12:37:07 1992 Steve Chamberlain (sac@thepub.cygnus.com) 581160484Sobrien 581260484Sobrien * aoutx.h (aout_swap_ext_reloc_out, aout_swap_std_reloc_out) 581360484Sobrien bout.c (b_out_squirt_out_relocs): treat abs sumbols the right way. 581460484Sobrien * reloc.c (bfd_perform-relocation): don't relocate refs to 581560484Sobrien absolute symbols if doing a partial link. 581660484Sobrien 581760484SobrienFri Apr 24 07:35:26 1992 Stu Grossman (grossman at cygnus.com) 581860484Sobrien 581960484Sobrien * configure.in: Add a29k-amd-udi. 582060484Sobrien 582160484SobrienThu Apr 23 18:37:55 1992 Fred Fish (fnf@cygnus.com) 582260484Sobrien 582360484Sobrien * aoutx.h (aout_<bits>_swap_exec_header_in): Zero out the 582460484Sobrien internal_exec structure before initializing the fields that 582560484Sobrien are used, so that the unused fields are in a known state. 582660484Sobrien 582760484SobrienWed Apr 22 09:36:08 1992 Fred Fish (fnf@cygnus.com) 582860484Sobrien 582960484Sobrien * tekhex.c (struct data_struct): Convert from typedef that 583060484Sobrien typedefs nothing to a normal structure declaration. 583160484Sobrien * tekhex.c (pass_over): Prototype args for function that 583260484Sobrien second arg points to. 583360484Sobrien 583460484SobrienMon Apr 20 22:22:51 1992 K. Richard Pixley (rich@rtl.cygnus.com) 583560484Sobrien 583660484Sobrien * Makefile.in: remove old style staging. Do not print recursion 583760484Sobrien lines. 583860484Sobrien 583960484Sobrien * Makefile.in: rework CFLAGS so that CFLAGS can be passed from the 584060484Sobrien Makefile command line. Remove MINUS_G. Default CFLAGS to -g. 584160484Sobrien Pass CFLAGS. 584260484Sobrien 584360484SobrienFri Apr 17 09:15:31 1992 Steve Chamberlain (sac@thepub.cygnus.com) 584460484Sobrien 584560484Sobrien * bfd.c, Makefile.in: added tekhex 584660484Sobrien * aoutx.h (set_section_contents): pages should be padded to the 584760484Sobrien size of a page, not the size of a segment. 584860484Sobrien * configure.in: added go32 host and i386-aout target. 584960484Sobrien * i386aout.c, libaout.h: now works for go32 target 585060484Sobrien * ieee.c: fix bit rot. 585160484Sobrien * seclet.c: support for padding seclet type. 585260484Sobrien 585360484SobrienWed Apr 15 18:11:58 1992 K. Richard Pixley (rich@rtl.cygnus.com) 585460484Sobrien 585560484Sobrien * Makefile.in: added .NOEXPORT: 585660484Sobrien 585760484SobrienTue Apr 14 14:34:42 1992 Fred Fish (fnf@cygnus.com) 585860484Sobrien 585960484Sobrien * elf.c (bfd_add_strtab, bfd_add_2_to_strtab): CONST spreads 586060484Sobrien like ooze. 586160484Sobrien * elf.c (elf_compute_section_file_positions, 586260484Sobrien elf_write_object_contents): Return boolean, not NULL (which 586360484Sobrien can be void *). 586460484Sobrien * elf.c (bfd_section_from_shdr): Ifdef-out debugging code. 586560484Sobrien Also ifdef-out code that aborts on unhandled section types. 586660484Sobrien 586760484SobrienFri Apr 10 22:29:18 1992 Fred Fish (fnf@cygnus.com) 586860484Sobrien 586960484Sobrien * configure.in: Recognize ncr3000 config 587060484Sobrien * Makefile.in (MINUS_G): Pass on to recursive makes. 587160484Sobrien * hosts/ncr3000.h, config/ncr3000.mh: Add host config files. 587260484Sobrien 587360484SobrienThu Apr 2 17:42:45 1992 John Gilmore (gnu at cygnus.com) 587460484Sobrien 587560484Sobrien * Makefile.in: Now that we have sym.h and symconst.h, compile 587660484Sobrien coff-msym.c on all systems. 587760484Sobrien * config/{decstation.mh, irix3.mh, irix4.mh}: Remove coff-msym.o dep. 587860484Sobrien * coff-msym.c: Update include files and comments; add weakext bit. 587960484Sobrien 588060484SobrienWed Apr 1 23:16:38 1992 John Gilmore (gnu at cygnus.com) 588160484Sobrien 588260484Sobrien * archive.c, bfd.c, bout.c, coffcode.h, init.c, reloc.c, 588360484Sobrien section.c, srec.c, syms.c, coff-h8300.c: Lint. 588460484Sobrien 588560484SobrienSun Mar 29 09:37:59 1992 John Gilmore (gnu at cygnus.com) 588660484Sobrien 588760484Sobrien * bout.c, coff-a29k.c, coff-i960.c: Lint. 588860484Sobrien * configure.in: Add new host and target configs. 588960484Sobrien * elf.c (bfd_prstatus, bfd_fpregset): Avoid typename of register 589060484Sobrien structs, which vary; just use member name. 589160484Sobrien (elf_object_p, elf_core_file_p): Lint, fix comments. 589260484Sobrien * config/sparc-elf.mt, hosts/sysv4.h: New config files. 589360484Sobrien 589460484SobrienSat Mar 28 13:07:02 1992 Fred Fish (fnf@cygnus.com) 589560484Sobrien 589660484Sobrien * elf.c (elf_object_p, elf_core_file_p): Fix to use only a single 589760484Sobrien local, disposable, copy of the external form of section header 589860484Sobrien table and program header table entries. 589960484Sobrien 590060484SobrienThu Mar 26 16:59:58 1992 John Gilmore (gnu at cygnus.com) 590160484Sobrien 590260484Sobrien * Makefile.in: Set MINIMIZE back to 0 for a real release. 590360484Sobrien 590460484SobrienTue Mar 24 15:57:03 1992 K. Richard Pixley (rich@cygnus.com) 590560484Sobrien 590660484Sobrien * configure.in: config/irix4.m[ht], hosts/irix4.h: add support for 590760484Sobrien irix4. 590860484Sobrien 590960484SobrienMon Mar 23 22:37:34 1992 Stu Grossman (grossman at cygnus.com) 591060484Sobrien 591160484Sobrien * coff-msym.c (ecoff_swap_rfd_in): remove & for array ref. 591260484Sobrien 591360484SobrienTue Mar 17 14:12:25 1992 Per Bothner (bothner@rtl.cygnus.com) 591460484Sobrien 591560484Sobrien * bout.c (b_out_slurp_reloc_table): Use BFD_ASSERT macro, 591660484Sobrien not internal bfd_assert function (twice). 591760484Sobrien 591860484SobrienTue Mar 17 10:45:12 1992 Steve Chamberlain (sac@thepub.cygnus.com) 591960484Sobrien 592060484Sobrien * aout-target.h: change ar_max_namelen to 15 (the right value) 592189857Sobrien * coff-a29k.c, coffcode.h: more hangovers from the bfd_abs_section 592260484Sobrien change 592360484Sobrien 592460484SobrienMon Mar 16 14:57:22 1992 Steve Chamberlain (sac@rtl.cygnus.com) 592560484Sobrien 592660484Sobrien * archive.c (bfd_generic_archive_p): check for bout archives too. 592760484Sobrien * bout.c: make it work again. 592860484Sobrien 592960484SobrienSat Mar 14 17:30:40 1992 Fred Fish (fnf@cygnus.com) 593060484Sobrien 593160484Sobrien * elf.c (elf_corefile_note): Call bfd_xmalloc() instead of bare 593260484Sobrien malloc(). 593360484Sobrien * reloc.c (bfd_generic_get_relocated_section_contents): Call 593460484Sobrien bfd_xmalloc() instead of bare malloc(). 593560484Sobrien 593660484SobrienFri Mar 13 15:44:37 1992 K. Richard Pixley (rich@cygnus.com) 593760484Sobrien 593860484Sobrien * Makefile.in: pass down MAKEINFO on info. 593960484Sobrien 594060484SobrienFri Mar 13 07:41:13 1992 Steve Chamberlain (sac@thepub.cygnus.com) 594160484Sobrien 594260484Sobrien * config/mt-<foo> now <foo>.mt, config/mh-<foo> now <foo>.mh. 594360484Sobrien host/h-<foo> now just <foo>. 594460484Sobrien * configure.in: reflect changes 594560484Sobrien 594660484SobrienThu Mar 12 11:15:02 1992 Per Bothner (bothner@cygnus.com) 594760484Sobrien 594860484Sobrien * libbfd-in.h (set_tdata): Make change of Feb 27 in the 594960484Sobrien actual source file, not just the generated libbfd.h. 595060484Sobrien 595160484SobrienSat Mar 7 10:33:41 1992 Steve Chamberlain (sac@thepub.cygnus.com) 595260484Sobrien 595360484Sobrien * coff-i960.c (icoff_little_vec): add COFF_SWAP_TABLE so we can run 595460484Sobrien gdb on little-endian 960 code. 595560484Sobrien * archive.c (compute_and_write_armap): indirect symbols should go 595660484Sobrien into the archive header too. 595760484Sobrien 595860484SobrienFri Mar 6 21:55:16 1992 K. Richard Pixley (rich@cygnus.com) 595960484Sobrien 596060484Sobrien * Makefile.in: added check target. 596160484Sobrien 596260484SobrienThu Mar 5 23:51:42 1992 John Gilmore (gnu at cygnus.com) 596360484Sobrien 596460484Sobrien * coff-msym.c: Move this file from gdb/ecoff.c. It 596560484Sobrien handles byte-swapping for ECOFF (MIPS symbol) files. 596660484Sobrien * config/mh-decstation, config/mh-irix3: Add coff-msym.o 596760484Sobrien to the files built on MIPS-based hosts. 596860484Sobrien * Makefile.in: Add rule for coff-msym. 596960484Sobrien 597060484SobrienThu Mar 5 21:36:05 1992 K. Richard Pixley (rich@cygnus.com) 597160484Sobrien 597260484Sobrien * Makefile.in: added clean-info target. MINIMIZE=1. 597360484Sobrien 597460484SobrienSun Mar 1 22:32:58 1992 Per Bothner (bothner@cygnus.com) 597560484Sobrien 597660484Sobrien * coff-rs6000.c: Move core file functions into separate 597760484Sobrien new file rs6000-core.c. This is needed because reading 597860484Sobrien core files depends on native include files that conflict 597960484Sobrien with ../include/coff/rs6000.h. 598060484Sobrien * config/mh-rs6000: Add rs6000-core.o to HDEPFILES. 598160484Sobrien 598260484SobrienThu Feb 27 22:19:55 1992 Per Bothner (bothner@cygnus.com) 598360484Sobrien 598460484Sobrien * aoutx.h (NAME(aout,print_symbol)): Don't print 598560484Sobrien symbol addresss for undefined symbols. 598660484Sobrien * coff-rs6000.c: Various updates (due to target- 598760484Sobrien independent changes). 598860484Sobrien * libbfd.h: Ditto (tdata field is now a union). 598960484Sobrien * hosts/h-sparc.h: Removed prototype for bogus function 599060484Sobrien 'emset' (presumably should have been 'memset' - which is there). 599160484Sobrien 599260484SobrienThu Feb 27 11:46:33 1992 John Gilmore (gnu at cygnus.com) 599360484Sobrien 599460484Sobrien * configure.in (mips-big-* target): Same is Iris. 599560484Sobrien 599660484SobrienThu Feb 27 09:24:56 1992 Steve Chamberlain (sac at thepub.cygnus.com) 599760484Sobrien 599860484Sobrien * aoutx.h (translate_from_native_sym_flags): when creating an 599960484Sobrien alias symbol, fill in the section as undefined, rather than 600060484Sobrien leaving it blank. If an output section can't be found for a 600160484Sobrien symbol, then don't core dump. 600260484Sobrien 600360484SobrienWed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com) 600460484Sobrien 600560484Sobrien * Makefile.in, configure.in: removed traces of namesubdir, 600660484Sobrien -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced 600760484Sobrien copyrights to '92, changed some from Cygnus to FSF. 600860484Sobrien 600960484SobrienWed Feb 26 19:40:59 1992 Steve Chamberlain (sac at thepub.cygnus.com) 601060484Sobrien 601160484Sobrien * bfd.c: lint 601260484Sobrien * coff-h8300.c: fix stupid reloc subtraction bug 601360484Sobrien * coffcode.h (coff_swap_aux_out): only swap a tvndx by 2 bytes, 601460484Sobrien since that's how wide it is. (coff_slurp_symbol_table): always zero out 601560484Sobrien the symbol.flags and done_lineno fields. 601660484Sobrien 601760484SobrienTue Feb 25 14:29:24 1992 Steve Chamberlain (sac at rtl.cygnus.com) 601860484Sobrien 601960484Sobrien * coffcode.h (coff_write_symbol): write out the correct number of 602060484Sobrien auxents. 602160484Sobrien * cpu-h8300.c: fix disassembly bug 602260484Sobrien 602360484SobrienFri Feb 21 21:39:56 1992 John Gilmore (gnu at cygnus.com) 602460484Sobrien 602560484Sobrien * bfd-in.h (bfd_errmsg), coffcode.h (coff_swap_aux_in, 602660484Sobrien section_from_bfd_index), cpu-h8300.c (howto*_callback), 602760484Sobrien reloc.c, section.c (bfd_map_over_sections), targets.c 602860484Sobrien (bfd_target_list): Protolint. 602960484Sobrien * libbfd.h: Update to match a libbfd-in.h from a month ago. 603060484Sobrien 603160484SobrienFri Feb 21 10:57:54 1992 Steve Chamberlain (sac at rtl.cygnus.com) 603260484Sobrien 603360484Sobrien * coffcode.h (coff_swap_aux_in): lint, (coff_print_symbol): prints 603460484Sobrien out tagndx too. 603560484Sobrien * aoutx.h (swap_std_reloc_out, swap_ext_reloc_out): use the output 603660484Sobrien section of a symbol rather than the section of a reffed symbol to 603760484Sobrien determine the r_index of an emmitted reloc. 603860484Sobrien 603960484SobrienThu Feb 20 18:10:34 1992 Per Bothner (bothner at cygnus.com) 604060484Sobrien 604160484Sobrien * PORTING: New (preliminary) porting guide. 604260484Sobrien 604360484SobrienWed Feb 19 21:39:37 1992 John Gilmore (gnu at cygnus.com) 604460484Sobrien 604560484Sobrien * bout.c (callj_callback), coff-a29k.c (a29k_reloc), coff-m88k.c 604660484Sobrien (howto_hvrt16): lint. 604760484Sobrien 604860484SobrienMon Feb 17 12:02:17 1992 Per Bothner (bothner at cygnus.com) 604960484Sobrien 605060484Sobrien * hp300bsd.c (new), config/mt-hp300bsd: Make hp300bsd 605160484Sobrien a full configuration (with possible cross-development), 605260484Sobrien instead of using host-aout.c. 605360484Sobrien 605460484SobrienSun Feb 16 13:01:49 1992 Per Bothner (bothner at cygnus.com) 605560484Sobrien 605660484Sobrien * aout-target.h (MY(write_object_contents): 605760484Sobrien Set obj_reloc_entry_size (abfd). 605860484Sobrien * gen-aout.c: Change to emit a .c files, not a .h file. 605960484Sobrien 606060484SobrienThu Feb 13 20:11:47 1992 Fred Fish (fnf at cygnus.com) 606160484Sobrien 606260484Sobrien * elf.c (elf_slurp_symbol_table): Remove obsolete use of 606360484Sobrien BSF_ABSOLUTE and replace with bfd_abs_section reference. 606460484Sobrien 606560484SobrienThu Feb 13 17:22:44 1992 Steve Chamberlain (sac at rtl.cygnus.com) 606660484Sobrien 606760484Sobrien * coffcode.h (get_normalized_symtab): fixed bug where symbols 606860484Sobrien with more than one auxent can cause nasty core dumps. 606960484Sobrien 607060484Sobrien * coffcode.h, libcoff.c: added new fielded to coff_symbol_struct 607160484Sobrien "done_lineno" so that a symbol which appears twice in the symbol 607260484Sobrien table only gets it's linenumbers relocated once. Modifed 607360484Sobrien (coff_write_native_symbol) and (coff_make_empty_symbol) to make 607460484Sobrien use of it. 607560484Sobrien 607660484SobrienTue Feb 4 15:39:55 1992 Steve Chamberlain (sac at rtl.cygnus.com) 607760484Sobrien 607860484Sobrien * aoutx.h: (translate_from_native_sym_flags): fix constructor 607960484Sobrien stuff to use the New Order. 608060484Sobrien 608160484SobrienFri Jan 31 01:34:45 1992 Stu Grossman (grossman at cygnus.com) 608260484Sobrien 608360484Sobrien * ieee.c: Change type of envi[] to unsigned char. 608460484Sobrien 608560484Sobrien * configure.in: fix vax ultrix configuration. 608660484Sobrien 608760484Sobrien * elf.c (bfd_section_from_shdr): Deal with null return from 608860484Sobrien bfd_make_section(). (elf_object_p): Select endianess properly. 608960484Sobrien 609060484SobrienFri Jan 31 01:19:55 1992 John Gilmore (gnu at cygnus.com) 609160484Sobrien 609260484Sobrien * hosts/h-tahoe.h, h-vaxbsd.h: Fix stack in core files. 609360484Sobrien 609460484SobrienThu Jan 30 23:51:07 1992 John Gilmore (gnu at cygnus.com) 609560484Sobrien 609660484Sobrien * Makefile.in: host-aout.c doesn't depend on aout-params.h. 609760484Sobrien * aout-target.h: Use TARGET_BIG_ENDIAN_P to set up vector. 609860484Sobrien * host-aout.c: Don't use aout-params.h; configure these systems 609960484Sobrien in their xm files, not in a randomly generated file. 610060484Sobrien * hosts/h-hp300bsd.h, h-tahoe.h, h-vaxbsd.h, h-vaxult.h: 610160484Sobrien Specify byte order. 610260484Sobrien * hosts/h-vaxbsd.h: Define the form of exec and core files. 610360484Sobrien 610460484SobrienThu Jan 30 13:02:41 1992 Per Bothner (bothner at cygnus.com) 610560484Sobrien 610660484Sobrien * config/mt-tahoe, config/mt-vax: Change DEFAULT_VECTOR to 610760484Sobrien host_aout_vec here as well. 610860484Sobrien 610960484SobrienThu Jan 30 11:41:45 1992 Stu Grossman (grossman at cygnus.com) 611060484Sobrien 611160484Sobrien * host-aout.c: Change TARGETNAME to "a.out" to be compatible with 611260484Sobrien gdb. config/mt-hp300bsd: Change DEFAULT_VECTOR to host_aout_vec 611360484Sobrien to prevent undefined symbol. 611460484Sobrien 611560484SobrienThu Jan 30 07:26:53 1992 Steve Chamberlain (sac at rtl.cygnus.com) 611660484Sobrien 611760484Sobrien Various lints found on PersSony 611860484Sobrien * aoutx.h: cast an enum 611960484Sobrien * coff-a29k.c: many ints in reloc structure turned to enum 612060484Sobrien * coffcode.h: more enums 612160484Sobrien * cpu-h8300.c: more enums 612260484Sobrien * opncls.c: more enums 612360484Sobrien 612460484SobrienThu Jan 30 01:19:56 1992 John Gilmore (gnu at cygnus.com) 612560484Sobrien 612660484Sobrien * configure.in: Make Tahoe configuration work again. 612760484Sobrien * bfd-in.h: Remove trailing comma from enum declaration. 612860484Sobrien * ieee.c: Can't put byte values >0x7F into a signed char. 612960484Sobrien 613060484SobrienTue Jan 28 21:10:51 1992 Fred Fish (fnf at cygnus.com) 613160484Sobrien 613260484Sobrien * Makefile.in: Add dependencies for various coff-*.o files. 613360484Sobrien 613460484Sobrien * elf.c: Remove extraneous paren from core_prpsinfo and 613560484Sobrien core_prpstatus macros, rename core_prpstatus to core_prstatus. 613660484Sobrien Replace references to old section "size" member with new 613760484Sobrien "_raw_size" member. Implement elf_make_empty_symbol, which 613860484Sobrien is now used. 613960484Sobrien 614060484SobrienTue Jan 28 14:51:40 1992 Stu Grossman (grossman at cygnus.com) 614160484Sobrien 614260484Sobrien * trad-core.c, bfd.c, ../include/bfd.h: Various fixes for PMAX 614360484Sobrien core reading. 614460484Sobrien 614560484SobrienTue Jan 28 10:46:32 1992 Steve Chamberlain (sac at rtl.cygnus.com) 614660484Sobrien 614760484Sobrien * coffcode.h (bfd_coff_relax_section): now static. 614860484Sobrien (bfd_coff_get_relocated_section_contents): various type lints. 614960484Sobrien 615060484SobrienMon Jan 27 19:44:08 1992 Steve Chamberlain (sac at rtl.cygnus.com) 615160484Sobrien 615260484Sobrien New entry point in the transfer vector - bfd_relax_section. 615360484Sobrien 615460484Sobrien * aout-target.h: add to vector, call generic_relax 615560484Sobrien * bfd-in.h: add to vector 615660484Sobrien * bfd.c: add #define for vector 615760484Sobrien * bout.c: add to vector, call generic_relax 615860484Sobrien * coffcode.h: add to vector, also now has coff specific relax code 615960484Sobrien for the relaxable H8/300 relocs. Also clean up abs section cruft. 616060484Sobrien * elf.c: call generic_relax 616160484Sobrien * ieee.c: call new vector, clean up some bugs due to the creation 616260484Sobrien of bfd_abs_section 616360484Sobrien * libbfd.h: add bfd_generic_relax_section EXFUN 616460484Sobrien * oasys.c: call generic_relax 616560484Sobrien * reloc.c: implement generic_relax 616660484Sobrien * seclet.c: moved much of this into coffcode.h 616760484Sobrien * srec.c: call generic_relax 616860484Sobrien * targets.c: define new transfer vector 616960484Sobrien 617060484SobrienFri Jan 24 14:40:17 1992 Steve Chamberlain (sac at rtl.cygnus.com) 617160484Sobrien 617260484Sobrien * everything: now modified to use smaller reloc type. Self hosts 617360484Sobrien on sun3 & sun4. 617460484Sobrien 617560484SobrienSat Jan 18 17:00:16 1992 Fred Fish (fnf at cygnus.com) 617660484Sobrien 617760484Sobrien * config/mh-stratus, config/mt-i860-elf, hosts/h-stratus: 617860484Sobrien New files for stratus. 617960484Sobrien 618060484Sobrien * configure.in: Add configuration fragments for stratus. 618160484Sobrien 618260484SobrienWed Jan 15 10:02:43 1992 Fred Fish (fnf at cygnus.com) 618360484Sobrien 618460484Sobrien * aoutx.h (NAME(aout,find_nearest_line)): Declare various filename 618560484Sobrien variables as CONST since they are set to point to a const char 618660484Sobrien string. Fixes compiler complaints. 618760484Sobrien 618860484SobrienFri Jan 10 17:44:53 1992 Fred Fish (fnf at cygnus.com) 618960484Sobrien 619060484Sobrien * hosts/h-amix.h hosts/h-i386v4.h: Change abort() to a function 619160484Sobrien returning void. 619260484Sobrien 619360484SobrienFri Jan 10 14:33:32 1992 Per Bothner (bothner at cygnus.com) 619460484Sobrien 619560484Sobrien * aoutx.h (NAME(aout,find_nearest_line)): Recognize N_SOL 619660484Sobrien symbols, so that we can emit the correct file name even 619760484Sobrien if it's an include file. 619860484Sobrien 619960484SobrienThu Jan 2 16:43:34 1992 John Gilmore (gnu at cygnus.com) 620060484Sobrien 620160484Sobrien * coff-i960.c: Add COFF_SWAP_TABLE to little_vec as well as big_vec. 620260484Sobrien (Reported by john@labtam.labtam.oz.au (John Carey)). 620360484Sobrien 620460484SobrienWed Jan 1 04:23:06 1992 Fred Fish (fnf at cygnus.com) 620560484Sobrien 620660484Sobrien * elf.c: Change all '#if HAVE_PROCFS' to '#ifdef HAVE_PROCFS'. 620760484Sobrien 620860484Sobrien * config/mh-amix, config/mh-i386v4: Remove HDEFINES that was 620960484Sobrien being used to -DHAVE_PROCFS. 621060484Sobrien 621160484Sobrien * hosts/h-amix, hosts/h-i386v4: Add '#define HAVE_PROCFS'. Move 621260484Sobrien '#include "fopen-same.h"' to end of file to match other h-* files. 621360484Sobrien 621460484SobrienFri Dec 20 12:06:17 1991 Fred Fish (fnf at cygnus.com) 621560484Sobrien 621660484Sobrien * configure.in: Change svr4 references to sysv4. Add case 621760484Sobrien "unknown" for target vendor and infer some targets based 621860484Sobrien on the specified operating system. 621960484Sobrien 622060484SobrienWed Dec 18 17:17:59 1991 Stu Grossman (grossman at cygnus.com) 622160484Sobrien 622260484Sobrien * bfd-in.h, libaout.h: ANSIfy enums. 622360484Sobrien 622460484SobrienWed Dec 18 16:12:25 1991 Steve Chamberlain (sac at rtl.cygnus.com) 622560484Sobrien 622660484Sobrien * archive.c (normalize): created version for VMS which removes the 622760484Sobrien VMS directory crap from the front and end of a filename, eg turn 622860484Sobrien [-.foo]bar.obj;123 into bar.obj 622960484Sobrien (bfd_construct_extended_name_table): now writes index into an 623060484Sobrien extended name table in decimal - the same base used to read an 623160484Sobrien extended name table. 623260484Sobrien 623360484SobrienWed Dec 18 14:40:39 1991 Per Bothner (bothner at cygnus.com) 623460484Sobrien 623560484Sobrien * aout-encap.c: Fix to use aout-target.h. 623660484Sobrien * aoutf1.h: Use standard MY_object_p and MY_callback 623760484Sobrien in aout-target.h. Remove target-specific versions. 623860484Sobrien * host-aout.c: Re-write to use aout-target.h. 623960484Sobrien * gen-aout.c: New files use with host-aout.c to generate 624060484Sobrien host-specific a.out-related parameters. 624160484Sobrien * Makefile.in: host-aout.o depends on aout-params.h, which is 624260484Sobrien generated by gen-aout. 624360484Sobrien * aout-target.h: Make a little more flexible. 624460484Sobrien * libaout.h, aout-target.h: Removed WORK_OUT_FILE_POSTIONS 624560484Sobrien macro. Instead, inline it in aout-target.h. 624660484Sobrien * newsos3.c: Define N_SHARED_LIB(x) as 0 to avoid 624760484Sobrien a gcc -Wall warning. 624860484Sobrien * archive.c: Add missing commas in DEFUN macro (2 places). 624960484Sobrien * elf.c, coffcode.h, aoutf1.h: Use ANSI functions instead of 625060484Sobrien Berkeley ones, now that libiberty has them: 625160484Sobrien bcopy->memcpy, bzero->memset, bcmp->memcmp. 625260484Sobrien * aoutx.h: Various touch-ups: Re-formatting, fix a cast, 625360484Sobrien remove unused variable. 625460484Sobrien 625560484SobrienTue Dec 17 19:48:59 1991 Fred Fish (fnf at cygnus.com) 625660484Sobrien 625760484Sobrien * elf.c (elf_core_file_matches_executable_p): Enclose corename 625860484Sobrien and execname inside HAVE_PROCFS ifdef since they are unused 625960484Sobrien when it is not defined. 626060484Sobrien 626160484SobrienMon Dec 16 12:00:10 1991 Fred Fish (fnf at cygnus.com) 626260484Sobrien 626360484Sobrien * elf.c: Flag all sections as either code or data. We can't 626460484Sobrien be sure what they are anyway, since ELF doesn't fit the 626560484Sobrien traditional model of text+data+bss very well. Add new local 626660484Sobrien function elf_read() to simplify code. Record entry point in 626760484Sobrien the bfd structure. 626860484Sobrien 626960484SobrienThu Dec 12 21:01:22 1991 John Gilmore (gnu at cygnus.com) 627060484Sobrien 627160484Sobrien * hosts/h-*.h: Configure fopen using ../include/fopen-*.h 627260484Sobrien rather than N copies of the same lines. 627360484Sobrien 627460484SobrienWed Dec 11 16:39:45 1991 Steve Chamberlain (sac at rtl.cygnus.com) 627560484Sobrien 627660484Sobrien * cpu-h8300.c: disassemble branch displacements correctly 627760484Sobrien * coff-h8300.c: put reloc offsets out in 32bits 627860484Sobrien 627960484Sobrien * makefile.dos, configdj.bat: New files from DJ 628060484Sobrien * cache.c: fopen with new macros is needed for DOS. 628160484Sobrien * ieee.c: environ renamed to envi to stop an include file 628260484Sobrien conflict. 628360484Sobrien * opncls.c, coff-rs6000.c: more fopens with macros. 628460484Sobrien 628560484SobrienTue Dec 10 04:07:24 1991 K. Richard Pixley (rich at rtl.cygnus.com) 628660484Sobrien 628760484Sobrien * Makefile.in: infodir belongs in datadir. 628860484Sobrien 628960484SobrienSat Dec 7 16:39:23 1991 Steve Chamberlain (sac at rtl.cygnus.com) 629060484Sobrien 629160484Sobrien * Makefile.in: fix where docdir lives 629260484Sobrien 629360484Sobrien * aoutx.h, archive.c, archures.c, bfd.c, cache.c, coff-m88k.c, 629460484Sobrien coffcode.h, core.c, ctor.c, elf.c, format.c, ieee.c, init.c, 629560484Sobrien libbfd.c, libbfd.h, libcoff.h, opncls.c, reloc.c, section.c, 629660484Sobrien srec.c, syms.c, targets.c : all new documentation and lint 629760484Sobrien removal. 629860484Sobrien 629960484Sobrien 630060484SobrienSat Dec 7 07:22:09 1991 John Gilmore (gnu at cygnus.com) 630160484Sobrien 630260484Sobrien * coffcode.h, srec.c: Lint. 630360484Sobrien 630460484SobrienFri Dec 6 22:58:48 1991 K. Richard Pixley (rich at rtl.cygnus.com) 630560484Sobrien 630660484Sobrien * Makefile.in: install using INSTALL_DATA, added standards.text 630760484Sobrien support. 630860484Sobrien 630960484Sobrien * configure.in: mark directory as target dependent. configure 631060484Sobrien nows works in objdir always so make file existence checks 631160484Sobrien against ${srcdir}. 631260484Sobrien 631360484SobrienThu Dec 5 22:46:19 1991 K. Richard Pixley (rich at rtl.cygnus.com) 631460484Sobrien 631560484Sobrien * Makefile.in: idestdir and ddestdir go away. Added copyrights 631660484Sobrien and shift gpl to v2. Added ChangeLog if it didn't exist. docdir 631760484Sobrien and mandir now keyed off datadir by default. 631860484Sobrien 631960484SobrienWed Dec 4 10:14:17 1991 Steve Chamberlain (sac at rtl.cygnus.com) 632060484Sobrien 632160484Sobrien * aoutf1.h (sunos_<size>_object_p, sunos4_callback): moved the 632260484Sobrien computation of arch and machine type so it's worked out before 632360484Sobrien some_aout_object_p is called. 632460484Sobrien * aoutx.h: (some_aout_object_p): don't set arch and mach to 632560484Sobrien unknown. 632660484Sobrien * archures.c: add extra field 'section_align_power' to hold 632760484Sobrien default section alignment in object files. 632860484Sobrien * cpu-a29k.c, cpu-h8300.c, cpu-i386.c, cpu-i960.c, cpu-m68k.c, 632960484Sobrien cpu-m88k.c, cpu-mips.c, cpu-rs6000.c, cpu-sparc.c, cpu-vax.c: 633060484Sobrien initialize the new field. 633160484Sobrien * bout.c (b_out_callback): replace the text size, since aout 633260484Sobrien fries them. 633360484Sobrien * aoutx.h: Documentation in the new style 633460484Sobrien 633560484SobrienWed Dec 4 02:00:30 1991 John Gilmore (gnu at cygnus.com) 633660484Sobrien 633760484Sobrien * bfd.c (bfd_get_mtime): Don't cache mtime any more; only 633860484Sobrien use the saved value if mtime_set is already set (intended 633960484Sobrien for archive files, though apparently not used yet). 634060484Sobrien 634160484SobrienTue Dec 3 22:54:50 1991 John Gilmore (gnu at cygnus.com) 634260484Sobrien 634360484Sobrien * targets.c: Revise comments about how to configure the target 634460484Sobrien vector, to match reality. Remove mention of obsolete methods. 634560484Sobrien Remove long lists of capitalized macros that turn into the same 634660484Sobrien thing in lowercase. Normal vector simply lists all known 634760484Sobrien lowercase xvec names; all other cases are handled by SELECT_VECS. 634860484Sobrien 634960484Sobrien * config/mt-i386-coff: Set DEFAULT_VECTOR to real identifier, 635060484Sobrien not macro name. 635160484Sobrien 635260484Sobrien * config/mt-i960-{coff,bout}: Use SELECT_VECS to make a short 635360484Sobrien list of supported targets. 635460484Sobrien 635560484SobrienTue Dec 3 14:06:15 1991 Per Bothner (bothner at cygnus.com) 635660484Sobrien 635760484Sobrien * archive.c (bsd_write_armap): The pad byte sometimes added to 635860484Sobrien the string table in a __.SYMDEF member is now 635960484Sobrien counted as part of the size of the string table. 636060484Sobrien This is compatible with the old ranlib, as well as Sun's. 636160484Sobrien 636260484SobrienTue Dec 3 10:53:30 1991 Steve Chamberlain (sac at rtl.cygnus.com) 636360484Sobrien 636460484Sobrien * srec.c: Rewrote to fix many bugs; now gets the record type 636560484Sobrien right, doesn't choke on input, sets the start address in an S9 and 636660484Sobrien fills in the filename on an S0. 636760484Sobrien 636860484SobrienSat Nov 30 21:19:15 1991 Steve Chamberlain (sac at rtl.cygnus.com) 636960484Sobrien 637060484Sobrien * cpu-h8300.c: Add support for MEMIND addressing mode 637160484Sobrien 637260484Sobrien * coff-a29k.c: defined RELOC_PROCESSING to take the #ifdef out of 637360484Sobrien coffcode.h 637460484Sobrien * coffcode.h: use the new macro if available 637560484Sobrien 637660484Sobrien * elf.c (elf_corefile_note): cast malloc to avoid warning. 637760484Sobrien * Makefile.in: Fixed dependencies due to file rename 637860484Sobrien 637960484Sobrien * aout-encap.c, aoutf1.h, aoutx.h, archive.c, bout.c, coff-a29k.c, 638060484Sobrien coff-h8300.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c, 638160484Sobrien coff-mips.c, coff-rs6000.c, cpu-h300.c, elf.c, i386aout.c, 638289857Sobrien newsos3.c, stab-syms.c, syms.c: All these files have had their 638360484Sobrien #includes altered to point to the new places. 638460484Sobrien 638560484SobrienFri Nov 29 20:04:49 1991 Fred Fish (fnf at cygnus.com) 638660484Sobrien 638760484Sobrien * config/mh-i386v4, config/mh-i386-elf, hosts/h-i386v4.h: New files. 638860484Sobrien 638960484Sobrien * configure.in: Add vendor "ncr" as supported per-target vendor. 639060484Sobrien Add svr4 case for i386 per-host case. 639160484Sobrien 639260484Sobrien * elf.c (elf_object_p, elf_core_file_p): Add missing "break" to 639360484Sobrien ELFDATA2LSB cases. 639460484Sobrien 639560484SobrienFri Nov 29 12:16:51 1991 Per Bothner (bothner at cygnus.com) 639660484Sobrien 639760484Sobrien * syms.c (bfd_decode_symclass): Return 'A' 639860484Sobrien for symbols that are both absolute and global. 639960484Sobrien * archive.c (bfd_special_undocumented_glue): Return NULL 640060484Sobrien if bfd_ar_hdr_from_filesystem returns NULL. 640160484Sobrien 640260484SobrienTue Nov 26 09:10:55 1991 Steve Chamberlain (sac at cygnus.com) 640360484Sobrien 640460484Sobrien * Makefile.in: added coff-h8300 640560484Sobrien * configure.in: now h8 is a coff target 640660484Sobrien * cpu-h8300.c: fix various disassembly problems 640760484Sobrien * libcoff.h: took out some code which has been #0ed for a long 640860484Sobrien time. 640960484Sobrien * targets.c: added h8 coff 641060484Sobrien * coff-a29k.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c 641160484Sobrien added new macro RTYPE2HOWTO to take a load of #ifdefs out of 641260484Sobrien coffcode.h 641360484Sobrien * coffcode.h: Started to change the way machine dependencies are 641460484Sobrien handled, from the nest of #ifdefs to macros defined in the 641560484Sobrien including coff-<foo>.c 641660484Sobrien 641760484SobrienFri Nov 22 08:11:42 1991 John Gilmore (gnu at cygnus.com) 641860484Sobrien 641960484Sobrien * aoutx.h (some_aout_object_p): Set the `executable' bit 642060484Sobrien if the entry point is contained in the text segment, even if the 642160484Sobrien text segment is at location 0. 642260484Sobrien 642360484Sobrien * coff-mips.c, coffcode.h: Peter Schauer's patch to kludge in 642460484Sobrien nonstandard MIPS sections (.rdata, .sdata, etc). 642560484Sobrien 642660484Sobrien * aoutx.h, bfd.c, coffcode.h, ieee.c, oasys.c, targets.c: CONST lint. 642760484Sobrien * libbfd-in.h, libbfd.h, aoutx.h, coffcode.h, elf.c, libaout.h: 642860484Sobrien Rename ALIGN to BFD_ALIGN to avoid conflict with BSD <sys/param.h>. 642960484Sobrien * libbfd.c: Lint. 643060484Sobrien * host-aout.c, trad-core.c: Fix write_armap prototypes. Lint. 643160484Sobrien 643260484SobrienThu Nov 21 19:56:40 1991 Per Bothner (bothner at cygnus.com) 643360484Sobrien 643460484Sobrien * stab-syms.c, syms.c: Moved bfd_stab_name() and bfd_stab_names[] 643560484Sobrien from syms.c to new file stab-syms.c. Also, since GNU extended 643660484Sobrien type codes such as N_SETT are no longer in ../include/stab.def, 643760484Sobrien include them manually. 643860484Sobrien * stab-syms.c, aoutx.h: Renamed bfd_stab_name() and 643960484Sobrien bfd_stab_names[] to aout_stab_name() and aout_stab_names[]. 644060484Sobrien * libaout.h: Added prototype for aout_stab_name(). 644160484Sobrien * Makefile.in: Update Makefile for new stab-syms.[co]. 644260484Sobrien 644360484SobrienThu Nov 21 11:50:49 1991 John Gilmore (gnu at cygnus.com) 644460484Sobrien 644560484Sobrien * libaout.h (WORK_OUT_FILE_POSITIONS): One more try at this 644660484Sobrien rather complicated seeming problem. Eliminate LOGICAL_ versions, 644760484Sobrien just make N_XXX work by excluding the header from the text segment. 644860484Sobrien * aoutx.h: Fix comments to match. 644960484Sobrien 645060484SobrienTue Nov 19 18:49:01 1991 Per Bothner (bothner at cygnus.com) 645160484Sobrien 645260484Sobrien * libaout.h (WORK_OUT_FILE_POSITIONS): Use new LOGICAL_TXTADDR, 645360484Sobrien LOGICAL_TXTOFF, LOGICAL_TXTSIZE macros to figure out numbers 645460484Sobrien for the "logical" text segment (i.e. never consider the exec 645560484Sobrien header to be part of the text segment). This change is 645660484Sobrien needed for consistency with various other parts of bfd and ld. 645760484Sobrien * aoutx.h (NAME(aout,soe_aout_object_p)): Fix comment, 645860484Sobrien and move calculation of obj_textsec(abfd)->size to libaout.h. 645960484Sobrien * bfd-in.h: Removed bogus ';'. 646060484Sobrien 646160484Sobrien * Makefile.in: Add MINIMIZE flag to select lean 646260484Sobrien or bloated target_vector. 646360484Sobrien * targets.c: Use new MINIMIZE macro, and add trad_core if needed. 646460484Sobrien * newsos3.c: Fixes to ../include/aout64.h remove need 646560484Sobrien for special N_TXTOFF macro, but require N_HEADER_IN_TEXT. 646660484Sobrien 646760484SobrienMon Nov 18 12:00:59 1991 Per Bothner (bothner at cygnus.com) 646860484Sobrien 646960484Sobrien * aout-target.h, aoutf1.h, newsos3.c: Make aout-target.h 647060484Sobrien handle both little and big-endian targets, with little 647160484Sobrien the default unless TARGET_IS_BIG_ENDIAN_P is defined. 647260484Sobrien * host-aout.c: Add FIXME note. 647360484Sobrien 647460484SobrienSun Nov 17 13:29:39 1991 Per Bothner (bothner at cygnus.com) 647560484Sobrien 647660484Sobrien * targets.c: Make the default target_vector contain 647760484Sobrien just &DEFAULT_VECTOR. This makes executables a lot smaller. 647860484Sobrien Old behavior can be gotten by defining ALL_TARGETS. 647960484Sobrien * aoutf1.h, demo64.c, i386aout.c, newsos3.c, sunos.c: 648060484Sobrien Factored out common code into new file aout-target.h. 648160484Sobrien Saves a lot of duplicate code for a.out variants. 648260484Sobrien 648360484SobrienFri Nov 15 13:00:43 1991 Per Bothner (bothner at cygnus.com) 648460484Sobrien 648560484Sobrien Get 'make headers' to work when configured with +subdirs. 648660484Sobrien * Makefile.in: Add $(subdir) to docdir path. 648760484Sobrien * doc/Makefile.in (protos): Add $(srcdir) prefix 648860484Sobrien to name of sed scripts. 648960484Sobrien 649060484SobrienThu Nov 14 19:49:10 1991 Per Bothner (bothner at cygnus.com) 649160484Sobrien 649260484Sobrien * aoutx.h (NAME(aout,print_symbol)): Fix thinko. 649360484Sobrien * syms.c (bfd_stab_names): Turn on new GNU_EXTRA_STABS macro 649460484Sobrien to include names of N_SETT etc. 649560484Sobrien 649660484SobrienThu Nov 14 19:11:13 1991 Fred Fish (fnf at cygnus.com) 649760484Sobrien 649860484Sobrien * elf.c: Add minimal support for ELF symbol tables. Generates 649960484Sobrien canonical bfd symbol tables from ELF symbol tables. Change the 650060484Sobrien name of some functions from bfd_<name> to elf_<name>. 650160484Sobrien 650260484Sobrien * syms.c: Trivial fix to comment to remove a redundant "to". 650360484Sobrien 650460484SobrienWed Nov 13 17:02:01 1991 John Gilmore (gnu at cygnus.com) 650560484Sobrien 650660484Sobrien * coff-{i386,m68k,m88k}.c: Change name of file format to standard 650760484Sobrien form that GDB recognizes as COFF. 650860484Sobrien 650960484SobrienWed Nov 13 09:09:41 1991 Steve Chamberlain (sac at cygnus.com) 651060484Sobrien 651160484Sobrien * ieee.c (ieee_object_p): cast NULL correctly. 651260484Sobrien * configure.in: added harris host 651360484Sobrien 651460484Sobrien * coff-a29k.c: Lots of changes, most from David Wood. 651560484Sobrien 651660484SobrienTue Nov 12 07:21:41 1991 John Gilmore (gnu at cygnus.com) 651760484Sobrien 651860484Sobrien * coff-m88k.c (coff_write_armap): Just #undef it. 651960484Sobrien 652060484SobrienMon Nov 11 20:30:18 1991 Steve Chamberlain (sac at cygnus.com) 652160484Sobrien 652260484Sobrien * Makefile.in: standardize on MINUS_G to disable debugging 652360484Sobrien * coff-m88k.c: create coff armaps instead of bsd ones. 652460484Sobrien * opncls.c (bfd_close_all_done), (bfd_close): Mask out random bits 652560484Sobrien when calling chmod. 652660484Sobrien 652760484SobrienMon Nov 11 19:07:32 1991 Fred Fish (fnf at cygnus.com) 652860484Sobrien 652960484Sobrien * elf.c: Additions to support ELF format core files. 653060484Sobrien * config/mh-amix: Add -DHAVE_PROCFS to HDEFINES, since host 653160484Sobrien has support for /proc (all the include files in particular). 653260484Sobrien 653360484SobrienMon Nov 11 18:36:47 1991 Per Bothner (bothner at cygnus.com) 653460484Sobrien 653560484Sobrien * aoutx.h (NAME(aout,find_nearest_line)): Handle the case 653660484Sobrien of two N_SO stabs, one for directory, and one for filename. 653760484Sobrien 653860484Sobrien * bfd-in.h (print_vma): Factor out duplicate definition. 653960484Sobrien 654060484Sobrien Exit a little more gracefully when malloc returns NULL. 654160484Sobrien * libbfd.c: New function bfd_xmalloc (malloc wrapper). 654260484Sobrien * opncls.c, syms.c, bout.c, aoutx.h: Replace malloc by bfd_xmalloc. 654360484Sobrien * libbfd.h: Rre-generated due to libbfd.c update. 654460484Sobrien 654560484SobrienSat Nov 9 13:45:01 1991 Fred Fish (fnf at cygnus.com) 654660484Sobrien 654760484Sobrien * config/mt-m68k-elf: Define DEFAULT_VECTOR as elf_big_vec. 654860484Sobrien 654960484Sobrien * elf.c (elf_object_p): Don't try to create a bfd section for 655060484Sobrien the first ELF section header. It is just a placeholder. 655160484Sobrien 655260484SobrienSat Nov 9 03:04:26 1991 John Gilmore (gnu at cygnus.com) 655360484Sobrien 655460484Sobrien * coff-rs6000.c, config/mh-rs6000: Make it work on archive and 655560484Sobrien core files, when compiling native. 655660484Sobrien * hosts/h-rs6000.h: Define FASCIST_FDOPEN for bfd_fdopenr. 655760484Sobrien 655860484Sobrien FIXME: The aoutf1.h change below needs to be reversed back 655960484Sobrien to the way it was. 656060484Sobrien 656160484SobrienThu Nov 7 11:03:55 1991 Steve Chamberlain (sac at rtl.cygnus.com) 656260484Sobrien 656360484Sobrien * coffcode.h: Defined new macros [PUT|GET]LINENO_LNNO for 656460484Sobrien manipulation of lnno fields in lineno structs in a coff-<f>.h 656560484Sobrien independent way. Override it in coff-<f>.h to your favourite 656660484Sobrien number if you don't have a 16bit lnno field. (coff_swap_lineno_in) 656760484Sobrien (coff_swap_lineno_out): modified to use the new macros. 656860484Sobrien 656960484SobrienMon Nov 4 11:38:33 1991 Steve Chamberlain (sac at cygnus.com) 657060484Sobrien 657160484Sobrien * aoutf1.h (sunos4_callback): Now defaults to 68020 rather than 657260484Sobrien unknown arch when the magic number doesn't specify the 657360484Sobrien architecture, since some OSs (eg old sun3s) don't set the number, and 657460484Sobrien 020 is probably the right answer anyway. 657560484Sobrien 657660484SobrienSun Nov 3 12:07:08 1991 Per Bothner (bothner at cygnus.com) 657760484Sobrien 657860484Sobrien * hosts/h-news.h, hosts/h-rtbsd.h: 657960484Sobrien Get rid of MISSING_VFPRINTF, since libiberty provides one. 658060484Sobrien * bfd-in.h (bfd_print_symbol_type_hopw enum): Add new option 658160484Sobrien bfd_print_symbol_nm, for use by nm. 658260484Sobrien * aoutx.h (NAME(aout,print_symbol)): Add code for new 658360484Sobrien bfd_print_symbol_nm option, to print in nm format. 658460484Sobrien * coffcode.h (coff_print_symbol), ieee.c (ieee_print_symbol) 658560484Sobrien oasys.c (oasys_print_symbol): Provide stub implementations 658660484Sobrien for bfd_print_symbol_nm. 658760484Sobrien * syms.c: New function bfd_decode_symclass, used by nm printer. 658860484Sobrien New function bfd_stab_name to look up string name of stab code. 658960484Sobrien 659060484SobrienSat Nov 2 14:26:03 1991 Steve Chamberlain (steve at cygnus.com) 659160484Sobrien 659260484Sobrien * Makefile.in: Added ctor.c 659360484Sobrien * archures.c (bfd_default_arch_struct) added 659460484Sobrien bfd_default_reloc_type_lookup. 659560484Sobrien * coffcode.h: removed a load of #if 0ed code. 659660484Sobrien (coff_compute_file_section_positions): now works out the section 659760484Sobrien alignment and size correctly in all cases. 659860484Sobrien (coff_get_symtab): looks for constructor symbols and calls the 659960484Sobrien right function when they're found. (coff_canonicalize_reloc): 660060484Sobrien knows when a section is full of constructors and does the right 660160484Sobrien thing. 660260484Sobrien * cpu-m88k.c: Added default_reloc_type lookup to the architecture 660360484Sobrien description. 660460484Sobrien * libbfd-in.h: (bfd_default_reloc_type_lookup) defun added. 660560484Sobrien * libcoff.h: removed #if 0ed code 660660484Sobrien * reloc.c: (bfd_reloc_code_real_type) added BFD_RELOC_CTOR for 660760484Sobrien arch independent constructor relocation type. 660860484Sobrien (bfd_reloc_type_lookup): removed the comment "this will go away" 660960484Sobrien since it won't. (bfd_howto_32): stolen from 88k, this is a 32bit 661060484Sobrien reloc which is used when BFD_RELOC_CTOR falls through to give a 661160484Sobrien default 32bit reloc for constructors. 661260484Sobrien (bfd_default_reloc_type_lookup): added. 661360484Sobrien * aoutf1.h: fixed SEGMENT_SIZE typo. 661460484Sobrien 661560484SobrienThu Oct 31 18:23:06 1991 John Gilmore (gnu at cygnus.com) 661660484Sobrien 661760484Sobrien * coff-rs6000.c: Change name to "aixcoff-rs6000", to avoid 661860484Sobrien matching prefix "coff". 661960484Sobrien * coffcode.h (coff_swap_aux_in, coff_swap_aux_out): Handle 662060484Sobrien rs/6000 csect records. 662160484Sobrien 662260484SobrienSun Oct 27 16:56:58 1991 Steve Chamberlain (steve at cygnus.com) 662360484Sobrien 662460484Sobrien * coff-m88k.c, targets.c: change name of m88k_bcs to m88kbcs 662560484Sobrien * configure.in: add motorola delta88 cases 662660484Sobrien * libbfd.h, libbfd-in.h, archive.c, ieee.c, elf.c, srec.c: fix 662760484Sobrien write_armap prototype 662860484Sobrien * libbfd.c: add doc on bfd_write_bigendian_4byte_int 662960484Sobrien 663060484SobrienFri Oct 25 02:48:19 1991 John Gilmore (gnu at cygnus.com) 663160484Sobrien 663260484Sobrien * Rename COFF-related files in `coff-ARCH.c' form. 663360484Sobrien coff-a29k.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c, 663460484Sobrien coff-mips.c, coff-rs6000.c to be exact. 663560484Sobrien 663660484Sobrien * Makefile.in: Only supply TARGET_DEFAULTS to targets.c, reducing 663760484Sobrien make output clutter. 663860484Sobrien * config/mt-*: Ditto. 663960484Sobrien 664060484SobrienThu Oct 24 22:40:07 1991 John Gilmore (gnu at cygnus.com) 664160484Sobrien 664260484Sobrien RS/6000 support, by Metin G. Ozisik, Mimi Ph��ng-Th�o V�, and 664360484Sobrien John Gilmore. Archive support from Damon A. Permezel. 664460484Sobrien 664560484Sobrien * Makefile.in: Add cpu-rs6000.c and rs6000coff.c. 664660484Sobrien * configure.in: Add rs6000 case. 664760484Sobrien * targets.c: Add rs6000 vector. 664860484Sobrien * archures.c: Add rs6000, fix comment on romp. 664960484Sobrien * bfd-in.h (enum bfd_error): Add no_debug_section error. 665060484Sobrien * libcoff-in.h (struct coff_tdata): Remove unused string_table. 665160484Sobrien * bfd.c (bfd_errmsgs): Add no_debug_section error message. 665260484Sobrien * section.c (bfd_make_section): Return NULL on attempt to create 665360484Sobrien a section twice. 665460484Sobrien * coffcode.h (bfd_swap_reloc_in): Handle r_type and r_size. 665560484Sobrien (bfd_swap_aouthdr_in): Handle lots more members. 665660484Sobrien (make_a_section_from_file): If section has already been seen, 665760484Sobrien just return false rather than overwriting it. 665860484Sobrien (coff_real_object_p): Understand incoming magic numbers. 665960484Sobrien (coff_set_flags): Understand outgoing magic numbers. 666060484Sobrien (coff_compute_section_file_positions): outgoing aouthdr magic #. 666160484Sobrien (build_debug_section): Add fn for reading debug string section. 666260484Sobrien (get_normalized_symtab): Handle symbol names in debug string section. 666360484Sobrien Remove unused obj_string_table. 666460484Sobrien (coff_slurp_symbol_table): Handle rs6000-specific storage classes. 666560484Sobrien * aoutx.h (translate_from_native_sym_flags, N_SET*): Check for 666660484Sobrien existing section before making one. 666760484Sobrien * cpu-rs6000.c: New file. 666860484Sobrien * rs6000coff.c: New file. 666960484Sobrien 667060484SobrienThu Oct 24 02:03:24 1991 Fred Fish (fnf at cygnus.com) 667160484Sobrien 667260484Sobrien * elf.c: Add partial support for ELF format corefiles. Still needs 667360484Sobrien support for extracting registers from corefiles. 667460484Sobrien 667560484Sobrien * config/t-m68k-elf: Set DEFAULT_VECTOR to elf_big_vec. 667660484Sobrien 667760484Sobrien * config/{h-amix,h-dgux,h-irix3,h-ultra3}: For systems where 667860484Sobrien RANLIB is defined as echo, send the output to /dev/null to help 667960484Sobrien reduce clutter in the output from doing a make. 668060484Sobrien 668160484SobrienMon Oct 21 17:48:48 1991 John Gilmore (gnu at cygnus.com) 668260484Sobrien 668360484Sobrien * hosts/h-vaxult.h: Remove malloc/free decls covered in stdlib.h. 668460484Sobrien Fix HOST_PAGE_SIZE and HOST_SEGMENT_SIZE. From David Taylor. 668560484Sobrien 668660484SobrienMon Oct 21 09:34:11 1991 Steve Chamberlain (steve at rtl.cygnus.com) 668760484Sobrien 668860484Sobrien * coffcode.h (coff_compute_section_file_positions): make it pad 668960484Sobrien section size out if there are alignment restrictions so that the 669060484Sobrien image will be ok on a system where section positions are worked 669160484Sobrien out by accumulating sizes rather than from the section headers. 669260484Sobrien * targets.c (proto write_armap). Changed orl_count to unsigned. 669360484Sobrien * opncls.c (bfd_close_all_done). Added so that generative 669460484Sobrien programs like gas can close a bfd without causing bfd confusion. 669560484Sobrien * libbfd.h (changed becuase of protos) 669660484Sobrien * amdcoff.c: messed with the way that jmp displacements are 669760484Sobrien calcualated. This may not yet be totally correct. 669860484Sobrien * archive.c (coff_write_armap): rewrote the way that ranlibs are 669960484Sobrien written out. 670060484Sobrien * coffcode.h (fixup_symbol_value): now doesn't core dump if a non 670160484Sobrien abs symbol has no section (like a register symbol). 670260484Sobrien (coff_write_symbol) now zeros auxent before filling it up to help 670360484Sobrien with sensitive applications. 670460484Sobrien * libbfd.c (bfd_write_bigendian_4byte_int): added. 670560484Sobrien 670660484SobrienWed Oct 16 22:58:45 1991 John Gilmore (gnu at cygnus.com) 670760484Sobrien 670860484Sobrien * bfd.c: Make sure we don't get a macro strerror(). 670960484Sobrien * opncls.c (bfd_fdopenr): If FASCIST_FDOPEN, use "r", not "r+". 671060484Sobrien * trad-core.c (trad_unix_core_file_failing_command): Suppress 671160484Sobrien attempt to recover command, ifdef NO_CORE_COMMAND. 671260484Sobrien * hosts/h-tahoe.h: Add FASCIST_FDOPEN and NO_CORE_COMMAND; 671360484Sobrien revamp HOST_*, etc. 671460484Sobrien * hosts/h-i386v.h: Use <utime.h>, not <sys/utime.h>, unlike POSIX. 671560484Sobrien 671660484SobrienWed Oct 16 12:43:49 1991 Per Bothner (bothner at cygnus.com) 671760484Sobrien 671860484Sobrien * archive.c (bsd_write_argmap): The size of the ranlib structures 671960484Sobrien should not include the size field itself. 672060484Sobrien * aoutx.h, libaout.h (NAME(aout, sizeof_headers)): Use 672160484Sobrien adata(abfd)->exec_bytes_size field instead of constant macro, 672260484Sobrien because aoutx.h compiles to a simple .o file shared by 672360484Sobrien all 32-bits a.out targets. 672460484Sobrien 672560484SobrienWed Oct 16 11:11:05 1991 John Gilmore (gnu at cygnus.com) 672660484Sobrien 672760484Sobrien * configure.in: Allow i386-sco-sysv. 672860484Sobrien * bout.c: Remove unused i960_align; lint dummy core file handlers. 672960484Sobrien * cpu-h8300.c: lint. 673060484Sobrien 673160484Sobrien * host-aout.c: New strategy. We use common code, include files, 673260484Sobrien and data structures to handle the file, but set a few parameters 673360484Sobrien from the host's config file (page size, text start addr, etc). 673460484Sobrien * libaout.h: Define HP BSD machine types. 673560484Sobrien * aoutf1.h: Handle reading a.outs with these types. 673660484Sobrien 673760484Sobrien * trad-core.c: Pass the u.u_ar0 value as the negative of the 673860484Sobrien virtual-memory-address of the .reg section. We can't just make a 673960484Sobrien section for "all the regs and nothing else" because only GDB knows 674060484Sobrien exactly where the regs are (scattered around the upage and stack). 674160484Sobrien Clean up memory allocation. Remove big- and little-endian 674260484Sobrien vectors, replace with single vector; this only runs on the host, 674360484Sobrien in host byte order. Replace byteswap routines with aborts in case 674460484Sobrien anyone calls them. 674560484Sobrien * targets.c: There's only one trad_core_vec now. 674660484Sobrien * aoutf1.h (sunos_core_file_p): VMA of .reg* now needs to be 0. 674760484Sobrien 674860484SobrienTue Oct 15 08:29:03 1991 John Gilmore (gnu at cygnus.com) 674960484Sobrien 675060484Sobrien * hosts/h-amix.h (free): Fix prototype. 675160484Sobrien 675260484Sobrien * aoutx.h: Don't use NULL as an integer, for braindead systems 675360484Sobrien that declare it as (void *)0. (From Peter Schauer.) 675460484Sobrien 675560484SobrienMon Oct 14 17:20:47 1991 Per Bothner (bothner at cygnus.com) 675660484Sobrien 675760484Sobrien * opncls.c (bfd_fdopenr): Add parentheses to avoid reported 675860484Sobrien problem with bad Ultrix system headers. 675960484Sobrien * aoutx.h (NAME(aout,set_section_contents)): Try to handle the 676060484Sobrien various kinds of alignments for the various kinds of 676160484Sobrien magic numbers. 676260484Sobrien 676360484SobrienMon Oct 14 14:23:10 1991 John Gilmore (gnu at cygnus.com) 676460484Sobrien 676560484Sobrien * doc/Makefile: Don't assume . is on the path (from James Clark). 676660484Sobrien 676760484SobrienFri Oct 11 22:45:14 1991 John Gilmore (gnu at cygnus.com) 676860484Sobrien 676960484Sobrien * Makefile.in: Avoid Sun Make VPATH bugs. 677060484Sobrien * targets.c: Declare trad_core vectors extern. 677160484Sobrien 677260484SobrienFri Oct 11 13:03:02 1991 Per Bothner (bothner at cygnus.com) 677360484Sobrien 677460484Sobrien * coffcode.h: Moved ALIGN macro to libbfd.h. Removed i960_align. 677560484Sobrien * libbfd.h: Moved ALIGN macro here. 677660484Sobrien * bout.c (b_out_callback): Replace i960_align by align_power. 677760484Sobrien 677860484Sobrien * libaout.h (struct aoutdata): Added fields page_size, 677960484Sobrien segment_size and exec_bytes_size. These help generic code 678060484Sobrien (in aoutx.h and libaout.h) to figure out where to align 678160484Sobrien the various segments in a demand paged file. 678260484Sobrien * libaout.h (WRITE_HEADER): Use new (struct aoutdata) fields 678360484Sobrien to decide if the exec header counts in a_text (text segment size). 678460484Sobrien Also, assume D_PAGED flag is set; don't set it here. 678560484Sobrien * bout.c (b_out_callback): Add initialization of 678660484Sobrien adata fields page_size, segment_size, and exec_bytes_size. 678760484Sobrien * host-aout.c (NAME(host_aout, callback) and 678860484Sobrien NAME(host_aout,mkobject): Ditto. 678960484Sobrien * i386aout.c (aout386_callback) and new aout386_mkobject): Ditto. 679089857Sobrien * newsos3.c (newsos3_callback) and new newsos_mkobject): Ditto. 679160484Sobrien * aoutf1.c (sunos4_callback) and new sunos_mkobject): Ditto. 679260484Sobrien * aoutx.h (NAME(aout,some_aout_object_p)): Don't subtract 679360484Sobrien EXEC_BYTES_SIZE from the a_test size; this is only appropriate 679460484Sobrien for some systems (mainly sunos), so do it in the callback instead. 679560484Sobrien Same routine: Add stuff to the THIS_IS_ONLY_DOCUMENTATION comment. 679660484Sobrien * aoutx.h (NAME(aout,set_section_contents): Change the way 679760484Sobrien filepos and size of sections are carried out to support 679860484Sobrien older styles of demand paged executables. 679960484Sobrien 680060484Sobrien 680160484SobrienFri Oct 11 12:33:36 1991 Steve Chamberlain (steve at cygnus.com) 680260484Sobrien 680360484Sobrien * bfd-in.h: Added more macros to COFF_SWAP_TABLE. 680460484Sobrien * bfd.c: Added macros to enable gas to swap coff records. 680560484Sobrien * coffcode.h: Make the coff_swap_*_out routines return the number 680660484Sobrien of bytes swapped, and cleaned up their prototypes. 680760484Sobrien * configure.in: Added ebmon/coff support 680860484Sobrien * ecoff.c: Changed null definitions of coff_swap_*_out to conform 680960484Sobrien to new prototypes 681060484Sobrien * targets.c: Added new entry points for coff swapping 681160484Sobrien 681260484SobrienFri Oct 11 03:01:52 1991 John Gilmore (gnu at cygnus.com) 681360484Sobrien 681460484Sobrien Restructure configuration scheme for bfd, binutils, ld. 681560484Sobrien 681660484Sobrien * include/sys/h-*.h: Move to bfd/hosts/h-*.h. 681760484Sobrien * configure.in: Revise to symlink sysdep.h to hosts/h-xxx.h. 681860484Sobrien Change some config names to match other dirs. 681960484Sobrien * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO() 682060484Sobrien get defined first. 682160484Sobrien * Makefile.in: Use -I. to get sysdep.h. Remove refs to 682260484Sobrien ../include/sysdep.h. 682360484Sobrien * cpu-i960.c: Strncmp needed a length arg. 682460484Sobrien * ecoff.c: Don't ever call trad_unix_core_file_p from here. 682560484Sobrien * i386aout.c: Remove dead N_TXTOFF override. 682660484Sobrien * trad-core.c: Don't disable the whole file if SUN4_SYS. 682760484Sobrien * config/: Rename some config files to match up h-*.h names. 682860484Sobrien Remove all the HOST_SYS definitions from the config files. 682960484Sobrien * hosts/h-amix.h, h-i386v.h: Define POSIX_UTIME, not USG. 683060484Sobrien * hosts/h-hp9000.h: Remove USG comment. 683160484Sobrien * hosts/h-rs6000.h: Include <stdlib.h> for malloc. 683260484Sobrien * hosts/h-news.h, h-sparc-64.h: New config files that had 683360484Sobrien previously been kludged in the <sysdep.h> file. 683460484Sobrien 683560484SobrienThu Oct 10 17:54:08 1991 John Gilmore (gnu at cygnus.com) 683660484Sobrien 683760484Sobrien * config/*: trad-core support is HOST dependent, not target 683860484Sobrien dependent. Target config files only set DEFAULT_VECTOR and/or 683960484Sobrien other vector elements. Exception: when host-aout.c is in use, 684060484Sobrien in which case we're forced to assume we're native (hp, vax, 684160484Sobrien tahoe). Rename XDEPFILES to HDEPFILES. 684260484Sobrien * Makefile.in: Rename XDEPFILES. 684360484Sobrien * config/h-sun*: Don't force static linking. 684460484Sobrien * trad-core.c: Document how to use it nowadays. 684560484Sobrien * i386aout.c, newsos3.c: Clean up. 684660484Sobrien * i386coff.c: Allow 386 coff files to be used as core files too 684760484Sobrien (for reading core files from embedded systems). 684860484Sobrien 684960484SobrienTue Oct 8 15:30:39 1991 John Gilmore (gnu at cygnus.com) 685060484Sobrien 685160484Sobrien * Add i386aout.c for a.out support on the i386. 685260484Sobrien 685360484SobrienTue Oct 8 12:18:54 1991 Roland H. Pesch (pesch at cygnus.com) 685460484Sobrien 685560484Sobrien * reloc.c, section.c, syms.c, targets.c: correct info-node 685660484Sobrien structure in *doc* comments. 685760484Sobrien doc/Makefile: stop hiding complaints from makeinfo. 685860484Sobrien 685960484SobrienSun Oct 6 19:10:06 1991 John Gilmore (gnu at cygnus.com) 686060484Sobrien 686160484Sobrien * aoutx.h (...some_aout_object_p): Take a third parameter, 686260484Sobrien the internal_exec struct, and avoid ever looking at an 686360484Sobrien external_exec. All callers changed to read the entire 686460484Sobrien external_exec struct, swap and check its magic number, 686560484Sobrien swap in the whole structure, and pass the swapped-in version to 686660484Sobrien some_aout_object_p. 686760484Sobrien * bout.c: Bring into modern era. Use single _object_p routine 686860484Sobrien for big- aand little-endian. Provide internal and external 686960484Sobrien exec header structs. Use separate swap-in and swap-out routines. 687060484Sobrien 687160484Sobrien * libaout.h: Move struct internal_exec from ../include/aout64.h 687260484Sobrien to here. Add obj_symbol_entry_size to struct aoutdata. 687360484Sobrien * aoutx.h (...some_aout_object_p): Set obj_symbol_entry_size. 687460484Sobrien 687560484Sobrien * ../include/aout64.h: Change EXTERNAL_LIST_SIZE to 687660484Sobrien EXTERNAL_NLIST_SIZE. Callers changed. 687760484Sobrien 687860484SobrienFri Oct 4 18:18:46 1991 John Gilmore (gnu at cygnus.com) 687960484Sobrien 688060484Sobrien * bfd.c: Remove strerror() to libiberty. 688160484Sobrien 688260484Sobrien * elf.c: Remove elf_set_section_contents, use generic one. Lint. 688360484Sobrien * libbfd-in.h, libbfd.c: Add bfd_generic_set_section_contents. 688460484Sobrien * libbfd.c (bfd_generic_{get,set}_section_contents): Check that 688560484Sobrien last byte of transfer, not first byte, is within the section. 688660484Sobrien 688760484Sobrien * host-aout.c: Remove `BSD' archive support. Lint. 688860484Sobrien 688960484Sobrien * archures.c: Rename `struct bfd_arch_info_struct' to `struct 689060484Sobrien bfd_arch_info'. Rename `typedef bfd_arch_info_struct_type' to 689160484Sobrien `bfd_arch_info_type'. All uses changed. 689260484Sobrien * reloc.c: Rename `bfd_reloc_status_enum_type' to 689360484Sobrien `bfd_reloc_status_type'. Rename `bfd_reloc_code_enum_real_type' 689460484Sobrien to `bfd_reloc_code_real_type'. (This seems to be a misnomer, 689560484Sobrien it needs a better name.) All uses changed. 689660484Sobrien * targets.c: Rename `enum target_flavour_enum' to `enum 689760484Sobrien target_flavour', and remove the `_enum' from all of the enum 689860484Sobrien values themselves. All uses changed. 689960484Sobrien 690060484Sobrien * configure.in, config/h-i386mach: i386 mach host. 690160484Sobrien * config/t-i386-aout: Use host-aout.c. 690260484Sobrien 690360484Sobrien * trad-core.c: Give it its own xvec's to make it independent 690460484Sobrien of other file formats. 690560484Sobrien * ecoff.c, host-aout.c: Remove refs to trad-core. 690660484Sobrien * config/t-dec3100, t-hp300bsd, t-tahoe, t-vax: Define TRAD_CORE. 690760484Sobrien * targets.c: #ifdef TRAD_CORE, include it in the vector. 690860484Sobrien 690960484SobrienFri Oct 4 17:38:03 1991 Steve Chamberlain (steve at cygnus.com) 691060484Sobrien 691160484Sobrien * reloc.c: Extended NEWHOWTO macro 691260484Sobrien * ieee.c: Changed the way 8bit pcrel is done 691360484Sobrien * cpu-h8300.c: got the registers in the right order 691460484Sobrien 691560484SobrienThu Oct 3 19:39:55 1991 John Gilmore (gnu at cygnus.com) 691660484Sobrien 691760484Sobrien * bfd-in.h: enum boolean => enum bfd_boolean for SVR4. Gumby's 691860484Sobrien prediction is vindicated! 691960484Sobrien 692060484Sobrien * bfd-in.h, libbfd-in.h, doc/Makefile, doc/tolibbfd, doc/intobfd: 692160484Sobrien Remove refs to howto.c, since Steve forgot. 692260484Sobrien 692360484SobrienThu Oct 3 07:49:21 1991 Steve Chamberlain (steve at cygnus.com) 692460484Sobrien 692560484Sobrien * elf.c: took the abort out of set_arch_mach so that objdump -i will 692660484Sobrien still work. Now allows any architecture/machine to be set. 692760484Sobrien 692860484SobrienWed Oct 2 13:50:35 1991 Steve Chamberlain (steve at cygnus.com) 692960484Sobrien 693060484Sobrien * howto.c deleted and moved code to reloc.c 693160484Sobrien 693260484Sobrien * libbfd.h, libbfd-in.h removed $id stuff for real 693360484Sobrien 693460484Sobrien * cpu-h8300.c Made it match various different spellings of h8300. 693560484Sobrien 693660484Sobrien * archures.c: Took out the first char filter which made it only 693760484Sobrien look for a cpu/arch match when the first chars of supplied and 693860484Sobrien tested names were the same. 693960484Sobrien 694060484Sobrien * targets.c removed oasys stuff, pending someone to fix the bugs 694160484Sobrien in it. 694260484Sobrien 694360484Sobrien 694460484SobrienTue Oct 1 12:29:44 1991 John Gilmore (gnu at cygnus.com) 694560484Sobrien 694660484Sobrien * Makefile.in, configure.in, targets.c, elf.c: Add preliminary 694760484Sobrien ELF support good enough for GDB. 694860484Sobrien * configure.in, config/h-amix, config/t-m68k-elf: Handle 694960484Sobrien m68k-cbm-svr4 host and target. 695060484Sobrien * config/t-m68k-coff, t-m88k-coff, t-m88k-aout: Make files nonempty 695160484Sobrien so `diff' and `patch' can cope. 695260484Sobrien 695360484SobrienTue Oct 1 11:24:31 1991 Steve Chamberlain (steve at cygnus.com) 695460484Sobrien 695560484Sobrien * archures.c: removed texinfo error 695660484Sobrien 695760484Sobrien * init.c: added texinfo hooks, and removed initialization error 695860484Sobrien message. 695960484Sobrien 696060484Sobrien * libcoff-in.h, libbfd-in.h removed $id field so cvs can merge 696160484Sobrien without complaints. 696260484Sobrien 696360484SobrienTue Oct 1 05:02:53 1991 John Gilmore (gnu at cygnus.com) 696460484Sobrien 696560484Sobrien * cpu-i960.c: Avoid numerical count of initializers. 696660484Sobrien 696760484Sobrien Vax Ultrix changes from David Taylor <taylor@think.com>: 696860484Sobrien * host-aout.c: Make little-endian vector really little-endian. 696960484Sobrien * configure.in: Separate vax and tahoe cases, handle ultrix. 697060484Sobrien * config/t-vax: Add trad-core.o. 697160484Sobrien * config/h-vaxult: New host system. 697260484Sobrien 697360484SobrienMon Sep 30 15:13:46 1991 Steve Chamberlain (steve at cygnus.com) 697460484Sobrien 697560484Sobrien * bfd-in.h VERSION, change version number to 0.18, this makes a 697660484Sobrien gap, but now is the same as the linker version number. 697760484Sobrien 697860484Sobrien * cpu-a29k.c, cpu-i386.c, cpu-m68k.c, cpu-mips.c, cpu-vax.c, 697960484Sobrien cpu-h8300.c, cpu-i960.c, cpu-m88k.c, cpu-sparc.c: added. These 698060484Sobrien files will eventually contain processor specific bits for bfd, 698160484Sobrien like strange relocation information and dis/assembly. So far only 698260484Sobrien the H8 has been even partially done. This work also ties in with 698360484Sobrien the change in handling architectures. 698460484Sobrien 698560484Sobrien * amdcoff.c: (a29k_reloc) fix error message. 698660484Sobrien 698760484Sobrien * aout-f1.h: (choose_reloc_size) now calls bfd_get_arch to 698860484Sobrien discover the architecture of the bfd. (sunos4_callback) calls the 698960484Sobrien function bfd_set_arch_mach rather than stuffing stuff directly 699060484Sobrien into the bfd. (sunos4_write_object_contents), changed names of 699160484Sobrien accessor functions. 699260484Sobrien 699360484Sobrien * aoutx.h: (set_arch_mach) now calls bfd_default_set_arch_mach to 699460484Sobrien setup the environment. 699560484Sobrien 699660484Sobrien * archive.c: (bfd_slurp_coff_armap) coff archives always have the 699760484Sobrien headers in big endian format, regardless of the endianess of the 699860484Sobrien host or target. 699960484Sobrien 700060484Sobrien * archures.c: totally changed. Now an architecture is represented 700160484Sobrien with a pointer to an info structure rather than an enumerated type 700260484Sobrien and a long. The old info is available as two elements in the 700360484Sobrien structure. Future enhancements to architecure support will 700460484Sobrien involve pointers to methods being placed into the info structure. 700560484Sobrien 700660484Sobrien * bfd.c: changed the definition of the bfd structure for the new 700760484Sobrien architecture stuff. 700860484Sobrien 700960484Sobrien * bout.c: (b_out_set_arch_mach) changed to use the new 701060484Sobrien architecture mechanism. 701160484Sobrien 701260484Sobrien * coffcode.h: (coff_set_arch_mach, coff_set_flags) changed to use 701360484Sobrien the new architecture mechanism. 701460484Sobrien 701560484Sobrien * configure.in: added h8 stuff. 701660484Sobrien 701760484Sobrien * ieee.c: too many changes to note. Now ieee files written with 701860484Sobrien bfd gas and ld can be read by gld and ieee only linkers and 701960484Sobrien simulators. 702060484Sobrien 702160484Sobrien * libbfd.c, libbfd.h: changed prototype of bfd_write. 702260484Sobrien 702360484Sobrien * newsos3.c: (newos3_callback) now calls bfd_set_arch_mach rather 702460484Sobrien than fixing the structure directly. 702560484Sobrien 702660484Sobrien * oasys.c: (oasys_object_p) now calls bfd_default_set_arch_mach rather 702760484Sobrien than fixing the structure directly. 702860484Sobrien 702960484Sobrien * opncls.c: (new_bfd) makes sure that bfd_init has been called 703060484Sobrien before opening a bfd. 703160484Sobrien 703260484Sobrien * srec.c: (srec_set_arch_mach) now calls bfd_default_set_arch_mach 703360484Sobrien rather than fixing the structure directly. 703460484Sobrien 703560484Sobrien * targets.c: (target_vector) now by defining SELECT_VECS (perhaps 703660484Sobrien in the t/hmake file) a user can select which backends they want 703760484Sobrien linked with bfd without changing the source. 703860484Sobrien 703960484Sobrien * init.c: new, looks after initializing modules. 704060484Sobrien 704160484Sobrien * howto.c: for future use, will allow an application to work out 704260484Sobrien what cookie to use as a handle on a relcoatio howto. 704360484Sobrien 704460484SobrienMon Sep 30 13:31:15 1991 John Gilmore (gnu at cygnus.com) 704560484Sobrien 704660484Sobrien * srec.c: Better error checking, partly from Peter Schauer. 704760484Sobrien (srec_object_p): Avoid assuming any file that starts with 'S' is 704860484Sobrien an S-record file! (Check for 3 uppercase-hex digits after it.) 704960484Sobrien (ISHEX): Define new macro for checking supposedly hex characters. 705060484Sobrien (pass_over): Treat as EOF any S-record line that: 705160484Sobrien * doesn't have hex in either size character 705260484Sobrien * produces a size larger than 0x7F 705360484Sobrien * has an unrecognized type number 705460484Sobrien 705560484SobrienThu Sep 26 15:27:29 1991 John Gilmore (gnu at cygnus.com) 705660484Sobrien 705760484Sobrien * aoutf1.h, aoutx.h, bout.c, coffcode.h, host-aout.c, oasys.c, 705860484Sobrien opncls.c: Lint (saber actually). 705960484Sobrien 706060484SobrienThu Sep 26 11:24:24 1991 Per Bothner (bothner at cygnus.com) 706160484Sobrien 706260484Sobrien * libaout.h (WRITE_HEADERS): Set header's a_text field always. 706360484Sobrien * newsos3.c: Fixed two types: newos3 -> newsos3. 706460484Sobrien * reloc.c (bfd_perform_relocation): Fix pc-relative relocation 706560484Sobrien to use correct segment. 706660484Sobrien 706760484SobrienMon Sep 23 18:24:34 1991 Per Bothner (bothner at cygnus.com) 706860484Sobrien 706960484Sobrien * aoutx.h (print_symbol): Handle missing symbol->name. 707060484Sobrien 707160484SobrienFri Sep 20 12:26:01 1991 Stu Grossman (grossman at cygnus.com) 707260484Sobrien 707360484Sobrien * aoutf1.h (swapcore_sparc): Change name of USRSTACK, fix comment 707460484Sobrien at top of routine. 707560484Sobrien 707660484SobrienTue Sep 17 17:23:49 1991 Stu Grossman (grossman at cygnus.com) 707760484Sobrien 707860484Sobrien * oasys.c, configure.in, config/h-irix3, config/t-irix3: 707960484Sobrien add sgi/irix support. 708060484Sobrien 708160484SobrienThu Sep 12 14:29:09 1991 John Gilmore (gnu at cygint.cygnus.com) 708260484Sobrien 708360484Sobrien Changes for the AMD 29000 Ultracomputer port from David Wood. 708460484Sobrien (wood@nyu.edu). 708560484Sobrien 708660484Sobrien * opncls.c (bfd_fdopenr): Handle NO_FCNTL. 708760484Sobrien 708860484Sobrien * Makefile.in: Make subdirs work by using $(INCDIR) in the 708960484Sobrien crude dependencies. 709060484Sobrien 709160484Sobrien * coffcode.h (coff_real_object_p): Pass information about the 709260484Sobrien current file's coff symbol format to BFD via the coff_data struct. 709360484Sobrien (coff_find_nearest_line): obj_icof => coff_data. 709460484Sobrien (coff_swap_sym_{in,out}): Check that SYMNMLEN == E_SYMNMLEN. 709560484Sobrien (coff_swap_aux_{in,out}): Check that FILNMLEN == E_FILNMLEN 709660484Sobrien and DIMNUM == E_DIMNUM. 709760484Sobrien * configure.in: Handle a29k-*-* hosts, and targets 709860484Sobrien a29k-*-coff, a29k-*-aout, and a29k-*-sym1. 709960484Sobrien * libcoff-in.h: Add local_n_btmask, local_n_btshft, 710060484Sobrien local_n_tmask, local_n_tshift, local_symesz, local_auxesz, 710160484Sobrien local_linesz to `coff_data' (tdata) struct. 710260484Sobrien (coff_data, coff_data_type, coff_tdata): Rename struct icofdata. 710360484Sobrien * config/h-ultra3: Handle a29k-*-* hosts as Ultracomputers. 710460484Sobrien 710560484SobrienThu Sep 12 14:07:22 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 710660484Sobrien 710760484Sobrien * Makefile.in: $(MAKE) for make, $(docdir) for doc 710860484Sobrien * doc/Makefile: redundant dependencies for Sun-make VPATH bug 710960484Sobrien 711060484SobrienTue Sep 10 20:34:12 1991 John Gilmore (gnu at cygint.cygnus.com) 711160484Sobrien 711260484Sobrien * aoutf1.h (sunos4_core_file_p): Release the right storage in 711360484Sobrien error case. 711460484Sobrien (sunos4_core_file_matches_executable_p): Fix header comparison. 711560484Sobrien * aoutx.h: Avoid shifts of 32 bits, undefined in C. Lint. 711660484Sobrien * bout.c, icoff.c, ieee.c, libbfd.c, oasys.c: gcc -O -W lint. 711760484Sobrien 711860484SobrienWed Sep 4 00:44:52 1991 John Gilmore (gnu at cygint.cygnus.com) 711960484Sobrien 712060484Sobrien Allow GDB to patch object files. 712160484Sobrien 712260484Sobrien * aoutf1.h (sunos_core_file_p): Set SEC_HAS_CONTENTS on all sections. 712360484Sobrien * trad-core.h (trad_unix_core_file_p): Ditto. 712460484Sobrien * aoutx.h (aout_set_section_contents): On first output, check 712560484Sobrien abfd->direction and complain if erroneous. 712660484Sobrien 712760484Sobrien * Makefile.in: Add crude dependencies. 712860484Sobrien 712960484SobrienTue Sep 3 13:46:19 1991 Steve Chamberlain (steve at cygint.cygnus.com) 713060484Sobrien 713160484Sobrien * config/* aoutx.h configure* shortened all the h/tmake-xxxx 713260484Sobrien to h/t-xxxx files so that everything will work on System V. 713360484Sobrien 713460484SobrienFri Aug 23 13:51:06 1991 John Gilmore (gnu at cygint.cygnus.com) 713560484Sobrien 713660484Sobrien * aoutx.h: Add information on host-aout.c and how to configure 713760484Sobrien to use it, to the manual. 713860484Sobrien * configure.in: Tix typo. 713960484Sobrien * ecoff.c: If compiling for DEC3100, use trad_unix core files, 714060484Sobrien else dummy out the core file support. 714160484Sobrien * trad-core.c (trad_unix_core_file_p): If HOST_DATA_START_ADDR is 714260484Sobrien specified, use it to locate the data section. 714360484Sobrien * coffcode.h (coff_write_symbols): Declare buffer as bfd_bytes 714460484Sobrien rather than as chars (lint). 714560484Sobrien 714660484SobrienThu Aug 22 22:20:19 1991 Stu Grossman (grossman at cygint.cygnus.com) 714760484Sobrien 714860484Sobrien * aoutx.h, coffcode.h: saberized. 714960484Sobrien 715060484SobrienThu Aug 22 11:27:06 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 715160484Sobrien 715260484Sobrien * bfd.texinfo: some cleanup, reincorporated more intro matter from 715360484Sobrien bfd.doc 715460484Sobrien bfd.c, targets.c: minor rewording of doc segments 715560484Sobrien 715660484Sobrien 715760484SobrienWed Aug 21 19:13:22 1991 John Gilmore (gnu at cygint.cygnus.com) 715860484Sobrien 715960484Sobrien * trad-core.c (trad_unix_core_file_p): Use HOST_TEXT_START_ADDR, 716060484Sobrien etc, rather than TEXT_START_ADDR. 716160484Sobrien * host-aout.c: Remove #if 0 around whole thing. 716260484Sobrien Update to modern (32/64-bit) a.out naming conventions. 716360484Sobrien Include a large chunk of ../include/a.out.gnu.h to get macros that 716460484Sobrien are not defined by the system include files. 716560484Sobrien (host_aout_{32,64}_write_object_contents): Use the WRITE_HEADERS 716660484Sobrien macro used by the other a.out implementations. 716760484Sobrien * Makefile.in: Give dependencies to OPTIONAL_BACKENDS. 716860484Sobrien 716960484SobrienWed Aug 21 14:33:06 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 717060484Sobrien 717160484Sobrien * Makefile.in: use targets "bfd.dvi" and "bfd.ps" instead of 717260484Sobrien texdoc and psdoc; make these depend on generated .texi's 717360484Sobrien 717460484Sobrien * scanit, (new) unPROTO: turn PROTO macros into ANSI declarations in 717560484Sobrien doc 717660484Sobrien 717760484Sobrien * bfd.c, reloc.c, syms.c: minor spelling/wording fixes in doc 717860484Sobrien portions 717960484Sobrien 718089857Sobrien * Makefile.in, awkscan-ip, awkscan-p, doc/intobfd, 718160484Sobrien libbfd.h, libcoff.h, tolibcoff; new bfd-in.h, libbfd-in.h, 718260484Sobrien libcoff-in.h: (a) use separate files for invariant parts of bfd.h, 718360484Sobrien libbfd.h, and libcoff.h; (b) in generated parts of same, use less 718460484Sobrien obtrusive marks indicating .c origins. 718560484Sobrien 718660484Sobrien * bfd.texinfo: generalize most references to linker 718760484Sobrien 718860484SobrienTue Aug 20 15:18:02 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 718960484Sobrien 719060484Sobrien * Makefile.in: include core.p in PROTOS (building better bfd.h) 719160484Sobrien * archures.c: remove empty foo() definition (crept in at vn1.9) 719260484Sobrien 719360484SobrienMon Aug 19 13:48:22 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 719460484Sobrien 719560484Sobrien * bfd.texinfo: use @setchapternewpage on instead of lots of 719660484Sobrien @page's; minor rephrasing in Introduction. 719760484Sobrien 719860484Sobrien * aoutx.h, archive.c, archures.c, bfd.c, bfd.texinfo, cache.c, 719960484Sobrien coffcode.h, core.c, format.c, ieee.c, libbfd.c, libbfd.h, libcoff.h, 720060484Sobrien oasys.c, opncls.c, reloc.c, section.c, syms.c, targets.c (documentation 720160484Sobrien segments): used BFD (caps) more consistently as a name in 720260484Sobrien discourse, fixed a few other minor typos and uses of fonts 720360484Sobrien 720460484Sobrien 720560484SobrienThu Aug 8 16:47:43 1991 Steve Chamberlain (steve at cygint.cygnus.com) 720660484Sobrien 720760484Sobrien * coffcode.h: fixed bug where string table size wasn't being swapped. 720860484Sobrien 720960484SobrienThu Aug 1 16:35:28 1991 Steve Chamberlain (steve at cygint.cygnus.com) 721060484Sobrien 721160484Sobrien * section.c: added SEC_CONSTRUCTOR_TEXT|DATA|BSS flags 721260484Sobrien 721360484Sobrien * syms.c: added BSF_CONSTRUCTOR, BSF_WARNING and BSF_INDIRECT 721460484Sobrien flags. (bfd_print_symbol_vandf) now knows what to do with the 721560484Sobrien above flags. 721660484Sobrien 721760484Sobrien * aoutx.h: made translate_from_native_sym_flags and 721860484Sobrien translate_to_native_sym_flags produce the above flags. 721960484Sobrien 722060484Sobrien 722160484SobrienWed Jul 31 09:53:52 1991 John Gilmore (gnu at cygint.cygnus.com) 722260484Sobrien 722360484Sobrien * all files: update copyright notices for GPL version 2. 722460484Sobrien Install header comments and attribute most modules to their 722560484Sobrien authors. BFD's name is now officially "Binary File Descriptor", 722660484Sobrien so remove any conflicting pejoratives. 722760484Sobrien archures.h: Consists solely of comments; remove it. 722860484Sobrien 722960484SobrienFri Jul 26 18:11:34 1991 Steve Chamberlain (steve at cygint.cygnus.com) 723060484Sobrien 723160484Sobrien * Makefile.in, bfd.c: Made it compile again. 723260484Sobrien 723360484SobrienFri Jul 19 08:17:09 1991 Steve Chamberlain (steve at cygint.cygnus.com) 723460484Sobrien 723560484Sobrien * newsos3.c, targets.c, coffcode.h: new patches from David Wood 723660484Sobrien 723760484Sobrien 723860484SobrienMon Jul 15 16:27:42 1991 Steve Chamberlain (steve at cygint.cygnus.com) 723960484Sobrien 724060484Sobrien * aoutf1.h archive.c bfd.c coffcode.h core.c ecoff.c ieee.c 724160484Sobrien bfd.texinfo oasys.c opncls.c reloc.c srec.c: More documentation on 724260484Sobrien lint fixes. 724360484Sobrien 724460484Sobrien * amdcoff.c bfd.texinfo Makefile.in : Folded in changes for amd 724560484Sobrien 29k coff by David Wood (wood@lab.ultra.nyu.edu). 724660484Sobrien 724760484SobrienThu Jul 4 09:53:16 1991 Steve Chamberlain (steve at cygint.cygnus.com) 724860484Sobrien 724989857Sobrien * core.c: New file. 725089857Sobrien * format.c: New file. 725189857Sobrien * reloc.c: New file. 725289857Sobrien * section.c: New file. 725389857Sobrien * syms.c: New filew. 725460484Sobrien Cleaned up the rest of the files a bit, and added some 725560484Sobrien documentation. 725660484Sobrien 725760484SobrienMon Jul 1 13:29:47 1991 David Wood (wood at david.ultra.nya.edu) 725860484Sobrien 725960484Sobrien * opncls.c, ../include/sys/h-sun3.h ../include/sys/h-sun4.h: fcntl 726060484Sobrien really takes 3 arguments, patched code and ammended prototypes. 726160484Sobrien 726260484SobrienFri Jun 14 13:19:40 1991 Steve Chamberlain (steve at cygint.cygnus.com) 726360484Sobrien 726460484Sobrien * ../include/bfd.h (struct bfd_target): Added new field 726560484Sobrien "align_power_min" which contains the minimum alignment for a 726660484Sobrien section. This is used in coff_new_section_hook. The field 726760484Sobrien insertion necessitates an update of all backends.. 726860484Sobrien 726960484Sobrien * aoutf1.h jump table field inserted 727060484Sobrien 727160484Sobrien * archive.c(snarf_ar_hdr)(bfd_slurp_coff_armap) can now parse dgux style extended 727260484Sobrien filenames too. 727360484Sobrien 727460484Sobrien * bout.c(b_out_squirt_out_relocs) fix to assertion tests. Jump 727560484Sobrien table field inserted. 727660484Sobrien 727760484Sobrien * coffcode.h(just about everything) Now patches up symbol tables 727860484Sobrien using a different mechanism. The Intel major bug has been fixed, 727960484Sobrien and the linker can self host on the Aviion and be debugged with 728060484Sobrien gdb. 728160484Sobrien 728260484Sobrien * ecoff.c: new include and jump table patch, i386coff.c: new 728360484Sobrien include and jump table patch, icoff.c: new include and jump table 728460484Sobrien patch, ieee.c: can now read archives containing ieee modules., 728560484Sobrien libcoff.h: added (combined_entry_type), libieee.h: uped max 728660484Sobrien sections to 20, m68kcoff.c: new include and jump table patch, 728760484Sobrien m88kbcs.c: new include and jump table patch, oasys.c: various bugs 728860484Sobrien fixed. opncls.c: added bfd_alloc_grow and bfd_alloc_finish. 728960484Sobrien srec.c: jump table patch. trad-code.c fixed #IF typeo 729060484Sobrien 729160484SobrienFri Jun 7 12:35:46 1991 Sean Fagan (sef at cygint.cygnus.com) 729260484Sobrien 729360484Sobrien * coffcode.h (coff_swap_aux_in): added else case to deal with 729460484Sobrien filenames less than 9 characters. 729560484Sobrien 729660484Sobrien 729760484SobrienThu Jun 6 18:27:38 1991 Steve Chamberlain (steve at cygint.cygnus.com) 729860484Sobrien 729989857Sobrien * oasys.c (oasys_archive_p): fixed so it works 730060484Sobrien 730160484Sobrien * srec.c: now allows any number of sections to be created in a 730260484Sobrien file. Outputs addresses of the right length. 730360484Sobrien 730460484SobrienThu May 30 15:30:10 1991 Steve Chamberlain (steve at cygint.cygnus.com) 730560484Sobrien 730660484Sobrien * bfd.c (bfd_check_format): Fixed problem where when a defaulted 730760484Sobrien target didn't match, the format got set to the attempted match, 730860484Sobrien breaking a future test. 730960484Sobrien 731060484Sobrien *../include/i386coff.h : fixed typo in type field with size 731160484Sobrien 731260484Sobrien * i386coff.c icoff.c m88k-bcs.c ecoff.c ../include/bfd.h : Added 731360484Sobrien support in the jump table for the swapping routines exported to 731460484Sobrien gdb. Now gdb works with the 386. 731560484Sobrien 731660484SobrienTue May 28 17:21:43 1991 John Gilmore (gnu at cygint.cygnus.com) 731760484Sobrien 731860484Sobrien * Merge in changes from gdb-3.95 release. 731960484Sobrien Makefile.in: Allow hmake and tmake files to add OFILES. 732060484Sobrien aoutf1.h: 732160484Sobrien bfd.c: support specific targets as well as searching. When 732260484Sobrien searching, take default target in preference to others. 732360484Sobrien bfd.doc: typos 732460484Sobrien ieee.c, oasys.c: Avoid using the "tdata" macros left of assignment. 732560484Sobrien liba.out.h: Don't hard-code file offsets; use N_ macros for them. 732660484Sobrien libbfd.h: Support specific targets as well as searching. 732760484Sobrien opncls.c: Support specific targets as well as searching. 732860484Sobrien targets.c: Search is short-circuited if default target matches. 732960484Sobrien liboasys.c, libieee.c: Undo bothner changes that make macros 733060484Sobrien work to the left of assignment, but which depend on the 733160484Sobrien representations of different pointer types being the same. 733260484Sobrien 733360484SobrienFri May 24 18:56:52 1991 Steve Chamberlain (steve at cygint.cygnus.com) 733460484Sobrien 733560484Sobrien * i386coff.c: created. 733660484Sobrien * coffcode.h: added support for 386. 733760484Sobrien * Makefile.in: added support for 386. 733860484Sobrien * ../include/i386coff.h: created 733960484Sobrien 734060484SobrienWed May 22 07:26:38 1991 Steve Chamberlain (steve at cygint.cygnus.com) 734160484Sobrien 734260484Sobrien * coffcode.h: removed all put_x_<sizes> 734360484Sobrien * libbfd.c: Changed #ifdef __GNUC__ to #ifdef HOST_64_BIT, Added 734460484Sobrien DEFUNS 734560484Sobrien 734660484Sobrien 734760484SobrienTue May 21 08:58:58 1991 Steve Chamberlain (steve at cygint.cygnus.com) 734860484Sobrien (bothner) 734960484Sobrien * opncls.c: Changed obstack_chunk_alloc use xmalloc 735060484Sobrien 735160484SobrienMon May 20 17:12:17 1991 Steve Chamberlain (steve at cygint.cygnus.com) 735260484Sobrien 735360484Sobrien * everything: Removed sysdep.h from bfd.h and put back into files 735460484Sobrien from which it was split out. Now 64 bit version is built with a 735560484Sobrien -DHOST_64_BIT="long long" on the compile line. 735660484Sobrien 735760484SobrienFri May 17 19:35:26 1991 Steve Chamberlain (steve at cygint.cygnus.com) 735860484Sobrien 735960484Sobrien Changed all the [get|put][name] routines to use [get|put]_[size 736060484Sobrien in bytes]. 736160484Sobrien 736260484Sobrien Put in support for 64 bit work. Now two versions of bfd may be 736360484Sobrien generated, according to the state of TARGET_64_BIT, one which is 736460484Sobrien 32 bit only, and one which is 64/32 bits. 736560484Sobrien Created new back end 'demo64' to test 64 bit functionality. 736660484Sobrien 736760484Sobrien Renamed some files to work on DOS. 736860484Sobrien 736960484Sobrien * archive.c: lint * bfd.c: prototypes and lint. * ecoff.c: added 737060484Sobrien 64bit transfer * icoff.c: added 64bit transfer * ieee.c: name 737160484Sobrien chage, 64 bit transfer. * liba.out.h: Split out common code from 737260484Sobrien sunos and newsos into liba.out. Name changes and prototype mods. * 737360484Sobrien libbfd.c: lint and prototypes, extra 64bit swaps. * libbfd.h: 737460484Sobrien prototypes for new functions. * libcoff.h: lint * libieee.h: make 737560484Sobrien work on DOS * liboasys.h: make work on DOS * m88k-bcs.c: Name 737660484Sobrien change and 64bit stuff.* newsos3.c: common code removed, new jump 737760484Sobrien table. * oasys.c: Name change * opncls.c: Portability fixes * 737860484Sobrien srec.c: Name changes * sunos.c: Removed comon code. * targets.c: 737960484Sobrien Added demo * aout32, aout64.c include aoutx.h * bout.c: used to 738060484Sobrien be called b.out.c * coffcode.h: used to be called coff-code.h, now 738160484Sobrien 64bit ized. * demo64.c: 64 bit a.out back end 738260484Sobrien 738360484SobrienThu May 16 16:02:07 1991 Steve Chamberlain (steve at cygint.cygnus.com) 738460484Sobrien from bothner 738560484Sobrien * libieee.h: Make ieee_data and ieee_ar_data macros usable 738660484Sobrien on LHS of assignment, even when using old compilers. 738760484Sobrien * liboasys.h: Ditto for oasys_data and oasys_ar_data. 738860484Sobrien * m68kcoff.c: Add enum-to-int casts to accomodate old compilers. 738960484Sobrien * newsos3.c: Fix definitions of SEGMENT_SIZE and TEXT_START_ADDR. 739060484Sobrien * opncls.c: Define S_IXUSR, S_IXGRP, S_IXOTH if undefined. 739160484Sobrien * targets.c: Add declaration of newsos3_vec. 739260484Sobrien 739360484SobrienMon May 13 10:03:29 1991 Steve Chamberlain (steve at cygint.cygnus.com) 739460484Sobrien 739560484Sobrien * aout.c: fixxed some of the problems with filepos calculation. 739660484Sobrien (swap_ext_reloc): fixed problem with creation of relocs. 739760484Sobrien (aout_set_section_contents): fixed filepos problem 739860484Sobrien 739960484Sobrien * coff-code.h: (swap_filehdr_in, swap_filehdr_out) add. 740060484Sobrien (swap_filehdr) delete. Changed all the usage of bfd_h_put_x. 740160484Sobrien (swap_aouthdr_in, swap_aouthdr_out) add. (swap_aouthdr) delete. 740260484Sobrien (coff_real_object_p) cleaned up, added MIPS. (coff_object_p) 740360484Sobrien cleaned up. (coff_write_object_contents) cleaned up. 740460484Sobrien 740560484Sobrien * ecoff.c: Totally different. Now supports ecoff fully. 740660484Sobrien 740760484Sobrien * icoff.c: fixed problems in relocation callout. 740860484Sobrien 740960484Sobrien * libcoff.h: (struct icofdata) removed hdr structure from tdata. 741060484Sobrien 741160484Sobrien * m68kcoff.c: updated target vector. 741260484Sobrien 741360484Sobrien * sunos.c: (choose_reloc_size) added: (sunos4_callback) calls 741460484Sobrien choose_reloc_size. (sunos4_write_object_contents) now calls 741560484Sobrien choose_reloc_size so outputs relocs correctly, also calculates the 741660484Sobrien size of the sections correctly. 741760484Sobrien 741860484Sobrien 741960484Sobrien 742060484SobrienFri May 10 16:58:53 1991 John Gilmore (gnu at cygint.cygnus.com) 742160484Sobrien 742260484Sobrien Merge Per Bothner's changes to modularize BFD a.out a bit. 742360484Sobrien 742460484Sobrien * libbfd.h, libbfd.c (bfd_generic_get_section_contents): Add. 742560484Sobrien * ieee.c: Cast enums to int before comparing them, for brain- 742660484Sobrien dead compilers. 742760484Sobrien * coff-code.h: Remove coff_get_section_contents, and use the 742860484Sobrien generic one instead. 742960484Sobrien 743060484Sobrien * aout.c: Derive new module from sunos.c, containing generic 743160484Sobrien support code for all kinds of a.out files. 743260484Sobrien 743360484Sobrien * sunos.c: Remove all code that goes in aout.c. Split out 743460484Sobrien machine dependent followup in sunos4_object_p into 743560484Sobrien sunos4_callback. Use JUMP_TABLE(aout) for the transver vector, 743660484Sobrien and redefine only the names we CHANGE, not all the names. Drop 743760484Sobrien the little-endian vector, and rename the vector as sunos4 rather 743860484Sobrien than generic. 743960484Sobrien 744060484Sobrien * b.out.c: Use aout.c routines for most of the work. Slight 744160484Sobrien changes for the new regime. Remove close_and_cleanup and 744260484Sobrien get_section_contents in favor of generics. New transfer vector 744360484Sobrien regime. 744460484Sobrien 744589857Sobrien * newsos3.c: New support for Sony NEWS, another a.out format. 744660484Sobrien 744760484Sobrien * ecoff.c: Remove close_and_cleanup. New tvec regime. 744860484Sobrien * icoff.c, m88k-bcs.c: Add write_contents to tvec. 744960484Sobrien * ieee.c, oasys.c: Remove close_and_cleanup, add write_contents 745060484Sobrien to tvec. 745160484Sobrien * opncls.c (bfd_close): Call format-dependent write_contents 745260484Sobrien routine, if writing, before calling target-dependent 745360484Sobrien close_and_cleanup routine (which is now always generic, I think). 745460484Sobrien * srec.c: Use bfd_alloc instead of malloc. Remove 745560484Sobrien close_and_cleanup and move code from it to 745660484Sobrien srec_write_object_contents. Add write_contents to tvec. 745760484Sobrien * targets.c: Remove a.out little vector, replace a.out big 745860484Sobrien vector with SunOS vector. FIXME: Need Vax support again now. 745960484Sobrien 746060484Sobrien * libbfd.h: Add write_contents format-dependent-vector to the 746160484Sobrien bfd_target vector. Supply a generic close_and_cleanup routine. 746260484Sobrien * liba.out.h: Handle the new aout.c split. Add prototypes for 746360484Sobrien all routines defined in aout.c. Rename "sunos" things to "aout" 746460484Sobrien things. Add a few fields where needed for various formats. 746589857Sobrien * Makefile.in: Add aout.c and newsos3.c. 746660484Sobrien 746760484Sobrien * archive.c, ieee.c, oasys.c: Lint. 746860484Sobrien 746960484SobrienFri May 10 12:34:48 1991 Steve Chamberlain (steve at cygint.cygnus.com) 747060484Sobrien 747160484Sobrien * ../include/bfd.h 747260484Sobrien changed forward declaration struct stat; to reduce warnings. Changed 747360484Sobrien comment on bfd_h_<x>_x. 747460484Sobrien 747560484Sobrien * ../include/m68kcoff.h, ../include/intel-coff.h, 747660484Sobrien ../include/m88k-bcs.h 747760484Sobrien Now there are two incarnations of relocs, linenos and syments. One for 747860484Sobrien internal digestion, and one full of char arrays for I/O. The original 747960484Sobrien names have gone to detect errors. 748060484Sobrien 748160484Sobrien * Makefile.in, m68kcoff.c, targets.c 748260484Sobrien Test new structure code with a 68k coff implementaion 748360484Sobrien 748460484Sobrien * coff-code.h, icoff.c, coffswap.c, libcoff.h 748560484Sobrien Fixed all the places where there were problems with the size and 748660484Sobrien alignments of structures on disk and structures in memory. #ifed out 748760484Sobrien all the code in coffswap.c, since it should be done using the target 748860484Sobrien swap routines now. 748960484Sobrien 749060484SobrienThu May 9 11:00:45 1991 Steve Chamberlain (steve at cygint.cygnus.com) 749160484Sobrien 749260484Sobrien * ieee.c (do_one, ieee_slurp_section_data): now supports the load 749360484Sobrien multiple reloc command. 749460484Sobrien 749560484Sobrien * sunos.c (sunos4_set_section_contents): Made it so that sections 749660484Sobrien are always padded to their alignment size. 749760484Sobrien 749860484SobrienSat May 4 15:49:43 1991 John Gilmore (gnu at cygint.cygnus.com) 749960484Sobrien 750060484Sobrien * archive.c, bfd.c, coff-code.h, opncls.c, sunos.c, trad-core.c: 750160484Sobrien Clean up types and such (saber C problems). 750260484Sobrien * ecoff.c: Clean up types and such. Remove routines that are 750360484Sobrien not used. Fix up reading and swapping of shorts from files. 750460484Sobrien 750560484Sobrien Notes on bfd-0.5.2-patch1a, from Per Bothner: 750660484Sobrien 750760484Sobrien * a.out.vax.c: Remove two bogus "static" from prototypes. 750860484Sobrien 750960484Sobrien * ecoff.c: Got rid of lots of non-working junk (that had 751060484Sobrien been copied directly from coff-code.h). 751160484Sobrien Updated to be consistent with updates to icoff.c and coff-code.h. 751260484Sobrien 751360484Sobrien * libbfd.h: Added definitions for S_IXUSR, S_IXGRP, and S_IXOTH 751460484Sobrien if they're missing (as they are in (BDS-4.3-based) NewsOS-3). 751560484Sobrien 751660484Sobrien * sunos.c (n_txtoff): (Re-)Add support for sony. This is a kludge, 751760484Sobrien but until the target_vector is automatically generated, 751860484Sobrien it's as good as any. Note that the text offset is the only 751960484Sobrien difference between NewsOS and SunOs (including magic numbers). 752060484Sobrien (Most of the sunos_* routines should to renamed bsd_* 752160484Sobrien and move to a bsd.c file. Then (and when the target_vector 752260484Sobrien is automatically generated) it might make sense to create 752360484Sobrien a separate Sony target.) 752460484Sobrien 752560484Sobrien * sysdep.h: Don't declare fread and fwrite. Causes trouble 752660484Sobrien on some systems, and doesn't help on others. 752760484Sobrien Similarly, only define X_OK if not already defined. 752860484Sobrien 752960484Sobrien * trad-core.c: Don't include sys/stat.h - at least 753060484Sobrien on NewsOS 3, it has already been included. 753160484Sobrien 753260484SobrienTue Mar 5 01:47:57 1991 John Gilmore (gnu at cygint.cygnus.com) 753360484Sobrien 753460484Sobrien * coff-code.h (bfd_coff_swap_sym, bfd_coff_swap_aux, 753560484Sobrien bfd_coff_swap_lineno): Export the routines that byte-swap COFF 753660484Sobrien symbol tables if necessary when reading them in, so gdb can use 753760484Sobrien them. Add "bfd_coff_" to the names so they won't conflict with 753860484Sobrien names in calling programs. FIXME-soon: if coff-code.h is 753960484Sobrien included in two BFD modules, this will cause duplicate 754060484Sobrien definitions; the routines should be exported to a separate, 754160484Sobrien common, module (probably along with a mess of other ones). 754260484Sobrien 754360484SobrienSat Mar 2 12:11:26 1991 John Gilmore (gnu at cygint.cygnus.com) 754460484Sobrien 754560484Sobrien Improve modtime support. 754660484Sobrien 754760484Sobrien * bfd.h: Add boolean mtime_set, and declare bfd_get_mtime. 754860484Sobrien Remove #define for bfd_get_mtime. Remove gratuitous comment. 754960484Sobrien * bfd.c (bfd_get_mtime): New fn, caches mtime, gets if not cached. 755060484Sobrien BUG: archive members still do not get correct mod times. 755160484Sobrien 755260484Sobrien Improve floating point support for core files. 755360484Sobrien 755460484Sobrien * sunos.c (struct core): Change void *fpa_dummy to double fp_stuff. 755560484Sobrien (sunos4_core_file_p): Create a second registers section in the 755660484Sobrien core file, called ".reg2", for the float registers. 755760484Sobrien 755860484SobrienThu Feb 14 15:49:06 1991 Gumby Vinayak Wallace (gumby at cygint.cygnus.com) 755960484Sobrien 756060484Sobrien * many changes to improve archive handling; found a logic flaw in 756160484Sobrien bfd_check_format which only just happened to work by cooncidence. 756260484Sobrien 756360484SobrienThu Feb 14 07:53:16 1991 Steve Chamberlain (steve at cygint.cygnus.com) 756460484Sobrien 756560484Sobrien * bfd.c (bfd_perform_relocation): fixed to use output_offsets 756660484Sobrien correctly. 756760484Sobrien 756860484Sobrien * bfd.h: changed type of udata in asymbol to void *, like it 756960484Sobrien should be. Added bfd_reloc_dangerous enum member. 757060484Sobrien 757160484Sobrien * coff-code.h: Fixed it so that internally generated symbols get 757260484Sobrien their values relocated correctly in all cases. Removed calls to 757360484Sobrien xmalloc. 757460484Sobrien 757560484Sobrien * icoff.c: Not understanding the destination symbol of a reloc is 757660484Sobrien not a failure any more, just 'dangerous'. This allows linking of 757760484Sobrien b.out and coff images. 757860484Sobrien 757960484Sobrien * sunos.c: Cleaned up the way that ZMAGIC section sizes are 758060484Sobrien calculated. 758160484Sobrien 758260484Sobrien 758360484SobrienTue Feb 12 13:25:46 1991 Steve Chamberlain (steve at cygint.cygnus.com) 758460484Sobrien 758560484Sobrien * sunos.c (translate_to_native_sym_flags): fixed 758660484Sobrien sym_pointer->n_value so that symbols on the way out get their 758760484Sobrien section relative values calculated correctly. 758860484Sobrien 758960484Sobrien * coff-code.h (mangle_symbols): fixed problem where tags were not 759060484Sobrien being relocated for structs, enums, unions. Also various lints. 759160484Sobrien 759260484SobrienMon Feb 11 19:52:26 1991 Gumby Vinayak Wallace (gumby at cygint.cygnus.com) 759360484Sobrien 759460484Sobrien * archive.c (get_elt_at_filepos): system_call_error returned 759560484Sobrien incorrectly. 759660484Sobrien 759760484SobrienSun Feb 10 23:18:40 1991 Gumby Vinayak Wallace (gumby at cygint.cygnus.com) 759860484Sobrien 759960484Sobrien * Resolve the use of no_error and system_call_error. 760060484Sobrien The bfd library itself now will never set bfd_error to 760160484Sobrien no_error. 760260484Sobrien 760360484Sobrien The code still needs to be combed to make sure all the error 760460484Sobrien codes are correct. I suspect they are not always set correctly. 760560484Sobrien 760660484Sobrien * The names of all the messages have _ prepended because the sun 760760484Sobrien bundled compiler can't distinguish from a macro which takes an 760860484Sobrien argument and the same identifier in a non-macro context. 760960484Sobrien 761060484Sobrien * The reason for the above being that entry points which used to 761160484Sobrien be trampoline functions are now just macros which expand to a 761260484Sobrien direct call through the bfd's xfer vector. 761360484Sobrien 761460484Sobrien * (../include/intel-coff.h) F_AR32WR: fix this constant. Why 761560484Sobrien must gas have its own version of everything (the gas version 761660484Sobrien had the correct value) 761760484Sobrien 761860484SobrienTue Feb 5 11:46:53 1991 Steve Chamberlain (steve at cygint.cygnus.com) 761960484Sobrien 762060484Sobrien * b.out.c: Added patches supplied by chrisb@mipon2.intel.com to 762160484Sobrien properly support i960 architecture and output correct reloc stuff. 762260484Sobrien 762360484Sobrien * bfd.h: added prototype for bfd_printable_arch_mach, added 762460484Sobrien BFD_FAIL 762560484Sobrien 762660484Sobrien * coff-code.h: Applied patches from chrisb to support i960 762760484Sobrien architecture, zero relocs and swap them correcly and conditionally 762860484Sobrien compiled the timestamp. 762960484Sobrien 763060484Sobrien * sunos.c: Made the default section alignment 2^3 so that doubles 763160484Sobrien are done properly. Fixed the same reloc bug that was in b.out.c 763260484Sobrien 763360484Sobrien * sysdep.h: Now compiles on a Posix box 763460484Sobrien 763560484SobrienWed Jan 30 21:36:26 1991 John Gilmore (gnu at cygint.cygnus.com) 763660484Sobrien 763760484Sobrien * icoff.c: Fix comment on big-endian version. 763860484Sobrien * coff-code.h: Make HAS_RELOC really work (it's backwards from 763960484Sobrien F_RELFLG). Set F_AR32WR in output files if little endian 764060484Sobrien architecture. 764160484Sobrien 764260484SobrienTue Jan 29 20:56:10 PST 1991 steve@cygnus.com 764360484Sobrien 764460484Sobrien * archures.c fixed =/== typo 764560484Sobrien 764660484Sobrien * sunos.c added architecture stuff for output. Fixed 764760484Sobrien bug where files where vma(data) != size(text) 764860484Sobrien were processed wrong. 764960484Sobrien 765060484Sobrien * coff-code.h added a lint cast 765160484Sobrien 765260484Sobrien * (../include/a.out.sun4.h) fixed it so zmagic 765360484Sobrien worked 765460484Sobrien 765560484SobrienMon Jan 28 19:15:29 PST 1991 steve@cygnus.com 765660484Sobrien 765760484Sobrien * archive.c removed loads of includes, and fixed bug where string 765860484Sobrien table didn't have a null at the end. 765960484Sobrien 766060484Sobrien * bfd.c fixed includes, added symbols argument to 766160484Sobrien canonicalize_reloc entry point. 766260484Sobrien 766360484Sobrien * libbfd.c fixed includes and added some lint patches. 766460484Sobrien 766560484Sobrien * targets.c added both sorts of intel coff. 766660484Sobrien 766760484Sobrien * b.out.c fixed included, changed was the canonical 766860484Sobrien relocs were done. 766960484Sobrien 767060484Sobrien * icoff.c added support for callj and big and little 767160484Sobrien enidian tables. 767260484Sobrien 767360484Sobrien * opncls.c added chmod+xing for files with EXEC_P set. 767460484Sobrien 767560484Sobrien * sunos.c fixed includes. Changed default section 767660484Sobrien alignement to words. Fixed relocation stuff to work with 767760484Sobrien new scheme 767860484Sobrien 767960484Sobrien * bfd.h various new types added, prototype for new 768060484Sobrien reloc calls, changed bfd->iostream to a void * 768160484Sobrien to including files don't need stdio.h. 768260484Sobrien 768360484Sobrien * libcoff.h added conversion table to tie relocs to 768460484Sobrien canonical symbols 768560484Sobrien 768660484Sobrien * sysdep.h created 768760484Sobrien 768860484Sobrien * coff-code.h fixed includes. Added code to support 768960484Sobrien big and little endian formats. Various lints. Better 769060484Sobrien processing of symbols. Changed reloc stuff to new 769160484Sobrien order 769260484Sobrien 769360484Sobrien * libbfd.h fixed includes 769460484Sobrien 769560484Sobrien 769660484SobrienMon Jan 21 11:53:51 PST 1991 steve@cygnus.com 769760484Sobrien 769889857Sobrien * bfd.h: changed name of alignment entry in sec_struct to 769960484Sobrien alignment_power, because of conflicting uses within bfd. 770060484Sobrien Now it should be obvious that it's a 2**n alignment 770160484Sobrien specifier. Removed start_pad, end_alignment, block, minsize, 770260484Sobrien output_file_alignment, subsection_alignment and original_vma fields. 770360484Sobrien Added align_power() macro. Fixed bfd_section_alignment 770460484Sobrien acessor macros. Added bfd_symbol_same_target macro. 770560484Sobrien 770689857Sobrien * b.out.c (b_out_write_object_contents): fixed to use 770760484Sobrien new alignment member. Fixed (callj_callback) to use section 770860484Sobrien relative symbols properly. 770960484Sobrien 771089857Sobrien * sunos.c (sunos4_object_p): fixed to use new alignment_power. 771160484Sobrien Fixed (translate_from_native_sym_flags) to correctly make 771260484Sobrien symbols section relative. 771360484Sobrien 771489857Sobrien * bfd.c (bfd_errmsg): fixed various enum cast problems. 771589857Sobrien (bfd_make_section): took out initialization of obsolete members. 771689857Sobrien (bfd_print_symbol_vandf): added 771760484Sobrien 771889857Sobrien * opncls.c (bfd_create): created. 771960484Sobrien 772089857Sobrien * coff-code.h (coff_new_section_hook): took away refs 772160484Sobrien to obsolete members. (make_a_section_from_file) added 772260484Sobrien conversion between alignment types. (coff_symbol_from) 772360484Sobrien added. (coff_count_linenumbers) only counts linenumbers 772460484Sobrien if symbol is of coff-type. (coff_mangle_symbols) only 772560484Sobrien heavily mangles symbols if symbol is coff-type. 772660484Sobrien (coff_write_symbols) various lints. (coff_write_object_contents) 772760484Sobrien various lints and modification for alignment conversion. 772860484Sobrien (coff_slurp_relocs) fixed for use with new asection shape. 772960484Sobrien 773060484SobrienSat Jan 19 16:10:42 PST 1991 steve@cygnus.com 773160484Sobrien 773289857Sobrien * archive.c> lots of lint. 773360484Sobrien 773489857Sobrien * b.out.c: added callj relocation support, upgrated reloc howto. 773560484Sobrien Fixed so that asymbol and reloc records are output 773660484Sobrien correctly. 773760484Sobrien 773889857Sobrien * bfd.c: lots of lint, support for new bfd entry point 773960484Sobrien bfd_print_symbol. 774060484Sobrien 774189857Sobrien * bfd.h: changed definition of asymbol to contain pointer to 774260484Sobrien owning bfd, removed target dependencies. 774360484Sobrien 774489857Sobrien * cache.c: took out print statements, put in BFD_ASSERT calls. 774560484Sobrien 774689857Sobrien * coff-code.h: various lints, corrected linenumber output 774760484Sobrien functionality. Added support for new style asymbols and 774860484Sobrien bfd_print_symbol. Fixed so that asymbol and 774960484Sobrien reloc records are handled correctly. Added timestamp. 775060484Sobrien 775189857Sobrien * icoff.c: Added support for new howto shape. 775260484Sobrien 775389857Sobrien * liba.out.h: Added support for new asymbol shape 775460484Sobrien 775589857Sobrien * libbfd.c: various lints 775660484Sobrien 775789857Sobrien * libbfd.h: various lints 775860484Sobrien 775989857Sobrien * libcoff.h: added support for new asymbol shape. 776060484Sobrien 776189857Sobrien * sunos.c: various lints. Added support for new asymbol shape 776260484Sobrien and bfd_print_symbol. 776360484Sobrien 776460484SobrienWed Jan 16 21:38:09 PST 1991 steve@cygnus.com 776560484Sobrien 776660484Sobrien * b.out.c removed prototype of sunos4_ennativate_symtab, lots of 776760484Sobrien pointer lint. Added support for callj relocation. Fixed bug where 776860484Sobrien the last 32 bytes of the text section were overwritten by data. Fixed bug 776960484Sobrien where archives of b.out didn't work due bfd_slurp_extended_name_table 777060484Sobrien returning false. 777160484Sobrien 777260484Sobrien * sunos.c added support for n_other field. Braced the howto table so 777360484Sobrien that it won't be affected by any lengthing of the howto struct typedef. 777460484Sobrien Various lints 777560484Sobrien 777660484Sobrien * bfd.h added support for n_other field, added special_function 777760484Sobrien reloc type, modified bfd_perform_relocation prototype. Added bfd_h_get_x 777860484Sobrien macros. 777960484Sobrien 778060484Sobrien * bfd.c upgraded bfd_perform_relocation, various lints. 778160484Sobrien 778260484SobrienWed Jan 16 01:55:53 1991 John Gilmore (gnu at rtl) 778360484Sobrien 778460484Sobrien * ChangeLog: Started ChangeLog for BFD. 778589857Sobrien * TODO: Create file for suggestions. 778660484Sobrien 778760484Sobrien * Makefile: Support easy loading into Saber C. 778860484Sobrien Add dependencies for icoff.o and bcs88kcoff.o. 778960484Sobrien Rename coff.c to coff-code.h. Change callers. 779060484Sobrien 779160484Sobrien * bfd.c (bfd_check_format): Allow the check_format routines 779260484Sobrien to return the desired target vector, rather than just a Boolean. 779360484Sobrien bfd.h (bfd_check_format): Change function pointer return type. 779460484Sobrien archive.c (bfd_generic_archive_p): change callee. 779560484Sobrien b.out.c (b_out_little_object_p, b_out_big_object_p, 779660484Sobrien b_out_real_object_p): change callee. 779760484Sobrien libbfd.c (_bfd_dummy_target): Dummy routine replacing bfd_false 779860484Sobrien in check_format transfer vectors that need a filler. 779960484Sobrien libbfd.h (bfd_generic_archive_p, _bfd_dummy_target): Fix decls. 780060484Sobrien bcs88kcoff.c: change callee. 780160484Sobrien coff-code.h (coff_real_object_p, coff_big_object_p): change callee. 780260484Sobrien icoff.c: change callee. 780360484Sobrien sunos.c (sunos4_object_p, sunos4_core_file_p): change callee. 780460484Sobrien 780560484Sobrien * libbfd.c (zalloc): It should actually zero the storage! 780660484Sobrien This was commented out for some reason. 780760484Sobrien 780860484Sobrien * libbfd.h: Add malloc, xmalloc, memcpy, and fatal decls. 780960484Sobrien This is so callers can avoid <stdlib.h> which doesn't exist 781060484Sobrien on older systems. 781160484Sobrien 781260484Sobrien * bfd.c (map_over_sections): Add debugging code, since I 781360484Sobrien noticed the section count for sunos core files was bad, but only 781460484Sobrien GDB had detected the problem. 781560484Sobrien (bfd_set_section_lineno_size, bfd_set_section_linenos, 781660484Sobrien bfd_get_section_linenos): Remove obsolete functions. 781760484Sobrien (bfd_apply_relocations): Use longs, not ints, for the math. 781860484Sobrien 781960484Sobrien * bfd.h: Declare enum boolean and struct bfd_target as well 782060484Sobrien as typedefs for them. Remove obsolete 782160484Sobrien bfd_get_section_lineno_size. 782260484Sobrien 782360484Sobrien * cache.c: Make the "fdopen" support work. Keep better track 782460484Sobrien of how many files are open. Centralize the opening of files 782560484Sobrien and be sure bfd_open[rw] actually try to open the file. Evade 782660484Sobrien linked list initialization problems. 782760484Sobrien 782860484Sobrien * b.out.c, coff-code.h, opncls.c, sunos.c: lint. 782960484Sobrien 783060484Sobrien * coff-code.h (coff_slurp_symbol_table): Null-terminate symtab names. 783160484Sobrien 783260484Sobrien * cplus-dem.c: Delete file, since it is not part of BFD. 783360484Sobrien 783460484Sobrien * opncls.c (bfd_openr): Eliminate misplaced #if 0 code. 783560484Sobrien (bfd_openr, bfd_openw): Actually open the file, give error now. 783660484Sobrien 783760484Sobrien * sunos.c (sunos4_core_file_p): Set section count. 783860484Sobrien (sunos4_set_section_linenos, stab_names, fprint_name): Eliminiate 783960484Sobrien obsolete definitions. 784060484Sobrien (_write_symbol_table): Initialize <idx> counter. 784160484Sobrien (foop): Eliminate debugging code. 784260484Sobrien 784360484SobrienLocal Variables: 784460484Sobrienmode: change-log 784560484Sobrienleft-margin: 8 784660484Sobrienfill-column: 74 784760484Sobrienversion-control: never 784860484SobrienEnd: 7849