ChangeLog-9193 revision 60484
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
41160484Sobrien	sco-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):
46160484Sobrien	* bfd/config/delta88.mh (HDEFINES): Define this to be -DPTRACE_CORE.
46260484Sobrien	* bfd/config/delta88.mh (HDEPFILES): Defined to be ptrace-core.o.
46360484Sobrien	* bfd/ptrace-core.c:  New file for dealing with core files with
46460484Sobrien	start with the ptrace_user structure found on BCS compliant systems.
46560484Sobrien	* bfd/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.
185860484Sobrien	* configure.hosts: 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
238260484Sobrien	* config/h8300-coff.mt,h8500-coff.mt,sh-coff.mt,st2000.mt,z8k-coff.mt
238360484Sobrien	(TDEFAULTS): Don't define BFD; not used.
238460484Sobrien
238560484Sobrien	* config/hppaosf.mh (HDEFINES): Don't define SELECT_ARCHITECTURES;
238660484Sobrien	this is a host, not a target.
238760484Sobrien
238860484SobrienSat Aug  7 05:28:03 1993  Fred Fish  (fnf@deneb.cygnus.com)
238960484Sobrien
239060484Sobrien	* elfcode.h (elf_object_p):  Add comment about what this function
239160484Sobrien	does and to watch out for side effects.  Add FIXME for memory leaks.
239260484Sobrien	Fix comment about checking for matching byte order.  Preserve
239360484Sobrien	pointer to old tdata (if any), and restore it if we don't match
239460484Sobrien	file with target vector.  If we are going to use goto's, use them
239560484Sobrien	consistently and maintainably.
239660484Sobrien	* nlmcode.h (nlm_object_p):  Expand comments about leaked memory
239760484Sobrien	to note that the problem is even more serious than just leaked
239860484Sobrien	memory.  Replace goto with more traditional return.
239960484Sobrien
240060484SobrienFri Aug  6 12:00:03 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
240160484Sobrien
240260484Sobrien	Fix incorrect or useless makefile variable definitions:
240360484Sobrien	* config/news.mt, config/u68k-coff.mt (TDEFAULTS): Use this to
240460484Sobrien	define DEFAULT_VECTOR, instead of TDEFINES.
240560484Sobrien	* config/i386aix.mh (MINIMIZE): Don't define.
240660484Sobrien	* config/hppaosf.mh (MINIMIZE): Don't conditionalize.
240760484Sobrien	* config/rs6000.mh (ALLOCA),
240860484Sobrien	* config/i386v.mh (ALLOCA),
240960484Sobrien	* config/i386linux.mh (ALLOCA),
241060484Sobrien	* config/i386isc.mh (ALLOCA),
241160484Sobrien	* config/go32.mh (EXTRALIBS): Don't define; not used.
241260484Sobrien	* config/solaris2.mh (HDEFINES): Renamed from H_DEFINES.
241360484Sobrien	* config/alphaosf.mt (TDEFINES): Set it, not HDEFINES.
241460484Sobrien	* config/z8k-coff.mt (CC): Don't define.  It's a target, not a host.
241560484Sobrien
241660484Sobrien	* config/README: New file, explaining the variables.
241760484Sobrien
241860484Sobrien	* targets.c (target_vector): Add hp300_bsd_vec.
241960484Sobrien	* Makefile.in (BFD32_BACKENDS, CFILES): Add hp300bsd.
242060484Sobrien	(hp300bsd.o): New rule.
242160484Sobrien
242260484SobrienFri Aug  6 15:13:22 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
242360484Sobrien
242460484Sobrien	* libelf.h (NAME): Provide a default definition, that's neither
242560484Sobrien	for 32 bits nor for 64.
242660484Sobrien
242760484Sobrien	Tue Jun 15 14:38:32 1993  Michael Meissner  (meissner@osf.org)
242860484Sobrien
242960484Sobrien	* libelf.h (elf_hash): Change declaration to bfd_elf_hash, since
243060484Sobrien	that is what is in elf.c.
243160484Sobrien
243260484SobrienFri Aug  6 12:28:38 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
243360484Sobrien
243460484Sobrien	* ecoff.c (ecoff_set_symbol_info): Removed special handling for
243560484Sobrien	scBss and scSBss symbols, since it was wrong.
243660484Sobrien
243760484Sobrien	* Makefile.in (coff-mips.o, coff-alpha.o): Don't depend on
243860484Sobrien	coffcode.h.
243960484Sobrien
244060484Sobrien	* coffcode.h (sec_to_styp_flags): Inspired by mb@tti.COM (Michael
244160484Sobrien	Bloom): Only set STYP_BSS for SEC_ALLOC sections.
244260484Sobrien
244360484Sobrien	* ecoff.c (ecoff_slurp_armap): From Arne Henrik Juul
244460484Sobrien	<arnej@kari.fm.unit.no>: Handle a COFF style armap.
244560484Sobrien
244660484SobrienFri Aug  6 09:59:45 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
244760484Sobrien
244860484Sobrien	* hpux-core.c: Cast return value from bfd_zalloc.
244960484Sobrien
245060484SobrienThu Aug  5 13:22:44 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
245160484Sobrien
245260484Sobrien	* aoutx.h (log2): Delete i387-specific code.
245360484Sobrien
245460484Sobrien	* Makefile.in (BFD_LIBS): Always include elf.o.
245560484Sobrien	(BFD32_BACKENDS): Don't include elf.o here.
245660484Sobrien	(ofiles): Delete references to ofiles2 and ofiles3.
245760484Sobrien	(do_clean): Delete ofiles.
245860484Sobrien	(BFDIN_H): Changed references to $(srcdir)/bfd-in2.h.
245960484Sobrien	(stmp-bfd.h): Use bfd.h-new as temporary name, not bfd.h2.
246060484Sobrien	(headers): Use bfd-in2.h-new as temporary name, not bfd.h-new.
246160484Sobrien
246260484Sobrien	* bfd-in.h: Reworded comment to make it clear that bfd-in2.h is a
246360484Sobrien	generated file.
246460484Sobrien
246560484Sobrien	* reloc.c (enum bfd_reloc_code_real): Added i386-elf reloc types
246660484Sobrien	(from Meissner's additions to bfd-in2.h).
246760484Sobrien
246860484Sobrien	* elf32-i386.c (ELF_MAXPAGESIZE): Define.
246960484Sobrien
247060484Sobrien	Merged:
247160484Sobrien
247260484Sobrien	Wed Jun 23 06:05:58 1993  Michael Meissner  (meissner@osf.org)
247360484Sobrien
247460484Sobrien	* elfcode.h (elf_write_object_contents): Don't drop core if
247560484Sobrien	elf_symbol_from returns a NULL pointer when processing a non-elf
247660484Sobrien	symbol, use a 0 size instead.
247760484Sobrien
247860484Sobrien	Tue Jun 15 14:38:32 1993  Michael Meissner  (meissner@osf.org)
247960484Sobrien
248060484Sobrien	* elfcode.h (elf_hash): Delete macro mapping elf_hash to
248160484Sobrien	bfd_elf32_hash, since the hash table is independent of the 32/64
248260484Sobrien	bit system.
248360484Sobrien
248460484Sobrien	* libelf.h (elf_hash): Change declaration to bfd_elf_hash, since
248560484Sobrien	that is what is in elf.c.
248660484Sobrien
248760484Sobrien	Sat Jun 19 10:12:27 1993  Michael Meissner  (meissner@osf.org)
248860484Sobrien
248960484Sobrien	* elf32-i386.h (reloc_type): Reformat spacing.
249060484Sobrien	(elf_howto_table): Add the rest of the 386/ELF relocations.
249160484Sobrien	(elf_i386_reloc_type_lookup): Ditto.
249260484Sobrien	(elf_i386_info_to_howto): Ditto.
249360484Sobrien	(elf_i386_info_to_howto_rel): Ditto.
249460484Sobrien
249560484SobrienThu Aug  5 10:07:43 1993  Fred Fish  (fnf@cygnus.com)
249660484Sobrien
249760484Sobrien	* nlmcode.h (nlm_get_reloc_upper_bound):  Test return value
249860484Sobrien	of nlm_slurp_symbol_table as boolean, not pointer.
249960484Sobrien	* nlmcode.h (nlm_canonicalize_reloc):  Test return value
250060484Sobrien	of nlm_slurp_reloc_fixups as boolean, not pointer.
250160484Sobrien
250260484SobrienWed Aug  4 16:22:55 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
250360484Sobrien
250460484Sobrien	* config/go32.mh: remove HDEFINES; since __MSDOS__ and __GO32__
250560484Sobrien	are now predefined by GCC
250660484Sobrien
250760484SobrienWed Aug  4 16:06:29 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
250860484Sobrien
250960484Sobrien	* coffgen.c (coff_print_symbol): Add the section offset to the
251060484Sobrien	line number address, so it's printed the same way as the function
251160484Sobrien	address.  Only showed up for line numbers that aren't in the first
251260484Sobrien	section (.text).
251360484Sobrien
251460484SobrienWed Aug  4 08:33:55 1993  Ian Lance Taylor  (ian@cygnus.com)
251560484Sobrien
251660484Sobrien	* libnlm.h (nlm_backend_data): Added nlm_mangle_relocs.
251760484Sobrien	(nlm_mangle_relocs_func): New macro.
251860484Sobrien	* nlm32-i386.c (nlm_i386_write_reloc): Rewrote correctly.
251960484Sobrien	(nlm_i386_mangle_relocs): New function.
252060484Sobrien	* nlmcode.h (nlm_compute_section_file_positions): Move all common
252160484Sobrien	symbols into the .bss section.
252260484Sobrien	(nlm_set_section_contents): Call the mangle_relocs function.
252360484Sobrien	(nlm_write_object_contents): Treat a reloc against any defined
252460484Sobrien	symbol as an internal reloc.  Fix bug in external reloc counting.
252560484Sobrien	Get the offset and debugging type right for .bss symbols.  Only
252660484Sobrien	output debugging symbols for defined symbols.
252760484Sobrien
252860484Sobrien	* coff-h8500.c (rtype2howto): Do an fprintf to stderr rather than
252960484Sobrien	using printf.
253060484Sobrien	* coff-z8k.c (rtype2howto): Likewise.
253160484Sobrien	* coffcode.h (dummy_reloc16_extra_cases): Likewise.
253260484Sobrien	* elf32-i386.c (TRACE): Likewise.
253360484Sobrien	* hp300hpux.c (convert_sym_type, swap_std_reloc_in): Likewise.
253460484Sobrien	* rs6000-core.c (rs6000coff_get_section_contents): Likewise.
253560484Sobrien	* coffgen.c (coff_print_symbol): Do an fprintf to the file
253660484Sobrien	argument rather than using printf.
253760484Sobrien
253860484SobrienTue Aug  3 18:17:25 1993  Ian Lance Taylor  (ian@cygnus.com)
253960484Sobrien
254060484Sobrien	* coffswap.h: Added macros used when accessing several fields;
254160484Sobrien	default is the same as before.
254260484Sobrien	(coff_swap_aouthdr_{in,out}): Handle the Alpha ECOFF fields.
254360484Sobrien	* coff-alpha.c: Defined macros to use the right sizes in
254460484Sobrien	coffswap.h.
254560484Sobrien	* libecoff.h: Backend information is now in target vector, not
254660484Sobrien	BFD.  Start of backend information is COFF backend information.
254760484Sobrien	* coff-alpha.c, coff-mips.c: Changed accordingly.
254860484Sobrien	* ecoff.c (ecoff_mkobject): New function.
254960484Sobrien	(ARMAP_START): Changed into backend information, since Alpha uses
255060484Sobrien	a different name.
255160484Sobrien	(ecoff_slurp_armap): Don't overlay archive header.
255260484Sobrien	* bfd.c: Include libcoff.h.
255360484Sobrien
255460484SobrienTue Aug  3 16:33:11 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
255560484Sobrien
255660484Sobrien	* Makefile.in (install): Fix sh syntax error.
255760484Sobrien
255860484Sobrien	* aoutf1.h: Make bfd_error_trap extern; it's defined in bfd.c.
255960484Sobrien
256060484SobrienTue Aug  3 15:19:09 1993  Fred Fish  (fnf@deneb.cygnus.com)
256160484Sobrien
256260484Sobrien	* nlm_slurp_symbol_table: Don't use '&' on arrays.
256360484Sobrien
256460484SobrienTue Aug  3 11:06:28 1993  Ian Lance Taylor  (ian@cygnus.com)
256560484Sobrien
256660484Sobrien	* ecoff.c: New file for generic ECOFF functions.
256760484Sobrien	* ecoffswap.h: New file for ECOFF swapping functions which differ
256860484Sobrien	only slightly for different targets.
256960484Sobrien	* libecoff.h: Added prototypes for ecoff.c functions.
257060484Sobrien	(ecoff_backend_data): New structure.
257160484Sobrien	(ecoff_tdata): Added backend_data field.  Changed external data
257260484Sobrien	pointers to be PTR rather than to a particular struct.
257360484Sobrien	(ecoff_symbol_struct): Moved in from coff-mips.c.
257460484Sobrien	* coff-alpha.c, coff-mips.c: Moved common functions into ecoff.c.
257560484Sobrien	Added ECOFF backend structures.  Include ecoffswap.h.
257660484Sobrien	* coff-msym.c: Removed; superseded by ecoffswap.h.
257760484Sobrien	* bfd.c: Include coff/internal.h.
257860484Sobrien	* Makefile.in (BFD_LIBS): Removed coff-mips.o and coff-msym.o.
257960484Sobrien	Added ecoff.o.
258060484Sobrien	(BFD64_BACKENDS): Added coff-alpha.o.
258160484Sobrien	(CFILES): Removed coff-msym.c.  Added ecoff.c.
258260484Sobrien	(bfd.o): Added dependency on $(INCDIR)/coff/sym.h.
258360484Sobrien	(coff-mips.o): Added dependency on ecoffswap.h and coff/ecoff.h.
258460484Sobrien	(ecoff.o, coff-alpha.o): New targets.
258560484Sobrien	(coff-msym.o): Removed target.
258660484Sobrien
258760484SobrienMon Aug  2 23:33:38 1993  John Gilmore  (gnu@cygnus.com)
258860484Sobrien
258960484Sobrien	* elf32-hppa.h, hosts/*:  Remove (one more time) all occurrances
259060484Sobrien	of EXFUN in the BFD sources.  Heave ho!
259160484Sobrien
259260484SobrienMon Aug  2 16:45:57 1993  Stu Grossman  (grossman at cygnus.com)
259360484Sobrien
259460484Sobrien	* coffcode.h (coff_set_arch_mach_hook):  Add check for I386LYNXMAGIC.
259560484Sobrien
259660484SobrienMon Aug  2 12:18:03 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
259760484Sobrien
259860484Sobrien	* hosts/sun3.h: remove some more conflicting decls
259960484Sobrien
260060484SobrienMon Aug  2 11:48:23 1993  Stu Grossman  (grossman at cygnus.com)
260160484Sobrien
260260484Sobrien	* i386lynx.c:  Remove unnecessary def of N_HEADER_IN_TEXT,
260360484Sobrien	redefine TEXT_START_ADDR to be 0.
260460484Sobrien
260560484SobrienSun Aug  1 22:54:08 1993  Stu Grossman  (grossman at cygnus.com)
260660484Sobrien
260760484Sobrien	* configure.host, configure.in, hosts/i386lynx.h:  Lynx/386
260860484Sobrien	host and target info.
260960484Sobrien
261060484SobrienFri Jul 30 18:08:27 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
261160484Sobrien
261260484Sobrien	* nlm32-i386.c: New file.  First cut at i386 NLM code.
261360484Sobrien	* libnlm.h: Added some more prototypes.
261460484Sobrien	(struct nlm_relent): New structure.
261560484Sobrien	(nlmNAME(symbol_type)): Added rcnt and relocs fields.
261660484Sobrien	(struct nlm_obj_tdata): Added new fields: nlm_symbols,
261760484Sobrien	nlm_text_low, nlm_data_low, nlm_reloc_fixups,
261860484Sobrien	nlm_reloc_fixup_secs.
261960484Sobrien	(struct nlm_backend_data): New structure, with accessor macros.
262060484Sobrien	* nlmcode.h: Use NLM_HIBIT rather than MSB.
262160484Sobrien	(nlm_object_p): Set SEC_RELOC for .text and .data.  Don't set
262260484Sobrien	SEC_DATA for .bss.  Set HAS_RELOC and HAS_SYMS for abfd.  Set the
262360484Sobrien	architecture.
262460484Sobrien	(nlm_swap_fixed_header_out, nlm_swap_variable_header_out,
262560484Sobrien	find_nonzero, nlm_swap_auxiliary_headers_out): New outbound
262660484Sobrien	swapping functions.
262760484Sobrien	(nlm_get_symtab_upper_bound, nlm_slurp_symbol_table): Include
262860484Sobrien	external references in symbol table as undefined symbols.
262960484Sobrien	(nlm_get_symtab, nlm_slurp_symbol_table): Fill in alocation
263060484Sobrien	argument in get_symtab rather than in slurp_symbol_table.
263160484Sobrien	(nlm_slurp_symbol_table): Save symbol information in tdata.
263260484Sobrien	(nlm_print_symbol): New function.
263360484Sobrien	(nlm_slurp_reloc_fixups, nlm_get_reloc_upper_bound,
263460484Sobrien	nlm_canonicalize_reloc): New functions to read relocs.
263560484Sobrien	(nlm_compute_section_file_positions, nlm_set_section_contents,
263660484Sobrien	nlm_external_reloc_compare, nlm_write_object_contents): New
263760484Sobrien	functions to create NLM files.
263860484Sobrien	* nlm-target.h: Define all the nlm functions here either as
263960484Sobrien	default values or in terms of nlmNAME.  Use JUMP_TABLE(nlm).  Set
264060484Sobrien	the backend_data field to TARGET_BACKEND_DATA.
264160484Sobrien	* nlm32-gen.c, nlm64-gen.c: Don't define function macros here;
264260484Sobrien	they are now in nlm-target.h.
264360484Sobrien	(TARGET_BACKEND_DATA): Define as NULL.
264460484Sobrien	* nlm.c (nlm_mkobject): Do allocate the tdata field.
264560484Sobrien	(nlm_set_arch_mach): New function.
264660484Sobrien	* targets.c: Added nlm32_i386_vec.
264760484Sobrien	* Makefile.in (BFD32_BACKENDS): Added nlm32-i386.o.
264860484Sobrien	(CFILES): Added nlm32-i386.c.
264960484Sobrien	(nlm32-gen.o, nlm64-gen.o): Depend on nlm-target.h.
265060484Sobrien	(nlm32-i386.o): New target.
265160484Sobrien
265260484SobrienThu Jul 29 20:20:39 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
265360484Sobrien
265460484Sobrien	* hosts/sun3.h: remove some function decls that conflict w/ ANSI
265560484Sobrien	C, and aren't needed anyway (return int)
265660484Sobrien
265760484SobrienWed Jul 28 15:46:38 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
265860484Sobrien
265960484Sobrien	* elfcode.h: Use casts with bfd_alloc and alloca.
266060484Sobrien
266160484SobrienTue Jul 27 12:51:43 1993  Fred Fish  (fnf@deneb.cygnus.com)
266260484Sobrien
266360484Sobrien	* nlm{32,64}-gen.c (JUMP_TABLE_PREFIX):  Delete.
266460484Sobrien	* nlm{32,64}-gen.c (JUMP_TABLE_INIT):  New macro that works with
266560484Sobrien	older cpp's, that don't do additional replacement on the JUMP_TABLE
266660484Sobrien	macro's argument.
266760484Sobrien	* nlm-target.h (JUMP_TABLE_INIT):  Use new macro in place of
266860484Sobrien	JUMP_TABLE macro.
266960484Sobrien
267060484SobrienMon Jul 26 17:39:01 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
267160484Sobrien
267260484Sobrien	Yet another trad-core variant:
267360484Sobrien	* config/esix.mh, hosts/esix.h: New files.
267460484Sobrien	* configure.hosts: Use them.
267560484Sobrien
267660484SobrienMon Jul 26 13:22:15 1993  Ian Lance Taylor  (ian@cygnus.com)
267760484Sobrien
267860484Sobrien	* reloc.c (bfd_perform_relocation): Handle the case of
267960484Sobrien	complain_overflow_bitfield, rightshift > bitpos, and a negative
268060484Sobrien	number.
268160484Sobrien
268260484SobrienMon Jul 26 14:40:10 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
268360484Sobrien
268460484Sobrien	* elfcode.h: Reimplement segment writing.
268560484Sobrien	(elf_write_phdrs): Use precomputed e_phoff rather than making
268660484Sobrien	assumptions.
268760484Sobrien	(elf_build_phdrs): Disabled, for now.
268860484Sobrien	(assign_file_position_for_section): Don't change file offset for
268960484Sobrien	SHT_NOBITS.
269060484Sobrien	(assign_file_positions_for_symtab_and_strtabs): New function.
269160484Sobrien	(struct seg_info): New type.
269260484Sobrien	(map_program_segments): New function.
269360484Sobrien	(assign_file_positions_except_relocs): For executables, leave
269460484Sobrien	section headers &c for last, and properly align all sections with
269560484Sobrien	flag SHF_ALLOC set.
269660484Sobrien	(prep_headers): No longer abort when EXEC_P is set.
269760484Sobrien	(write_shdrs_and_ehdr): Deleted all code relating to program
269860484Sobrien	segments.
269960484Sobrien
270060484Sobrien	* elfcode.h (various): Deleted some unused code, and debugging
270160484Sobrien	"malloc(0)" calls.
270260484Sobrien	(write_relocs): Cache value of last symbol looked up, to save
270360484Sobrien	time if the symbol is referred to repeatedly.
270460484Sobrien	(elf_fake_sections): Check only SEC_RELOC flag, not number of
270560484Sobrien	relocs.
270660484Sobrien	(assign_section_numbers): Likewise.
270760484Sobrien
270860484Sobrien	* Makefile.in (ofiles): Stars in wildcards belong outside quotes.
270960484Sobrien
271060484Sobrien	* libelf.h (struct elf_backend_data): New field, maxpagesize.
271160484Sobrien	(struct elf_obj_tdata): New field, phdr.
271260484Sobrien	* elf32-target.h (elf32_bed): Initialize maxpagesize from
271360484Sobrien	ELF_MAXPAGESIZE.
271460484Sobrien	(ELF_MAXPAGESIZE): Default to 1.
271560484Sobrien	* elf64-target.h (elf64_bed, ELF_MAXPAGESIZE): Likewise.
271660484Sobrien	* elf32-sparc.c (ELF_MAXPAGESIZE): Define.
271760484Sobrien	(elf_sparc_howto_table): All relocs should have pcrel_offset=true.
271860484Sobrien	Most should have length field of `2'.
271960484Sobrien
272060484Sobrien	* reloc.c (bfd_perform_relocation): Handle 64-bit relocs.
272160484Sobrien
272260484Sobrien	* config/sparc-aout.mt (TARGET_BACKENDS): Define.
272360484Sobrien
272460484SobrienMon Jul 26 08:56:16 1993  Ian Lance Taylor  (ian@cygnus.com)
272560484Sobrien
272660484Sobrien	* configure.in: Don't look in ${srcdir} for ${target_makefile_frag};
272760484Sobrien	the top level script has already adjusted for it.
272860484Sobrien
272960484SobrienMon Jul 26 08:09:19 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
273060484Sobrien
273160484Sobrien	* srec.c (srec_write_symbols):  Get CR LF in the right order.
273260484Sobrien
273360484SobrienMon Jul 26 02:08:41 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
273460484Sobrien
273560484Sobrien	* hosts/vaxbsd.h: Include std-host.h.  Don't include <machine/param.h>.
273660484Sobrien
273760484SobrienSat Jul 24 16:13:01 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
273860484Sobrien
273960484Sobrien	* reloc.c (bfd_perform_relocation): Handle case of rightshift !=
274060484Sobrien	bitpos when overflow checking.
274160484Sobrien
274260484SobrienFri Jul 23 10:20:27 1993  Doug Evans  (dje@canuck.cygnus.com)
274360484Sobrien
274460484Sobrien	* bfd.c (bfd_nonrepresentable_section, bfd_undefined_symbol,
274560484Sobrien	bfd_reloc_value_truncated, bfd_reloc_is_dangerous, bfd_assert):
274660484Sobrien	Send error messages to stderr.
274760484Sobrien
274860484SobrienThu Jul 22 15:57:29 1993  Fred Fish  (fnf@deneb.cygnus.com)
274960484Sobrien
275060484Sobrien	* nlm{32,64}-target.h:  Remove.
275160484Sobrien	* nlm-target.h:  New file, merged from nlm{32,64}-target.h
275260484Sobrien	* libnlm.h (NLM_ARCH_SIZE):  Define to ARCH_SIZE.
275360484Sobrien	* nlm.c (ARCH_SIZE):  Remove define to zero.
275460484Sobrien	* nlm32-gen.c (ARCH_SIZE):  Define to 32.
275560484Sobrien	* nlm32-gen.c (JUMP_TABLE_PREFIX):  Define to nlm32.
275660484Sobrien	* nlm{32,64}-gen.c (nlm-target.h):  Include.
275760484Sobrien	* targets.c, libnlm.h, nlm.c, nlm{32,64}-gen.c, nlm{32,64}.c,
275860484Sobrien	nlmcode.h:  Convert prefixes from bfd_nlm<size> to just
275960484Sobrien	nlm<size>, and use macros select size.
276060484Sobrien
276160484SobrienThu Jul 22 15:40:14 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
276260484Sobrien
276360484Sobrien	* Makefile.in (Makefile): add configure.in, drop redundant
276460484Sobrien	  $(srcdir), drop redundant ./
276560484Sobrien
276660484SobrienThu Jul 22 13:34:57 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
276760484Sobrien
276860484Sobrien	* hpux-core.c: New file; backend for HP/UX style core files.
276960484Sobrien	* bfd.c (struct _bfd): Renamed hppa_core_data field to
277060484Sobrien	hpux_core_data.
277160484Sobrien	* bfd-in2.h: Updated.
277260484Sobrien	* hppa.c (make_bfd_asection, hppa_core_file_p,
277360484Sobrien	hppa_core_file_failing_command, hppa_core_file_failing_signal,
277460484Sobrien	hppa_core_file_matches_executable_p): Moved into hpux-core.c.
277560484Sobrien	Removed from target vector.
277660484Sobrien	* libhppa.h (struct hppa_core_struct and accessor macros): Moved
277760484Sobrien	into hpux-core.c.
277860484Sobrien	* targets.c: If HPUX_CORE is defined, add hpux_core_vec to
277960484Sobrien	target list.
278060484Sobrien	* config/hp300.mh (HDEFINES): Set to -DHPUX_CORE.
278160484Sobrien	(HDEPFILES): Set to hpux-core.o.
278260484Sobrien	* config/hppabsd.mh, config/hppahpux.mh: Likewise.
278360484Sobrien	* hosts/hp300.h (HOST_HP300HPUX): Define.
278460484Sobrien	* Makefile.in (OPTIONAL_BACKENDS): Added sco-core.o,
278560484Sobrien	aix386-core.o, hpux-core.o.
278660484Sobrien	(sco-core.o, aix386-core.o, hpux-core.o): New dependencies.
278760484Sobrien
278860484Sobrien	* reloc.c (enum complain_overflow): New enumeration with the
278960484Sobrien	various flavours of overflow checking.
279060484Sobrien	(srtuct reloc_howto_struct): Changed complain_on_overflow field
279160484Sobrien	from boolean to emum complain_overflow.  Removed obsolete absolute
279260484Sobrien	field.
279360484Sobrien	(HOWTO): Removed absolute argument.
279460484Sobrien	(bfd_perform_relocation): Do overflow checking on all types of
279560484Sobrien	fields.
279660484Sobrien	* bfd-in2.h: Updated accordingly.
279760484Sobrien	* all targets: Updated initialization of reloc howto tables.
279860484Sobrien
279960484SobrienWed Jul 21 20:34:34 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
280060484Sobrien
280160484Sobrien	* opncls.c (bfd_create): Don't use C++ keyword "template" as a C
280260484Sobrien	variable name.
280360484Sobrien
280460484SobrienTue Jul 20 15:02:23 1993  Fred Fish  (fnf@deneb.cygnus.com)
280560484Sobrien
280660484Sobrien	* coff-m68k.c (m68k_howto2rtype):  Make arg CONST to match callers.
280760484Sobrien
280860484Sobrien	* elfcode.h:  Fix several illegal pointer combination warnings for
280960484Sobrien	usages of bfd_alloc and alloca.
281060484Sobrien
281160484Sobrien	* libnlm.h (nlm_obj_tdata):  Rename hidden struct members to avoid
281260484Sobrien	apparent Sun C preprocessor recursion.  Fix access macros.
281360484Sobrien	* nlmcode.h:  Remove spurious '&' before several array references.
281460484Sobrien
281560484SobrienTue Jul 20 14:36:27 1993  Jim Kingdon  (kingdon@deneb.cygnus.com)
281660484Sobrien
281760484Sobrien	* Rename for DOS uniqueness: coff-m68k-un.c -> coff-u68k.c
281860484Sobrien	config/m68k-coffun.mt -> u68k-coff.mt.
281960484Sobrien	* Makefile.in, configure.in: Corresponding changes.
282060484Sobrien
282160484SobrienTue Jul 20 16:21:52 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
282260484Sobrien
282360484Sobrien	* elf32-sparc.c (elf_sparc_howto_table): Don't use "&" before
282460484Sobrien	function name; it's valid without, and some compilers give
282560484Sobrien	warnings with it there.
282660484Sobrien
282760484SobrienTue Jul 20 08:21:15 1993  Fred Fish  (fnf@deneb.cygnus.com)
282860484Sobrien
282960484Sobrien	* bfd-in.h:  Apply some of the changes that were made to bfd-in2.h.
283060484Sobrien	* bfd.c (union tdata):  Add nlm_obj_data;
283160484Sobrien	* targets.c (enum target_flavour):  Add bfd_target_nlm_flavour.
283260484Sobrien
283360484SobrienMon Jul 19 20:46:18 1993  Fred Fish  (fnf@deneb.cygnus.com)
283460484Sobrien
283560484Sobrien	* configure.in (*-*-netware, i[34]86-*-netware):  New configs.
283660484Sobrien	* Makefile.in (BFD32_BACKENDS):  Add nlm.o, nlm32.o, nlm32-gen.o.
283760484Sobrien	* Makefile.in (BFD64_BACKENDS):  Add nlm64.o, nlm64-gen.o.
283860484Sobrien	* Makefile.in (CFILES):  Add nlm{32,64}.c, nlm{32,64}-gen.c.
283960484Sobrien	* Makefile.in (nlm.o, nlm{32,64}.o, nlm{32,64}-gen.o:  New targets.
284060484Sobrien	* bfd-in2.h (INLINE):  Defines moved here.
284160484Sobrien	* {aoutx.h, elf.c, elfcode.h}:  Move INLINE defines to bfd-in2.h.
284260484Sobrien	* libelf.h (CAT4):  Move define to bfd-in2.h.
284360484Sobrien	* bfd-in2.h (CAT4):  Merge CAT4 macro with other CAT macros.
284460484Sobrien	* bfd-in2.h (union tdata):  Add nlm_obj_data.
284560484Sobrien	* bfd-in2.h (enum target_flavour):  Add bfd_target_nlm_flavour.
284660484Sobrien	* targets.c (bfd_nlm{32,64}_{big,little}_vec):  Add prototypes.
284760484Sobrien	* targets.c (target_vector):  Add bfd_nlm{32,64}_{big,little}_vec.
284860484Sobrien	* (libnlm.h, nlm.c, nlmcode.h, nlm{32,64}-gen.c,
284960484Sobrien	nlm{32,64}-target.h, nlm{32,64}.c, config/i386-nlm.mt):  New files
285060484Sobrien	for NLM support.
285160484Sobrien
285260484SobrienMon Jul 19 15:09:01 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
285360484Sobrien
285460484Sobrien	* configure.{hosts,in}: add i[34]86-*-lynxos* support
285560484Sobrien
285660484SobrienMon Jul 19 14:53:30 1993  Ken Raeburn  (raeburn@rtl.cygnus.com)
285760484Sobrien
285860484Sobrien	* elf.c, elfcode.h, libelf.h: Serious reorganization.
285960484Sobrien	Deleted `thunk' structure, merged into tdata, duplicate data
286060484Sobrien	eliminated.
286160484Sobrien	Rearranged functions, grouping by functionality.
286260484Sobrien	Broke up many functions in elfcode.h, re-ordered many parts of
286360484Sobrien	file writing to handle unpredictable state of section relocation
286460484Sobrien	table as provided by various applications.
286560484Sobrien	Still needs cleanup: Merge functions back together, split out
286660484Sobrien	data structure with only data that is used only when writing out
286760484Sobrien	object file.
286860484Sobrien
286960484Sobrien	* elf.c (bfd_elf_generic_reloc): New function, taken from
287060484Sobrien	coff-mips.c.
287160484Sobrien	* elf32-sparc.c (elf_sparc_howto_table): Use it, to work around
287260484Sobrien	bfd_perform_relocation lossage.
287360484Sobrien
287460484Sobrien	* Makefile.in (BFD_LIBS): Include coff-mips.o and coff-msym.o, so
287560484Sobrien	that gdb will link.
287660484Sobrien	(ofiles): Don't use sort or uniq; do it with sh constructs.
287760484Sobrien
287860484SobrienSun Jul 18 19:42:14 1993  Jim Kingdon  (kingdon@rtl.cygnus.com)
287960484Sobrien
288060484Sobrien	* coffcode.h: Recognize I386PTXMAGIC.
288160484Sobrien	* aoutf1.h, libaout.h: Add M_386_DYNIX.
288260484Sobrien	* trad-core.c (TRAD_CORE_USER_OFFSET, TRAD_CORE_STACK_FILEPOS):
288360484Sobrien	New macros; use it if defined.
288460484Sobrien	* config/symmetry.mh, hosts/symmetry.h: New files.
288560484Sobrien
288660484SobrienFri Jul 16 14:56:31 1993  Jim Kingdon  (kingdon@rtl.cygnus.com)
288760484Sobrien
288860484Sobrien	* Rename elf{32,64}-generic.c to *-gen.c for 14 char filenames.
288960484Sobrien	* Makefile.in: Change accordingly.
289060484Sobrien	(CFILES): Add elf64-gen.c.
289160484Sobrien
289260484SobrienFri Jul 16 09:53:23 1993  Ian Lance Taylor  (ian@cygnus.com)
289360484Sobrien
289460484Sobrien	* coff-mips.c: Use MIPS_AOUT_{OZ}MAGIC rather than {OZ}MAGIC.
289560484Sobrien
289660484SobrienThu Jul 15 16:02:07 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
289760484Sobrien
289860484Sobrien	* coff-m88k.c (howto_table): Corrected bitsize for R_PCR26L from
289960484Sobrien	16 to 26.
290060484Sobrien
290160484SobrienWed Jul 14 15:29:56 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
290260484Sobrien
290360484Sobrien	* hppa.c [HOST_HPPABSD]: Use hpux-style core files.
290460484Sobrien	* libhppa.h [HOST_HPPABSD]: Include hpux version of core.h
290560484Sobrien
290660484SobrienWed Jul 14 09:30:48 1993  Doug Evans  (dje@canuck.cygnus.com)
290760484Sobrien
290860484Sobrien	* configure.in: Recognize h8300h-*-*.
290960484Sobrien
291060484SobrienTue Jul 13 12:03:00 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
291160484Sobrien
291260484Sobrien	* coff-h8500.c (reloc_processing, rtype2howto): New relocation
291360484Sobrien	type R_H8500_HIGH_16.
291460484Sobrien	* coff-sh.c (r_imm32): Get the width of the reloc right.
291560484Sobrien
291660484SobrienTue Jul 13 16:48:56 1993  Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
291760484Sobrien
291860484Sobrien	* configure.in: Add new target m68k-coffun to the dpx/2.
291960484Sobrien	* config/m68k-coffun.mt: New file, renamed from config/dpx2.mt.
292060484Sobrien
292160484SobrienMon Jul 12 10:42:49 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
292260484Sobrien
292360484Sobrien	* reloc.c (enum bfd_reloc_code_real): Move SPARC_BASE13 reloc into
292460484Sobrien	sparc-aout-specific list.
292560484Sobrien
292660484Sobrien	* libelf.h (struct elf_obj_tdata): Add field `thunk'.
292760484Sobrien
292860484Sobrien	* config/sparc-elf.mt (TARGET_BACKENDS): New make variable.
292960484Sobrien
293060484SobrienThu Jul  1 14:52:47 1993  Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
293160484Sobrien			  and Jim Kingdon (kingdon@cygnus.com)
293260484Sobrien
293360484Sobrien	* elfcode.h: Use memset not bzero.
293460484Sobrien	* trad-core.c: Don't include <sys/file.h>.
293560484Sobrien	* i386linux.h: Include <sys/file.h>.
293660484Sobrien	* coff-m68k-un.c: new file to handle names with underscores on
293760484Sobrien	svr3 machines.
293860484Sobrien	* coff-m68k.c (m68k_rtype2howto): added #ifdef ONLY_DECLARE_RELOCS
293960484Sobrien	to not duplicate the function in the executable.
294060484Sobrien	(TARGET_SYM, TARGET_NAME, NAMES_HAVE_UNDERSCORE): new macros needed
294160484Sobrien	by coff-m68k-un.c.
294260484Sobrien	* coffcode.h (MC68KBCSMAGIC): case added.
294360484Sobrien	* targets.c: Add m68kcoffun_vec.
294460484Sobrien	* configure.host: added support for Bull dpx/2.
294560484Sobrien	* config/dpx2.mh, hosts/dpx2.h: new files.
294660484Sobrien	* Makefile.in: added target coff-m68k-un.
294760484Sobrien
294860484SobrienFri Jul  9 00:43:06 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
294960484Sobrien
295060484Sobrien	* aoutf1.h: Add definition of MACHTYPE_OK.
295160484Sobrien
295260484SobrienThu Jul  8 14:37:44 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
295360484Sobrien
295460484Sobrien	* reloc.c (bfd_perform_relocation): Don't subtract the addend
295560484Sobrien	again for coff.
295660484Sobrien
295760484Sobrien	* syms.c, bfd-in2.h: Doc fix.
295860484Sobrien
295960484Sobrien	* coffcode.h (CALC_ADDEND): Check for common section using the
296060484Sobrien	section flag as well as the symbol flag.
296160484Sobrien
296260484SobrienThu Jul  8 13:43:52 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
296360484Sobrien
296460484Sobrien	* hosts/i386bsd.h: Conditionalize HOST_STACK_END_ADDR on __bsdi__.
296560484Sobrien	i386bsd.c: Remove defines of N_TXT*; the versions in aout64.h should
296660484Sobrien	be sufficient.  Define TEXT_START_ADDR.
296760484Sobrien
296860484SobrienWed Jul  7 10:56:21 1993  Ian Lance Taylor  (ian@cygnus.com)
296960484Sobrien
297060484Sobrien	* aoutx.h (translate_from_native_sym_flags): Removed statep
297160484Sobrien	argument.  Just let an indirect symbol point to the next symbol
297260484Sobrien	without forcing the next symbol to be undefined.  Changed all
297360484Sobrien	callers.
297460484Sobrien	* hp300hpux.c (slurp_symbol_table): Changed call to
297560484Sobrien	translate_from_native_sym_flags.
297660484Sobrien	* targets.c: Added hp300hpux_vec.
297760484Sobrien	* Makefile.in (hp300hpux.o): Added dependencies.
297860484Sobrien
297960484SobrienTue Jul  6 13:24:55 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
298060484Sobrien
298160484Sobrien	* reloc.c (enum bfd_reloc_code_real): Put simple power-of-two
298260484Sobrien	relocs together, and add 64-bit versions.
298360484Sobrien	(bfd_generic_get_relocated_section_contents): Argument to alloca
298460484Sobrien	is size_t.
298560484Sobrien
298660484Sobrien	* libbfd.c (bfd_xmalloc_by_size_t): New function.
298760484Sobrien	* opncls.c (bfd_cache_init, bfd_open_file): Add prototypes to
298860484Sobrien	declarations.
298960484Sobrien	(obstack_chunk_alloc): Use bfd_xmalloc_by_size_t.
299060484Sobrien	(new_bfd): Prototype-style definition, using DEFUN.
299160484Sobrien	(bfd_alloc_grow, bfd_alloc, bfd_zalloc, bfd_realloc): Size
299260484Sobrien	argument is type size_t, not bfd_size_type.
299360484Sobrien	* ieee.c (obstack_chunk_alloc): Use bfd_xmalloc_by_size_t.
299460484Sobrien	* bfd.c (bfd_default_error_trap, bfd_error_trap,
299560484Sobrien	bfd_error_nonrepresentabltrap): Prototypes.
299660484Sobrien	* libbfd-in.h (bfd_alloc, bfd_zalloc, bfd_realloc,
299760484Sobrien	bfd_alloc_grow): Adjusted prototypes for arg type change.
299860484Sobrien	* archive.c (get_elt_at_filepos, do_slurp_bsd_armap, normalize,
299960484Sobrien	do_slurp_coff_armap, bfd_construct_extended_name_table):
300060484Sobrien	Prototypes.
300160484Sobrien	* elfcode.h (elf_string_from_elf_strtab): Prototypes.
300260484Sobrien	* libelf.h (elf_string_from_elf_section, elf_get_str_section):
300360484Sobrien	Prototypes.
300460484Sobrien
300560484Sobrien	* Makefile.in (ALL_MACHINES): Renamed from BFD_MACHINES.
300660484Sobrien	(ofiles): New target.  Build a list of unique file names, in case
300760484Sobrien	any got duplicated.
300860484Sobrien	(TARGETLIB): Use list of files from ofiles.
300960484Sobrien	* configure.in: Set BFD_MACHINES and BFD_BACKENDS depending on
301060484Sobrien	minimal-bfd flag and target makefile frag contents.
301160484Sobrien
301260484Sobrien	* elfcode.h (elf_read): Delete static declaration, since function
301360484Sobrien	has moved.
301460484Sobrien	(elf_map_symbols): Write out section symbols for all sections, for
301560484Sobrien	now.
301660484Sobrien	(elf_symbol_from_bfd_symbol): Allow match if both symbols are
301760484Sobrien	section symbols for the same section.
301860484Sobrien	(elf_find_nearest_line): Don't print message, just return false.
301960484Sobrien
302060484Sobrien	* libelf.h (bfd_elf_locate_sh): Declaration deleted.
302160484Sobrien
302260484SobrienMon Jul  5 16:48:11 1993  Doug Evans  (dje@canuck.cygnus.com)
302360484Sobrien
302460484Sobrien	* cpu-h8300.c (h8300_scan): Fix parsing of architecture string.
302560484Sobrien
302660484SobrienFri Jul  2 18:27:00 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
302760484Sobrien
302860484Sobrien	* Makefile.in (clean): Remove bfd.h and stmp-bfd.h.
302960484Sobrien	(realclean): Remove generated headers.
303060484Sobrien
303160484SobrienFri Jul  2 14:51:51 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
303260484Sobrien
303360484Sobrien	* section.c (bfd_set_section_content):  Deny if file is not opened with
303460484Sobrien	the proper mode, set output_has_begun if file is openened for update.
303560484Sobrien	* aoutx.h (aout_*_set_section_content):  Remove checks that are now
303660484Sobrien	done in bfd_set_section_content.
303760484Sobrien
303860484SobrienFri Jul  2 09:25:20 1993  Ian Lance Taylor  (ian@cygnus.com)
303960484Sobrien
304060484Sobrien	* hosts/std-host.h: Removed declarations of printf, fprintf,
304160484Sobrien	fcntl, fread and fwrite.  They are all error prone for one reason
304260484Sobrien	or another.  Changed declaration of memchr from char * to PTR.
304360484Sobrien
304460484Sobrien	* configure.in (mips-*-riscos*): New target; use riscos.
304560484Sobrien	* configure.host (mips-*-riscos*): New host; use riscos.
304660484Sobrien	* config/riscos.mh (HDEFINES): Add -G 4.
304760484Sobrien
304860484Sobrien	* libaout.h (GET_SWORD): Use the bfd_h_get_signed entry points
304960484Sobrien	rather than casting the result of bfd_h_get.
305060484Sobrien
305160484SobrienFri Jul  2 10:13:48 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
305260484Sobrien
305360484Sobrien	* configure.in, hosts/delta68.h, config/delta68.mh: Add stuff for
305460484Sobrien	Motorola Delta 68.
305560484Sobrien
305660484SobrienWed Jun 30 06:02:43 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
305760484Sobrien
305860484Sobrien	* targets.c (bfd_elf64_{big,little}_generic_vec): Declare, and
305960484Sobrien	include in search list if BFD64 is defined.
306060484Sobrien
306160484Sobrien	* libelf.h (CAT4): Added a version for Saber-C, ANSI mode.
306260484Sobrien	(bfd_elf64_*): Declarations for 64-bit versions of many routines.
306360484Sobrien
306460484SobrienTue Jun 29 22:50:59 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
306560484Sobrien
306660484Sobrien	* elf64-target.h, elf64-generic.c: New files.
306760484Sobrien	* Makefile.in (BFD64_BACKENDS): Include elf64-generic.o.
306860484Sobrien	(elf64-generic.o): List dependencies.
306960484Sobrien
307060484Sobrien	* Makefile.in: List target `all' explicitly before host/target
307160484Sobrien	makefile fragments are included, in case they define any new
307260484Sobrien	targets.
307360484Sobrien
307460484Sobrien	* elfcode.h (ELF_R_INFO, ELF_R_SYM): Define as 32- or 64-bit
307560484Sobrien	versions as appropriate.  Uses updated.
307660484Sobrien	(elf_debug_section): Declare before use.
307760484Sobrien	(elf_debug_file): New function.
307860484Sobrien	(bfd_section_from_shdr, bfd_shdr_from_section, elf_fake_sections):
307960484Sobrien	Alignment value in section header is n_bytes, not log2.
308060484Sobrien	(new_section_hook): Do nothing for now.
308160484Sobrien	(bfd_section_from_shdr): Use Elf_External_Rel[a], not 32-bit
308260484Sobrien	version explicitly.
308360484Sobrien	(elf_core_file_p): Simplify check for correct class (word size).
308460484Sobrien	(elf_make_sections, elf_fake_sections, elf_write_object_contents):
308560484Sobrien	Initialize all fields when creating data structures.
308660484Sobrien	(elf_locate_sh): Renamed from bfd_elfXX_locate_sh, made static.
308760484Sobrien	(elf_compute_section_file_positions): Set correct class in output
308860484Sobrien	file.
308960484Sobrien	(elf_write_object_contents): Section symbols have empty names in
309060484Sobrien	output file.
309160484Sobrien
309260484Sobrien	* libbfd.c (bfd_xmalloc, zalloc): Be sure to cast malloc, memset
309360484Sobrien	args to size_t before call.
309460484Sobrien	(bfd_add_to_string_table): Cast zalloc arg to bfd_size_type.
309560484Sobrien
309660484SobrienTue Jun 29 10:49:42 1993  Ian Lance Taylor  (ian@cygnus.com)
309760484Sobrien
309860484Sobrien	* coff-mips.c (ecoff_find_nearest_line): If procedure has no line
309960484Sobrien	number information, return 0 for line number.
310060484Sobrien
310160484SobrienMon Jun 28 10:45:02 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
310260484Sobrien
310360484Sobrien	* aoutx.h (some_aout_object_p): If *oldrawptr is non-NULL, copy it
310460484Sobrien	into *rawptr.
310560484Sobrien
310660484SobrienSun Jun 27 09:05:19 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
310760484Sobrien
310860484Sobrien	* hosts/riscos.h: Define NBPG and UPAGES.
310960484Sobrien
311060484SobrienSun Jun 27 16:28:26 1993  Ken Raeburn  (raeburn@cygnus.com)
311160484Sobrien
311260484Sobrien	* elfcode.h (elf_slurp_symbol_table): Don't use obj_raw_syms as
311360484Sobrien	lvalue; it contains a cast.
311460484Sobrien
311560484SobrienFri Jun 25 17:09:55 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
311660484Sobrien
311760484Sobrien	* aoutx.h (hash, compare, struct stringtab_entry, add_to_stringtab):
311860484Sobrien	Use unsigned hash values for better hashing.
311960484Sobrien	(hash): Hash in the string length for long strings.
312060484Sobrien
312160484SobrienThu Jun 24 15:47:51 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
312260484Sobrien
312360484Sobrien	* aoutx.h (compare): Replace 3 if's with a subtraction.
312460484Sobrien	(translate_to_native_sym_flags, add_to_stringtab): Reorder tests
312560484Sobrien	in decreasing order of success, as an optimization.
312660484Sobrien	(hash): Take a length arg; ignore chars after #25, for speed.
312760484Sobrien	(add_to_stringtab): Pass length to hash.
312860484Sobrien
312960484SobrienThu Jun 24 17:25:51 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)
313060484Sobrien
313160484Sobrien	* elf32-sparc.c (sparc_reloc_map): Add SPARC_WDISP22 reloc.
313260484Sobrien
313360484Sobrien	* elfcode.h (elf_new_section_hook): Do nothing for now.
313460484Sobrien	(elf_write_object_contents): Output common symbols the way ELF
313560484Sobrien	wants them.
313660484Sobrien
313760484SobrienWed Jun 23 16:20:07 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)
313860484Sobrien
313960484Sobrien	* libelf.h (struct elf_obj_tdata and associated macros): Moved
314060484Sobrien	here from elfcode.h.  A couple of size-specific structure pointers
314160484Sobrien	were changed to PTR; uses fixed appropriately.
314260484Sobrien	(elf32_symbol_type, elf64_symbol_type): Separated definitions.
314360484Sobrien	(bfd_elf_mkobject): Renamed from bfd_elf32_mkobject.
314460484Sobrien	(bfd_elf32_mkobject, bfd_elf64_mkobject, elf_mkobject): New
314560484Sobrien	temporary macros to ease name change.
314660484Sobrien	* elf.c (elf_read, elf_mkobject, elf_get_str_section,
314760484Sobrien	elf_string_from_elf_section, bfd_elf_find_section): Moved here
314860484Sobrien	from elfcode.h.
314960484Sobrien	* doc/Makefile.in (libbfd.h): Process elf.c too.
315060484Sobrien	* Makefile.in (elf.o): Note new dependencies.
315160484Sobrien
315260484Sobrien	* elfcode.h: Lots of stuff moved elsewhere.  Deleted some unused
315360484Sobrien	code, tweaked some debug hooks.
315460484Sobrien	(elf_slurp_reloca_table): Translate ELF section symbols into BFD
315560484Sobrien	section symbols.
315660484Sobrien
315760484SobrienWed Jun 23 11:34:21 1993  Jim Kingdon  (kingdon@cygnus.com)
315860484Sobrien
315960484Sobrien	* hosts/riscos.h: New file.
316060484Sobrien
316160484SobrienTue Jun 22 14:35:20 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)
316260484Sobrien
316360484Sobrien	* elfcode.h (bfd_section_from_shdr, case SHT_PROGBITS): Even if
316460484Sobrien	section already exists, use its pointer to fill in rawdata slot.
316560484Sobrien
316660484SobrienTue Jun 22 16:36:51 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
316760484Sobrien
316860484Sobrien	* hosts/std-host.h: Return value of puts and fputs is int not void.
316960484Sobrien
317060484SobrienTue Jun 22 14:25:58 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
317160484Sobrien
317260484Sobrien	* aoutx.h (howto_table_ext): Comment the field names.
317360484Sobrien	* reloc.c (bfd_perform_relocation): Fix max and min values.
317460484Sobrien
317560484SobrienMon Jun 21 18:19:14 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)
317660484Sobrien
317760484Sobrien	* elf32-target.h, elf32-hppa.c, elfcode.h: Use new
317860484Sobrien	size-independent elf internal data structures.
317960484Sobrien	* elfcode.h (put_word, get_word): Define as appropriate for
318060484Sobrien	architecture word size.  Structure swapping functions changed to
318160484Sobrien	use them as appropriate.
318260484Sobrien
318360484Sobrien	* configure.in: If compiling 64-bit back ends, do them before
318460484Sobrien	32-bit ones.
318560484Sobrien
318660484Sobrien	* libelf.h: Use new size-independent versions of elf internal data
318760484Sobrien	structures.
318860484Sobrien	(symbol_type): Reordered to put any fields dependent on target
318960484Sobrien	size at the end.
319060484Sobrien	(elf_backend_data): Renamed from elf##_backend_data and made
319160484Sobrien	size-independent.
319260484Sobrien	(elf_sect_thunk): Now size-independent.
319360484Sobrien
319460484Sobrien	* libbfd.c (bfd_log2): Now returns unsigned int.
319560484Sobrien
319660484SobrienMon Jun 21 12:30:47 1993  Jim Kingdon  (kingdon@cygnus.com)
319760484Sobrien
319860484Sobrien	* Rename config/m88k-aout.mt to config/noop.mt.
319960484Sobrien	configure.in: Use it for mips-*-bsd*.
320060484Sobrien
320160484SobrienSun Jun 20 20:32:19 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)
320260484Sobrien
320360484Sobrien	* cpu-m68k.c (arch_info_struct): Eliminate "partially bracketed
320460484Sobrien	initializer" warning from gcc.
320560484Sobrien	* cpu-h8500.c (arch_info_struct): Likewise.
320660484Sobrien	* cpu-sh.c (arch_info_struct): Likewise.
320760484Sobrien
320860484Sobrien	* cpu-h8300.c (local_bfd_reloc_type_lookup, howto*_callback,
320960484Sobrien	howto_*): Unused functions and variables commented out.
321060484Sobrien	* cpu-z8k.c (local_bfd_reloc_type_lookup, howto*_callback,
321160484Sobrien	howto_*): Likewise.
321260484Sobrien	* cpu-h8500.c (compatible): Likewise.
321360484Sobrien	* cpu-sh.c (compatible): Likewise.
321460484Sobrien
321560484Sobrien	* hp300hpux.c (swap_std_reloc_in): Delete unused variables.
321660484Sobrien	Always set a valid length value, even for invalid input.
321760484Sobrien
321860484Sobrien	* srec.c (srec_write_symbols): Use sprintf_vma.
321960484Sobrien
322060484Sobrien	* bfd-in.h (uint64_typeLOW, uint64_typeHIGH, int64_type,
322160484Sobrien	uint64_type): Provide default definitions.
322260484Sobrien	* hosts/std-host.h (int64 stuff): Remove them from here.
322360484Sobrien
322460484Sobrien	* bfd-in.h (sprintf_vma): Define parallel to fprintf_vma.
322560484Sobrien
322660484Sobrien	* elf32-i386.c (elf_i386_reloc_type_lookup): Delete unused
322760484Sobrien	variable.  Added default case to switch.
322860484Sobrien
322960484Sobrien	* aoutx.h (translate_from_native_sym_flags): Before casting
323060484Sobrien	pointers to integers, make sure the integer type is wide enough.
323160484Sobrien	* coff-mips.c (ecoff_set_symbol_info): Ditto.
323260484Sobrien
323360484Sobrien	* section.c (bfd_get_section_contents): Since `count' is unsigned,
323460484Sobrien	don't bother comparing for less-than-zero.
323560484Sobrien	(bfd_set_section_contents): Ditto.
323660484Sobrien
323760484Sobrien	* elfcode.h (bfd_add_to_strtab): Now static.
323860484Sobrien	(sym_is_global): New function.
323960484Sobrien	(elf_map_symbols): Call it.  Now returns void.  Removed unused
324060484Sobrien	local variable.
324160484Sobrien	(bfd_section_from_shdr): Mark string tables other than for section
324260484Sobrien	and symbol names as normal sections having contents.
324360484Sobrien	(fix_up_strtabs): New function; fixes up ELF header fields for
324460484Sobrien	stab sections with string tables associated.
324560484Sobrien	(elf_write_object_contents): Map fix_up_strtabs over all BFD
324660484Sobrien	sections.  Reordered condition tests for symbol flags; default to
324760484Sobrien	local-object value instead of global-object.
324860484Sobrien	(elf_symbol_from_bfd_symbol): Hid conditionally-used variable
324960484Sobrien	inside condition test.
325060484Sobrien	(elf_print_symbol): Use fprintf_vma.
325160484Sobrien	(elf_idx_of_sym, bfd_shdr_from_section): Unused functions
325260484Sobrien	commented out.
325360484Sobrien
325460484Sobrien	* bfd-in.h (int64_type, uint64_type): Define these if we fall
325560484Sobrien	back to "long long" for HOST_64_BIT.
325660484Sobrien
325760484Sobrien	* libelf.h (elfNAME, ElfNAME): New versions to get desired results
325860484Sobrien	without using invalid ANSI C preprocessing tokens.
325960484Sobrien
326060484Sobrien	* elf32-target.h (bfd_elf32_new_section_hook): Delete macro.
326160484Sobrien	* libelf.h (bfd_elf32_new_section_hook): Declare.
326260484Sobrien	* elfcode.h (new_section_hook): Define here.
326360484Sobrien
326460484Sobrien	* hosts/sparc.h, hosts/std-host.h, hosts/i386bsd.h: Protect
326560484Sobrien	against multiple inclusions.
326660484Sobrien
326760484Sobrien	* hosts/news.h: Include hosts/std-host.h, not plain std-host.h.
326860484Sobrien
326960484Sobrien	* Makefile.in (bfd.h): Generate into current directory by grabbing
327060484Sobrien	64-bit definition (if any) from sysdep.h.
327160484Sobrien	* bfd-in.h: Put in marker for sysdep.h inclusion.
327260484Sobrien
327360484SobrienFri Jun 18 19:57:23 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
327460484Sobrien
327560484Sobrien	* reloc.c (bfd_perform_relocation): Check for overflow on
327660484Sobrien	pc-relative relocations if the howto asked for it.
327760484Sobrien
327860484SobrienFri Jun 18 16:00:20 1993  Jim Kingdon  (kingdon@cygnus.com)
327960484Sobrien
328060484Sobrien	* Makefile.in (stmp-bfd.h): Ignore nonzero exit status from grep.
328160484Sobrien
328260484SobrienFri Jun 18 16:54:29 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
328360484Sobrien
328460484Sobrien	* config/riscos.m{h,t}: New files.
328560484Sobrien	* configure.{host,in}: Use them.
328660484Sobrien
328760484SobrienFri Jun 18 12:55:10 1993  K. Richard Pixley  (rich@cygnus.com)
328860484Sobrien
328960484Sobrien	* elf32-mips.c: comment change.  This is a mips file, not 88k.
329060484Sobrien
329160484SobrienMon Jun 14 14:02:41 1993  Jim Kingdon  (kingdon@cygnus.com)
329260484Sobrien
329360484Sobrien	* cache.c (bfd_cache_init): Increment open_files and call close_one
329460484Sobrien	if necessary.
329560484Sobrien	(bfd_open_file): Don't increment open_files here.
329660484Sobrien
329760484SobrienFri Jun 18 10:00:14 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
329860484Sobrien
329960484Sobrien	* config/delta88.mh: Don't set CC.
330060484Sobrien
330160484Sobrien	* Makefile.in: Add elf32-{mips,m88k,generic}.
330260484Sobrien	elf32-{mips,m88k,generic}.c: New files.
330360484Sobrien	targets.c (target_vector): Include bfd_elf32_{mips,m88k,generic}_vec.
330460484Sobrien	elfcode.h (elf_object_p): Match elf32-generic for all machines which
330560484Sobrien	don't match a different target.
330660484Sobrien
330760484SobrienFri Jun 18 03:12:12 1993  John Gilmore  (gnu@cygnus.com)
330860484Sobrien
330960484Sobrien	Eliminate "int8_type", "int16_type", "int32_type", and their
331060484Sobrien	variants from the BFD universe.  Leave the 64-bit types for now,
331160484Sobrien	since they are in flux.
331260484Sobrien
331360484Sobrien	* aoutx.h, hp300hpux.c:  Eliminate needless (int32_type) casts.
331460484Sobrien	* libaout.h (GET_SWORD):  Convert (int32_type) to (int).
331560484Sobrien	* ieee.c:  Convert uint8e_type => unsigned char.
331660484Sobrien	* oasys.c:  Extensive changes to eliminate obsolete types.
331760484Sobrien	These depend on changes in ../include/oasys.h as well.
331860484Sobrien	* hosts/*.h:  Remove declarations of all these types.
331960484Sobrien
332060484SobrienMon Jun 14 14:02:41 1993  Jim Kingdon  (kingdon@cygnus.com)
332160484Sobrien
332260484Sobrien	* hosts/delta88.h: #if 0 out some declarations which conflict with
332360484Sobrien	system headers.
332460484Sobrien
332560484SobrienMon Jun 14 17:08:18 1993  david d `zoo' zuhn  (zoo at rtl.cygnus.com)
332660484Sobrien
332760484Sobrien	* Makefile.in (install): remove parentdir cruft
332860484Sobrien
332960484SobrienMon Jun 14 19:04:09 1993  Stu Grossman  (grossman@cygnus.com)
333060484Sobrien
333160484Sobrien	* hppa.c (hppa_get_symbol_info):  Remove redundant copy.
333260484Sobrien	* Expurgate random DEFUNs that have crept in.
333360484Sobrien
333460484SobrienMon Jun 14 10:23:53 1993  Ian Lance Taylor  (ian@cygnus.com)
333560484Sobrien
333660484Sobrien	* coff-mips.c (ecoff_set_symbol_info): Constructor sections should
333760484Sobrien	only be aligned to a 4 byte boundary.
333860484Sobrien
333960484SobrienSat Jun 12 16:13:17 1993  Jim Kingdon  (kingdon@cygnus.com)
334060484Sobrien
334160484Sobrien	* hosts/std-host.h (struct int64e_struct): Remove needless typedef
334260484Sobrien	keyword.
334360484Sobrien
334460484SobrienFri Jun 11 14:25:34 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
334560484Sobrien
334660484Sobrien	* aoutf1.h (sunos4_write_object_contents): set flags to 1, breaking
334760484Sobrien	1927 but fixing some other important things.
334860484Sobrien
334960484SobrienThu Jun 10 20:36:22 1993  Doug Evans  (dje@canuck.cygnus.com)
335060484Sobrien
335160484Sobrien	* hosts/std-host.h (int64e_type): Fix definition.
335260484Sobrien
335360484SobrienThu Jun 10 11:48:28 1993  Ian Lance Taylor  (ian@cygnus.com)
335460484Sobrien
335560484Sobrien	* coff-mips.c (ecoff_sec_to_styp_flags): Use STYP_MIPS_INIT for
335660484Sobrien	section named _INIT.  Don't set STYP_TEXT unless SEC_CODE is set.
335760484Sobrien	(ecoff_styp_to_sec_flags): Treat a STYP_MIPS_INIT section like
335860484Sobrien	a STYP_TEXT section.
335960484Sobrien
336060484SobrienWed Jun  9 16:48:13 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
336160484Sobrien
336260484Sobrien	* Makefile.in (install, headers): don't put comments after a tab
336360484Sobrien	in the actions section of a rule
336460484Sobrien
336560484SobrienWed Jun  9 15:00:01 1993  Ian Lance Taylor  (ian@cygnus.com)
336660484Sobrien
336760484Sobrien	* coff-mips.c (ecoff_mkobject_hook): Mark ZMAGIC files as D_PAGED.
336860484Sobrien	(ecoff_write_object_contents): If not D_PAGED, don't add the
336960484Sobrien	section headers to text_size.  If not D_PAGED, set the magic
337060484Sobrien	number to OMAGIC rather than ZMAGIC.  If creating a D_PAGED
337160484Sobrien	executable, the executable must fully occupy an even number of
337260484Sobrien	pages.
337360484Sobrien	(ecoff_set_symbol_info, make_bfd_asection, ecoff_little_vec,
337460484Sobrien	ecoff_big_vec): Consistently set section alignment power to 4,
337560484Sobrien	since ECOFF sections should be multiples of 16 bytes.
337660484Sobrien	(ecoff_little_vec, ecoff_big_vec): Added D_PAGED to object_flags.
337760484Sobrien	Made ar_pad_char and ar_max_namelen agree for both.
337860484Sobrien
337960484SobrienTue Jun  8 20:28:02 1993  Mark Eichin  (eichin at tweedledumber)
338060484Sobrien
338160484Sobrien	* elfcode.h (elf_slurp_symbol_table): subtract section vma from
338260484Sobrien	symbol value, since bfd symbols are section relative, but ELF
338360484Sobrien	symbols aren't.
338460484Sobrien
338560484SobrienTue Jun  8 12:08:27 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
338660484Sobrien
338760484Sobrien	* cpu-i960.c, cpu-h8300.c (compatible): Make static.
338860484Sobrien
338960484SobrienTue Jun  8 14:27:56 1993  Jim Kingdon  (kingdon@rtl.cygnus.com)
339060484Sobrien
339160484Sobrien	* hosts/news.h, config/news.mh: New files.
339260484Sobrien
339360484SobrienTue Jun  8 12:08:27 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
339460484Sobrien
339560484Sobrien	* bfd-in2.h, archures.c (bfd_mach_h8300[h]): new defines.
339660484Sobrien	* coff-h8300.c: More addressing modes.
339760484Sobrien	* coffcode.h (coff_set_arch_mach_hook): Cope with H8300 magic
339860484Sobrien	number.
339960484Sobrien	* cpu-h8300.c: Removed disassemble stuff. (h8300_scan): Recognise
340060484Sobrien	H8/300H name. (compatible): New function.
340160484Sobrien	* reloc16.c (bfd_coff_reloc16_get_relocated_sec): Cope with more
340260484Sobrien	addressing modes.
340360484Sobrien
340460484SobrienTue Jun  8 10:30:13 1993  Ian Lance Taylor  (ian@cygnus.com)
340560484Sobrien
340660484Sobrien	* coff-mips.c (ecoff_compute_section_file_positions,
340760484Sobrien	ecoff_write_object_contents): Only round to page boundaries if
340860484Sobrien	D_PAGED flag is set for the output BFD.
340960484Sobrien
341060484SobrienFri Jun  4 15:47:52 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
341160484Sobrien
341260484Sobrien	* coffcode.h (get_index, coff_slurp_symbol_table): Fix pointer
341360484Sobrien	casts to work on machine where sizeof(long) != sizeof(int) !=
341460484Sobrien	sizeof(char *).
341560484Sobrien        * coffgen.c (coff_get_normalized_symtab): Ditto.
341660484Sobrien	* cpu-h8300.c coff-h8300.c: Support for H8/300-H.
341760484Sobrien
341860484SobrienFri Jun  4 15:24:27 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
341960484Sobrien
342060484Sobrien	* coffgen.c (coff_write_symbols): For empty string table, write
342160484Sobrien	out 4 in correct byte order.  (from minyard@bnr.ca)
342260484Sobrien
342360484Sobrien	* elf32-hppa.c: Don't include libhppa.h for now; define
342460484Sobrien	BYTES_IN_WORD instead, until Utah sends a better fix.
342560484Sobrien	(hppa_elf_build_arg_reloc_stub): Use xmalloc and xrealloc instead
342660484Sobrien	of malloc and realloc.
342760484Sobrien
342860484SobrienFri Jun  4 07:49:01 1993  Ian Lance Taylor  (ian@cygnus.com)
342960484Sobrien
343060484Sobrien	* configure.in (mips-*-ecoffl*): New target; use decstation.
343160484Sobrien	(mips-*-ecoff*): Added trailing '*'.
343260484Sobrien
343360484Sobrien	* coff-mips.c (ecoff_get_debug): Get the offset from the first PDR
343460484Sobrien	for the FDR, not from the first PDR in the file.
343560484Sobrien
343660484SobrienThu Jun  3 16:41:10 1993  Stu Grossman  (grossman@cygnus.com)
343760484Sobrien
343860484Sobrien	* hppa.c (hppa_get_symbol_info):  New func needed for JUMP_TABLE.
343960484Sobrien
344060484SobrienThu Jun  3 15:33:57 1993  David J. Mackenzie  (djm@rtl.cygnus.com)
344160484Sobrien
344260484Sobrien	* hppa.c (hppa_get_symbol_info): New function.
344360484Sobrien
344460484SobrienThu Jun  3 13:07:42 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
344560484Sobrien
344660484Sobrien	* elfcode.h (elf_map_symbols): Don't crash if no symbols have been
344760484Sobrien	allocated yet.
344860484Sobrien
344960484Sobrien	From Peter Hoogenboom (hoogen@schafer.cs.utah.edu):
345060484Sobrien	* libhppa.h (MAXCOMLEN): Define unconditionally.
345160484Sobrien	(_PA_RISC_ID): Only define if not already defined.
345260484Sobrien	* elf32-hppa.c: Include libhppa.h.
345360484Sobrien
345460484Sobrien	From Ralph Campbell:
345560484Sobrien	* hosts/mipsbsd.h (HOST_DATA_START_ADDR): Delete definition.
345660484Sobrien
345760484Sobrien	* elf32-hppa.h (symext_rootP, symext_lastP): Delete decls.
345860484Sobrien
345960484SobrienThu Jun  3 00:23:53 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
346060484Sobrien
346160484Sobrien	* config/go32.mh: define EXTRALIBES to -lm (for binutils), also
346260484Sobrien	remove defines of __MSDOS__ and __GO32__ (these are in the
346360484Sobrien	compiler now).
346460484Sobrien
346560484SobrienWed Jun  2 17:57:13 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
346660484Sobrien
346760484Sobrien	From Utah:
346860484Sobrien	* hosts/hppabsd.h: Eliminate use of obsolete EXFUN.
346960484Sobrien	* config/hppabsd.mh: Don't use ranlib.
347060484Sobrien
347160484SobrienTue Jun  1 04:15:57 1993  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
347260484Sobrien
347360484Sobrien	* elf.c: New file, for word-size independent code.
347460484Sobrien	* elfcode.h (elf_hash): Moved to there, renamed bfd_elf_hash.
347560484Sobrien	* Makefile.in: Include elf.o in standard objects.
347660484Sobrien
347760484Sobrien	* bfd-in.h (CAT3): Define here.
347860484Sobrien	* libaout.h, libelf.h: Not here.
347960484Sobrien
348060484Sobrien	* libelf.h (struct strtab): Define here.
348160484Sobrien	(bfd_elf_locate_sh): Declare here.
348260484Sobrien	* elfcode.h (struct strtab): Definition deleted.
348360484Sobrien
348460484Sobrien	* reloc.c (enum bfd_reloc_code_real): Added HPPA_PCREL_CALL_12.
348560484Sobrien
348660484Sobrien	* Makefile.in: Make "all", not "bfd.h", be the default target.
348760484Sobrien	(stmp-bfd.h): New target; prevents rebuilding world if bfd.h
348860484Sobrien	hasn't really changed.
348960484Sobrien
349060484Sobrien	Tue May 25 12:15:15 1993  Michael Meissner  (meissner@osf.org)
349160484Sobrien
349260484Sobrien	* elfcode.h (elf_hash): Provide elf standard hash function.
349360484Sobrien	(various): Key off of the machines use_rela_p field to determine
349460484Sobrien	whether to use REL or RELA relocations.
349560484Sobrien	(elf_swap_reloc_out, elf_swap_reloc_in): New functions.
349660484Sobrien	(elf_make_sections): Allocate a pointer to hold all data for a
349760484Sobrien	given section, and copy each fragment into the data region.
349860484Sobrien	Update the section's pointer with the REL implicit addends if the
349960484Sobrien	machine uses REL relocation.
350060484Sobrien
350160484Sobrien	* elf32-i386.c (elf_bfd_reloc_type_lookup): Rename to
350260484Sobrien	elf_i386_bfd_reloc_type_lookup, and use cpp to map the name back
350360484Sobrien	into was elf32-target.h expects.
350460484Sobrien	(elf_info_to_howto): Rename to elf_i386_info_to_howto.
350560484Sobrien	(elf_i386_bfd_reloc_type_lookup): Add relocation support.
350660484Sobrien	(elf_i386_info_to_howto): Add minimal relocation support.
350760484Sobrien
350860484Sobrien	* libelf.h (elf_backend_data): Add use_rela_p, elf_64_p,
350960484Sobrien	elf_info_to_howto_rel fields.
351060484Sobrien
351160484Sobrien	* elf32-target.h (elf_bed): Add support for new fields in
351260484Sobrien	elf_backend_data.
351360484Sobrien
351460484Sobrien	Sun May 30 16:38:24 1993  Peter Hoogenboom  (hoogen@fast.cs.utah.edu)
351560484Sobrien
351660484Sobrien	* elf32-hppa.c: Add symbol extension section support, fix
351760484Sobrien	relocation howto table, add stub generation support.
351860484Sobrien
351960484Sobrien	* elf32-hppa.h: Add symbol extension section support, fix
352060484Sobrien	relocation howto table, add stub generation support.
352160484Sobrien
352260484Sobrien	* elfcode.h (bfd_elf_locate_sh): New function to locate ELF
352360484Sobrien	section header.
352460484Sobrien
352560484Sobrien	* elfcode.h (bfd_add_to_strtab): Made non-static due to a call
352660484Sobrien	from elf32-hppa.c.
352760484Sobrien
352860484Sobrien	* elfcode.h (elf_idx_of_sym): Return STN_UNDEF instead of 0 when
352960484Sobrien	the symbol is not found.
353060484Sobrien
353160484Sobrien	* elfcode.h (elf_compute_section_file_positions): Not all section
353260484Sobrien	file positions were computed.
353360484Sobrien
353460484Sobrien	* elfcode.h (elf_get_sect_thunk): New function.
353560484Sobrien
353660484Sobrien	* hppa.c (sign_ext): Reimplement.
353760484Sobrien
353860484Sobrien	* hppa.c (round_down,round,round_up,L,R,LS,RS,LD,RD,LR,RR): Make
353960484Sobrien	these functions static.
354060484Sobrien
354160484SobrienTue Jun  1 14:40:41 1993  Per Bothner  (bothner@rtl.cygnus.com)
354260484Sobrien
354360484Sobrien	* Makefile.in (bfd.h):  Move closer to headers - and after 'all'!
354460484Sobrien
354560484Sobrien	* aoutx.h (translate_from_native_sym_flags):  Don't set
354660484Sobrien	BSF_DEBUGGING for constructor symbols, only BSF_CONSTRUCTOR.
354760484Sobrien	* aoutx.h (translate_to_native_sym_flags):  Translate
354860484Sobrien	constructor symbols properly.
354960484Sobrien
355060484SobrienThu May 27 16:09:04 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
355160484Sobrien
355260484Sobrien	* archures.c (bfd_default_arch_struct): use 4 byte alignment as a
355360484Sobrien	minimum.
355460484Sobrien	* aout-target.h (minimum_alignment): 8 byte alignment is right.
355560484Sobrien	(fix ld/2680)
355660484Sobrien
355760484SobrienThu May 27 13:38:47 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
355860484Sobrien
355960484Sobrien	* configure.in, Makefile.in: Build bfd-in2.h in source directory,
356060484Sobrien	from bfd-in.h and .c files.  Build bfd.h in build directory,
356160484Sobrien	substituting in requested target word size.  Insert word size into
356260484Sobrien	makefile, and maybe enable 64-bit targets.
356360484Sobrien
356460484Sobrien	* bfd-in.h, libbfd.c, demo64.c, targets.c: Define BFD64 if 64 bits
356560484Sobrien	are available.  Conditionalize on this.  Assume HOST_64_BIT
356660484Sobrien	will be defined if needed, so 64-bit targets are conditionalized
356760484Sobrien	only in the Makefile.
356860484Sobrien
356960484SobrienTue May 25 14:03:56 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
357060484Sobrien
357160484Sobrien	* libbfd.c (COERCE64): Rewrite to avoid out-of-range values.
357260484Sobrien
357360484Sobrien	* coff-sh.c (rtype2howto): Put error message on stderr.
357460484Sobrien	(extra_case): Delete unused variable.
357560484Sobrien
357660484Sobrien	* coff-mips.c (ecoff_print_symbol): Cast bfd_vma values to long
357760484Sobrien	before calling printf.
357860484Sobrien
357960484Sobrien	* elfcode.h: New file, almost completely derived from old elf32.c.
358060484Sobrien	* elf32.c: Now just define ARCH_SIZE and include elfcode.h.
358160484Sobrien	* Makefile.in (elf64.o): List dependencies, don't build by
358260484Sobrien	default.
358360484Sobrien	(elf64.c): Add to list of sources.
358460484Sobrien	(elf32.o): Update dependencies.
358560484Sobrien	* elf32-*.c: Updated type/macro/structure names.  Cleaned up
358660484Sobrien	namespace pollution; rename vectors.
358760484Sobrien	* targets.c, config/*-elf.mt: Updated.
358860484Sobrien	* All uses of 32-bit versions of structures, routines, and macros
358960484Sobrien	renamed.
359060484Sobrien
359160484Sobrien	* Makefile.in (archures.o, targets.o): Depend on Makefile.
359260484Sobrien
359360484SobrienMon May 24 15:53:13 1993  Ken Raeburn  (raeburn@cygnus.com)
359460484Sobrien
359560484Sobrien	* elf32-i386.c (enum reloc_type): No comma after last enumerator.
359660484Sobrien
359760484Sobrien	* elf32.c (elf_string_from_elf_section): Handle index of zero
359860484Sobrien	specially.
359960484Sobrien	(bfd_section_from_shdr, elf_slurp_symbol_table): Don't need to do
360060484Sobrien	so here.
360160484Sobrien	(elf_write_object_contents): Deleted one unused variable and
360260484Sobrien	initialized another to avoid gcc warnings.
360360484Sobrien	(elf_set_section_contents): Delete unused variable.
360460484Sobrien
360560484SobrienFri May 21 19:04:21 1993  Stu Grossman  (grossman@cygnus.com)
360660484Sobrien
360760484Sobrien	* i386lynx.c:  New module for Lynx variant of a.out.
360860484Sobrien	* Makefile.in (BFD_BACKENDS CFILES depends):  Add i386lynx.c.
360960484Sobrien	* gen-aout.c:  Get rid of defunct endian stuff, print out true
361060484Sobrien	pagesize.
361160484Sobrien	* targets.c (target_vector):  Add i386lynx_vec.
361260484Sobrien
361360484SobrienFri May 21 17:02:22 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
361460484Sobrien
361560484Sobrien	* configure.in: Use i386-sco.mt for i[36]86-*-isc*.
361660484Sobrien
361760484SobrienFri May 21 13:44:18 1993  David J. Mackenzie  (djm@rtl.cygnus.com)
361860484Sobrien
361960484Sobrien	* aix386-core.c, aout-target.h, aoutx.h, coff-alpha.c,
362060484Sobrien	coff-mips.c, coffgen.c, elf32.c, ieee.c, libaout.h, libcoff-in.h,
362160484Sobrien	libelf.h, mipsbsd.c, oasys.c, sco-core.c, srec.c, tekhex.c,
362260484Sobrien	trad-core.c: Define a TARGET_get_symbol_info function or macro.
362360484Sobrien	Remove the bfd_print_symbol_nm case from TARGET_print_symbol.
362460484Sobrien
362560484Sobrien	* bfd-in.h: Don't define bfd_print_symbol_nm.
362660484Sobrien	Define symbol_info type.
362760484Sobrien	(JUMP_TABLE): Set _get_symbol_info element.
362860484Sobrien
362960484Sobrien	* syms.c (coff_section_type, bfd_symbol_info): New functions.
363060484Sobrien	(bfd_decode_symclass): Use coff_section_type.
363160484Sobrien
363260484Sobrien	* targets.c: Add bfd_get_symbol_info call.
363360484Sobrien
363460484SobrienWed May 19 15:30:52 1993  Stu Grossman  (grossman@cygnus.com)
363560484Sobrien
363660484Sobrien	* coff-i386.c (coff_i386_reloc):  Use unsigned char to avoid
363760484Sobrien	complaints from ancient gcc's.
363860484Sobrien
363960484SobrienWed May 19 15:51:19 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
364060484Sobrien
364160484Sobrien	* trad-core.c:  Check macro TRAD_CORE_EXTRA_SIZE_ALLOWED.
364260484Sobrien	hosts/i386linux.h:  Define it.
364360484Sobrien
364460484SobrienMon May 17 15:00:33 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
364560484Sobrien
364660484Sobrien	* VERSION, bfd-in.h: Bump version number to 2.2.
364760484Sobrien
364860484Sobrien	* hppa.c (assemble_3, dis_assemble_3, assemble_12,
364960484Sobrien	dis_assemble_12, assemble_17, dis_assemble_17, assemble_21,
365060484Sobrien	dis_assemble_21, sign_ext, ones, sign_unext, low_sign_ext,
365160484Sobrien	low_sign_unext, round_down, round, round_up, L, R, LS, RS, LD, RD,
365260484Sobrien	LR, RR, hppa_field_adjust): New functions.
365360484Sobrien
365460484SobrienMon May 17 10:04:16 1993  Ian Lance Taylor  (ian@cygnus.com)
365560484Sobrien
365660484Sobrien	* coff-mips.c (ecoff_set_symbol_info): Added support for indirect
365760484Sobrien	stabs symbols, including new indirect_ptr_ptr argument.
365860484Sobrien	(ecoff_slurp_symbol_table): Pass new argument in calls to
365960484Sobrien	ecoff_set_symbol_info.
366060484Sobrien
366160484SobrienFri May 14 00:05:06 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
366260484Sobrien
366360484Sobrien	* configure.in: For m68k sysv systems, use m68k-coff.
366460484Sobrien
366560484Sobrien	* config/hppa-elf.mt (TDEFINES): Don't define DEFAULT_VECTOR here.
366660484Sobrien	(TDEFAULTS): Define it here.  Use the new name.
366760484Sobrien
366860484Sobrien	* elf32-hppa.c (elf_hppa_backend_data): Delete; rely on default
366960484Sobrien	values instead.
367060484Sobrien
367160484Sobrien	* reloc.c (bfd_reloc_code_real_type): Add some HPPA reloc types.
367260484Sobrien
367360484Sobrien	* aix386-core.c (NO_GETS): Fix PROTO invocation to have correct
367460484Sobrien	number of arguments.
367560484Sobrien	(aix386_core_file_p): Initialize core_size to correct value.
367660484Sobrien
367760484SobrienWed May 12 14:39:59 1993  Ian Lance Taylor  (ian@cygnus.com)
367860484Sobrien
367960484Sobrien	* Makefile.in (CC_FOR_BUILD): New variable, set to $(CC).
368060484Sobrien	(FLAGS_TO_PASS): Pass down CC_FOR_BUILD.
368160484Sobrien
368260484Sobrien	* bout.c (aout32_slurp_extended_name_table): Define to be
368360484Sobrien	_bfd_slurp_extended_name_table rather than bfd_true.
368460484Sobrien
368560484Sobrien	* coff-mips.c: Include libaout.h and aout/aout64.h to get
368660484Sobrien	definitions for N_SET[ATDB].
368760484Sobrien	(ecoff_howto_table): Moved near top of file.
368860484Sobrien	(ecoff_set_symbol_info): If a STABS symbol of type N_SET[ATDB] is
368960484Sobrien	seen, cook up a constructor section of the same name and put in a
369060484Sobrien	reloc pointing to the symbol.  This lets the GNU linker build
369160484Sobrien	global constructors and destructors without using collect.
369260484Sobrien
369360484SobrienTue May 11 00:33:31 1993  John Gilmore  (gnu@cygnus.com)
369460484Sobrien
369560484Sobrien	* coff-m88k.c (m88kbcs_vec):  Symbols have underbars.
369660484Sobrien
369760484SobrienMon May 10 05:55:45 1993  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
369860484Sobrien
369960484Sobrien	* hosts/miniframe.h: New file.
370060484Sobrien	* configure.host: Use it.
370160484Sobrien
370260484SobrienSun May  9 16:36:59 1993  Fred Fish  (fnf@cygnus.com)
370360484Sobrien
370460484Sobrien	* configure.in (hppa*-*-bsd):  Change to hppa*-*-bsd*
370560484Sobrien	* configure.in (hppa*-*-hpux):  Change to hppa*-*-hpux*
370660484Sobrien	* configure.in (m68*-hp-bsd):  Change to m68*-hp-bsd*
370760484Sobrien	* configure.in (m68*-*-hpux):  Change to m68*-*-hpux*
370860484Sobrien	* configure.in (*-*-bsd):  Change to *-*-bsd*
370960484Sobrien
371060484SobrienWed May  5 16:08:32 1993  Per Bothner  (bothner@cygnus.com)
371160484Sobrien
371260484Sobrien	* elf32-hppa.c (elf_hppa_reloc_type_lookup):  Cast enums to
371360484Sobrien	int, for the sake of the old Portable C Compiler.
371460484Sobrien
371560484SobrienMon May  3 14:37:01 1993  Stu Grossman  (grossman@cygnus.com)
371660484Sobrien
371760484Sobrien	* Makefile.in (CFILES):  Add cpu-sh.c and coff-sh.c.
371860484Sobrien
371960484SobrienMon May  3 14:03:21 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
372060484Sobrien
372160484Sobrien	* configure.in: Get target name right for m68*-*-hpux.
372260484Sobrien
372360484SobrienSun May  2 11:39:44 1993  Fred Fish  (fnf@cygnus.com)
372460484Sobrien
372560484Sobrien	* trad-core.c (NO_SIGNED_GET):  New macro.
372660484Sobrien	* trad-core.c (trad_core_vec):  Use new NO_SIGNED_GET instead of
372760484Sobrien	signed NO_GET, where appropriate.
372860484Sobrien
372960484Sobrien	* configure.in (i[34]86-*-linux*):  Add; bfd_target = i386-linux.
373060484Sobrien	* configure.in (*-*-linux*):  Remove until linux port for a
373160484Sobrien	non-i386/i486 system is actually available.
373260484Sobrien
373360484SobrienFri Apr 30 20:04:10 1993  Stu Grossman  (grossman@cygnus.com)
373460484Sobrien
373560484Sobrien	* libhppa.h:  #undef e_* symbols which come from <machine/som.h>
373660484Sobrien	when compiling under HPUX.
373760484Sobrien
373860484SobrienFri Apr 30 17:25:23 1993  Stu Grossman  (grossman@cygnus.com)
373960484Sobrien
374060484Sobrien	* The following patches are from Jeffrey Law <law@cs.utah.edu>.
374160484Sobrien	* hppa.c (hppa_core_file_p): Provide a temporary dummy routine
374260484Sobrien	for HOST_HPPABSD.
374360484Sobrien	* bfd/hosts/hppabsd.h: Fix declarations of malloc and free.
374460484Sobrien	* bfd/libhppa.h: Include sysdep here.  Conditionalize
374560484Sobrien	includes based on HOST_HPPAHPUX or HOST_HPPABSD.
374660484Sobrien	Provide definitions for MAXCOMLEN and _PA_RISC_ID suitable
374760484Sobrien	for BSD.
374860484Sobrien
374960484SobrienFri Apr 30 17:34:11 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
375060484Sobrien
375160484Sobrien	* elf32-hppa.c: Don't include a.out.h.  Apparently not even the
375260484Sobrien	GNU version is needed.
375360484Sobrien
375460484SobrienFri Apr 30 09:38:59 1993  Jim Kingdon  (kingdon@cygnus.com)
375560484Sobrien
375660484Sobrien	* coffcode.h: use dummy_reloc16_extra_cases rather than casting abort.
375760484Sobrien
375860484SobrienThu Apr 29 11:30:32 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
375960484Sobrien
376060484Sobrien	* Makefile.in: Build elf32-hppa.o.
376160484Sobrien
376260484Sobrien	* syms.c (BSF_FUNCTION): New symbol flag.
376360484Sobrien
376460484Sobrien	* elf32-hppa.c: Fixed to work with elf32-target.h.
376560484Sobrien
376660484Sobrien	* hp300hpux.c (NAME, NAME_swap_exec_header_in): Fix for
376760484Sobrien	traditional C.
376860484Sobrien	* libaout.h (NAME): Don't define if already defined.
376960484Sobrien
377060484Sobrien	* libelf.h: Protect against multiple inclusions.
377160484Sobrien	(elf_symbol_type): Moved here, added new fields.
377260484Sobrien	(struct elf_backend_data): New field `global_sym'; I suspect this
377360484Sobrien	may be misplaced.
377460484Sobrien	* elf32.c (elf_symbol_type): Deleted from here.
377560484Sobrien	(struct elf_obj_tdata): New fields raw_syms and internal_syms, to
377660484Sobrien	point to backend versions of symbols.
377760484Sobrien	(obj_symbols, obj_raw_syms, obj_internal_syms): New macros.
377860484Sobrien	(elf_swap_phdr_out, elf_build_phdrs, elf_write_phdrs): New
377960484Sobrien	functions.
378060484Sobrien	(elf_write_object_contents): Write program headers if appropriate.
378160484Sobrien	(bfd_section_from_shdr): Unnamed sections get empty string for
378260484Sobrien	name, not "unnamed".  Handle SHT_NOBITS separately from
378360484Sobrien	SHT_PROGBITS, and set some different flags.
378460484Sobrien	(elf_file_p): New routine.
378560484Sobrien	(elf_object_p, elf_core_file_p): Call it.
378660484Sobrien	(elf_object_p): Handle EM_HPPA.
378760484Sobrien	(elf_symbol_from, elf_idx_of_sym): New functions.
378860484Sobrien	(elf_make_sections): Get symbol number right for relocations.  Set
378960484Sobrien	SHF_ALLOC, SHF_WRITE, SHF_EXECINSTR when appropriate.
379060484Sobrien	(elf_fake_sections): BSS section should be SHT_NOBITS, not
379160484Sobrien	SHT_PROGBITS.  Always generate symtab and strtab, not only if
379260484Sobrien	relocations are needed.  Set SHF_* flags as appropriate.
379360484Sobrien	(elf_compute_section_file_positions): Handle bfd_arch_hppa.
379460484Sobrien	(elf_write_object_contents): Fix off-by-one error in symbol count.
379560484Sobrien	Store a correct value for the symbol; write the size field
379660484Sobrien	properly; make some guesses about the type field.  Set section
379760484Sobrien	type correctly for string tables.
379860484Sobrien	(section_from_elf_index): Check for absolute and common sections
379960484Sobrien	first.
380060484Sobrien	(elf_section_from_bfd_section): Ditto.
380160484Sobrien	(elf_slurp_symbol_table): Use elf_symbol_type instead of asymbol.
380260484Sobrien	Use empty string instead of "unnamed" for nameless symbols.
380360484Sobrien	Handle STTY_FUNC type, and weirdness with "$global$" symbol for
380460484Sobrien	HPPA (only?).  Don't free raw symbols; keep the pointer around for
380560484Sobrien	later.
380660484Sobrien	(elf_set_arch_mach): Handle bfd_arch_hppa.
380760484Sobrien	(elf_find_nearest_line): Just return false.
380860484Sobrien	(elf_write_object_contents, elf_set_section_contents): Set
380960484Sobrien	output_has_begun field after computing file positions.
381060484Sobrien	(elf_set_section_contents): Write section contents immediately,
381160484Sobrien	rather than caching the whole file and writing it at close time.
381260484Sobrien
381360484Sobrien	* libhppa.h (enum hppa_reloc_field_selector_type, enum
381460484Sobrien	hppa_reloc_field_selector_typ_alt, enum hppa_reloc_expr_type, enum
381560484Sobrien	hppa_reloc_expr_type_alt): New enumerator types.
381660484Sobrien
381760484Sobrien	* config/hppa-elf.mt,. config/hppaosf.mh: HP PA/OSF support.
381860484Sobrien	* configure.in, configure.host: Use them.
381960484Sobrien
382060484SobrienWed Apr 28 23:21:01 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
382160484Sobrien
382260484Sobrien	* elf32-target.h: Allow overrides of armap defaults.
382360484Sobrien
382460484Sobrien	* elf32-hppa.c, elf32-hppa.h: New files.
382560484Sobrien
382660484Sobrien	* config/hp300hpux.mt: New file.
382760484Sobrien
382860484SobrienTue Apr 27 05:39:40 1993  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
382960484Sobrien
383060484Sobrien	* aix386-core.c (NO_GETS): New macro; NO_GET for signed values.
383160484Sobrien	(aix386_core_vec): Update for new fields.
383260484Sobrien
383360484Sobrien	* archive.c (bfd_generic_archive_p): Call target-specific
383460484Sobrien	slurp_armap code, instead of bfd_slurp_armap.
383560484Sobrien	(bfd_slurp_bsd_armap_f2): New function.
383660484Sobrien	* libbfd-in.h (bfd_slurp_bsd_armap_f2): Declare it.
383760484Sobrien	* aout-target.h (AR_PAD_CHAR): Define it if not already defined.
383860484Sobrien	(vec): Use it.
383960484Sobrien	* libaout.h (struct aoutdata): New field for subformat, for
384060484Sobrien	differentiating between highly similar a.out formats.
384160484Sobrien	* aoutx.h (NAME_swap_exec_header_in): New macro, defaults to local
384260484Sobrien	version of function.
384360484Sobrien	(swap_exec_header_in): Don't define if NAME_swap_exec_header_in is
384460484Sobrien	already defined.
384560484Sobrien	* hp300hpux.c: New file.
384660484Sobrien	* Makefile.in: Include it.
384760484Sobrien
384860484SobrienMon Apr 26 13:24:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
384960484Sobrien
385060484Sobrien	* Makefile.in, archures.c, coffcode.h, targets.c: Support for
385160484Sobrien	Hitachi SH.
385260484Sobrien
385360484SobrienMon Apr 26 13:55:42 1993  Jim Kingdon  (kingdon@cygnus.com)
385460484Sobrien
385560484Sobrien	* trad-core.c (trad_unix_core_file_p): Check the file size.
385660484Sobrien
385760484SobrienMon Apr 26 13:24:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
385860484Sobrien
385960484Sobrien	* coff-alpha.c: Remove duplicate function and add warnings.
386060484Sobrien
386160484SobrienMon Apr 26 11:25:58 1993  Ian Lance Taylor  (ian@cygnus.com)
386260484Sobrien
386360484Sobrien	* sco-core.c (sco_core_vec): Add initializers for new target
386460484Sobrien	fields.
386560484Sobrien
386660484SobrienSat Apr 24 21:33:45 1993  Jim Kingdon  (kingdon@cygnus.com)
386760484Sobrien
386860484Sobrien	* coffcode.h [_LIT]: Recognize .lit section.
386960484Sobrien
387060484SobrienFri Apr 23 19:00:36 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
387160484Sobrien
387260484Sobrien	* coff-alpha.c, cpu-alpha.c, config/alphaosf.mt,
387360484Sobrien	config/alphaosf.mt, hosts/alphaosf.h:  New files.
387460484Sobrien
387560484SobrienFri Apr 23 16:48:46 1993  Stu Grossman  (grossman@cygnus.com)
387660484Sobrien
387760484Sobrien	* Merge in HPPA/BSD changes from Utah.
387860484Sobrien	* hppa.c:  Use this for both HPUX & BSD.
387960484Sobrien	* targets.c:  Enable hppa_vec for both HPUX & BSD.
388060484Sobrien	* config/hppabsd.mt:  TDEFINES => TDEFAULTS.
388160484Sobrien	* hosts/hppabsd.h:  #define HOST_HPPABSD.
388260484Sobrien
388360484SobrienWed Apr 21 01:50:10 1993  John Gilmore  (gnu@cygnus.com)
388460484Sobrien
388560484Sobrien	* libbfd.c:  Whitespace changes around byteswap macros.
388660484Sobrien	* libbfd-in.h:  Whitespace changes around byteswap declarations.
388760484Sobrien
388860484SobrienTue Apr 20 15:59:07 1993  Stu Grossman  (grossman@cygnus.com)
388960484Sobrien
389060484Sobrien	* aoutf1.h (sunos4_core_file_p):  Don't default bfd_error to
389160484Sobrien	system_error anymore.  It confuses bfd_check_format().
389260484Sobrien
389360484SobrienMon Apr 19 23:03:08 1993  Stu Grossman  (grossman@cygnus.com)
389460484Sobrien
389560484Sobrien	* bfd.c:  Add sgi_core_data to tdata union.
389660484Sobrien	* coff-mips.c:  Add Irix 4.x core file support.
389760484Sobrien	* hosts/irix4.h:  #define HOST_IRIX4.
389860484Sobrien
389960484SobrienMon Apr 19 18:52:52 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
390060484Sobrien
390160484Sobrien	* aoutx.h (translate_from_native_sym_flags): Check that the
390260484Sobrien	symbol's section does get set.
390360484Sobrien	(slurp_symbol_table): Zero index means null-string name.
390460484Sobrien
390560484Sobrien	* aoutx.h (struct stringtab_entry, struct stringtab_data): New
390660484Sobrien	data structures.
390760484Sobrien	(hash, stringtab_init, add_to_stringtab, emit_strtab, compare):
390860484Sobrien	New functions.
390960484Sobrien	(write_syms): Use them, to reduce string table size.
391060484Sobrien
391160484SobrienMon Apr 19 16:45:12 1993  Fred Fish  (fnf@cygnus.com)
391260484Sobrien
391360484Sobrien	* trad-core.c (trad_core_vec):  Add 6 new initializers to match
391460484Sobrien	  new signed get/put fields.  Minor reformatting to label
391560484Sobrien	  some fields.
391660484Sobrien
391760484SobrienMon Apr 19 06:09:41 1993  Jim Kingdon  (kingdon@cygnus.com)
391860484Sobrien
391960484Sobrien	* bfd-in.h: Insert comment about SVR3 compiler warnings.
392060484Sobrien
392160484Sobrien	* hosts/{hp300,i386isc,i386v}.h: Remove unused #defines of {r,}index
392260484Sobrien	(bfd uses strchr and the broken SVR3.2 cpp loses with the defines).
392360484Sobrien
392460484Sobrien	* libbfd.c: bfd_put*: Remove casts to bfd_vma.
392560484Sobrien
392660484SobrienFri Apr 16 17:49:27 1993  Jim Kingdon  (kingdon@cygnus.com)
392760484Sobrien
392860484Sobrien	* aoutf1.h (internal_sunos_core): Make c_stacktop a bfd_vma.
392960484Sobrien	(swapcore_sparc): Make sp a bfd_vma.
393060484Sobrien
393160484SobrienThu Apr 15 09:09:18 1993  Jim Kingdon  (kingdon@cygnus.com)
393260484Sobrien
393360484Sobrien	* libbfd.c: Add signed versions of bfd_{h_,}{get,put}_signed_<size>.
393460484Sobrien	libbfd.c, libbfd-in.h: Add _do*signed*.
393560484Sobrien	targets.c, all targets: Add bfd*signed*.
393660484Sobrien	bfd-in.h: Add bfd_signed_vma.  Add comments.
393760484Sobrien
393860484Sobrien	* bfd-in.h (bfd_error), bfd.c (bfd_errmsgs): Add file_truncated.
393960484Sobrien
394060484Sobrien	* format.c (bfd_check_error): Check error return from
394160484Sobrien	_bfd_check_format routines.
394260484Sobrien
394360484SobrienWed Apr 14 23:48:25 1993  Jim Kingdon  (kingdon@cygnus.com)
394460484Sobrien
394560484Sobrien	* rs6000-core.c (rs6000coff_core_p): Improve error checking and
394660484Sobrien	recognize .data section if present.
394760484Sobrien
394860484SobrienThu Apr 15 01:00:29 1993  John Gilmore  (gnu@cygnus.com)
394960484Sobrien
395060484Sobrien	* aoutx.h (aout_*_adjust_sizes_and_vmas):  Avoid `sanity'
395160484Sobrien	check for the case where the user sets the address of the BSS
395260484Sobrien	section (and the file header can't specify this).  Let the user
395360484Sobrien	set it wherever they want, regardless of what goes in the header.
395460484Sobrien
395560484Sobrien	* ieee.c (ieee_slurp_sections):  Pass all ieee section names
395660484Sobrien	straight through into BFD sections.  Add comments.
395760484Sobrien
395860484SobrienWed Apr 14 20:34:54 1993  John Gilmore  (gnu@cygnus.com)
395960484Sobrien
396060484Sobrien	Cleanup in preparation for better 64-bit host support.
396160484Sobrien
396260484Sobrien	* bfd-in.h (bfd_64_type):  Remove.
396360484Sobrien	* libbfd.c (_do_getb64, _do_putb64):  Use bfd_vma, not bfd_64_type.
396460484Sobrien
396560484Sobrien	* bfd-in.h (bfd_size):  Remove.
396660484Sobrien
396760484Sobrien	* bfd-in.h (bfd_offset):  Remove, after fixing ld/ldlang.[ch].
396860484Sobrien
396960484Sobrien	* bfd-in.h (bfd_word):  Remove.
397060484Sobrien	* reloc.c (reloc_howto_type):  Replace bfd_word with bfd_vma.
397160484Sobrien
397260484Sobrien	* bfd-in.h (rawdata_offset):  Remove.
397360484Sobrien	* reloc.c (arelent):  Replace rawdata_offset with bfd_size_type.
397460484Sobrien	(bfd_perform_relocation):  Lint.
397560484Sobrien	(enum bfd_reloc_status):  Comment cleanup.
397660484Sobrien
397760484Sobrien	* aout-adobe.c, cpu-h8300.c, mipsbsd.c, srec.c: lint -Wall.
397860484Sobrien
397960484SobrienTue Apr 13 11:19:52 1993  Jim Kingdon  (kingdon@cygnus.com)
398060484Sobrien
398160484Sobrien	* aoutf1.h (swapcore_sparc): Guess the right value of USRSTACK.
398260484Sobrien
398360484SobrienMon Apr 12 14:18:00 1993  John Gilmore  (gnu@cygnus.com)
398460484Sobrien
398560484Sobrien	* elf32.c:  Clean up old comments.
398660484Sobrien
398760484SobrienFri Apr  9 10:43:20 1993  Ian Lance Taylor  (ian@cygnus.com)
398860484Sobrien
398960484Sobrien	* config/sun3.h: String argument to fprintf is const.
399060484Sobrien
399160484Sobrien	* coff-mips.c: Renamed PAGE_SIZE to ROUND_SIZE, to avoid confusion
399260484Sobrien	on systems which define PAGE_SIZE in <limits.h>.
399360484Sobrien
399460484SobrienThu Apr  8 10:28:00 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
399560484Sobrien
399660484Sobrien	* trad-core.c (trad_unix_core_file_failing_signal): Use new macro
399760484Sobrien	TRAD_UNIX_CORE_FILE_FAILING_SIGNAL to allow host files to specify
399860484Sobrien	the core file failing signal.
399960484Sobrien	* hosts/decstation.h (TRAD_UNIX_CORE_FILE_FAILING_SIGNAL): Define
400060484Sobrien	to supply the core file failing signal.
400160484Sobrien
400260484SobrienThu Apr  8 09:17:35 1993  Ian Lance Taylor  (ian@cygnus.com)
400360484Sobrien
400460484Sobrien	* coffcode.h (styp_to_sec_flags): Only set SEC_SHARED_LIBRARY for
400560484Sobrien	a STYP_NOLOAD | STYP_BSS section if BSS_NOLOAD_IS_SHARED_LIBRARY
400660484Sobrien	is defined.  On many COFF targets STYP_BSS is always STYP_NOLOAD.
400760484Sobrien	* coff-i386.h (BSS_NOLOAD_IS_SHARED_LIBRARY): Define.
400860484Sobrien
400960484SobrienWed Apr  7 11:33:06 1993  Ian Lance Taylor  (ian@cygnus.com)
401060484Sobrien
401160484Sobrien	* coff-mips.c (PAGESIZE): Correct value.
401260484Sobrien
401360484SobrienTue Apr  6 12:05:44 1993  Ian Lance Taylor  (ian@cygnus.com)
401460484Sobrien
401560484Sobrien	* coff-mips.c (ecoff_find_nearest_line): Address of first PDR is
401660484Sobrien	an offset (patch from Jean-Daniel Fekete <jdf@lri.lri.fr>).
401760484Sobrien
401860484SobrienMon Apr  5 12:07:12 1993  Ian Lance Taylor  (ian@cygnus.com)
401960484Sobrien
402060484Sobrien	* coffcode.h (styp_to_sec_flags): Set SEC_SHARED_LIBRARY for a
402160484Sobrien	STYP_NOLOAD | STYP_BSS section.  Don't set SEC_NEVER_LOAD for a
402260484Sobrien	STYP_INFO section.
402360484Sobrien	(coff_compute_section_file_positions): Force vma and lma of _LIB
402460484Sobrien	section to be zero.
402560484Sobrien	(coff_set_section_contents): Count number of entries in new lma
402660484Sobrien	field, not in vma.
402760484Sobrien	* coffgen.c (make_a_section_from_file): Force lineno_count of
402860484Sobrien	SEC_SHARED_LIBRARY section to be zero, since it is non-zero on the
402960484Sobrien	SCO 3.2v4 shared library.
403060484Sobrien	* seclet.c (rel): Copy over any section with contents, not just
403160484Sobrien	loadable sections.
403260484Sobrien
403360484Sobrien	* coff-mips.c (ecoff_make_empty_symbol): Zero out newly allocated
403460484Sobrien	symbol.
403560484Sobrien
403660484Sobrien	* coff-i386.c (coff_i386_reloc): New function, to generate
403760484Sobrien	relocateable output correctly.
403860484Sobrien	(howto_table): Use coff_i386_reloc for all reloc types.
403960484Sobrien	(CALC_ADDEND): Use a more efficient hack to get the correct addend
404060484Sobrien	for a common symbol.
404160484Sobrien	(i386comm_value): Removed; no longer needed.
404260484Sobrien
404360484SobrienSun Apr  4 15:08:48 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
404460484Sobrien
404560484Sobrien	* coffcode.h (coff_set_section_contents): Don't write out
404660484Sobrien	sections without a filepos.
404760484Sobrien
404860484SobrienFri Apr  2 14:35:05 1993  Ian Lance Taylor  (ian@cygnus.com)
404960484Sobrien
405060484Sobrien	* seclet.c (seclet_dump_seclet): Correct SEC_HAS_CONTENTS test.
405160484Sobrien
405260484SobrienWed Mar 31 17:41:05 1993  Ian Lance Taylor  (ian@cygnus.com)
405360484Sobrien
405460484Sobrien	* reloc.c (bfd_reloc_code_real_type): Added BFD_RELOC_MIPS_GPREL.
405560484Sobrien	* libecoff.h (ecoff_data_type): Added gp_size field.
405660484Sobrien	* coff-mips.c (ecoff_mkobject_hook): Initialize gp_size to 8.
405760484Sobrien	(ecoff_set_symbol_info): Compare against gp_size, not hardcoded 8.
405860484Sobrien	Set flags to 0 for large common symbols.
405960484Sobrien	(ecoff_gprel_reloc): Handle non-zero addend for external symbols,
406060484Sobrien	which can occur for gas-generated relocs.
406160484Sobrien	(ecoff_bfd_reloc_type_lookup): Added BFD_RELOC_MIPS_GPREL case.
406260484Sobrien	* bfd.c (bfd_get_gp_size, bfd_set_gp_size): New functions.
406360484Sobrien	* Makefile.in (bfd.o): Now depends on coff/sym.h and libecoff.h.
406460484Sobrien
406560484SobrienTue Mar 30 09:33:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
406660484Sobrien
406760484Sobrien	* srec.c (srec_set_section_contents): Use lma field for load
406860484Sobrien	address.
406960484Sobrien	* section.c: Add declaration of lma field to section structure.
407060484Sobrien	* coffcode.h (coff_write_object_contents): Use lma field for load
407160484Sobrien	address.
407260484Sobrien	* bfd-in.h (bfd_set_section_vma): Set lma along with vma.
407360484Sobrien
407460484Sobrien	* aoutx.h (translate_from_native_sym_flags): Now handles indirect
407560484Sobrien	symbols in a better way. (translate_to_native_sym_flag): Set the
407660484Sobrien	N_INDR bit when necessary. (aout<>slurp_symbol_table): Maintain
407760484Sobrien	indirect state.
407860484Sobrien	* section.c: Added BFD_IND_SECTION_NAME and bfd_ind_section.
407960484Sobrien	(bfd_make_section): Cope with new builtin section.
408060484Sobrien	* syms.c (bfd_decode_symclass): Can now print indirect section
408160484Sobrien	info.
408260484Sobrien
408360484SobrienWed Mar 24 13:36:33 1993  Per Bothner  (bothner@rtl.cygnus.com)
408460484Sobrien
408560484Sobrien	* aout-target.h (MY(object_p)):  Fail if MACHTYPE_OK is
408660484Sobrien	defined, and yields false.
408760484Sobrien	* aout-mipsbsd.c, i386bsd.c:  Define MACHTYPE_OK appropriately.
408860484Sobrien
408960484Sobrien	* archive.c (snarf_ar_hdr):  Add support for reading (only,
409060484Sobrien	so far) BSD-4.4-style extended headers.
409160484Sobrien	* archive.c:  Some more comments.
409260484Sobrien
409360484SobrienWed Mar 24 02:05:10 1993  david d `zoo' zuhn  (zoo at poseidon.cygnus.com)
409460484Sobrien
409560484Sobrien	* Makefile.in: fix rule for dvi and info, so that the recursive
409660484Sobrien	makes does the right thing, instead of always info
409760484Sobrien
409860484SobrienWed Mar 24 02:56:44 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
409960484Sobrien
410060484Sobrien	* libbfd.c (bfd_seek): Disable optimized handling for archives and
410160484Sobrien	archive members; they need more special reatment.  For now, verify
410260484Sobrien	that computed and actual file positions correspond.
410360484Sobrien
410460484SobrienTue Mar 23 08:45:33 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
410560484Sobrien
410660484Sobrien	* mipsbsd.c: Renamed from aout-mipsbsd.c.
410760484Sobrien	(set_arch_mach): Delete non-MIPS code.
410860484Sobrien	(reloc_howto_type_lookup): Ditto.
410960484Sobrien	* Makefile.in: Adjusted.
411060484Sobrien
411160484Sobrien	* libbfd.c (bfd_tell): Update `where' field.
411260484Sobrien	(bfd_seek): Don't do anything if we're not changing the file
411360484Sobrien	position.  If FILE_OFFSET_IS_CHAR_INDEX is defined, check `where'
411460484Sobrien	field against a SEEK_SET request.  Call bfd_tell to re-update
411560484Sobrien	`where' field when done.
411660484Sobrien	(bfd_read, bfd_write) [FILE_OFFSET_IS_CHAR_INDEX]: Maintain
411760484Sobrien	`where' field.
411860484Sobrien	* hosts/sparc.h: Define FILE_OFFSET_IS_CHAR_INDEX.
411960484Sobrien
412060484SobrienMon Mar 22 23:18:10 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
412160484Sobrien
412260484Sobrien	* Makefile.in: added installcheck target
412360484Sobrien
412460484SobrienMon Mar 22 14:57:18 1993  Ian Lance Taylor  (ian@cygnus.com)
412560484Sobrien
412660484Sobrien	* coff-mips.c (ecoff_set_symbol_info): Relocate encapsulated stabs
412760484Sobrien	if the type is not stNil.
412860484Sobrien
412960484SobrienTue Mar 16 10:35:27 1993  Ken Raeburn  (raeburn@cygnus.com)
413060484Sobrien
413160484Sobrien	* elf32.c (elf_little_vec, elf_big_vec): Delete now-invalid
413260484Sobrien	forward declarations.
413360484Sobrien
413460484Sobrien	* elf32-sparc.c (elf_sparc_howto_table): Don't use CONST here,
413560484Sobrien	it's implied by the type.
413660484Sobrien
413760484SobrienFri Mar 12 18:58:08 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
413860484Sobrien
413960484Sobrien	* configure.host: recognize sparc-sun-solaris2* instead of sparc-sun-solaris*
414060484Sobrien
414160484SobrienTue Mar  9 09:23:12 1993  Jim Kingdon  (kingdon@cygnus.com)
414260484Sobrien
414360484Sobrien	* rs6000-core.c: Add .ldinfo section.
414460484Sobrien
414560484SobrienFri Mar 12 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
414660484Sobrien
414760484Sobrien	* Makefile.in (MAKEOVERRIDES): Define to be empty.
414860484Sobrien
414960484SobrienFri Mar 12 08:32:11 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
415060484Sobrien
415160484Sobrien	* section.c (bfd_set_section_contents): whitespace
415260484Sobrien	* seclet.c (seclet_dump_seclet): Don't try and fill sections with
415360484Sobrien	no contents.
415460484Sobrien
415560484SobrienThu Mar 11 19:26:15 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
415660484Sobrien
415760484Sobrien	* hosts/go32.h: don't define POSIX_UTIME
415860484Sobrien
415960484SobrienTue Mar  9 10:52:01 1993  Fred Fish  (fnf@cygnus.com)
416060484Sobrien
416160484Sobrien	* elf32.c (elf_object_p):  Use ELF_ARCH stored in xvec to match
416260484Sobrien	against machine architecture stored in the ELF header, to resolve
416360484Sobrien	ambiguities.
416460484Sobrien	* elf32.c (bfd_section_from_shdr):  Bfd_make_section can return
416560484Sobrien	NULL, so only use results when non-NULL.
416660484Sobrien	* targets.c (elf32_m68k_vec, elf32_i860_vec):  Add extern decls
416760484Sobrien	and add to vector of targets.
416860484Sobrien
416960484SobrienMon Mar  8 15:13:44 1993  Ian Lance Taylor  (ian@cygnus.com)
417060484Sobrien
417160484Sobrien	* coff-mips.c (ecoff_set_symbol_info): Encapsulated STABS symbols
417260484Sobrien	are always just debugging symbols.
417360484Sobrien
417460484Sobrien	* coff-mips.c (ecoff_[gs]et_sym_index): Moved macros from here...
417560484Sobrien	libecoff.h (ecoff_[gs]et_sym_index): ...to here.
417660484Sobrien
417760484SobrienMon Mar  8 14:55:13 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
417860484Sobrien
417960484Sobrien	* hppa.c (_PA_RISC_ID): Defined if not already defined (e.g., for
418060484Sobrien	hpux 7).  Patch from friedman@gnu.ai.mit.edu.
418160484Sobrien	(hppa_object_p): Only check for DL_MAGIC and SHL_MAGIC if they're
418260484Sobrien	defined, which they aren't in hpux 7.0.
418360484Sobrien
418460484Sobrien	* aix386-core.c: Include uinfo.h and coredump.h.  Patch from Minh
418560484Sobrien	Tran-Le, tranle@intellicorp.com.
418660484Sobrien
418760484SobrienFri Mar  5 14:54:21 1993  Ian Lance Taylor  (ian@cygnus.com)
418860484Sobrien
418960484Sobrien	* coff-mips.c (ecoff_generic_reloc): If the addend is non-zero, go
419060484Sobrien	ahead and do the relocation.
419160484Sobrien	(ecoff_refhi_reloc): Don't to the relocation here, just remember
419260484Sobrien	what needs to be done.
419360484Sobrien	(ecoff_reflo_reloc): Do the REFHI relocation here.
419460484Sobrien
419560484SobrienThu Mar  4 14:44:01 1993  Ian Lance Taylor  (ian@cygnus.com)
419660484Sobrien
419760484Sobrien	* coff-mips.c (ecoff_bfd_reloc_type_lookup): New function.
419860484Sobrien	(ecoff_write_object_contents): Added BFD_ASSERT calls to ensure
419960484Sobrien	relocs are reasonable.
420060484Sobrien	* coff-msym.c: Eliminated uses of DEFUN.
420160484Sobrien	(ecoff_swap_tir_out): New function.
420260484Sobrien
420360484SobrienTue Mar  2 17:52:58 1993  Fred Fish  (fnf@cygnus.com)
420460484Sobrien
420560484Sobrien	(Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
420660484Sobrien	* configure.host (vax-*-ultrix2*):  Add triplet.
420760484Sobrien	* hosts/vaxult2.h:  New file.
420860484Sobrien	* config/vaxult2.mh:  New file.
420960484Sobrien
421060484Sobrien	* aoutx.h (string.h):  Include for strchr and friends.
421160484Sobrien	* archive.c (string.h):  Include for memchr and friends.
421260484Sobrien	* elf32.c (string.h):  Include for strrchr and friends.
421360484Sobrien
421460484SobrienSat Feb 27 00:44:24 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
421560484Sobrien
421660484Sobrien	* aoutf1.c (sunos4_reloc_type_lookup): Unused; deleted.
421760484Sobrien	(MY_set_sizes): Use sunos4_set_sizes.
421860484Sobrien
421960484Sobrien	* elf32.c: Renamed from elf.c.  Several CPU-specific functions
422060484Sobrien	deleted, as well as elf-big and elf-little targets.
422160484Sobrien	* libelf.h: New file.
422260484Sobrien	* elf32-sparc.c, elf32-i386.c, elf32-i860.c, elf32-m68k.c: New
422360484Sobrien	files, new targets.
422460484Sobrien	* Makefile.in, config/*-elf.mt, targets.c: Adjusted.
422560484Sobrien
422660484Sobrien	* i386linux.c (TARGETNAME): Use hyphens instead of parentheses.
422760484Sobrien
422860484Sobrien	* coffcode.h (coff_compute_section_file_positions): Don't need
422960484Sobrien	variable "old_sofar" if compiling for i960.
423060484Sobrien
423160484Sobrien	* reloc.c (bfd_default_reloc_type_lookup): First argument is now a
423260484Sobrien	bfd pointer.
423360484Sobrien	* libbfd.h: Updated.
423460484Sobrien
423560484Sobrien	* ieee.c (exten, envi): "static" belongs first in declaration.
423660484Sobrien
423760484SobrienFri Feb 26 17:37:34 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
423860484Sobrien
423960484Sobrien	* srec.c: add support for symbolsrec, srecords with symbols in
424060484Sobrien	them.
424160484Sobrien
424260484SobrienThu Feb 25 11:43:30 1993  John Gilmore  (gnu@cacophony.cygnus.com)
424360484Sobrien
424460484Sobrien	* ieee.c:  cast all arguments of ieee_write_byte to bfd_byte
424560484Sobrien	to avoid lint complaints.
424660484Sobrien
424760484SobrienThu Feb 25 02:15:52 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
424860484Sobrien
424960484Sobrien	* elf.c (elf_write_object_contents): Section ".shstrtab" should be
425060484Sobrien	type SHT_STRTAB.  Don't alter file offset for section 0.
425160484Sobrien	(reloc_type_names): Now an array instead of a macro.  Still inside
425260484Sobrien	"#if 0", since it's used only in debugging code also in "#if 0".
425360484Sobrien	(struct elf_reloc_map_elt, struct elf_reloc_map): New types.
425460484Sobrien	(sort_reloc_map): New function.
425560484Sobrien	(sparc_reloc_map): New variable.
425660484Sobrien	(elf_bfd_reloc_type_lookup): New function.
425760484Sobrien
425860484SobrienTue Feb 23 12:17:16 1993  Ian Lance Taylor  (ian@cygnus.com)
425960484Sobrien
426060484Sobrien	* bfd-in.h (JUMP_TABLE): Added bfd_reloc_type_lookup and
426160484Sobrien	bfd_make_debug_symbol; they were already in the target structure.
426260484Sobrien	* Adjusted all uses of JUMP_TABLE.
426360484Sobrien	* coffgen.c, libcoff-in.h (coff_bfd_make_debug_symbol): Renamed
426460484Sobrien	from coff_make_debug_symbol.
426560484Sobrien	* libcoff.h: Updated accordingly.
426660484Sobrien
426760484Sobrien	* Minor cleanups provoked by gcc warnings:
426860484Sobrien	* aoutx.h (NAME(aout, reloc_type_lookup)),
426960484Sobrien	cpu-h8300.c (local_bfd_reloc_type_lookup),
427060484Sobrien	cpu-z8k.c (local_bfd_reloc_type_lookup): Added default case to
427160484Sobrien	switches.
427260484Sobrien	* archive.c (do_slurp_bsd_armap, do_slurp_coff_armap),
427360484Sobrien	ieee.c (ieee_slurp_section_data),
427460484Sobrien	elf.c (elf_make_sections, elf_fake_sections,
427560484Sobrien	elf_compute_section_file_positions, elf_write_object_contents):
427660484Sobrien	Removed unused variables.
427760484Sobrien	* archures.c: Removed /* from within comment.
427860484Sobrien	* bout.c (b_out_squirt_out_relocs): Initialize r_extern.
427960484Sobrien	* oasys.c (oasys_write_data): Initialize i.
428060484Sobrien
428160484SobrienMon Feb 22 18:40:06 1993  Per Bothner  (bothner@rtl.cygnus.com)
428260484Sobrien
428360484Sobrien	* libcoff.h (obj_raw_syment_coun):  New macro.
428460484Sobrien	* coffgen.c (coff_get_normalized_symtab):  Initialize
428560484Sobrien	raw_syment_count.
428660484Sobrien	* coffgen.c (coff_find_nearest_line):  Numerous little fixes.
428760484Sobrien
428860484SobrienMon Feb 22 15:03:07 1993  Ian Lance Taylor  (ian@cygnus.com)
428960484Sobrien
429060484Sobrien	* coff-mips.c (ecoff_set_symbol_info): stBlock symbols are always
429160484Sobrien	debugging symbols.
429260484Sobrien	(ecoff_get_debug): Offset the fdr adr by the adr of the first pdr,
429360484Sobrien	for compatibility with tools from MIPS.
429460484Sobrien
429560484Sobrien	* config/bigmips.mt: New file; default vector is ecoff_big_vec.
429660484Sobrien	* config/irix3.mt, config/irix4.mt: Removed.
429760484Sobrien	* configure.in (mips-*-ecoff): New target; uses bigmips.mt.
429860484Sobrien	(mips-sgi-*, mips-big-*): Use bigmips rather than irix3.
429960484Sobrien
430060484SobrienWed Feb 17 23:40:41 1993  John Gilmore  (gnu@cygnus.com)
430160484Sobrien
430260484Sobrien	* hosts/hp300bsd.h:  Add gross hack to determine whether we
430360484Sobrien	are running on BSD 4.3 or BSD 4.4, and use appropriate include
430460484Sobrien	files (and set other parameters) to match.
430560484Sobrien
430660484SobrienWed Feb 17 12:28:13 1993  K. Richard Pixley  (rich@cygnus.com)
430760484Sobrien
430860484Sobrien	* trad-core.c (trad_unix_make_empty_symbol): wrap PARAMS around an
430960484Sobrien	  ansi definition which otherwise confuses non-ansi compilers.
431060484Sobrien
431160484Sobrien	* aout-adobe.c (aout_adobe_object_p): eliminate a warning from vax
431260484Sobrien	  ultrix cc by forward declaring getenv as is done in
431360484Sobrien	  bfd_find_target.
431460484Sobrien
431560484SobrienTue Feb 16 17:56:58 1993  K. Richard Pixley  (rich@cygnus.com)
431660484Sobrien
431760484Sobrien	* elf.c (elf_info_to_howto): cast an enum into unsigned char
431860484Sobrien	  avoiding a fatal error in vax ultrix 4.2 cc.
431960484Sobrien
432060484SobrienTue Feb 16 00:44:54 1993  John Gilmore  (gnu@cygnus.com)
432160484Sobrien
432260484Sobrien	* bfd-in.h, VERSION:  Roll to version 2.1.
432360484Sobrien
432460484SobrienMon Feb 15 20:43:51 1993  John Gilmore  (gnu@cygnus.com)
432560484Sobrien
432660484Sobrien	* oasys.c (oasys_write_object_contents):  Lint.
432760484Sobrien	* srec.c:  Whitespace cleanup.
432860484Sobrien
432960484SobrienFri Feb 12 14:23:07 1993  Ian Lance Taylor  (ian@cygnus.com)
433060484Sobrien
433160484Sobrien	* coffgen.c (coff_print_symbol): Print correct tagndx value;
433260484Sobrien	cleaned up output formatting a bit.
433360484Sobrien
433460484SobrienFri Feb 12 08:28:56 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
433560484Sobrien
433660484Sobrien	* coffcode.h (coff_set_arch_mach_hook): *FIXME* the H8/300 is always
433760484Sobrien	relaxable.  Should be moved somewhere else.
433860484Sobrien
433960484SobrienThu Feb 11 14:09:42 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
434060484Sobrien
434160484Sobrien	* aout-mipsbsd.c: Eliminated uses of DEFUN.
434260484Sobrien	(aout_mips_*_vec): Added seclet_link element.
434360484Sobrien
434460484Sobrien	* Makefile.in (BFD_BACKENDS, CFILES, aout-mipsbsd.o): Added
434560484Sobrien	support for aout-mipsbsd target.
434660484Sobrien
434760484Sobrien	* bout.c (get_value): Don't truncate 32-bit addend to 16 bits.
434860484Sobrien
434960484SobrienFri Feb  5 08:08:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
435060484Sobrien
435160484Sobrien	* cpu-h8500.c (scan_mach): return false if it's not an H8/500
435260484Sobrien
435360484SobrienThu Feb  4 12:52:40 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
435460484Sobrien
435560484Sobrien	Add support for the H8/500
435660484Sobrien
435760484Sobrien	* coff-h8500.c, cpu-h8500.c, archures.c, coffcode.h, targets.c
435860484Sobrien
435960484SobrienThu Feb  4 12:35:02 1993  Ian Lance Taylor  (ian@cygnus.com)
436060484Sobrien
436160484Sobrien	* libecoff.h: New file.  Defines ECOFF backend data for gdb.
436260484Sobrien	* coff-mips.c: Now includes libecoff.h.
436360484Sobrien	(ecoff_data_type): Moved to libecoff.h.
436460484Sobrien	(ecoff_slurp_symbolic_info): Made globally visible so that gdb can
436560484Sobrien	call it.  If there is ever another ECOFF target, this and the
436660484Sobrien	swapping functions should be accessed via an ECOFF specific target
436760484Sobrien	vector.
436860484Sobrien	* Makefile.in (coff-mips.o): Depends on libecoff.h.
436960484Sobrien
437060484SobrienWed Feb  3 09:14:36 1993  Ian Lance Taylor  (ian@cygnus.com)
437160484Sobrien
437260484Sobrien	* coffcode.h: Removed MIPS specific information, since coff-mips.c
437360484Sobrien	no longer includes this file.
437460484Sobrien
437560484Sobrien	* coff-msym.c (ecoff_swap_fdr_in, ecoff_swap_ext_in): Set reserved
437660484Sobrien	bits to 0 to make comparison test useful.
437760484Sobrien
437860484Sobrien	* config/irix3.mh, config/irix4.mh (HDEFINES): Set to -G 4 to
437960484Sobrien	avoid overflowing GP accessible sections in binutils/objdump.
438060484Sobrien
438160484SobrienTue Feb  2 15:36:55 1993  Per Bothner  (bothner@cygnus.com)
438260484Sobrien
438360484Sobrien	* aoutx.h (NAME(aout,slurp_symbol_table)):  Made symbol
438460484Sobrien	reading more robust:  Fail if string index is out of string
438560484Sobrien	table range.
438660484Sobrien
438760484SobrienTue Feb  2 11:43:25 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
438860484Sobrien
438960484Sobrien	* bout.c (b_out_get_relocated_section_contents, cases PCREL24 and
439060484Sobrien	PCREL13): Don't take dst_address into account; the input file has
439160484Sobrien	already taken care of that.
439260484Sobrien
439360484SobrienTue Feb  2 11:41:06 1993  Ian Lance Taylor  (ian@cygnus.com)
439460484Sobrien
439560484Sobrien	* coff-mips.c: Completed support for linker and binutils.
439660484Sobrien
439760484SobrienMon Feb  1 14:45:38 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
439860484Sobrien
439960484Sobrien	* bout.c (b_out_get_relocated_section_contents, case ABS32): Keep
440060484Sobrien	original addend from section contents.
440160484Sobrien
440260484SobrienThu Jan 28 21:01:37 1993  John Gilmore  (gnu@cygnus.com)
440360484Sobrien
440460484Sobrien	Fix minor bugs reported by Carl Greco, <cgreco@parrot.creighton.edu>:
440560484Sobrien	* hosts/delta88.h (strtol):  Fix prototype.
440660484Sobrien	* config/m88k-coff.mt (SELECT_ARCHITECTURES):  Fix name.
440760484Sobrien
440860484SobrienWed Jan 27 17:16:51 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
440960484Sobrien
441060484Sobrien	* elf.c: Get rid of "#ifdef sparc".
441160484Sobrien	(RELOC_TYPE_NAMES): Never used (currently), so don't include it.
441260484Sobrien	(elf_sparc_howto_table): Renamed from elf_howto_table, and always
441360484Sobrien	used.
441460484Sobrien	(elf_info_to_howto): Use runtime conditionals on CPU type, not
441560484Sobrien	compile type conditionals on host CPU.
441660484Sobrien	(elf_little_vec, elf_big_vec): Use bfd_default_reloc_type_lookup,
441760484Sobrien	not null pointer.
441860484Sobrien	(reloc_type, RELOC_TYPE_NAMES): Include i386 values.
441960484Sobrien
442060484SobrienTue Jan 26 11:43:14 1993  Ian Lance Taylor  (ian@cygnus.com)
442160484Sobrien
442260484Sobrien	* section.c (SEC_IS_COMMON): New section flag, needed for MIPS
442360484Sobrien	ECOFF which has two common sections.
442460484Sobrien	(bfd_com_section): Set SEC_IS_COMMON flag.
442560484Sobrien	* bfd-in.h (bfd_is_com_section): New macro to test SEC_IS_COMMON.
442660484Sobrien	* aoutx.h, archive.c, bout.c, coff-a29k.c, coff-m88k.c,
442760484Sobrien	coff-mips.c, coffgen.c, ieee.c, oasys.c, reloc.c, syms.: Use
442860484Sobrien	bfd_is_com_section macro rather than checking for equality to
442960484Sobrien	bfd_com_section.
443060484Sobrien
443160484SobrienMon Jan 25 15:27:36 1993  Ian Lance Taylor  (ian@cygnus.com)
443260484Sobrien
443360484Sobrien	* coffcode.h (_bfd_coff_mkobject_hook): Pass aouthdr argument.
443460484Sobrien	(coff_mkobject_hook): Accept aouthdr argument.
443560484Sobrien	* coffgen.c (coff_real_object_p): Pass aouthdr to mkobject_hook.
443660484Sobrien	Handle NULL aouthdr argument.
443760484Sobrien	(coff_object_p): If there is no aouthdr, pass it as NULL to
443860484Sobrien	coff_real_object_p.
443960484Sobrien	* libcoff.h: Rebuilt for mkobject_hook changes.
444060484Sobrien
444160484Sobrien	* coffswap.h (coff_swap_aouthdr_in, coff_swap_aouthdr_in): Swap
444260484Sobrien	additional MIPS ECOFF fields.
444360484Sobrien
444460484SobrienSat Jan 23 18:36:20 PST 1993  Ralph Campbell  (ralphc@pyramid.com)
444560484Sobrien
444660484Sobrien	* configure.host: added mips-dec-bsd*
444760484Sobrien	* configure.in: added mips-dec-bsd*
444860484Sobrien	* aout-mipsbsd.c: new file for mips-dec-bsd*
444960484Sobrien	* aout-target.h: don't define '' if 'MY_BFD_TARGET' is defined.
445060484Sobrien	* aoutx.h: added mips support.
445160484Sobrien	* archures.c: added mips support to bfd_default_scan().
445260484Sobrien	* cpu-mips.c: added support for R4000 (untested).
445360484Sobrien	* libaout.h: added MIPS1 & MIPS2 magic numbers.
445460484Sobrien	* reloc.c: fix typo's in comments. Added BFD_RELOC entries which I
445560484Sobrien		hope will make it into include/bfd.h.
445660484Sobrien	* targets.c: added aout_mips_*_vec.
445760484Sobrien
445860484SobrienWed Jan 20 17:15:52 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
445960484Sobrien
446060484Sobrien	* config/decstation.mt: Set DEFAULT_VECTOR to ecoff_little_vec.
446160484Sobrien
446260484SobrienTue Jan 19 09:06:14 1993  Ian Lance Taylor  (ian@cygnus.com)
446360484Sobrien
446460484Sobrien	* bfd-in.h (bfd_asymbol_value): Add needed parentheses.
446560484Sobrien
446660484Sobrien	* libcoff-in.h: Update prototype for coff_count_linenumbers.
446760484Sobrien
446860484SobrienFri Jan 15 18:13:17 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
446960484Sobrien
447060484Sobrien	* coff-msym.c (ecoff_swap_hdr_out, ecoff_swap_fdr_out,
447160484Sobrien	ecoff_swap_pdr_out, ecoff_swap_sym_out, ecoff_swap_ext_out,
447260484Sobrien	ecoff_swap_rndx_out, ecoff_swap_rfd_out, ecoff_swap_opt_in,
447360484Sobrien	ecoff_swap_opt_out, ecoff_swap_dnr_in, ecoff_swap_dnr_out): New
447460484Sobrien	functions.
447560484Sobrien	* coffswap.h: If NO_COFF_RELOCS is defined, don't define
447660484Sobrien	bfd_swap_reloc_in or coff_swap_reloc_out.
447760484Sobrien	* coff-mips.c: Added code to link and write out symbolic debugging
447860484Sobrien	information, and to swap relocs in and out.
447960484Sobrien
448060484SobrienThu Jan 14 15:51:58 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
448160484Sobrien
448260484Sobrien	* libcoff.h, coffgen.c (coff_count_linenumbers), coffcode.h
448360484Sobrien	(coff_write_object_contents): coff_count_linenumbers returns the
448460484Sobrien	number of line number records it found.
448560484Sobrien
448660484Sobrien	* coffgen.c (coff_write_linenumbers): only write out line numbers
448760484Sobrien	in the section they belong to.
448860484Sobrien
448960484SobrienMon Jan 11 18:32:22 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
449060484Sobrien
449160484Sobrien	* targets.c (bfd_target): Added relocateable argument to
449260484Sobrien	_bfd_get_relocated_section_contents.  Added _bfd_seclet_link
449360484Sobrien	target vector for linker use.
449460484Sobrien	* bfd.c (bfd_seclet_link): New macro.
449560484Sobrien	* bfd-in.h (JUMP_TABLE): Added _bfd_seclet_link.
449660484Sobrien	* seclet.c (rel, seclet_dump_seclet): Added relocateable argument
449760484Sobrien	and boolean return value.  Made static.
449860484Sobrien	(bfd_generic_seclet_link): Renamed from seclet_dump.  Added
449960484Sobrien	relocateable argument.
450060484Sobrien	* reloc.c (bfd_generic_get_relocated_section_contents): Added
450160484Sobrien	relocateable argument (if relocateable, saves relocs).
450260484Sobrien	* bout.c (b_out_get_relocated_section_contents),
450360484Sobrien	reloc16.c (bfd_coff_reloc16_get_relocated_section_contents): Added
450460484Sobrien	relocateable argument (if relocateable, just calls
450560484Sobrien	bfd_generic_get_relocated_section_contents).
450660484Sobrien	* libcoff-in.h (bfd_coff_reloc16_get_value): Added relocateable
450760484Sobrien	argument to prototype.
450860484Sobrien	* All targets: Set new _bfd_seclet_link vector to
450960484Sobrien	bfd_generic_seclet_link.
451060484Sobrien
451160484SobrienSat Jan  9 21:29:32 1993  Stu Grossman  (grossman at cygnus.com)
451260484Sobrien
451360484Sobrien	* coffgen.c:  #include seclet.h.
451460484Sobrien
451560484SobrienSat Jan  9 19:48:14 1993  Stu Grossman  (grossman at cygnus.com)
451660484Sobrien
451760484Sobrien	* hppa.c (hppa_object_setup):  Get rid of all knowledge of stabs
451860484Sobrien	debug info.  Setup info about linker symbols only, and use
451960484Sobrien	standard bfd fields to hold the info.
452060484Sobrien	* (hppa_object_p):  Remove unneeded decls.
452160484Sobrien	* (hppa_new_section_hook):  Get rid of most of this.
452260484Sobrien	* libhppa.h (struct hppadata):  Remove ten pounds of useless ugly
452360484Sobrien	fat.  Remove all knowledge of stabs, remove redundant knowledge of
452460484Sobrien	linker symbols.
452560484Sobrien	* Remove macros for accessing fields which are now gone.
452660484Sobrien
452760484SobrienFri Jan  8 15:20:00 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
452860484Sobrien
452960484Sobrien	* coffcode.h (sec_to_styp_flags): allow SEC_NEVER_LOAD to turn on
453060484Sobrien	STYP_NOLOAD bit.
453160484Sobrien	* coff-z8k.c: delete unused reloc functions
453260484Sobrien
453360484SobrienFri Jan  8 15:47:53 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
453460484Sobrien
453560484Sobrien	* bfd.c (struct _bfd): Added ecoff_tdata to tdata union.
453660484Sobrien	* targets.c (enum target_flavour): Added bfd_target_ecoff_flavour.
453760484Sobrien	* coff-msym.c: Use DEFUN for function definitons.
453860484Sobrien	* coff-mips.c: Added code to read and print symbols, and to find
453960484Sobrien	line numbers.
454060484Sobrien
454160484Sobrien	* coffcode.h: Moved many generic functions into coffgen.c.  Moved
454260484Sobrien	swapping functions into coffswap.h for ECOFF use.  Moved
454360484Sobrien	relocation functions, only used by h8300 and z8k, into reloc16.c.
454460484Sobrien	Added hooks for coffgen.c functions to backend data structure, and
454560484Sobrien	added hook functions.  Still more could be done.
454660484Sobrien	* coffswap.h: New file to hold COFF swapping routines.
454760484Sobrien	* coffgen.c: New file to hold generic COFF functions.
454860484Sobrien	* reloc16.c: New file to hold h8300 and z8k specific relocation
454960484Sobrien	functions.
455060484Sobrien	* libcoff-in.h: Added declarations for functions in coffgen.c.
455160484Sobrien	* libcoff.h: Rebuilt to incorporate changes.
455260484Sobrien	* coff-h8300.c: Function name changes.
455360484Sobrien	* coff-z8k.c: Function name changes.  Use coff_reloc16_extra_cases
455460484Sobrien	hook rather than defining EXTRA_CASES.
455560484Sobrien	* Makefile.in: Build new files coffgen and reloc16.  Added
455660484Sobrien	dependencies of coff-*.o on coffswap.h and seclet.h.
455760484Sobrien
455860484SobrienThu Jan  7 16:16:26 1993  Per Bothner  (bothner@cygnus.com)
455960484Sobrien
456060484Sobrien	* ieee.c (ieee_slurp_sections):  Add cast to avoid warning
456160484Sobrien	about discarding const.
456260484Sobrien
456360484SobrienWed Jan  6 00:16:49 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
456460484Sobrien
456560484Sobrien	* archive.c, seclet.c, elf.c use bfd_xmalloc instead of malloc
456660484Sobrien
456760484SobrienTue Jan  5 09:35:57 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
456860484Sobrien
456960484Sobrien	* configure.in (post-target): If --with-minimal-bfd is specified,
457060484Sobrien	set MINIMIZE=1.
457160484Sobrien
457260484SobrienMon Jan  4 07:20:01 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
457360484Sobrien
457460484Sobrien	* srec.c (srec_write_records): one of my boards wants a CR between
457560484Sobrien	records.
457660484Sobrien
457760484SobrienWed Dec 30 12:46:30 1992  Ian Lance Taylor  (ian@cygnus.com)
457860484Sobrien
457960484Sobrien	* archive.c (do_slurp_coff_armap): set symdef_count correctly
458060484Sobrien	(it broke a couple of weeks ago).
458160484Sobrien
458260484SobrienTue Dec 29 21:41:05 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
458360484Sobrien
458460484Sobrien	* elf.c (bfd_elf_find_section): Switch back to "struct ..." for
458560484Sobrien	return type, so libbfd.h doesn't reference undefined typedefnames.
458660484Sobrien
458760484SobrienTue Dec 29 13:54:35 1992  Ian Lance Taylor  (ian@cygnus.com)
458860484Sobrien
458960484Sobrien	* coffcode.h (coff_real_object_p): use name I386AIXMAGIC rather
459060484Sobrien	than I386SVMAGIC.
459160484Sobrien	(coff_pointerize_aux): don't pointerize a negative tagndx
459260484Sobrien	(sometimes generated by SCO 3.2v4 cc).
459360484Sobrien
459460484Sobrien	* bout.c (calljx_callback, callj_callback,
459560484Sobrien	b_out_get_relocated_section_contents): warn if relocating against
459660484Sobrien	an undefined symbol.
459760484Sobrien
459860484SobrienMon Dec 28 14:30:55 1992  Stu Grossman  (grossman at cygnus.com)
459960484Sobrien
460060484Sobrien	* hppa.c:  Get rid of DEFUN, use more conventional prolog stuff.
460160484Sobrien	Make a bunch more routines be static.
460260484Sobrien	* hppa.c (fill_spaces):  Get rid of this, replace with much better
460360484Sobrien	written setup_sections().
460460484Sobrien	* (setup_sections):  New routine to create BFD sections for each
460560484Sobrien	space and subspace in SOM files.
460660484Sobrien	* (hppa_object_setup):  Use BFD sections created by
460760484Sobrien	setup_sections() to locate GDB symbol table info.
460860484Sobrien	* (make_unique_section):  New routine to create a BFD section.  It
460960484Sobrien	ensures that the given name is unique, and will generate a unique
461060484Sobrien	one if necessary.
461160484Sobrien	* (hppa_object_p):  Become much more paranoid about file header.
461260484Sobrien	* (make_bfd_asection):  Call bfd_make_section to do the dirty
461360484Sobrien	work.  Simplify code somewhat.
461460484Sobrien	* (hppa_core_file_p):  Use proper name for stack section.
461560484Sobrien	* libhppa.h:  Remove millicode_start, millicode_end decls.
461660484Sobrien
461760484SobrienMon Dec 28 11:03:22 1992  Ken Raeburn  (raeburn@cygnus.com)
461860484Sobrien
461960484Sobrien	* Makefile.in (coff-we32k.o, coff-z8k.o): Note dependencies.
462060484Sobrien
462160484Sobrien	* reloc.c (bfd_perform_relocation): For normal 2- or 4-byte
462260484Sobrien	relocs, don't bother doing the adjustment if the value to add is
462360484Sobrien	zero.
462460484Sobrien
462560484SobrienSun Dec 27 17:45:05 1992  Fred Fish  (fnf@cygnus.com)
462660484Sobrien
462760484Sobrien	* bfd.c (bfd_get_size):  New function that gets an upper bound
462860484Sobrien	on the possible size of any object in a bfd.
462960484Sobrien	* elf.c (bfd_elf_find_section, elf_get_str_section,
463060484Sobrien	elf_get_symtab_upper_bound):  Rewrite to avoid NULL pointer
463160484Sobrien	dereferences.
463260484Sobrien	* elf.c (elf_big_vec, elf_little_vec):  Document last three
463360484Sobrien	members initialized to NULL.
463460484Sobrien
463560484SobrienThu Dec 24 17:49:09 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
463660484Sobrien
463760484Sobrien	* hppa.c: change a 'const' to 'CONST', or else HP C compiler dies
463860484Sobrien
463960484SobrienMon Dec 21 16:33:34 1992  Per Bothner  (bothner@rtl.cygnus.com)
464060484Sobrien
464160484Sobrien	* hosts/std-host.h:  New file.  Attempt at a generic/default
464260484Sobrien	set of definitions, to discourage porting to new hosts by copying.
464360484Sobrien	* hosts/news.h:  Removed.
464460484Sobrien	* hosts/sparc.h:  Use std-host.h.
464560484Sobrien	* bfd-in.h:  New macros bfd_asymbol_bfd and bfd_asymbol_flavour;
464660484Sobrien	perhaps we can later remove the the_bfd field from each symbol.
464760484Sobrien	* syms.c (struct symbol_cache_entry):  Remove unused field
464860484Sobrien	app_data.  Add comment noting that the_bfd is almost redundant,
464960484Sobrien	but not quite.
465060484Sobrien	* aoutx.h, coff-a29k.c, coff-i386.c, coff-i960.c, coffcode.h:
465160484Sobrien	Use new macros bfd_asymbol_bfd and bfd_asymbol_flavour.
465260484Sobrien	* hppa.c (fill_spaces):  Make slightly more rebust.
465360484Sobrien	* configure.in:  Allow std-host as the "default" host.
465460484Sobrien
465560484SobrienMon Dec 21 17:24:13 1992  Stu Grossman  (grossman at cygnus.com)
465660484Sobrien
465760484Sobrien	* bfd.c:  Add struct hppa_core_data to tdata union.
465860484Sobrien	* hppa.c:  Conditionalize on HOST_HPPAHPUX instead of hp9000s800.
465960484Sobrien	Get rid of HPPA/BSD specific code.  That will go somewhere else
466060484Sobrien	someday.
466160484Sobrien	* (fill_spaces):  Don't spin forever and die if you don't find
466260484Sobrien	$MILLICODE$ subspace.
466360484Sobrien	* (hppa_object_p):  Make sure that we have a real honest-to-cthulu
466460484Sobrien	exec file!
466560484Sobrien	* (hppa_core_file_failing_signal, hppa_core_file_failing_command):
466660484Sobrien	Make these work for HPUX.
466760484Sobrien	* (make_bfd_asection):  New routine to make section creation a
466860484Sobrien	little easier.
466960484Sobrien	* (hppa_core_file_p):  Completely rewrite, leave out bugs.
467060484Sobrien	* libhppa.h:  #include the right system files.  Redefine all of
467160484Sobrien	the structs/macros for hacking core files to use more sensible
467260484Sobrien	HPUX core file structures.
467360484Sobrien	* targets.c (target_vector):  Conditionalize hppa_vec on
467460484Sobrien	HOST_HPPAHPUX, not hp9000s800.
467560484Sobrien	* hosts/hppahpux.h:  #include stdlib.h to get correct decls for
467660484Sobrien	malloc and realloc.  #define HOST_HPPAHPUX.
467760484Sobrien
467860484SobrienMon Dec 21 12:40:10 1992  Ian Lance Taylor  (ian@cygnus.com)
467960484Sobrien
468060484Sobrien	* Patches from Minh Tran-le <mtranle@paris.intellicorp.com>.
468160484Sobrien	* configure.in (i386-*-isc*, i386-*-aix*): New targets.
468260484Sobrien	* configure.host (i386-*-isc*, i386-*-aix*): New hosts.
468360484Sobrien	* hosts/i386isc.h, config/i386isc.mh: New files for Interactive
468460484Sobrien	Unix.
468560484Sobrien	* hosts/i386aix.h, config/i386aix.mh: New files for AIX on PS/2.
468660484Sobrien	* aix386-core.c: New file for handling core files on AIX on PS/2.
468760484Sobrien	* targets.c: if AIX386_CORE, use aix386_core_vec.
468860484Sobrien	* coffcode.h (coff_real_object_p): check for I386SVMAGIC as well
468960484Sobrien	as I386MAGIC.
469060484Sobrien
469160484SobrienFri Dec 18 10:20:27 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
469260484Sobrien
469360484Sobrien	* aoutf1.h (sunos4_write_object_contents): set flags to 0, fixing
469460484Sobrien	1927.
469560484Sobrien
469660484SobrienThu Dec 17 19:35:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
469760484Sobrien
469860484Sobrien	* Makefile.in: added dvi target
469960484Sobrien
470060484SobrienThu Dec 17 00:36:24 1992  John Gilmore  (gnu@cygnus.com)
470160484Sobrien
470260484Sobrien	* bfd.c:  Use right name for tekhex tdata struct.
470360484Sobrien	* tekhex.c:  Insert leading_char (0) into bfd_target struct.  Style.
470460484Sobrien	* libcoff.h:  Updated to get spacing change from coffcode.h.
470560484Sobrien	* trad-core.c:  leading_char is 0 (no symbols!), not '_'.
470660484Sobrien
470760484SobrienTue Dec 15 15:40:30 1992  Per Bothner  (bothner@cygnus.com)
470860484Sobrien
470960484Sobrien	* archive.c (do_slurp_bsd_armap, do_slurp_coff_armap):  New
471060484Sobrien	functions, with the "guts" of the old bfd_slurp_bsd_armap
471160484Sobrien	and bfd_slurp_coff_armap, but assuming we've already checked
471260484Sobrien	if the armap is present or not.
471360484Sobrien	Also, rewrite a bit to avoid keeping around obstack data
471460484Sobrien	that we don't need.
471560484Sobrien	* archive.c (snarf_ar_header, _bfd_slurp_extended_name_table):
471660484Sobrien	Various fixes to correctly handle COFF_style archives names.
471760484Sobrien	(Note that because these have a trailing '/', the names can
471860484Sobrien	have embedded spaces.)
471960484Sobrien	* archive.c (bfd_slurp_armap):  New function, replaces old
472060484Sobrien	bfd_slurp_bsd_armap and bfd_slurp_coff_armap.  Recognizes
472160484Sobrien	_either_ format, and calls do_slurp_bsd_armap or
472260484Sobrien	do_slurp_coff_armap if either form of map is seen.
472360484Sobrien	* libbfd-in.h:  Changed bfd_slurp_bsd_armap and
472460484Sobrien	bfd_slurp_coff_armap into macro synonyms for bfd_slurp_armap.
472560484Sobrien	* elf.c (elf_slurp_armap, elf_write_armap):  Fix.
472660484Sobrien	* Makefile.in (AR_FLAGS):  Use rc instead of non-standard qc.
472760484Sobrien
472860484SobrienMon Dec 14 17:08:08 1992  Stu Grossman  (grossman at cygnus.com)
472960484Sobrien
473060484Sobrien	* hppa.c:  #include "sysdep.h", not <sysdep.h>.
473160484Sobrien	* libhppa.h:  Make millicode_start and millicode_end be unsigned
473260484Sobrien	int to be same type as CORE_ADDR in GDB.  Why are these here?
473360484Sobrien
473460484SobrienSat Dec 12 15:54:36 1992  Ian Lance Taylor  (ian@cygnus.com)
473560484Sobrien
473660484Sobrien	* coff-i386.c (CALC_ADDEND): if reloc is PC relative, add the
473760484Sobrien	vaddr of the section to the addend.
473860484Sobrien	* targets.c: if MINIMIZE is 1, and SCO_CORE is defined, add
473960484Sobrien	SCO_CORE to SELECT_VECS.
474060484Sobrien	(target_vector): add sco_core_vec.
474160484Sobrien	* sco-core.c (sco_core_vec): add leading underscore initializer.
474260484Sobrien	* configure.in (i[34]86-*-sco*): use target i386-sco.
474360484Sobrien	* config/i386-sco.mt: new file; define SCO_CORE.
474460484Sobrien
474560484SobrienThu Dec 10 02:13:15 1992  John Gilmore  (gnu@cygnus.com)
474660484Sobrien
474760484Sobrien	* aout-adobe.c (aout_adobe_object_p):  Fix !strcmp thinko.
474860484Sobrien
474960484SobrienFri Dec  4 14:02:49 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
475060484Sobrien
475160484Sobrien	* coffcode.h (bfd_coff_std_swap_table): Now static and const.
475260484Sobrien
475360484SobrienThu Dec  3 16:54:58 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
475460484Sobrien
475560484Sobrien	* hosts/i386linux.h: Include unistd.h.
475660484Sobrien
475760484Sobrien	* aoutx.h (print_symbol): aout_stab_name returns a constant
475860484Sobrien	string.
475960484Sobrien	* libaout.h (aout_stab_name): Fix prototype.
476060484Sobrien	* stab-syms.c (aout_stab_names): Array is now const.
476160484Sobrien	(aout_stab_name): Return value is now pointer to const.
476260484Sobrien
476360484Sobrien	* aoutx.h, archive.c, archures.c, coffcode.h, ctor.c, reloc.c,
476460484Sobrien	syms.c: Doc fixes.
476560484Sobrien
476660484Sobrien	* syms.c (asymbol): Added new field "app_data", for data
476760484Sobrien	particular to the application.  Some of the linker flags ought to
476860484Sobrien	get moved to this field someday.
476960484Sobrien
477060484Sobrien	* archures.c (bfd_default_scan): Recognize a few more numbers:
477160484Sobrien	80486, 80960, and 960.
477260484Sobrien
477360484Sobrien	* bfd-in.h (COFF_SWAP_TABLE): New is just address of
477460484Sobrien	bfd_coff_std_swap_table, cast to PTR.
477560484Sobrien	* bfd.c (bfd_coff_swap_*): Deleted macros.
477660484Sobrien	* targets.c (struct bfd_target): Deleted COFF-specific swapping
477760484Sobrien	routine pointers.
477860484Sobrien	* coffcode.h (type bfd_coff_backend_data): New structure type,
477960484Sobrien	contains pointers to the COFF-specific swapping routines.
478060484Sobrien	(bfd_coff_std_swap_table): New data structure, to be used when
478160484Sobrien	NO_COFF_SYMBOLS and NO_COFF_LINENOS are not defined.
478260484Sobrien	(bfd_coff_swap_*): New macros.
478360484Sobrien	* coff-mips.c (mips_coff_swap_table): New data structure.
478460484Sobrien	(ecoff_big_vec): Use it.
478560484Sobrien	* All COFF targets: Moved COFF_SWAP_TABLE to target-specific data.
478660484Sobrien	* All other targets: Deleted coff-specific vector entries.
478760484Sobrien
478860484Sobrien	* trad-core.c: Fixed some `PARAMS' uses that were missing
478960484Sobrien	parentheses.
479060484Sobrien
479160484SobrienSun Nov 29 08:37:13 1992  Fred Fish  (fnf@cygnus.com)
479260484Sobrien
479360484Sobrien	* aoutx.h (some_aout_object_p):  Protect arg prototype in
479460484Sobrien	callback_to_real_object_p with PARAMS macro for non-ANSI compilers.
479560484Sobrien
479660484SobrienSat Nov 28 04:01:21 1992  John Gilmore  (gnu@cygnus.com)
479760484Sobrien
479860484Sobrien	* aout-target.h, aoutf1.h, trad-core.c, coffcode.h, libaout.h,
479960484Sobrien	libbfd-in.h, bfd-in.h: Eliminate all PROTO calls, replace with
480060484Sobrien	PARAMS for readability.
480160484Sobrien
480260484Sobrien	* aoutx.h:  Add type to callback parameter.
480360484Sobrien	* coff-mips.c:  Don't call trad-core.h, not needed.
480460484Sobrien	* trad-core.c:  Incorporate trad-core.h declarations.  Fix comments.
480560484Sobrien	* trad-core.h:  Eliminate, unused.
480660484Sobrien
480760484SobrienWed Nov 18 13:16:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
480860484Sobrien
480960484Sobrien	* format.c (bfd_check_format): if default target isn't found
481060484Sobrien	then look through the entire list rather than return early.
481160484Sobrien
481260484SobrienMon Nov 16 14:33:03 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
481360484Sobrien
481460484Sobrien	* config/i960-coff.mt: reorder vec to match bfd_check_format (from Per)
481560484Sobrien
481660484SobrienThu Nov 12 17:01:41 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
481760484Sobrien
481860484Sobrien	* Makefile.in: pass down prefix and exec_prefix in FLAGS_TO_PASS
481960484Sobrien
482060484SobrienThu Nov 12 09:46:47 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
482160484Sobrien
482260484Sobrien	* coff-z8k.c: checkpoint, more addressing modes handled
482360484Sobrien	* coffcode.h (get_value): don't truncate reloc->addend field, it's
482460484Sobrien	a long now.
482560484Sobrien
482660484SobrienWed Nov 11 23:57:55 1992  Brendan Kehoe  (brendan@cygnus.com)
482760484Sobrien
482860484Sobrien	* we32k.mt (TDEFAULTS): Use we32kcoff_vec, not i386coff_vec.
482960484Sobrien
483060484SobrienTue Nov 10 14:04:38 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
483160484Sobrien
483260484Sobrien	* Makefile.in: minor tweaks to make $(CC) command lines more consistent
483360484Sobrien
483460484SobrienMon Nov  9 23:58:17 1992  John Gilmore  (gnu@cygnus.com)
483560484Sobrien
483660484Sobrien	* opncls.c (bfd_fdopenr, bfd_close):  Add doc about cacheing
483760484Sobrien	and about when file descriptors are closed.
483860484Sobrien
483960484SobrienSat Nov  7 00:42:20 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
484060484Sobrien
484160484Sobrien	* bout.c (b_out_squirt_out_relocs): Make sure alignment relocs get
484260484Sobrien	written out correctly.
484360484Sobrien
484460484SobrienThu Nov  5 15:34:19 1992  Ian Lance Taylor  (ian@cygnus.com)
484560484Sobrien
484660484Sobrien	* section.c: New section bit SEC_SHARED_LIBRARY.
484760484Sobrien	coffcode.h (styp_to_sec_flags): if STYP_NOLOAD && (STYP_TEXT ||
484860484Sobrien	STYP_DATA), set SEC_SHARED_LIBRARY.  This seems to be correct for
484960484Sobrien	i386-sysv.
485060484Sobrien
485160484SobrienThu Nov  5 04:43:09 1992  John Gilmore  (gnu@cygnus.com)
485260484Sobrien
485360484Sobrien	* target.c (struct bfd_target):  Eliminate the SDEF and SDEF_FMT
485460484Sobrien	macros; use PARAMS to declare the function pointers involved.
485560484Sobrien
485660484Sobrien	* bfd-in.h, bfd.c, libbfd.h, reloc.c, seclet.h, section.c,
485760484Sobrien	targets.c: Rename struct bfd_seclet_struct to struct bfd_seclet.
485860484Sobrien
485960484SobrienThu Nov  5 02:59:09 1992  John Gilmore  (gnu@cygnus.com)
486060484Sobrien
486160484Sobrien	Cleanup:  Replace all uses of EXFUN in the BFD sources, with PARAMS.
486260484Sobrien
486360484Sobrien	* archures.c, reloc.c, section.c, tekhex.c:  Use PARAMS in
486460484Sobrien	declaring pointers to functions.
486560484Sobrien	* cache.c, elf.c:  Move static function decls to top, use PARAMS.
486660484Sobrien	* seclet.h:  Declare external function with PARAMS.
486760484Sobrien
486860484Sobrien	* doc/chew.c (exfunstuff):  Eliminate.
486960484Sobrien	(paramstuff):  Replace exfunstuff with function to generate PARAMS.
487060484Sobrien	* doc/proto.str:  Use paramstuff rather than exfunstuff.
487160484Sobrien
487260484Sobrien	* libbfd.h:  Update, based on changes in source code and chew.
487360484Sobrien
487460484SobrienWed Nov  4 22:47:29 1992  John Gilmore  (gnu@cygnus.com)
487560484Sobrien
487660484Sobrien	* libieee.h:  Add FIXME about removing limit on number of sections.
487760484Sobrien	* bfd-in.h:  Improve comments to make it clear that bfd.h is
487860484Sobrien	the wrong place to edit this file.
487960484Sobrien	* Makefile.in (install):  Install ansidecl.h and obstack.h in the
488060484Sobrien	same places where we install bfd.h.
488160484Sobrien
488260484SobrienWed Nov  4 13:40:23 1992  Sean Eric Fagan  (sef@cygnus.com)
488360484Sobrien
488460484Sobrien	* coffcode.h (coff_swap_aux_out, coff_swap_aux_in):  check for
488560484Sobrien	symbol type before blindly modifying the auxent.  Specifically,
488660484Sobrien	only modify the endndx fields for types that need it, and don't
488760484Sobrien	set the array information for non-arrays.
488860484Sobrien
488960484SobrienWed Nov  4 09:30:50 1992  Ken Raeburn  (raeburn@cygnus.com)
489060484Sobrien
489160484Sobrien	* aoutx.h (some_aout_object_p): Section list should be set up
489260484Sobrien	correctly anyways; don't have to set up "next" pointers manually.
489360484Sobrien
489460484SobrienMon Nov  2 12:36:14 1992  Ian Lance Taylor  (ian@cygnus.com)
489560484Sobrien
489660484Sobrien	* config/delta88.mh, config/hp300.mh, config/hppahpux.mh,
489760484Sobrien	config/i386v.mh: removed -DUSG from HDEFINES.
489860484Sobrien	hosts/delta88.h, hosts/hp300.h, hosts/hppahpux.h, hosts/i386v.h:
489960484Sobrien	defined USE_UTIME.
490060484Sobrien	hosts/i386v.h: don't define POSIX_UTIME.
490160484Sobrien
490260484SobrienFri Oct 30 16:13:52 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
490360484Sobrien
490460484Sobrien	* ieee.c (ieee_slurp_sections): make a private copy of the
490560484Sobrien	section's name before truncating it.
490660484Sobrien
490760484SobrienThu Oct 29 08:30:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
490860484Sobrien
490960484Sobrien	* hppa.c: add symbol_leading_char entry in transfer vec
491060484Sobrien
491160484Sobrien,Wed Oct 28 16:11:57 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
491260484Sobrien
491360484Sobrien	* ieee.c (get_symbol): can now cope when two symbols of a
491460484Sobrien	different class, but the same index number occur consecutively.
491560484Sobrien	(get_section_entry): nicer name for sections being forward
491660484Sobrien	referenced. (ieee_archive_p): don't free the filename string,
491760484Sobrien	since it was never malloced.
491860484Sobrien
491960484SobrienWed Oct 28 13:42:09 1992  John Gilmore  (gnu@cygnus.com)
492060484Sobrien
492160484Sobrien	* coffcode.h (coff_write_object_contents):  Zero timestamp field.
492260484Sobrien
492360484SobrienTue Oct 27 12:24:34 1992  Ian Lance Taylor  (ian@cygnus.com)
492460484Sobrien
492560484Sobrien	* coffcode.h (coff_swap_aux_out): set the fcnary info before
492660484Sobrien	optionally setting the dimen info, since they are in the same
492760484Sobrien	memory locations.  Also zero out external auxent.
492860484Sobrien	(coff_write_symbol): don't zero external auxent; now done in
492960484Sobrien	coff_swap_aux_out.
493060484Sobrien
493160484SobrienFri Oct 23 13:55:35 1992  Ian Lance Taylor  (ian@cygnus.com)
493260484Sobrien
493360484Sobrien	* Check fclose return value for errors.
493460484Sobrien	libbfd.h: bfd_cache_close now returns a boolean.
493560484Sobrien	cache.c (bfd_cache_delete): return fclose success value.
493660484Sobrien	(bfd_cache_close): return bfd_cache_delete return value.
493760484Sobrien	opncls.c (bfd_close, bfd_close_all_done): return result of
493860484Sobrien	bfd_cache_close.
493960484Sobrien
494060484SobrienFri Oct 23 10:32:36 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
494160484Sobrien
494260484Sobrien	* seclet.c (rel): don't load sections without the SEC_LOAD bit.
494360484Sobrien
494460484SobrienThu Oct 15 10:16:35 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
494560484Sobrien
494660484Sobrien	* coff-m68k.c (m68k_howto2type, SELECT_RELOC): new function to
494760484Sobrien	work out a coff relocation type from a howto's attributes rather
494860484Sobrien	than using the input r_type field. This fixes PR1677 and allows
494960484Sobrien	conversion of a.out relocs to coff relocs.
495060484Sobrien
495160484Sobrien	* coffcode.h (coff_write_relocs): if supplied a relocation
495260484Sobrien	relative to an absolute symbol, use the right symbol index.
495360484Sobrien
495460484Sobrien	* reloc.c (bfd_perform_relocation): do a partial link for coff
495560484Sobrien	relocs right.
495660484Sobrien
495760484SobrienFri Oct 23 08:15:56 1992  Ian Lance Taylor  (ian@cygnus.com)
495860484Sobrien
495960484Sobrien	* changes to support i386-sysv with shared libraries:
496060484Sobrien	* coffcode.h (sec_to_styp_flags): if TWO_DATA_SECS is defined,
496160484Sobrien	check for .data2; if _LIB is defined, check for it; map
496260484Sobrien	SEC_NEVER_LOAD to STYP_NOLOAD.
496360484Sobrien	(styp_to_sec_flags): map STYP_NOLOAD to SEC_NEVER_LOAD.
496460484Sobrien	(make_a_section_from_file): if TWO_DATA_SECS, accept .data2.
496560484Sobrien	(coff_write_object_contents): force vaddr of .lib to 0; set scnptr
496660484Sobrien	if section has contents, not just if it is loadable; if
496760484Sobrien	TWO_DATA_SECS, check for .data2
496860484Sobrien	(coff_set_section_contents): set vma of .lib section to number of
496960484Sobrien	.lib sections.
497060484Sobrien	* coff-i386.c: define TWO_DATA_SECS; use a special CALC_ADDEND;
497160484Sobrien	don't define coff_write_armap to bsd_write_armap.
497260484Sobrien	* hosts/i386v.h: don't include <utime.h>, since it is not provided
497360484Sobrien	by SVR3.2.
497460484Sobrien
497560484SobrienThu Oct 22 22:40:20 1992  Brendan Kehoe  (brendan@lisa.cygnus.com)
497660484Sobrien
497760484Sobrien	* solaris2.h: Get the definition of alloca from alloca.h if we
497860484Sobrien	aren't using gcc.
497960484Sobrien
498060484SobrienThu Oct 22 03:07:28 1992  John Gilmore  (gnu@cygnus.com)
498160484Sobrien
498260484Sobrien	* configure.in (i960-*-{aout,bout}):  Support these.
498360484Sobrien
498460484SobrienWed Oct 21 03:46:34 1992  John Gilmore  (gnu@cygnus.com)
498560484Sobrien
498660484Sobrien	* config/a29k-aout.mt (DEFAULT_TARGET):  Set to one that exists.
498760484Sobrien
498860484SobrienThu Oct 15 15:05:39 1992  Per Bothner  (bothner@cygnus.com)
498960484Sobrien
499060484Sobrien	* apollo68.h, apollov68.h, hp300.h, i386v.h, irix3.h: Remove
499160484Sobrien	no-longer-used definitions of L_SET and L_INCR.
499260484Sobrien	* i386linux.h:  Tweaks to smooth Linux build.
499360484Sobrien
499460484SobrienThu Oct 15 01:32:22 1992  John Gilmore  (gnu@cygnus.com)
499560484Sobrien
499660484Sobrien	* seclet.h:  Add enum tag to bfd_seclet_enum_type.
499760484Sobrien
499860484Sobrien	* bfd-in.h (file_ptr):  Update comments, make FIXME re off_t.
499960484Sobrien
500060484Sobrien	* aout-adobe.c, aoutf1.h, archive.c, bout.c, coff-rs6000.c,
500160484Sobrien	coffcode.h, elf.c, ieee.c, libaout.h, libbfd.c, oasys.c,
500260484Sobrien	sco-core.c:  Lint:  Second argument of bfd_seek is always file_ptr.
500360484Sobrien	Third argument is SEEK_SET or SEEK_CUR.  Result is always 0 or -1.
500460484Sobrien
500560484Sobrien	* aout-adobe.c, aoutf1.h, aoutx.h, bout.c coff-m68k.c, coff-z8k.c,
500660484Sobrien	coffcode.h, elf.c, libaout.h, libbfd-in.h, srec.c:  Lint.
500760484Sobrien
500860484SobrienFri Oct  9 03:46:37 1992  John Gilmore  (gnu@cygnus.com)
500960484Sobrien
501060484Sobrien	* configure.host:  New file, contains mapping of host configs
501160484Sobrien	to host support file names for bfd, binutils, opcodes.
501260484Sobrien	* configure.in:  Use it.
501360484Sobrien	* i386aout.c:  Cleanup, dump TARGET_IS_LITTLE_ENDIAN_P.
501460484Sobrien	* i386bsd.c:  Cleanup, reformat.
501560484Sobrien	* config/i386-bsd.mt:  Comment changes.
501660484Sobrien	* config/i386bsd.mh:  New file for core file support.
501760484Sobrien	* hosts/i386bsd.h:  Merge changes from Peter Schauer.
501860484Sobrien	* bout.c (ALIGN):  Rename to ALIGNER, since system header files
501960484Sobrien	on BSD 4.4 define ALIGN (sigh!).
502060484Sobrien
502160484SobrienThu Oct  8 22:18:10 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
502260484Sobrien
502360484Sobrien	* libaout.h (aout_backend_data): added exec_header_not_counted
502460484Sobrien	field. For ZMAGIC files only, when text_includes_header is set, by
502560484Sobrien	default the length of the exec header is counted in the text
502660484Sobrien	section size. For go32, exec header is mapped in but does *not*
502760484Sobrien	contribute to the size of section.
502860484Sobrien	* aoutx.h (aout_adjust_sizes_and_vmas): if exec_header_not_counted
502960484Sobrien	is not set, but ztih is, add the size of the exec header to the
503060484Sobrien	recorded size of the text section.
503160484Sobrien	* aoutf1.h (sunos4_aout_backend): clear exec_header_not_counted.
503260484Sobrien	* i386aout.c (i386aout_backend_data): set exec_header_not_counted.
503360484Sobrien	Also set text_includes_header.
503460484Sobrien	* aout-target.h (*_backend_data): cleare exec_header_not_counted
503560484Sobrien	by default in MY(backend_data).
503660484Sobrien
503760484SobrienThu Oct  8 18:12:49 1992  Ken Raeburn  (raeburn@cygnus.com)
503860484Sobrien
503960484Sobrien	* aout-target.h (callback): Don't define this function if it won't be
504060484Sobrien	used.
504160484Sobrien
504260484Sobrien	* aoutx.h (some_aout_object_p): Restore old aout_data value if this
504360484Sobrien	type doesn't match.  Don't lose if file sections have already been
504460484Sobrien	created.
504560484Sobrien	(set_arch_mach): Set reloc_entry_size.
504660484Sobrien	(slurp_symbol_table): Use bfd_h_get_{16,8} for reaeding symbol data.
504760484Sobrien
504860484Sobrien	* hosts/i386bsd.h: New file.
504960484Sobrien	* configure.in: Recognize i[34]86-*-bsd host.
505060484Sobrien
505160484Sobrien	* aout-target.h (callback, write_object_contents): Delete unused
505260484Sobrien	variables.
505360484Sobrien
505460484Sobrien	* aoutx.h (reloc_type_lookup): New function.
505560484Sobrien	* aout-target.h (MY_reloc_howto_type_lookup): Use it as default.
505660484Sobrien	* aoutf1.h (sunos4_reloc_type_lookup): Deleted.
505760484Sobrien	(MY_reloc_howto_type_lookup): Don't define it.
505860484Sobrien
505960484Sobrien	* aoutx.h (adjust_sizes_and_vmas): Don't bother with padding for
506060484Sobrien	OMAGIC files.
506160484Sobrien	(slurp_symbol_table): Use header byte order, not target byte
506260484Sobrien	order, for reading symbol data.
506360484Sobrien
506460484SobrienThu Oct  8 17:33:39 1992  John Gilmore  (gnu@cygnus.com)
506560484Sobrien
506660484Sobrien	* configure.in:  Undo some brain damage in the host section.
506760484Sobrien	* configure.in:  Reformat the target section, test many configs.
506860484Sobrien	* Makefile.in (make):  Remove obsolete `make make'.
506960484Sobrien	* aoutx.h (some_aout_object_p):  Make defines line up.
507060484Sobrien
507160484SobrienThu Oct  8 08:52:48 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
507260484Sobrien
507360484Sobrien	Now a bfd knows whether underscores are normally prepended
507460484Sobrien	to symbols in its file format.
507560484Sobrien
507660484Sobrien	* aout-adobe.c, aout-target.h, bout.c, coff-a29k.c, coff-h8300.c,
507760484Sobrien	coff-z8k.c: targets set so they have leading underscore
507860484Sobrien	* coff-i386.c, coff-i960.c, coff-m68k.c, coff-mips.c, coff-m88k.c,
507960484Sobrien	coff-rs6000.c, coff-we32k.c, elf.c, ieee.c, srec.c: targets set
508060484Sobrien	without leading underscore flag
508160484Sobrien	* targets.c: add symbol leading char to xvec description
508260484Sobrien	* bfd-in.h (bfd_get_symbol_leading_char): new macro.
508360484Sobrien
508460484SobrienMon Oct  5 14:32:55 1992  Per Bothner  (bothner@cygnus.com)
508560484Sobrien
508660484Sobrien	* archive.c:  Make errno global.
508760484Sobrien	* archive.c (_bfd_write_archive_contents):  If read fails (and
508860484Sobrien	errno!=0) set bfd_error to malformed_archive (since this probably
508960484Sobrien	indicates a truncated archive), rather than system_call_error.
509060484Sobrien
509160484SobrienMon Oct  5 03:33:39 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
509260484Sobrien
509360484Sobrien	* Makefile.in: added rules for i386bsd.c
509460484Sobrien	* i386bsd.c: new file, supporting 386bsd.
509560484Sobrien	* configure.in: recognize i386-*-bsd target.
509660484Sobrien	* config/i386-bsd.mt: new file - 386bsd target configuration.
509760484Sobrien
509860484SobrienThu Oct  1 17:51:07 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
509960484Sobrien
510060484Sobrien	* configure.in: re-arrange host section to use *-*-* notation,
510160484Sobrien	clean up some of the target section as well
510260484Sobrien
510360484Sobrien	* seclet.c: cast result of bfd_get_relocated_section_contents to
510460484Sobrien	avoid compiler warnings
510560484Sobrien
510660484SobrienTue Sep 29 13:24:09 1992  Ken Raeburn  (raeburn@cygnus.com)
510760484Sobrien
510860484Sobrien	* coffcode.h (coff_section_symbol): Create section if it doesn't
510960484Sobrien	already exist.
511060484Sobrien
511160484Sobrien	* bout.c: Removed some unused variables.
511260484Sobrien
511360484SobrienTue Sep 29 08:30:21 1992  Ian Lance Taylor  (ian@cygnus.com)
511460484Sobrien
511560484Sobrien	* Portability fixes from p3:
511660484Sobrien	coffcode.h (coff_write_relocs): removed sanity check until it
511760484Sobrien	works on all targets (per advice from sac).
511860484Sobrien	config/hp9000.mh: new file to define USG.
511960484Sobrien	hppa.c: #undef hppa before the JUMP_TABLE.
512060484Sobrien	hosts/hppahpux.h: #define NATIVE_HPPAHPUX_COMPILER if not
512160484Sobrien	__STDC__.
512260484Sobrien	targets.c (bfd_target_list): if NATIVE_HPPAHPUX_COMPILER, make
512360484Sobrien	local variable target volatile to avoid mysterious bug in
512460484Sobrien	HP9000/700 cc.
512560484Sobrien
512660484SobrienSat Sep 26 03:58:49 1992  John Gilmore  (gnu@cygnus.com)
512760484Sobrien
512860484Sobrien	* config/hppabsd.mh, config.hppahpux.mh:  Remove various bogosity.
512960484Sobrien	* hosts/hppahpux.h:  Remove bcopy and index circumventions.
513060484Sobrien
513160484SobrienFri Sep 25 22:36:52 1992  John Gilmore  (gnu@cygnus.com)
513260484Sobrien
513360484Sobrien	* coff-z8k.c (func_da, func_jr):  Lint.
513460484Sobrien	* coffcode.h:  Use memset rather than bzero.
513560484Sobrien	* elf.c:  Use memcpy rather than bcopy.
513660484Sobrien	* tekhex.c:  Use memset rather than bzero.
513760484Sobrien
513860484SobrienFri Sep 25 19:14:48 1992  John Gilmore  (gnu@cygnus.com)
513960484Sobrien
514060484Sobrien	Add Adobe a.out support.
514160484Sobrien
514260484Sobrien	* aout-adobe.c:  New file.  So far, only reads a.out.adobe.  FIXME.
514360484Sobrien	* config/adobe.mt:  Add.
514460484Sobrien	* configure.in (*-adobe-* target):  Add.
514560484Sobrien	* targets.c (a_out_adobe_vec):  Add.
514660484Sobrien	* Makefile.in:  add aout-adobe.c.
514760484Sobrien
514860484Sobrien	* configure.in:  Put two dashes in all entries to be matched.
514960484Sobrien	Add comments to remind people to do this.
515060484Sobrien	Reorder all entries that match manufacturer names, to occur
515160484Sobrien	last, so they will only be matched if no more specific match
515260484Sobrien	occurs.  Remove manufacturers `aout', `bout', `coff', and `elf'.
515360484Sobrien
515460484SobrienFri Sep 25 15:03:22 1992  Brendan Kehoe  (brendan@rtl.cygnus.com)
515560484Sobrien
515660484Sobrien	* elf.c (section_from_elf_index): Return bfd_abs_section, not 0,
515760484Sobrien	since we should never have a NULL section.
515860484Sobrien	(elf_slurp_symbol_table): If st_shndx doesn't match any of our
515960484Sobrien	tests, set the section to bfd_abs_section.
516060484Sobrien
516160484SobrienFri Sep 25 11:11:57 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
516260484Sobrien
516360484Sobrien	* coff-z8k.c: getting closer
516460484Sobrien	* coffcode.h (coff_get_relocated_section_contents): allow
516560484Sobrien	EXTRA_CASES hooks for different arches to provide different reloc
516660484Sobrien	types.
516760484Sobrien	* seclet.h: #ifndef around it to allow multiple inclusion
516860484Sobrien	* srec.c: minor doc fix
516960484Sobrien
517060484SobrienMon Sep 21 14:33:58 1992  Ian Lance Taylor  (ian@cygnus.com)
517160484Sobrien
517260484Sobrien	* hosts/hp9000.h, hosts/irix3.h: changes from WRS.
517360484Sobrien
517460484SobrienSun Sep 20 08:48:25 1992  Fred Fish  (fnf@cygnus.com)
517560484Sobrien
517660484Sobrien	* configure.in:  Use i386-elf for all i386/i486 sysv4 hosts, not
517760484Sobrien	just ncr.
517860484Sobrien
517960484SobrienThu Sep 17 06:40:46 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
518060484Sobrien
518160484Sobrien	* bout.c (b_out_slurp_reloc_table): Clear howto field before
518260484Sobrien	filling in reloc, in case immediately following code doesn't set
518360484Sobrien	it.
518460484Sobrien
518560484SobrienFri Sep 11 15:37:06 1992  Ian Lance Taylor  (ian@cygnus.com)
518660484Sobrien
518760484Sobrien	* coffcode.h (coff_renumber_symbols): set the last renumbered
518860484Sobrien	symbol pointer to NULL, as expected by coff_write_linenumbers.
518960484Sobrien	(coff_write_relocs): apparently a non-zero addend is OK for reloc
519060484Sobrien	type R_IHCONST used on the 29k.
519160484Sobrien
519260484SobrienThu Sep 10 13:28:24 1992  John Gilmore  (gnu@cygnus.com)
519360484Sobrien
519460484Sobrien	* opncls.c (bfd_fdopenr):  Determine whether to fdopen for
519560484Sobrien	update, based on how the underlying file was opened.  Obsoletes
519660484Sobrien	FASCIST_FDOPEN.
519760484Sobrien	* hosts/rs6000.h, hosts/tahoe.h, hosts/vaxbsd.h:  Remove
519860484Sobrien	all FASCIST_FDOPEN config defines.
519960484Sobrien
520060484SobrienTue Sep  8 21:37:58 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
520160484Sobrien
520260484Sobrien	* sparc-opc.c: Moved to opcodes library, now that we have one.
520360484Sobrien	* Makefile: Don't compile it.
520460484Sobrien
520560484SobrienTue Sep  8 10:10:34 1992  Ian Lance Taylor  (ian@cygnus.com)
520660484Sobrien
520760484Sobrien	* aoutx.h: adjust_sizes_and_vmas did not return anything.
520860484Sobrien
520960484SobrienThu Sep  3 19:29:04 1992  Per Bothner  (bothner@rtl.cygnus.com)
521060484Sobrien
521160484Sobrien	* section.c (bfd_set_section_flags):  Remove a sanity check.
521260484Sobrien	It is unfortunately broken, and prevents strip from working.
521360484Sobrien
521460484SobrienThu Sep  3 16:14:40 1992  Jim Wilson  (wilson@sphagnum.cygnus.com)
521560484Sobrien
521660484Sobrien	* sparc-opc.c (condr): Remove extraneous, but harmless, backlash
521760484Sobrien	created by last change.
521860484Sobrien
521960484SobrienThu Sep  3 13:52:38 1992  Per Bothner  (bothner@rtl.cygnus.com)
522060484Sobrien
522160484Sobrien	* reloc.c (reloc_howto_struct):  Make size field be unsigned.
522260484Sobrien	* bfd-in.h:  Bump to version 2.0.
522360484Sobrien
522460484SobrienThu Sep  3 09:05:37 1992  Stu Grossman  (grossman at cygnus.com)
522560484Sobrien
522660484Sobrien	* bout.c, cpu-z8k.c:  Use enums when initializing structs to keep
522760484Sobrien	braindamaged HP/Apollo compiler happy.
522860484Sobrien
522960484SobrienWed Sep  2 02:53:29 1992  John Gilmore  (gnu@cygnus.com)
523060484Sobrien
523160484Sobrien	* format.c:  Fix description of search for matching target.
523260484Sobrien	* aoutx.h (some_aout_object_p):  Set SEC_CODE and SEC_DATA.
523360484Sobrien	* targets.c:  Update description of search for matching target.
523460484Sobrien	* Makefile.in (do_clean, clean):  Fix infant mortality typo.
523560484Sobrien	(docdir):  Set to ./doc, not ${srcdir}/doc, which has no makefile.
523660484Sobrien	(z8k and we32k files):  `*.o: *.c': avoid Sun Make bug.
523760484Sobrien
523860484SobrienWed Sep  2 00:26:32 1992  Per Bothner  (bothner@rtl.cygnus.com)
523960484Sobrien
524060484Sobrien	* Makefile.in:  Added mostlyclean/clean/distclean rules.
524160484Sobrien
524260484SobrienTue Sep  1 13:38:40 1992  Per Bothner  (bothner@cygnus.com)
524360484Sobrien
524460484Sobrien	* targets.c (target_vector):  Take out oasys (unless that is
524560484Sobrien	the default):  Because there is no magic number in archives,
524660484Sobrien	there can be annoying target mis-matches.
524760484Sobrien
524860484SobrienMon Aug 31 10:11:37 1992  Jim Wilson  (wilson@sphagnum.cygnus.com)
524960484Sobrien
525060484Sobrien	* sparc-opc.c: Rigorously updated to match architecture manual.
525160484Sobrien
525260484SobrienMon Aug 31 08:07:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
525360484Sobrien
525460484Sobrien	* aoutx.h (aout<n>swap_ext_reloc_out), bout.c
525560484Sobrien	(b_out_squirt_out_relocs): fix bug 1506 where abs symbols attached
525660484Sobrien	to the built-in abs_section were not written out correctly.
525760484Sobrien
525860484SobrienFri Aug 28 16:29:15 1992  Ian Lance Taylor  (ian@cygnus.com)
525960484Sobrien
526060484Sobrien	* archive.c (bfd_slurp_bsd_armap): if the symdef_count is too
526160484Sobrien	large, assume we're using a swapped byte order and fail with
526260484Sobrien	wrong_format rather than dumping core.
526360484Sobrien
526460484SobrienFri Aug 28 15:38:03 1992  Ken Raeburn  (raeburn@cygnus.com)
526560484Sobrien
526660484Sobrien	* Renamed opc-sparc.c to sparc-opc.c for systems with short
526760484Sobrien	filename constraints.
526860484Sobrien	* Makefile.in: Updated to reflect change.
526960484Sobrien
527060484SobrienThu Aug 27 13:05:28 1992  Brendan Kehoe  (brendan@cygnus.com)
527160484Sobrien
527260484Sobrien	Add preliminary support for the we32k:
527360484Sobrien
527460484Sobrien	* Makefile.in, archures.c, coffocode.h, configure.in, targets.c:
527560484Sobrien	Minor edits.
527660484Sobrien	* coff-we32k.c, cpu-we32k.c, config/we32k.mt, hosts/we32k.h: New files.
527760484Sobrien
527860484SobrienWed Aug 26 14:20:16 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
527960484Sobrien
528060484Sobrien	* bout.c: added support for relaxable alignment relocs.
528160484Sobrien
528260484Sobrien	* seclet.c (rel, seclet_dump_seclet, seclet_dump): get the app to
528360484Sobrien	pass down pointer to play area rather than use alloca
528460484Sobrien
528560484Sobrien	* cpu-z8k.c (compatible): made static to reduce name space
528660484Sobrien	polution.
528760484Sobrien
528860484SobrienTue Aug 25 08:39:10 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
528960484Sobrien
529060484Sobrien        Add basic support for the z8k:
529160484Sobrien
529260484Sobrien	* Makefile.in, archures.c, coffcode.h, configure.in, reloc.c,
529360484Sobrien	section.c, targets.c,
529460484Sobrien
529560484Sobrien	* syms.c: move mis-inserted patch.
529660484Sobrien
529760484SobrienFri Aug 14 15:39:29 PDT 1992  Howard Chu  (hyc@hanauma.jpl.nasa.gov)
529860484Sobrien
529960484Sobrien	Documentation fixes:
530060484Sobrien	* ctors.c, format.c, section.c, reloc.c: append " -" to item tags.
530160484Sobrien	* reloc.c, section.c, syms.c, targets.c: add DOCDD before @node
530260484Sobrien		comments.
530360484Sobrien	* reloc.c: break out addend item from surrounding text.
530460484Sobrien
530560484Sobrien	* doc.str (DOCDD): Defined. Adds text to output.
530660484Sobrien	(bodytext): Put bulletize before kill_bogus_lines.
530760484Sobrien	* chew.c (bulletize): End itemization after a blank line, to
530860484Sobrien	prevent following text from being swallowed up in an item.
530960484Sobrien
531060484SobrienMon Aug 24 20:50:22 1992  Stu Grossman  (grossman at cygnus.com)
531160484Sobrien
531260484Sobrien	* configure.in:  Add sparclite as a target.
531360484Sobrien
531460484SobrienMon Aug 24 12:06:31 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
531560484Sobrien
531660484Sobrien	* ieee.c (ieee_get_symtab): always null terminate the symbol list,
531760484Sobrien	lint.
531860484Sobrien
531960484Sobrien	* coffcode.h (coff_add_missing_symbols): if symbols don't come
532060484Sobrien	from a coff file (csym is null), dont deref them
532160484Sobrien
532260484Sobrien	* ieee.c (parse_expression): get the answer right when adding an
532360484Sobrien	abs+(sec+off), (ieee_generic_stat_arch_elt): call ieee_object_p
532460484Sobrien	on elts so that filename is filled in.
532560484Sobrien
532660484SobrienThu Aug 20 19:05:48 1992  Ken Raeburn  (raeburn@cygnus.com)
532760484Sobrien
532860484Sobrien	* bout.c (howto_align_table): New set of relocs, with enough
532960484Sobrien	data for "objdump -r" to work.
533060484Sobrien	(b_out_reloc_type_lookup): Recognize alignment relocs.
533160484Sobrien
533260484SobrienTue Aug 18 12:57:45 1992  Ian Lance Taylor  (ian@cygnus.com)
533360484Sobrien
533460484Sobrien 	* Makefile.in: added FLAGS_TO_PASS, and used it for all recursive
533560484Sobrien	invocations of make.  Also, always create installation
533660484Sobrien	directories.
533760484Sobrien
533860484Sobrien	* config/apollov68.mh: removed -g from CC definition.
533960484Sobrien
534060484SobrienMon Aug 17 13:40:08 1992  Ken Raeburn  (raeburn@cygnus.com)
534160484Sobrien
534260484Sobrien	* config/decstation.mh (HDEFINES): Specify "-G 4" to avoid
534360484Sobrien	overflowing gp-offset range.
534460484Sobrien
534560484SobrienMon Aug 17 11:44:28 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
534660484Sobrien
534760484Sobrien	* srec.c (srec_set_section_contents): don't write out sections
534860484Sobrien	without the LOAD and ALLOC attributes
534960484Sobrien
535060484SobrienMon Aug 17 11:55:07 1992  Ken Raeburn  (raeburn@cambridge.cygnus.com)
535160484Sobrien
535260484Sobrien	* archures.c, cpu-m68k.c, cpu-sparc.c: Undo 16 June changes.
535360484Sobrien	* libaout.h (struct aout_backend_data): New callback "set_sizes".
535460484Sobrien	* aout-target.h (callback): Don't set page/seg sizes.
535560484Sobrien	(mkobject): Ditto.
535660484Sobrien	(set_sizes): New routine.
535760484Sobrien	(backend_data): Point to it.
535860484Sobrien	* aoutf1.h (sunos4_set_sizes): Heed architecture when setting sizes.
535960484Sobrien	(sunos4_aout_backend): Point to it.
536060484Sobrien	* aoutx.h (set_arch_mach): Call set_sizes callback.
536160484Sobrien
536260484SobrienFri Aug 14 19:22:18 1992  Per Bothner  (bothner@cygnus.com)
536360484Sobrien
536460484Sobrien	* aout-target.h:  Make _bfd_slurp_extended_name_table be
536560484Sobrien	the default.  Given that we *write* the suckers (for long
536660484Sobrien	archive member names), we really ought to be able to read them!
536760484Sobrien	* trad-core.c:  Don't include <machine/reg.h>.  It doesn't
536860484Sobrien	seem to be needed, and many machines don't have it.
536960484Sobrien
537060484SobrienThu Aug 13 09:53:39 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
537160484Sobrien
537260484Sobrien	* coff-m68k.c (vector): read and write archives in coff format.
537360484Sobrien
537460484SobrienTue Aug 11 12:19:42 1992  Ken Raeburn  (raeburn@cygnus.com)
537560484Sobrien
537660484Sobrien	* opc-sparc.c: New file.
537760484Sobrien
537860484SobrienSat Aug  8 23:15:35 1992  Fred Fish  (fnf@cygnus.com)
537960484Sobrien
538060484Sobrien	* bout.c (bfd_reloc_status_type, callj_callback):  Cast void*
538160484Sobrien	pointers to bfd_byte* before performing arithmetic on them.  Such
538260484Sobrien	use with bare void* pointers is a gcc extension.
538360484Sobrien	* cache.c (bfd_cache_delete):  Forward decl with prototype form.
538460484Sobrien	* archive (normalize):  Add to CONST to match actual usages with
538560484Sobrien	CONST.
538660484Sobrien
538760484SobrienMon Aug  3 00:35:29 1992  Fred Fish  (fnf@cygnus.com)
538860484Sobrien
538960484Sobrien	* configure.in:  Recognize i486 host cpu, and use i386-elf
539060484Sobrien	for i486-ncr-sysv4.
539160484Sobrien
539260484SobrienSat Aug  1 13:49:59 1992  Fred Fish  (fnf@cygnus.com)
539360484Sobrien
539460484Sobrien	* config/stratus.mt (CC):  Remove definition.
539560484Sobrien	* elf.c (bfd_section_from_shdr):  Test for the possibility that
539660484Sobrien	section_from_elf_index returns NULL and don't dereference it.
539760484Sobrien
539860484SobrienMon Jul 20 02:46:09 1992  D. V. Henkel-Wallace  (gumby@cygnus.com)
539960484Sobrien
540060484Sobrien	* add hppa_data to bfd tdata (indirectly via sef).
540160484Sobrien
540260484Sobrien	* config/hppahpux.mh: hpux is -DUSG (patch by sef)
540360484Sobrien
540460484SobrienSat Jul 18 15:50:11 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
540560484Sobrien
540660484Sobrien	* configure.in: error messages to stderr, not stdout
540760484Sobrien
540860484SobrienFri Jul 17 18:32:46 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
540960484Sobrien
541060484Sobrien	* bfd.c, cache.c, coff-a29k.c, coff-i386.c, coff-i960.c,
541160484Sobrien	  coff-m68k.c, coff-m88k.c, demo64.c, libaout.h, libbfd.c,
541260484Sobrien	  oasys.c, opncls.c, sunos.c, targets.c: removed rcsid's.
541360484Sobrien
541460484SobrienFri Jul 17 17:06:56 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
541560484Sobrien
541660484Sobrien	* configure.in: recognize hppa* instead of hppa
541760484Sobrien
541860484SobrienThu Jul 16 16:39:25 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
541960484Sobrien
542060484Sobrien	* coff-m68k.c: added R_RELLONG_NEG reloc type, and changed
542160484Sobrien	RTYPE2HOWTO to cope with same.
542260484Sobrien	* reloc.c (bfd_perform_relocation): added support for size of -2
542360484Sobrien	(subtract a word reloc type). Updated doc.
542460484Sobrien
542560484SobrienThu Jul 16 16:28:09 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
542660484Sobrien
542760484Sobrien	* Makefile.in: merged changes from progressive, removed rcsid.
542860484Sobrien
542960484Sobrien	* archures.c, archive.c, Makefile.dos: removed rcsid.
543060484Sobrien
543160484SobrienThu Jul 16 08:08:25 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
543260484Sobrien
543360484Sobrien	* bfd-in.h : add BFD_IS_RELAXABLE flag
543460484Sobrien	* bout.c (bout_swap_exec_header_[in_out]): new field in exec
543560484Sobrien	header e_relaxable, major hackery in callbacks
543660484Sobrien	* libaout.h : add space for a_relaxable.
543760484Sobrien	* seclet.c (rel): don't relax empty sections
543860484Sobrien
543960484Sobrien
544060484SobrienWed Jul 15 07:57:46 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
544160484Sobrien
544260484Sobrien	* section.c (STD_SECTION): add some casts to the initializers for
544360484Sobrien	dumb compilers
544460484Sobrien
544560484SobrienTue Jul 14 14:06:28 1992  Stu Grossman  (grossman at cygnus.com)
544660484Sobrien
544760484Sobrien	* rs6000-core.c (rs6000coff_core_p):  Greatly simplify expression,
544860484Sobrien	and add appropriate casts to keep (picayune) aix-cc happy.
544960484Sobrien
545060484SobrienMon Jul 13 05:06:51 1992  John Gilmore  (gnu at cygnus.com)
545160484Sobrien
545260484Sobrien	* elf.c (elf_slurp_symbol_table):  Now 2nd arg is where to write
545360484Sobrien	symbol pointers.  Punt expensive & useless bfd_realloc.  Use
545460484Sobrien	malloc for raw symbols, and free it before returning.
545560484Sobrien	(bfd_section_from_shdr):  Do not slurp symbol table until politely
545660484Sobrien	asked. 	Do not even slurp string tables.
545760484Sobrien	(elf_get_symtab_upper_bound):  Count 'em without reading them.
545860484Sobrien	(elf_get_symtab):  This is how to politely ask.  Schlurp!
545960484Sobrien	This should probably just *become* elf_slurp_symbol_table, FIXME.
546060484Sobrien
546160484SobrienWed Jul  8 16:24:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
546260484Sobrien
546360484Sobrien	* archive.c (bsd_write_armap): write the timestamp of the
546460484Sobrien	archive header to be just a little bit later than the timestamp of
546560484Sobrien	the file, otherwise the linker will complain that the index is
546660484Sobrien	out of date.
546760484Sobrien
546860484SobrienTue Jul  7 00:23:23 1992  Fred Fish  (fnf@cygnus.com)
546960484Sobrien
547060484Sobrien	* configure.in: Add m68k-ericsson-*.
547160484Sobrien
547260484SobrienSat Jul  4 03:29:41 1992  John Gilmore  (gnu at cygnus.com)
547360484Sobrien
547460484Sobrien	* syms.h:  Define BSF_FILE, update BSF_SECTION_SYM desc.
547560484Sobrien	* elf.c:  Remove unconditional debug printf's.
547660484Sobrien	(elf_write_object_contents, elf_slurp_symbol_table):  Handle
547760484Sobrien	BSF_SECTION_SYM <=> STT_SECTION, BSF_FILE <=> STT_FILE.
547860484Sobrien	(elf_slurp_symbol_table):  Hand out symbols in forward, not
547960484Sobrien	reverse order.  Simplify duplicate code.
548060484Sobrien
548160484SobrienFri Jul  3 20:23:34 1992  Fred Fish  (fnf@cygnus.com)
548260484Sobrien
548360484Sobrien	* elf.c:  Remove "(void)" casts from function calls where the
548460484Sobrien	return value is ignored, in accordance with GNU coding standards.
548560484Sobrien
548660484SobrienTue Jun 30 16:49:12 1992  Fred Fish  (fnf@cygnus.com)
548760484Sobrien
548860484Sobrien	* hppa.c:  Apply John's standard fix to avoid "empty translation
548960484Sobrien	unit" warnings from some ANSI-C compilers.
549060484Sobrien
549160484SobrienThu Jun 25 04:39:25 1992  John Gilmore  (gnu at cygnus.com)
549260484Sobrien
549360484Sobrien	* hosts/solaris2.h:  Configure same as sysv4.
549460484Sobrien
549560484SobrienTue Jun 23 21:54:44 1992  Fred Fish  (fnf@cygnus.com)
549660484Sobrien
549760484Sobrien	* libbfd.h, libbfd-in.h (bfd_seek):  Make prototype match definition.
549860484Sobrien	* reloc.c (bfd_default_reloc_type_lookup):  Make cast on return
549960484Sobrien	type match actual return type.
550060484Sobrien	* elf_print_symbol (section_name):  Make CONST.
550160484Sobrien
550260484SobrienMon Jun 22 17:35:24 1992  Per Bothner  (bothner@cygnus.com)
550360484Sobrien
550460484Sobrien	* i386linux.c, hosts/i386linux.h, config/i386-linux.mt:
550560484Sobrien	New files, for Linux (a free Unix clone for 386 machines).
550660484Sobrien	* Makefile.in, configure.in, targets.c:  Update accordingly.
550760484Sobrien
550860484SobrienFri Jun 19 20:23:21 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
550960484Sobrien	Lints for bfd_reloc_code_type->bfd_reloc_code_real_type, and
551060484Sobrien	correct calling of howto special functions and fixes from Raeburn
551160484Sobrien	for gas<>bfdness
551260484Sobrien	* archures.c: nuke bfd_reloc_code_type
551360484Sobrien	* bout.c, cpu-h8300.c, coff-i960.c, coff-m88k.c: special function lint
551460484Sobrien	* coffcode.h (styp_to_sec_flags): STYP_INFO is marked as
551560484Sobrien	SEC_NEVER_LOAD, various other bfdgas newness
551660484Sobrien	* reloc.c->libbfd.h: change protype of bfd_default_reloc_type_lookup
551760484Sobrien	* targets.c: change jump table vector to above
551860484Sobrien
551960484Sobrien
552060484SobrienFri Jun 19 19:00:45 1992  John Gilmore  (gnu at cygnus.com)
552160484Sobrien
552260484Sobrien	* elf.c (bfd_elf_find_section):  Mark as INTERNAL_FUNCTION so
552360484Sobrien	its prototype will be included in libbfd.h.  Change result type
552460484Sobrien	to struct * (rather than equivalent typedef) so it can be used in
552560484Sobrien	the prototype, where they typedef won't be known.
552660484Sobrien	* libbfd.h:  Updated version.
552760484Sobrien
552860484SobrienFri Jun 19 15:21:56 1992  Stu Grossman  (grossman at cygnus.com)
552960484Sobrien
553060484Sobrien	* Makefile.in, archures.c, configure.in, cpu-hppa.c, hppa.c, libhppa.h,
553160484Sobrien	targets.c:  HPPA merge.
553260484Sobrien
553360484SobrienFri Jun 19 12:21:38 1992  John Gilmore  (gnu at cygnus.com)
553460484Sobrien
553560484Sobrien	* configure.in:  Separate Solaris2 from SYSV4 on SPARC.
553660484Sobrien	* config/solaris2.mh:  Kludge around Sun compiler bug.
553760484Sobrien
553860484SobrienWed Jun 17 14:02:46 1992  Stu Grossman  (grossman at cygnus.com)
553960484Sobrien
554060484Sobrien	* libaout.h (aout_backend_data):  Change defs of two bitfields to
554160484Sobrien	be unsigned chars instead to get around rs6000 compiler problem.
554260484Sobrien
554360484SobrienWed Jun 17 13:55:31 1992  Fred Fish  (fnf@cygnus.com)
554460484Sobrien
554560484Sobrien	* elf.c (bfd_section_from_shdr, elf_slurp_symbol_table):
554660484Sobrien	Correct misconception that there can be only one symbol table.
554760484Sobrien	Only call elf_slurp_symbol_table on the full symbol table, not
554860484Sobrien	the dynamic one which is only a subset of the full one.
554960484Sobrien
555060484SobrienWed Jun 17 15:54:57 1992  Ken Raeburn  (Raeburn@Cygnus.COM)
555160484Sobrien
555260484Sobrien	* coffcode.h (coff_compute_section_file_positions): For I960,
555360484Sobrien	don't align sections in file.
555460484Sobrien
555560484SobrienTue Jun 16 06:28:21 1992  Ken Raeburn  (Raeburn@Cygnus.COM)
555660484Sobrien
555760484Sobrien	* targets.c (struct bfd_target): Added field for target-specific
555860484Sobrien	(but not file-specific) data, for distinguishing minor
555960484Sobrien	characteristics between (e.g.) a.out formats.
556060484Sobrien
556160484Sobrien	* section.c (struct sec): New field user_set_vma indicates vma
556260484Sobrien	field should be heeded, not assumed to be unset.
556360484Sobrien	(STD_SECTION): Initialize that field of standard sections to zero.
556460484Sobrien	* bfd-in.h (bfd_set_section_vma): Set user_set_vma to true.
556560484Sobrien
556660484Sobrien	* coffcode.h (coff_write_relocs): Write out swapped reloc, not
556760484Sobrien	pre-swapped version.
556860484Sobrien
556960484Sobrien	* archures.c (struct bfd_arch_info): Fixed order of comment and
557060484Sobrien	field decl.  New fields indicate size of page and segment for
557160484Sobrien	architecture.
557260484Sobrien	* cpu-m68k.c (N): Fill in values.
557360484Sobrien	* cpu-sparc.c (arch_info_struct): Ditto.
557460484Sobrien
557560484Sobrien	* libaout.h (struct aout_backend_data): Various bits of data (not
557660484Sobrien	all used currently) with characteristics of a.out implementation.
557760484Sobrien	Important field for now is text_includes_header, indicating that
557860484Sobrien	the text section starts immediately after the file header, which
557960484Sobrien	gets mapped in with it.
558060484Sobrien	(struct aout_data): New fields indicate whether vma has been
558160484Sobrien	adjusted yet (not yet used), and what magic number will be used in
558260484Sobrien	the output file (should go away in favor of vma_adjusted).
558360484Sobrien	(WRITE_HEADERS): Code for dealing with section sizes and related
558460484Sobrien	header fields replaced with call to adjust_sizes_and_vmas.
558560484Sobrien	* aoutx.h (some_aout_object_p): Fill in magic number field.
558660484Sobrien	Set WP_TEXT flag for ZMAGIC as well as NMAGIC files.
558760484Sobrien	(set_arch_mach): Set page size and segment size once CPU
558860484Sobrien	type is known.
558960484Sobrien	(adjust_sizes_and_vmas): New function; has much code moved
559060484Sobrien	from set_section_contents and WRITE_HEADERS.  Sets or adjusts vma
559160484Sobrien	and size parameters, as well as many header fields, after deciding
559260484Sobrien	on magic number for output file.  Checks to ensure that this
559360484Sobrien	adjustment has only been done once.
559460484Sobrien	(set_section_contents): Call adjust_sizes_and_vmas instead of
559560484Sobrien	doing much of the work here.
559660484Sobrien
559760484Sobrien	* aout-target.h (MY_make_debug_symbol, MY_backend_data): Provide
559860484Sobrien	default (null) values of these fields.
559960484Sobrien	* aoutf1.h (sunos4_write_object_contents): Don't override a_text
560060484Sobrien	value in exec header.
560160484Sobrien	(sunos4_aout_backend, MY_backend_data): Define backend data
560260484Sobrien	indicating file header is included in text section.
560360484Sobrien
560460484Sobrien	* aoutf1.h (MY_reloc_howto_type_lookup): Fix typo.
560560484Sobrien
560660484Sobrien	* hosts/sparc.h (abort, exit): Hide these names if compiling with
560760484Sobrien	gcc version 2, to avoid warnings.
560860484Sobrien
560960484SobrienMon Jun 15 12:26:56 1992  Fred Fish  (fnf@cygnus.com)
561060484Sobrien
561160484Sobrien	* config/ncr3000.mh (INSTALL, RANLIB):  Don't use /usr/ucb/install,
561260484Sobrien	it's broken on ncr 3000's.  Use simple "true" for RANLIB.
561360484Sobrien
561460484SobrienSat Jun 13 09:16:43 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
561560484Sobrien
561660484Sobrien	* configure.in (m680[01234]0-wrs-*): Fix typo in match pattern.
561760484Sobrien
561860484SobrienFri Jun 12 19:48:34 1992  John Gilmore  (gnu at cygnus.com)
561960484Sobrien
562060484Sobrien	* section.c (STD_SECTION):  Remove extra semicolon in declarations.
562160484Sobrien	* configure.in:  Rewrite target parsing to use simple format.
562260484Sobrien	Handle sparc-sun-solaris2 configuration.
562360484Sobrien	* aout64.h:  Avoid ANSI C brain death warning.
562460484Sobrien	* elf.c:  Avoid trigraph (???) or /* in comments.
562560484Sobrien
562660484SobrienFri Jun 12 14:51:14 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
562760484Sobrien
562860484Sobrien	* config/sysv4.mh: new file, RANLIB=echo
562960484Sobrien
563060484Sobrien	* configure.in: handle Solaris2 as -sysv4 or -solaris2
563160484Sobrien
563260484SobrienThu Jun 11 00:52:03 1992  John Gilmore  (gnu at cygnus.com)
563360484Sobrien
563460484Sobrien	* elf.c (elf_obj_tdata):  Merge elf_obj_tdata_struct and
563560484Sobrien	elf_core_tdata_struct into a single common struct.  Core files
563660484Sobrien	wouldn't have worked at all without this.
563760484Sobrien	(bfd_elf_find_section):  New function for GDB's undercover use
563860484Sobrien	to find string sections that BFD hides from it.
563960484Sobrien	(elf_get_str_section):  Avoid multiple alloc&reads for same data;
564060484Sobrien	lint.
564160484Sobrien	(elf_object_p, elf_core_file_p):  Allocate internal file header
564260484Sobrien	storage dynamically.
564360484Sobrien	* bfd.c (union {...} tdata):  Remove elf_core_tdata_struct.
564460484Sobrien	* demo64.c:  Prevent "empty translation unit" warnings from idiots.
564560484Sobrien
564660484SobrienTue Jun  9 17:15:26 1992  Fred Fish  (fnf at cygnus.com)
564760484Sobrien
564860484Sobrien	* config/{i386v4.mh, ncr3000.mh}:  Update RANLIB, add INSTALL.
564960484Sobrien
565060484SobrienSat Jun  6 17:02:51 1992  John Gilmore  (gnu at cygnus.com)
565160484Sobrien
565260484Sobrien	* configure.in:  Handle Solaris2 as *-sun-sysv4 or as *-sun-sunos5.
565360484Sobrien
565460484SobrienSun May 31 05:45:00 1992  david d `zoo' zuhn (zoo@cygnus.com)
565560484Sobrien
565660484Sobrien	* configure.in: handle m680[01234]0 as aliases for m68k
565760484Sobrien
565860484SobrienTue May 26 16:50:59 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
565960484Sobrien
566060484Sobrien	* coff-a29k.c: do byte relocs correctly
566160484Sobrien	* coffcode.h (styp_to_sec_flags): never load INFO sections
566260484Sobrien	* seclet.c (rel): don't relocate INFO sections
566360484Sobrien
566460484SobrienWed May 20 08:18:18 1992  Ken Raeburn  (Raeburn@Cygnus.COM)
566560484Sobrien
566660484Sobrien	* section.c (bfd_*_symbol, bfd_*_section): Initialize statically.
566760484Sobrien	Make the symbols unmodifiable.
566860484Sobrien	(bfd_section_init): Deleted.
566960484Sobrien	* init.c (bfd_init): Don't call bfd_section_init.
567060484Sobrien
567160484Sobrien	* section.c (bfd_set_section_contents): Ensure that range to be
567260484Sobrien	written is within section boundaries.
567360484Sobrien	(bfd_get_section_contents): Likewise.  Don't bother dispatching if
567460484Sobrien	size is zero.
567560484Sobrien
567660484Sobrien	* libbfd.c (bfd_xmalloc): Text of error message should be const.
567760484Sobrien
567860484Sobrien	* coff-i960.c (howto_table): Deleted.
567960484Sobrien	(howto_rellong, howto_iprmed, howto_optcall): New vars;
568060484Sobrien	interesting entries from old howto_table.
568160484Sobrien	(RTYPE2HOWTO): Adjusted to use switch.
568260484Sobrien	(coff_i960_reloc_type_lookup): New function.
568360484Sobrien
568460484Sobrien	* coffcode.h (coff_new_section_hook): Allocate storage for aux
568560484Sobrien	records for section symbol.
568660484Sobrien	(make_abs_section): Unused; deleted.
568760484Sobrien	(renumber_symbols): Re-order symbols so undefined symbols come
568860484Sobrien	last, as COFF format desires.
568960484Sobrien	(coff_write_symbol): Put C_FILE symbols in debug section always.
569060484Sobrien	(coff_section_symbol): New function; creates a symbol with the
569160484Sobrien	same name as a section, and sets up aux records for it.
569260484Sobrien	(coff_add_missing_symbols): New function; adds section symbols to
569360484Sobrien	symbol table if they aren't there already.  Should someday also
569460484Sobrien	add a dummy C_FILE symbol if none is present.
569560484Sobrien	(coff_write_object_contents): Add missing symbols before preparing
569660484Sobrien	symbol table to be written.
569760484Sobrien	(coff_slurp_reloc_table): Verify that symbol indices read in are
569860484Sobrien	in a reasonable range.
569960484Sobrien	* libcoff-in.h (struct coff_tdata): New field conv_table_size.
570060484Sobrien	(obj_conv_table_size): Accessor macro.
570160484Sobrien
570260484Sobrien	* bout.c (b_out_reloc_type_lookup): New function.  Handles three
570360484Sobrien	reloc types on i960.
570460484Sobrien
570560484Sobrien	* bfd-in.h (bfd_get_section_name): New macro.  Like
570660484Sobrien	bfd_section_name, but returns rvalue, not lvalue.
570760484Sobrien	(bfd_get_section_vma, bfd_get_section_alignment): Similar.
570860484Sobrien	(bfd_get_section_flags): Now returns rvalue.
570960484Sobrien
571060484Sobrien	* reloc.c (enum bfd_reloc_code_real): Add several new values, some
571160484Sobrien	general, some specific to sparc or i960.
571260484Sobrien
571360484Sobrien	* aoutx.h (set_section_contents): Set VMA for each section based
571460484Sobrien	on previous section.  If text section VMA doesn't appear to have
571560484Sobrien	been set, make a best guess from the type of file.
571660484Sobrien
571760484Sobrien	* aout-target.h (MY_reloc_howto_type_lookup): Define as zero if
571860484Sobrien	not defined.
571960484Sobrien	(MY(vec)): Initialize reloc_type_lookup field.
572060484Sobrien
572160484Sobrien	* aoutx.h (howto_table_*): Export as aout_#_*_howto_table.
572260484Sobrien	(bfd_error_trap, bfd_error_vector): Extern, not common.
572360484Sobrien
572460484Sobrien	* aoutf1.h (sunos4_reloc_type_lookup): New function.  Handles a
572560484Sobrien	few types of relocs for sparc; will need enhancement.
572660484Sobrien
572760484Sobrien	* bout.c (callj_callback): Use DEFUN macro in definition.
572860484Sobrien	* coff-i960.c (optcall_callback): Likewise.
572960484Sobrien
573060484Sobrien	* targets.c (bfd_target): Added fields reloc_type_lookup and
573160484Sobrien	_bfd_make_debug_symbol.  Also minor comment changes.
573260484Sobrien	* syms.c (bfd_make_debug_symbol): New dispatching macro.
573360484Sobrien	* reloc.c (bfd_reloc_type_lookup): Take a BFD ptr as arg rather
573460484Sobrien	than arch info, and dispatch with BFD_SEND.  Callers changed.
573560484Sobrien	* archures.c (struct bfd_arch_info): Deleted field
573660484Sobrien	reloc_type_lookup.
573760484Sobrien	* cpu-*.c: Don't initialize that field.
573860484Sobrien
573960484Sobrien	* bfd-in.h (enum bfd_error): Add new value "bad_value".
574060484Sobrien	* bfd.c (bfd_errmsgs): Now const; added entry for bad_value.
574160484Sobrien	(bfd_errmsg): Now returns ptr to const.
574260484Sobrien	* bfd-in.h (bfd_errmsg): Fix prototype.
574360484Sobrien
574460484Sobrien	* cache.c (BFD_CACHE_MAX_OPEN): Fix typo in doc.
574560484Sobrien	* reloc.c (bfd_generic_relax_section): Ditto.
574660484Sobrien
574760484Sobrien	* section.c (Section Output doc): Improve description of use of
574860484Sobrien	output_section and output_offset.
574960484Sobrien
575060484SobrienTue May 19 23:42:10 1992  D. V. Henkel-Wallace  (gumby@cygnus.com)
575160484Sobrien
575260484Sobrien	* sco-core.c: new file from net.
575360484Sobrien	* aoutx.h (translate_to_native_sym_flags): bugfix from net:
575460484Sobrien	  Now we have the hairy linker, it's possible to move symbols from
575560484Sobrien	  one section into another.  Actually make that work!
575660484Sobrien
575760484SobrienSat May 16 17:57:59 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
575860484Sobrien
575960484Sobrien	* hosts/sun3.h: fix declaration of free.
576060484Sobrien
576160484SobrienTue May 12 14:08:59 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
576260484Sobrien
576360484Sobrien	* coff-a29k.c (perform_reloc): fix bug in jmp/call evaluation
576460484Sobrien	* coff-h8300.c (reloc_processing): all relocs are relative to
576560484Sobrien	section start.
576660484Sobrien	* opncls.c: don't use fdopen on DOS systems
576760484Sobrien
576860484Sobrien	short patches from Glenn Kasten (glenn@ready.com)
576960484Sobrien	* target.c: enabled oasys support
577060484Sobrien	* oasys.c:  Insert . when UNDERSCORE_HACK is enabled,
577160484Sobrien	fix problem where a relocation which crossed a modification byte
577260484Sobrien	boundary did not work. Fix problem where a relocation near the end
577360484Sobrien	of a data record did not work.
577460484Sobrien
577560484Sobrien
577660484SobrienTue May  5 18:11:25 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
577760484Sobrien
577860484Sobrien	* archive.c (bfd_slurp_coff_armap): old versions of BFD wrote
577960484Sobrien	archvie header string counts the endian way, this heuristic sees
578060484Sobrien	how big an archive string to read by trying it one way and if the
578160484Sobrien	string table is unreasonably big, trying it the other. *FIXME*.
578260484Sobrien	* opncls.c (bfd_fdopenr): can't do fdopens on VMS
578360484Sobrien
578460484SobrienTue May  5 14:18:24 1992  Per Bothner  (bothner@rtl.cygnus.com)
578560484Sobrien
578660484Sobrien	* bfd-in.h:  Increase version number to 1.97, for consistency
578760484Sobrien	with ../binutils.
578860484Sobrien	* Makefile.in:  docdir is ./doc, not ${srcdir}/doc.
578960484Sobrien
579060484SobrienMon May  4 11:49:15 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
579160484Sobrien
579260484Sobrien        * bfd-in.h: bump version to 1.96
579360484Sobrien         Major change; changed calling convention for
579460484Sobrien	 bfd_get_relocated_section_contents so that caller allocates
579560484Sobrien	 memory for section data.
579660484Sobrien	* coffcode.h (bfd_coff_get_relocated_section_contents), reloc.c,
579760484Sobrien	seclet.c, targets.c, bfd.c: reflect new convention.
579860484Sobrien	* coffcode.h (styp_to_sec_flags): if styp_flags is not a special
579960484Sobrien	case, then use reasonable default values for SEC_* flags.
580060484Sobrien
580160484SobrienFri May  1 12:58:34 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
580260484Sobrien
580360484Sobrien	* coffcode.h (coff_write_object_contents): use RELSZ to work out
580460484Sobrien	size of output reloc struct.
580560484Sobrien	* targets.c, Makefile.in: comment out tekhex for the moment.
580660484Sobrien	* ieee.c: if some places where null pointers were used instead of &bfd_abs_section.
580760484Sobrien	* configure.in: tandem target is st2000
580860484Sobrien	* coff-m68k.c: rename static howto_table to global
580960484Sobrien	m68kcoff_howto_table.
581060484Sobrien	* bout.c: remove unnecessary abort
581160484Sobrien	* coff-a29k.c: various changes to the way relocations work to cope
581260484Sobrien	with the "new order" and latent bugs.
581360484Sobrien	* coffcode.h: lint
581460484Sobrien
581560484SobrienWed Apr 29 12:37:07 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
581660484Sobrien
581760484Sobrien	* aoutx.h (aout_swap_ext_reloc_out, aout_swap_std_reloc_out)
581860484Sobrien	bout.c (b_out_squirt_out_relocs): treat abs sumbols the right way.
581960484Sobrien	* reloc.c (bfd_perform-relocation): don't relocate refs to
582060484Sobrien	absolute symbols if doing a partial link.
582160484Sobrien
582260484SobrienFri Apr 24 07:35:26 1992  Stu Grossman  (grossman at cygnus.com)
582360484Sobrien
582460484Sobrien	* configure.in:  Add a29k-amd-udi.
582560484Sobrien
582660484SobrienThu Apr 23 18:37:55 1992  Fred Fish  (fnf@cygnus.com)
582760484Sobrien
582860484Sobrien	* aoutx.h (aout_<bits>_swap_exec_header_in):  Zero out the
582960484Sobrien	internal_exec structure before initializing the fields that
583060484Sobrien	are used, so that the unused fields are in a known state.
583160484Sobrien
583260484SobrienWed Apr 22 09:36:08 1992  Fred Fish  (fnf@cygnus.com)
583360484Sobrien
583460484Sobrien	* tekhex.c (struct data_struct):  Convert from typedef that
583560484Sobrien	typedefs nothing to a normal structure declaration.
583660484Sobrien	* tekhex.c (pass_over):  Prototype args for function that
583760484Sobrien	second arg points to.
583860484Sobrien
583960484SobrienMon Apr 20 22:22:51 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
584060484Sobrien
584160484Sobrien	* Makefile.in: remove old style staging.  Do not print recursion
584260484Sobrien	  lines.
584360484Sobrien
584460484Sobrien	* Makefile.in: rework CFLAGS so that CFLAGS can be passed from the
584560484Sobrien	  Makefile command line.  Remove MINUS_G.  Default CFLAGS to -g.
584660484Sobrien	  Pass CFLAGS.
584760484Sobrien
584860484SobrienFri Apr 17 09:15:31 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
584960484Sobrien
585060484Sobrien	* bfd.c, Makefile.in: added tekhex
585160484Sobrien	* aoutx.h (set_section_contents): pages should be padded to the
585260484Sobrien	size of a page, not the size of a segment.
585360484Sobrien	* configure.in: added go32 host and i386-aout target.
585460484Sobrien	* i386aout.c, libaout.h: now works for go32 target
585560484Sobrien	* ieee.c: fix bit rot.
585660484Sobrien	* seclet.c: support for padding seclet type.
585760484Sobrien
585860484SobrienWed Apr 15 18:11:58 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
585960484Sobrien
586060484Sobrien	* Makefile.in: added .NOEXPORT:
586160484Sobrien
586260484SobrienTue Apr 14 14:34:42 1992  Fred Fish  (fnf@cygnus.com)
586360484Sobrien
586460484Sobrien	* elf.c (bfd_add_strtab, bfd_add_2_to_strtab):  CONST spreads
586560484Sobrien	like ooze.
586660484Sobrien	* elf.c (elf_compute_section_file_positions,
586760484Sobrien	elf_write_object_contents):  Return boolean, not NULL (which
586860484Sobrien	can be void *).
586960484Sobrien	* elf.c (bfd_section_from_shdr):  Ifdef-out debugging code.
587060484Sobrien	Also ifdef-out code that aborts on unhandled section types.
587160484Sobrien
587260484SobrienFri Apr 10 22:29:18 1992  Fred Fish  (fnf@cygnus.com)
587360484Sobrien
587460484Sobrien	* configure.in:  Recognize ncr3000 config
587560484Sobrien	* Makefile.in (MINUS_G):  Pass on to recursive makes.
587660484Sobrien	* hosts/ncr3000.h, config/ncr3000.mh:  Add host config files.
587760484Sobrien
587860484SobrienThu Apr  2 17:42:45 1992  John Gilmore  (gnu at cygnus.com)
587960484Sobrien
588060484Sobrien	* Makefile.in:  Now that we have sym.h and symconst.h, compile
588160484Sobrien	coff-msym.c on all systems.
588260484Sobrien	* config/{decstation.mh, irix3.mh, irix4.mh}:  Remove coff-msym.o dep.
588360484Sobrien	* coff-msym.c:  Update include files and comments; add weakext bit.
588460484Sobrien
588560484SobrienWed Apr  1 23:16:38 1992  John Gilmore  (gnu at cygnus.com)
588660484Sobrien
588760484Sobrien	* archive.c, bfd.c, bout.c, coffcode.h, init.c, reloc.c,
588860484Sobrien	section.c, srec.c, syms.c, coff-h8300.c:  Lint.
588960484Sobrien
589060484SobrienSun Mar 29 09:37:59 1992  John Gilmore  (gnu at cygnus.com)
589160484Sobrien
589260484Sobrien	* bout.c, coff-a29k.c, coff-i960.c:  Lint.
589360484Sobrien	* configure.in:  Add new host and target configs.
589460484Sobrien	* elf.c (bfd_prstatus, bfd_fpregset):  Avoid typename of register
589560484Sobrien	structs, which vary; just use member name.
589660484Sobrien	(elf_object_p, elf_core_file_p):  Lint, fix comments.
589760484Sobrien	* config/sparc-elf.mt, hosts/sysv4.h:  New config files.
589860484Sobrien
589960484SobrienSat Mar 28 13:07:02 1992  Fred Fish  (fnf@cygnus.com)
590060484Sobrien
590160484Sobrien	* elf.c (elf_object_p, elf_core_file_p):  Fix to use only a single
590260484Sobrien	local, disposable, copy of the external form of section header
590360484Sobrien	table and program header table entries.
590460484Sobrien
590560484SobrienThu Mar 26 16:59:58 1992  John Gilmore  (gnu at cygnus.com)
590660484Sobrien
590760484Sobrien	* Makefile.in:  Set MINIMIZE back to 0 for a real release.
590860484Sobrien
590960484SobrienTue Mar 24 15:57:03 1992  K. Richard Pixley  (rich@cygnus.com)
591060484Sobrien
591160484Sobrien	* configure.in: config/irix4.m[ht], hosts/irix4.h: add support for
591260484Sobrien	  irix4.
591360484Sobrien
591460484SobrienMon Mar 23 22:37:34 1992  Stu Grossman  (grossman at cygnus.com)
591560484Sobrien
591660484Sobrien	* coff-msym.c (ecoff_swap_rfd_in):  remove & for array ref.
591760484Sobrien
591860484SobrienTue Mar 17 14:12:25 1992  Per Bothner  (bothner@rtl.cygnus.com)
591960484Sobrien
592060484Sobrien	* bout.c (b_out_slurp_reloc_table):  Use BFD_ASSERT macro,
592160484Sobrien	not internal bfd_assert function (twice).
592260484Sobrien
592360484SobrienTue Mar 17 10:45:12 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
592460484Sobrien
592560484Sobrien	* aout-target.h: change ar_max_namelen to 15 (the right value)
592660484Sobrien	* coff-a29k, coffcode.h: more hangovers from the bfd_abs_section
592760484Sobrien	change
592860484Sobrien
592960484SobrienMon Mar 16 14:57:22 1992  Steve Chamberlain  (sac@rtl.cygnus.com)
593060484Sobrien
593160484Sobrien	* archive.c (bfd_generic_archive_p): check for bout archives too.
593260484Sobrien	* bout.c: make it work again.
593360484Sobrien
593460484SobrienSat Mar 14 17:30:40 1992  Fred Fish  (fnf@cygnus.com)
593560484Sobrien
593660484Sobrien	* elf.c (elf_corefile_note):  Call bfd_xmalloc() instead of bare
593760484Sobrien	malloc().
593860484Sobrien	* reloc.c (bfd_generic_get_relocated_section_contents):  Call
593960484Sobrien	bfd_xmalloc() instead of bare malloc().
594060484Sobrien
594160484SobrienFri Mar 13 15:44:37 1992  K. Richard Pixley  (rich@cygnus.com)
594260484Sobrien
594360484Sobrien	* Makefile.in: pass down MAKEINFO on info.
594460484Sobrien
594560484SobrienFri Mar 13 07:41:13 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
594660484Sobrien
594760484Sobrien	* config/mt-<foo> now <foo>.mt, config/mh-<foo> now <foo>.mh.
594860484Sobrien	host/h-<foo> now just <foo>.
594960484Sobrien	* configure.in: reflect changes
595060484Sobrien
595160484SobrienThu Mar 12 11:15:02 1992  Per Bothner  (bothner@cygnus.com)
595260484Sobrien
595360484Sobrien	* libbfd-in.h (set_tdata):  Make change of Feb 27 in the
595460484Sobrien	actual source file, not just the generated libbfd.h.
595560484Sobrien
595660484SobrienSat Mar  7 10:33:41 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
595760484Sobrien
595860484Sobrien	* coff-i960.c (icoff_little_vec): add COFF_SWAP_TABLE so we can run
595960484Sobrien	gdb on little-endian 960 code.
596060484Sobrien	* archive.c (compute_and_write_armap): indirect symbols should go
596160484Sobrien	into the archive header too.
596260484Sobrien
596360484SobrienFri Mar  6 21:55:16 1992  K. Richard Pixley  (rich@cygnus.com)
596460484Sobrien
596560484Sobrien	* Makefile.in: added check target.
596660484Sobrien
596760484SobrienThu Mar  5 23:51:42 1992  John Gilmore  (gnu at cygnus.com)
596860484Sobrien
596960484Sobrien	* coff-msym.c:  Move this file from gdb/ecoff.c.  It
597060484Sobrien	handles byte-swapping for ECOFF (MIPS symbol) files.
597160484Sobrien	* config/mh-decstation, config/mh-irix3:  Add coff-msym.o
597260484Sobrien	to the files built on MIPS-based hosts.
597360484Sobrien	* Makefile.in:  Add rule for coff-msym.
597460484Sobrien
597560484SobrienThu Mar  5 21:36:05 1992  K. Richard Pixley  (rich@cygnus.com)
597660484Sobrien
597760484Sobrien	* Makefile.in: added clean-info target.  MINIMIZE=1.
597860484Sobrien
597960484SobrienSun Mar  1 22:32:58 1992  Per Bothner  (bothner@cygnus.com)
598060484Sobrien
598160484Sobrien	* coff-rs6000.c:  Move core file functions into separate
598260484Sobrien	new file rs6000-core.c.  This is needed because reading
598360484Sobrien	core files depends on native include files that conflict
598460484Sobrien	with ../include/coff/rs6000.h.
598560484Sobrien	* config/mh-rs6000:  Add rs6000-core.o to HDEPFILES.
598660484Sobrien
598760484SobrienThu Feb 27 22:19:55 1992  Per Bothner  (bothner@cygnus.com)
598860484Sobrien
598960484Sobrien	* aoutx.h (NAME(aout,print_symbol)): Don't print
599060484Sobrien	symbol addresss for undefined symbols.
599160484Sobrien	* coff-rs6000.c:  Various updates (due to target-
599260484Sobrien	independent changes).
599360484Sobrien	* libbfd.h:  Ditto (tdata field is now a union).
599460484Sobrien	* hosts/h-sparc.h:  Removed prototype for bogus function
599560484Sobrien	'emset' (presumably should have been 'memset' - which is there).
599660484Sobrien
599760484SobrienThu Feb 27 11:46:33 1992  John Gilmore  (gnu at cygnus.com)
599860484Sobrien
599960484Sobrien	* configure.in (mips-big-* target):  Same is Iris.
600060484Sobrien
600160484SobrienThu Feb 27 09:24:56 1992  Steve Chamberlain  (sac at thepub.cygnus.com)
600260484Sobrien
600360484Sobrien	* aoutx.h (translate_from_native_sym_flags): when creating an
600460484Sobrien	alias symbol, fill in the section as undefined, rather than
600560484Sobrien	leaving it blank. If an output section can't be found for a
600660484Sobrien	symbol, then don't core dump.
600760484Sobrien
600860484SobrienWed Feb 26 18:04:40 1992  K. Richard Pixley  (rich@cygnus.com)
600960484Sobrien
601060484Sobrien	* Makefile.in, configure.in: removed traces of namesubdir,
601160484Sobrien	  -subdirs, $(subdir), $(unsubdir), some rcs triggers.  Forced
601260484Sobrien	  copyrights to '92, changed some from Cygnus to FSF.
601360484Sobrien
601460484SobrienWed Feb 26 19:40:59 1992  Steve Chamberlain  (sac at thepub.cygnus.com)
601560484Sobrien
601660484Sobrien	* bfd.c: lint
601760484Sobrien	* coff-h8300.c: fix stupid reloc subtraction bug
601860484Sobrien	* coffcode.h (coff_swap_aux_out): only swap a tvndx by 2 bytes,
601960484Sobrien	since that's how wide it is. (coff_slurp_symbol_table): always zero out
602060484Sobrien	the symbol.flags and done_lineno fields.
602160484Sobrien
602260484SobrienTue Feb 25 14:29:24 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
602360484Sobrien
602460484Sobrien	* coffcode.h (coff_write_symbol): write out the correct number of
602560484Sobrien	auxents.
602660484Sobrien	* cpu-h8300.c: fix disassembly bug
602760484Sobrien
602860484SobrienFri Feb 21 21:39:56 1992  John Gilmore  (gnu at cygnus.com)
602960484Sobrien
603060484Sobrien	* bfd-in.h (bfd_errmsg), coffcode.h (coff_swap_aux_in,
603160484Sobrien	section_from_bfd_index), cpu-h8300.c (howto*_callback),
603260484Sobrien	reloc.c, section.c (bfd_map_over_sections), targets.c
603360484Sobrien	(bfd_target_list):  Protolint.
603460484Sobrien	* libbfd.h:  Update to match a libbfd-in.h from a month ago.
603560484Sobrien
603660484SobrienFri Feb 21 10:57:54 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
603760484Sobrien
603860484Sobrien	* coffcode.h (coff_swap_aux_in): lint, (coff_print_symbol): prints
603960484Sobrien	out tagndx too.
604060484Sobrien	* aoutx.h (swap_std_reloc_out, swap_ext_reloc_out): use the output
604160484Sobrien	section of a symbol rather than the section of a reffed symbol to
604260484Sobrien	determine the r_index of an emmitted reloc.
604360484Sobrien
604460484SobrienThu Feb 20 18:10:34 1992  Per Bothner  (bothner at cygnus.com)
604560484Sobrien
604660484Sobrien	* PORTING: New (preliminary) porting guide.
604760484Sobrien
604860484SobrienWed Feb 19 21:39:37 1992  John Gilmore  (gnu at cygnus.com)
604960484Sobrien
605060484Sobrien	* bout.c (callj_callback), coff-a29k.c (a29k_reloc), coff-m88k.c
605160484Sobrien	(howto_hvrt16):  lint.
605260484Sobrien
605360484SobrienMon Feb 17 12:02:17 1992  Per Bothner  (bothner at cygnus.com)
605460484Sobrien
605560484Sobrien	* hp300bsd.c (new), config/mt-hp300bsd:  Make hp300bsd
605660484Sobrien	a full configuration (with possible cross-development),
605760484Sobrien	instead of using host-aout.c.
605860484Sobrien
605960484SobrienSun Feb 16 13:01:49 1992  Per Bothner  (bothner at cygnus.com)
606060484Sobrien
606160484Sobrien	* aout-target.h (MY(write_object_contents):
606260484Sobrien	Set obj_reloc_entry_size (abfd).
606360484Sobrien	* gen-aout.c:  Change to emit a .c files, not a .h file.
606460484Sobrien
606560484SobrienThu Feb 13 20:11:47 1992  Fred Fish  (fnf at cygnus.com)
606660484Sobrien
606760484Sobrien	* elf.c (elf_slurp_symbol_table):  Remove obsolete use of
606860484Sobrien	BSF_ABSOLUTE and replace with bfd_abs_section reference.
606960484Sobrien
607060484SobrienThu Feb 13 17:22:44 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
607160484Sobrien
607260484Sobrien	* coffcode.h (get_normalized_symtab): fixed bug where symbols
607360484Sobrien	with more than one auxent can cause nasty core dumps.
607460484Sobrien
607560484Sobrien	* coffcode.h, libcoff.c: added new fielded to coff_symbol_struct
607660484Sobrien	"done_lineno" so that a symbol which appears twice in the symbol
607760484Sobrien	table only gets it's linenumbers relocated once. Modifed
607860484Sobrien	(coff_write_native_symbol) and (coff_make_empty_symbol) to make
607960484Sobrien	use of it.
608060484Sobrien
608160484SobrienTue Feb  4 15:39:55 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
608260484Sobrien
608360484Sobrien	* aoutx.h: (translate_from_native_sym_flags): fix constructor
608460484Sobrien	stuff to use the New Order.
608560484Sobrien
608660484SobrienFri Jan 31 01:34:45 1992  Stu Grossman  (grossman at cygnus.com)
608760484Sobrien
608860484Sobrien	* ieee.c:  Change type of envi[] to unsigned char.
608960484Sobrien
609060484Sobrien	* configure.in:  fix vax ultrix configuration.
609160484Sobrien
609260484Sobrien	* elf.c (bfd_section_from_shdr):  Deal with null return from
609360484Sobrien	bfd_make_section().  (elf_object_p):  Select endianess properly.
609460484Sobrien
609560484SobrienFri Jan 31 01:19:55 1992  John Gilmore  (gnu at cygnus.com)
609660484Sobrien
609760484Sobrien	* hosts/h-tahoe.h, h-vaxbsd.h:  Fix stack in core files.
609860484Sobrien
609960484SobrienThu Jan 30 23:51:07 1992  John Gilmore  (gnu at cygnus.com)
610060484Sobrien
610160484Sobrien	* Makefile.in:  host-aout.c doesn't depend on aout-params.h.
610260484Sobrien	* aout-target.h:  Use TARGET_BIG_ENDIAN_P to set up vector.
610360484Sobrien	* host-aout.c:  Don't use aout-params.h; configure these systems
610460484Sobrien	in their xm files, not in a randomly generated file.
610560484Sobrien	* hosts/h-hp300bsd.h, h-tahoe.h, h-vaxbsd.h, h-vaxult.h:
610660484Sobrien	Specify byte order.
610760484Sobrien	* hosts/h-vaxbsd.h:  Define the form of exec and core files.
610860484Sobrien
610960484SobrienThu Jan 30 13:02:41 1992  Per Bothner  (bothner at cygnus.com)
611060484Sobrien
611160484Sobrien	* config/mt-tahoe, config/mt-vax:  Change DEFAULT_VECTOR to
611260484Sobrien	host_aout_vec here as well.
611360484Sobrien
611460484SobrienThu Jan 30 11:41:45 1992  Stu Grossman  (grossman at cygnus.com)
611560484Sobrien
611660484Sobrien	* host-aout.c:  Change TARGETNAME to "a.out" to be compatible with
611760484Sobrien	gdb.  config/mt-hp300bsd:  Change DEFAULT_VECTOR to host_aout_vec
611860484Sobrien	to prevent undefined symbol.
611960484Sobrien
612060484SobrienThu Jan 30 07:26:53 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
612160484Sobrien
612260484Sobrien	Various lints found on PersSony
612360484Sobrien	* aoutx.h: cast an enum
612460484Sobrien	* coff-a29k.c: many ints in reloc structure turned to enum
612560484Sobrien	* coffcode.h: more enums
612660484Sobrien	* cpu-h8300.c: more enums
612760484Sobrien	* opncls.c: more enums
612860484Sobrien
612960484SobrienThu Jan 30 01:19:56 1992  John Gilmore  (gnu at cygnus.com)
613060484Sobrien
613160484Sobrien	* configure.in:  Make Tahoe configuration work again.
613260484Sobrien	* bfd-in.h:  Remove trailing comma from enum declaration.
613360484Sobrien	* ieee.c:  Can't put byte values >0x7F into a signed char.
613460484Sobrien
613560484SobrienTue Jan 28 21:10:51 1992  Fred Fish  (fnf at cygnus.com)
613660484Sobrien
613760484Sobrien	* Makefile.in:  Add dependencies for various coff-*.o files.
613860484Sobrien
613960484Sobrien	* elf.c:  Remove extraneous paren from core_prpsinfo and
614060484Sobrien	core_prpstatus macros, rename core_prpstatus to core_prstatus.
614160484Sobrien	Replace references to old section "size" member with new
614260484Sobrien	"_raw_size" member.  Implement elf_make_empty_symbol, which
614360484Sobrien	is now used.
614460484Sobrien
614560484SobrienTue Jan 28 14:51:40 1992  Stu Grossman  (grossman at cygnus.com)
614660484Sobrien
614760484Sobrien	* trad-core.c, bfd.c, ../include/bfd.h:  Various fixes for PMAX
614860484Sobrien	core reading.
614960484Sobrien
615060484SobrienTue Jan 28 10:46:32 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
615160484Sobrien
615260484Sobrien	* coffcode.h (bfd_coff_relax_section): now static.
615360484Sobrien	(bfd_coff_get_relocated_section_contents): various type lints.
615460484Sobrien
615560484SobrienMon Jan 27 19:44:08 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
615660484Sobrien
615760484Sobrien	New entry point in the transfer vector - bfd_relax_section.
615860484Sobrien
615960484Sobrien	* aout-target.h: add to vector, call generic_relax
616060484Sobrien	* bfd-in.h: add to vector
616160484Sobrien	* bfd.c: add #define for vector
616260484Sobrien	* bout.c: add to vector, call generic_relax
616360484Sobrien	* coffcode.h: add to vector, also now has coff specific relax code
616460484Sobrien	for the relaxable H8/300 relocs. Also clean up abs section cruft.
616560484Sobrien	* elf.c: call generic_relax
616660484Sobrien	* ieee.c: call new vector, clean up some bugs due to the creation
616760484Sobrien	of bfd_abs_section
616860484Sobrien	* libbfd.h: add bfd_generic_relax_section EXFUN
616960484Sobrien	* oasys.c: call generic_relax
617060484Sobrien	* reloc.c: implement generic_relax
617160484Sobrien	* seclet.c: moved much of this into coffcode.h
617260484Sobrien	* srec.c: call generic_relax
617360484Sobrien	* targets.c: define new transfer vector
617460484Sobrien
617560484SobrienFri Jan 24 14:40:17 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
617660484Sobrien
617760484Sobrien	* everything: now modified to use smaller reloc type. Self hosts
617860484Sobrien	on sun3 & sun4.
617960484Sobrien
618060484SobrienSat Jan 18 17:00:16 1992  Fred Fish  (fnf at cygnus.com)
618160484Sobrien
618260484Sobrien	* config/mh-stratus, config/mt-i860-elf, hosts/h-stratus:
618360484Sobrien	New files for stratus.
618460484Sobrien
618560484Sobrien	* configure.in:  Add configuration fragments for stratus.
618660484Sobrien
618760484SobrienWed Jan 15 10:02:43 1992  Fred Fish  (fnf at cygnus.com)
618860484Sobrien
618960484Sobrien	* aoutx.h (NAME(aout,find_nearest_line)): Declare various filename
619060484Sobrien	variables as CONST since they are set to point to a const char
619160484Sobrien	string.  Fixes compiler complaints.
619260484Sobrien
619360484SobrienFri Jan 10 17:44:53 1992  Fred Fish  (fnf at cygnus.com)
619460484Sobrien
619560484Sobrien	* hosts/h-amix.h hosts/h-i386v4.h:  Change abort() to a function
619660484Sobrien	returning void.
619760484Sobrien
619860484SobrienFri Jan 10 14:33:32 1992  Per Bothner  (bothner at cygnus.com)
619960484Sobrien
620060484Sobrien	* aoutx.h (NAME(aout,find_nearest_line)):  Recognize N_SOL
620160484Sobrien	symbols, so that we can emit the correct file name even
620260484Sobrien	if it's an include file.
620360484Sobrien
620460484SobrienThu Jan  2 16:43:34 1992  John Gilmore  (gnu at cygnus.com)
620560484Sobrien
620660484Sobrien	* coff-i960.c:  Add COFF_SWAP_TABLE to little_vec as well as big_vec.
620760484Sobrien	(Reported by john@labtam.labtam.oz.au (John Carey)).
620860484Sobrien
620960484SobrienWed Jan  1 04:23:06 1992  Fred Fish  (fnf at cygnus.com)
621060484Sobrien
621160484Sobrien	* elf.c:  Change all '#if HAVE_PROCFS' to '#ifdef HAVE_PROCFS'.
621260484Sobrien
621360484Sobrien	* config/mh-amix, config/mh-i386v4:  Remove HDEFINES that was
621460484Sobrien	being used to -DHAVE_PROCFS.
621560484Sobrien
621660484Sobrien	* hosts/h-amix, hosts/h-i386v4:  Add '#define HAVE_PROCFS'.  Move
621760484Sobrien	'#include "fopen-same.h"' to end of file to match other h-* files.
621860484Sobrien
621960484SobrienFri Dec 20 12:06:17 1991  Fred Fish  (fnf at cygnus.com)
622060484Sobrien
622160484Sobrien	* configure.in:  Change svr4 references to sysv4.  Add case
622260484Sobrien	"unknown" for target vendor and infer some targets based
622360484Sobrien	on the specified operating system.
622460484Sobrien
622560484SobrienWed Dec 18 17:17:59 1991  Stu Grossman  (grossman at cygnus.com)
622660484Sobrien
622760484Sobrien	* bfd-in.h, libaout.h:  ANSIfy enums.
622860484Sobrien
622960484SobrienWed Dec 18 16:12:25 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
623060484Sobrien
623160484Sobrien	* archive.c (normalize): created version for VMS which removes the
623260484Sobrien	VMS directory crap from the front and end of a filename, eg turn
623360484Sobrien	[-.foo]bar.obj;123 into bar.obj
623460484Sobrien	(bfd_construct_extended_name_table): now writes index into an
623560484Sobrien	extended name table in decimal - the same base used to read an
623660484Sobrien	extended name table.
623760484Sobrien
623860484SobrienWed Dec 18 14:40:39 1991  Per Bothner  (bothner at cygnus.com)
623960484Sobrien
624060484Sobrien	* aout-encap.c:  Fix to use aout-target.h.
624160484Sobrien	* aoutf1.h:  Use standard MY_object_p and MY_callback
624260484Sobrien	in aout-target.h.  Remove target-specific versions.
624360484Sobrien	* host-aout.c:  Re-write to use aout-target.h.
624460484Sobrien	* gen-aout.c:  New files use with host-aout.c to generate
624560484Sobrien	host-specific a.out-related parameters.
624660484Sobrien	* Makefile.in:  host-aout.o depends on aout-params.h, which is
624760484Sobrien	generated by gen-aout.
624860484Sobrien	* aout-target.h:  Make a little more flexible.
624960484Sobrien	* libaout.h, aout-target.h:  Removed WORK_OUT_FILE_POSTIONS
625060484Sobrien	macro.  Instead, inline it in aout-target.h.
625160484Sobrien	* newsos3.c:  Define N_SHARED_LIB(x) as 0 to avoid
625260484Sobrien	a gcc -Wall warning.
625360484Sobrien	* archive.c:  Add missing commas in DEFUN macro (2 places).
625460484Sobrien	* elf.c, coffcode.h, aoutf1.h:  Use ANSI functions instead of
625560484Sobrien	Berkeley ones, now that libiberty has them:
625660484Sobrien	bcopy->memcpy, bzero->memset, bcmp->memcmp.
625760484Sobrien	* aoutx.h:  Various touch-ups:  Re-formatting, fix a cast,
625860484Sobrien	remove unused variable.
625960484Sobrien
626060484SobrienTue Dec 17 19:48:59 1991  Fred Fish  (fnf at cygnus.com)
626160484Sobrien
626260484Sobrien	* elf.c (elf_core_file_matches_executable_p):  Enclose corename
626360484Sobrien	and execname inside HAVE_PROCFS ifdef since they are unused
626460484Sobrien	when it is not defined.
626560484Sobrien
626660484SobrienMon Dec 16 12:00:10 1991  Fred Fish  (fnf at cygnus.com)
626760484Sobrien
626860484Sobrien	* elf.c:  Flag all sections as either code or data.  We can't
626960484Sobrien	be sure what they are anyway, since ELF doesn't fit the
627060484Sobrien	traditional model of text+data+bss very well.  Add new local
627160484Sobrien	function elf_read() to simplify code.  Record entry point in
627260484Sobrien	the bfd structure.
627360484Sobrien
627460484SobrienThu Dec 12 21:01:22 1991  John Gilmore  (gnu at cygnus.com)
627560484Sobrien
627660484Sobrien	* hosts/h-*.h:  Configure fopen using ../include/fopen-*.h
627760484Sobrien	rather than N copies of the same lines.
627860484Sobrien
627960484SobrienWed Dec 11 16:39:45 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
628060484Sobrien
628160484Sobrien	* cpu-h8300.c: disassemble branch displacements correctly
628260484Sobrien	* coff-h8300.c: put reloc offsets out in 32bits
628360484Sobrien
628460484Sobrien	* makefile.dos, configdj.bat: New files from DJ
628560484Sobrien	* cache.c: fopen with new macros is needed for DOS.
628660484Sobrien	* ieee.c: environ renamed to envi to stop an include file
628760484Sobrien	conflict.
628860484Sobrien	* opncls.c, coff-rs6000.c: more fopens with macros.
628960484Sobrien
629060484SobrienTue Dec 10 04:07:24 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
629160484Sobrien
629260484Sobrien	* Makefile.in: infodir belongs in datadir.
629360484Sobrien
629460484SobrienSat Dec  7 16:39:23 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
629560484Sobrien
629660484Sobrien	 * Makefile.in: fix where docdir lives
629760484Sobrien
629860484Sobrien	 * aoutx.h, archive.c, archures.c, bfd.c, cache.c, coff-m88k.c,
629960484Sobrien	 coffcode.h, core.c, ctor.c, elf.c, format.c, ieee.c, init.c,
630060484Sobrien	 libbfd.c, libbfd.h, libcoff.h, opncls.c, reloc.c, section.c,
630160484Sobrien	 srec.c, syms.c, targets.c : all new documentation and lint
630260484Sobrien	 removal.
630360484Sobrien
630460484Sobrien
630560484SobrienSat Dec  7 07:22:09 1991  John Gilmore  (gnu at cygnus.com)
630660484Sobrien
630760484Sobrien	* coffcode.h, srec.c:  Lint.
630860484Sobrien
630960484SobrienFri Dec  6 22:58:48 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
631060484Sobrien
631160484Sobrien	* Makefile.in: install using INSTALL_DATA, added standards.text
631260484Sobrien	  support.
631360484Sobrien
631460484Sobrien	* configure.in: mark directory as target dependent.  configure
631560484Sobrien	  nows works in objdir always so make file existence checks
631660484Sobrien	  against ${srcdir}.
631760484Sobrien
631860484SobrienThu Dec  5 22:46:19 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
631960484Sobrien
632060484Sobrien	* Makefile.in: idestdir and ddestdir go away.  Added copyrights
632160484Sobrien	  and shift gpl to v2.  Added ChangeLog if it didn't exist. docdir
632260484Sobrien	  and mandir now keyed off datadir by default.
632360484Sobrien
632460484SobrienWed Dec  4 10:14:17 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
632560484Sobrien
632660484Sobrien	* aoutf1.h (sunos_<size>_object_p, sunos4_callback): moved the
632760484Sobrien	computation of arch and machine type so it's worked out before
632860484Sobrien	some_aout_object_p is called.
632960484Sobrien	* aoutx.h: (some_aout_object_p): don't set arch and mach to
633060484Sobrien	unknown.
633160484Sobrien	* archures.c: add extra field 'section_align_power' to hold
633260484Sobrien	default section alignment in object files.
633360484Sobrien	* cpu-a29k.c, cpu-h8300.c, cpu-i386.c, cpu-i960.c, cpu-m68k.c,
633460484Sobrien	cpu-m88k.c, cpu-mips.c, cpu-rs6000.c, cpu-sparc.c, cpu-vax.c:
633560484Sobrien	initialize the new field.
633660484Sobrien	* bout.c (b_out_callback): replace the text size, since aout
633760484Sobrien	fries them.
633860484Sobrien	* aoutx.h: Documentation in the new style
633960484Sobrien
634060484SobrienWed Dec  4 02:00:30 1991  John Gilmore  (gnu at cygnus.com)
634160484Sobrien
634260484Sobrien	* bfd.c (bfd_get_mtime):  Don't cache mtime any more; only
634360484Sobrien	use the saved value if mtime_set is already set (intended
634460484Sobrien	for archive files, though apparently not used yet).
634560484Sobrien
634660484SobrienTue Dec  3 22:54:50 1991  John Gilmore  (gnu at cygnus.com)
634760484Sobrien
634860484Sobrien	* targets.c:  Revise comments about how to configure the target
634960484Sobrien	vector, to match reality.  Remove mention of obsolete methods.
635060484Sobrien	Remove long lists of capitalized macros that turn into the same
635160484Sobrien	thing in lowercase.  Normal vector simply lists all known
635260484Sobrien	lowercase xvec names; all other cases are handled by SELECT_VECS.
635360484Sobrien
635460484Sobrien	* config/mt-i386-coff:  Set DEFAULT_VECTOR to real identifier,
635560484Sobrien	not macro name.
635660484Sobrien
635760484Sobrien	* config/mt-i960-{coff,bout}:  Use SELECT_VECS to make a short
635860484Sobrien	list of supported targets.
635960484Sobrien
636060484SobrienTue Dec  3 14:06:15 1991  Per Bothner  (bothner at cygnus.com)
636160484Sobrien
636260484Sobrien	* archive.c (bsd_write_armap):  The pad byte sometimes added to
636360484Sobrien	the string table in a __.SYMDEF member is now
636460484Sobrien	counted as part of the size of the string table.
636560484Sobrien	This is compatible with the old ranlib, as well as Sun's.
636660484Sobrien
636760484SobrienTue Dec  3 10:53:30 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
636860484Sobrien
636960484Sobrien	* srec.c: Rewrote to fix many bugs; now gets the record type
637060484Sobrien	right, doesn't choke on input, sets the start address in an S9 and
637160484Sobrien	fills in the filename on an S0.
637260484Sobrien
637360484SobrienSat Nov 30 21:19:15 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
637460484Sobrien
637560484Sobrien	* cpu-h8300.c: Add support for MEMIND addressing mode
637660484Sobrien
637760484Sobrien	* coff-a29k.c: defined RELOC_PROCESSING to take the #ifdef out of
637860484Sobrien	coffcode.h
637960484Sobrien	* coffcode.h: use the new macro if available
638060484Sobrien
638160484Sobrien	* elf.c (elf_corefile_note): cast malloc to avoid warning.
638260484Sobrien	* Makefile.in: Fixed dependencies due to file rename
638360484Sobrien
638460484Sobrien	* aout-encap.c, aoutf1.h, aoutx.h, archive.c, bout.c, coff-a29k.c,
638560484Sobrien	coff-h8300.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c,
638660484Sobrien	coff-mips.c, coff-rs6000.c, cpu-h300.c, elf.c, i386aout.c,
638760484Sobrien	newos3.c, stab-syms.c, syms.c: All these files have had their
638860484Sobrien	#includes altered to point to the new places.
638960484Sobrien
639060484SobrienFri Nov 29 20:04:49 1991  Fred Fish  (fnf at cygnus.com)
639160484Sobrien
639260484Sobrien	* config/mh-i386v4, config/mh-i386-elf, hosts/h-i386v4.h:  New files.
639360484Sobrien
639460484Sobrien	* configure.in:  Add vendor "ncr" as supported per-target vendor.
639560484Sobrien	Add svr4 case for i386 per-host case.
639660484Sobrien
639760484Sobrien	* elf.c (elf_object_p, elf_core_file_p):  Add missing "break" to
639860484Sobrien	ELFDATA2LSB cases.
639960484Sobrien
640060484SobrienFri Nov 29 12:16:51 1991  Per Bothner  (bothner at cygnus.com)
640160484Sobrien
640260484Sobrien	* syms.c (bfd_decode_symclass):  Return 'A'
640360484Sobrien	for symbols that are both absolute and global.
640460484Sobrien	* archive.c (bfd_special_undocumented_glue):  Return NULL
640560484Sobrien	if bfd_ar_hdr_from_filesystem returns NULL.
640660484Sobrien
640760484SobrienTue Nov 26 09:10:55 1991  Steve Chamberlain  (sac at cygnus.com)
640860484Sobrien
640960484Sobrien	* Makefile.in: added coff-h8300
641060484Sobrien	* configure.in: now h8 is a coff target
641160484Sobrien	* cpu-h8300.c: fix various disassembly problems
641260484Sobrien	* libcoff.h: took out some code which has been #0ed for a long
641360484Sobrien	time.
641460484Sobrien	* targets.c: added h8 coff
641560484Sobrien	* coff-a29k.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c
641660484Sobrien	added new macro RTYPE2HOWTO to take a load of #ifdefs out of
641760484Sobrien	coffcode.h
641860484Sobrien	* coffcode.h: Started to change the way machine dependencies are
641960484Sobrien	handled, from the nest of #ifdefs to macros defined in the
642060484Sobrien	including coff-<foo>.c
642160484Sobrien
642260484SobrienFri Nov 22 08:11:42 1991  John Gilmore  (gnu at cygnus.com)
642360484Sobrien
642460484Sobrien	* aoutx.h (some_aout_object_p):  Set the `executable' bit
642560484Sobrien	if the entry point is contained in the text segment, even if the
642660484Sobrien	text segment is at location 0.
642760484Sobrien
642860484Sobrien	* coff-mips.c, coffcode.h:  Peter Schauer's patch to kludge in
642960484Sobrien	nonstandard MIPS sections (.rdata, .sdata, etc).
643060484Sobrien
643160484Sobrien	* aoutx.h, bfd.c, coffcode.h, ieee.c, oasys.c, targets.c: CONST lint.
643260484Sobrien	* libbfd-in.h, libbfd.h, aoutx.h, coffcode.h, elf.c, libaout.h:
643360484Sobrien	Rename ALIGN to BFD_ALIGN to avoid conflict with BSD <sys/param.h>.
643460484Sobrien	* libbfd.c:  Lint.
643560484Sobrien	* host-aout.c, trad-core.c:  Fix write_armap prototypes.  Lint.
643660484Sobrien
643760484SobrienThu Nov 21 19:56:40 1991  Per Bothner  (bothner at cygnus.com)
643860484Sobrien
643960484Sobrien	* stab-syms.c, syms.c:  Moved bfd_stab_name() and bfd_stab_names[]
644060484Sobrien	from syms.c to new file stab-syms.c.  Also, since GNU extended
644160484Sobrien	type codes such as N_SETT are no longer in ../include/stab.def,
644260484Sobrien	include them manually.
644360484Sobrien	* stab-syms.c, aoutx.h: Renamed bfd_stab_name() and
644460484Sobrien	bfd_stab_names[] to aout_stab_name() and aout_stab_names[].
644560484Sobrien	* libaout.h: Added prototype for aout_stab_name().
644660484Sobrien	* Makefile.in:  Update Makefile for new stab-syms.[co].
644760484Sobrien
644860484SobrienThu Nov 21 11:50:49 1991  John Gilmore  (gnu at cygnus.com)
644960484Sobrien
645060484Sobrien	* libaout.h (WORK_OUT_FILE_POSITIONS):  One more try at this
645160484Sobrien	rather complicated seeming problem.  Eliminate LOGICAL_ versions,
645260484Sobrien	just make N_XXX work by excluding the header from the text segment.
645360484Sobrien	* aoutx.h:  Fix comments to match.
645460484Sobrien
645560484SobrienTue Nov 19 18:49:01 1991  Per Bothner  (bothner at cygnus.com)
645660484Sobrien
645760484Sobrien	* libaout.h (WORK_OUT_FILE_POSITIONS):  Use new LOGICAL_TXTADDR,
645860484Sobrien	LOGICAL_TXTOFF, LOGICAL_TXTSIZE macros to figure out numbers
645960484Sobrien	for the "logical" text segment (i.e. never consider the exec
646060484Sobrien	header to be part of the text segment).  This change is
646160484Sobrien	needed for consistency with various other parts of bfd and ld.
646260484Sobrien	* aoutx.h (NAME(aout,soe_aout_object_p)):  Fix comment,
646360484Sobrien	and move calculation of obj_textsec(abfd)->size to libaout.h.
646460484Sobrien	* bfd-in.h:  Removed bogus ';'.
646560484Sobrien
646660484Sobrien	* Makefile.in:  Add MINIMIZE flag to select lean
646760484Sobrien	or bloated target_vector.
646860484Sobrien	* targets.c:  Use new MINIMIZE macro, and add trad_core if needed.
646960484Sobrien	* newsos3.c:  Fixes to ../include/aout64.h remove need
647060484Sobrien	for special N_TXTOFF macro, but require N_HEADER_IN_TEXT.
647160484Sobrien
647260484SobrienMon Nov 18 12:00:59 1991  Per Bothner  (bothner at cygnus.com)
647360484Sobrien
647460484Sobrien	* aout-target.h, aoutf1.h, newsos3.c:  Make aout-target.h
647560484Sobrien	handle both little and big-endian targets, with little
647660484Sobrien	the default unless TARGET_IS_BIG_ENDIAN_P is defined.
647760484Sobrien	* host-aout.c:  Add FIXME note.
647860484Sobrien
647960484SobrienSun Nov 17 13:29:39 1991  Per Bothner  (bothner at cygnus.com)
648060484Sobrien
648160484Sobrien	* targets.c:  Make the default target_vector contain
648260484Sobrien	just &DEFAULT_VECTOR.  This makes executables a lot smaller.
648360484Sobrien	Old behavior can be gotten by defining ALL_TARGETS.
648460484Sobrien	* aoutf1.h, demo64.c, i386aout.c, newsos3.c, sunos.c:
648560484Sobrien	Factored out common code into new file aout-target.h.
648660484Sobrien	Saves a lot of duplicate code for a.out variants.
648760484Sobrien
648860484SobrienFri Nov 15 13:00:43 1991  Per Bothner  (bothner at cygnus.com)
648960484Sobrien
649060484Sobrien	Get 'make headers' to work when configured with +subdirs.
649160484Sobrien	* Makefile.in: Add $(subdir) to docdir path.
649260484Sobrien	* doc/Makefile.in (protos): Add $(srcdir) prefix
649360484Sobrien	to name of sed scripts.
649460484Sobrien
649560484SobrienThu Nov 14 19:49:10 1991  Per Bothner  (bothner at cygnus.com)
649660484Sobrien
649760484Sobrien	* aoutx.h (NAME(aout,print_symbol)):  Fix thinko.
649860484Sobrien	* syms.c (bfd_stab_names):  Turn on new GNU_EXTRA_STABS macro
649960484Sobrien	to include names of N_SETT etc.
650060484Sobrien
650160484SobrienThu Nov 14 19:11:13 1991  Fred Fish  (fnf at cygnus.com)
650260484Sobrien
650360484Sobrien    	* elf.c:  Add minimal support for ELF symbol tables.  Generates
650460484Sobrien	canonical bfd symbol tables from ELF symbol tables.  Change the
650560484Sobrien	name of some functions from bfd_<name> to elf_<name>.
650660484Sobrien
650760484Sobrien	* syms.c:  Trivial fix to comment to remove a redundant "to".
650860484Sobrien
650960484SobrienWed Nov 13 17:02:01 1991  John Gilmore  (gnu at cygnus.com)
651060484Sobrien
651160484Sobrien	* coff-{i386,m68k,m88k}.c:  Change name of file format to standard
651260484Sobrien	form that GDB recognizes as COFF.
651360484Sobrien
651460484SobrienWed Nov 13 09:09:41 1991  Steve Chamberlain  (sac at cygnus.com)
651560484Sobrien
651660484Sobrien	* ieee.c (ieee_object_p):  cast NULL correctly.
651760484Sobrien	* configure.in: added harris host
651860484Sobrien
651960484Sobrien	* coff-a29k.c: Lots of changes, most from David Wood.
652060484Sobrien
652160484SobrienTue Nov 12 07:21:41 1991  John Gilmore  (gnu at cygnus.com)
652260484Sobrien
652360484Sobrien	* coff-m88k.c (coff_write_armap):  Just #undef it.
652460484Sobrien
652560484SobrienMon Nov 11 20:30:18 1991  Steve Chamberlain  (sac at cygnus.com)
652660484Sobrien
652760484Sobrien	* Makefile.in: standardize on MINUS_G to disable debugging
652860484Sobrien	* coff-m88k.c: create coff armaps instead of bsd ones.
652960484Sobrien	* opncls.c (bfd_close_all_done), (bfd_close): Mask out random bits
653060484Sobrien	when calling chmod.
653160484Sobrien
653260484SobrienMon Nov 11 19:07:32 1991  Fred Fish  (fnf at cygnus.com)
653360484Sobrien
653460484Sobrien	* elf.c:  Additions to support ELF format core files.
653560484Sobrien	* config/mh-amix:  Add -DHAVE_PROCFS to HDEFINES, since host
653660484Sobrien	has support for /proc (all the include files in particular).
653760484Sobrien
653860484SobrienMon Nov 11 18:36:47 1991  Per Bothner  (bothner at cygnus.com)
653960484Sobrien
654060484Sobrien	* aoutx.h (NAME(aout,find_nearest_line)):  Handle the case
654160484Sobrien	of two N_SO stabs, one for directory, and one for filename.
654260484Sobrien
654360484Sobrien	* bfd-in.h (print_vma):  Factor out duplicate definition.
654460484Sobrien
654560484Sobrien	Exit a little more gracefully when malloc returns NULL.
654660484Sobrien	* libbfd.c: New function bfd_xmalloc (malloc wrapper).
654760484Sobrien	* opncls.c, syms.c, bout.c, aoutx.h:  Replace malloc by bfd_xmalloc.
654860484Sobrien	* libbfd.h: Rre-generated due to libbfd.c update.
654960484Sobrien
655060484SobrienSat Nov  9 13:45:01 1991  Fred Fish  (fnf at cygnus.com)
655160484Sobrien
655260484Sobrien	* config/mt-m68k-elf:  Define DEFAULT_VECTOR as elf_big_vec.
655360484Sobrien
655460484Sobrien	* elf.c (elf_object_p):  Don't try to create a bfd section for
655560484Sobrien	the first ELF section header.  It is just a placeholder.
655660484Sobrien
655760484SobrienSat Nov  9 03:04:26 1991  John Gilmore  (gnu at cygnus.com)
655860484Sobrien
655960484Sobrien	* coff-rs6000.c, config/mh-rs6000:  Make it work on archive and
656060484Sobrien	core files, when compiling native.
656160484Sobrien	* hosts/h-rs6000.h:  Define FASCIST_FDOPEN for bfd_fdopenr.
656260484Sobrien
656360484Sobrien	FIXME:  The aoutf1.h change below needs to be reversed back
656460484Sobrien	to the way it was.
656560484Sobrien
656660484SobrienThu Nov  7 11:03:55 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
656760484Sobrien
656860484Sobrien	* coffcode.h: Defined new macros [PUT|GET]LINENO_LNNO for
656960484Sobrien	manipulation of lnno fields in lineno structs in a coff-<f>.h
657060484Sobrien	independent way. Override it in coff-<f>.h to your favourite
657160484Sobrien	number if you don't have a 16bit lnno field. (coff_swap_lineno_in)
657260484Sobrien	(coff_swap_lineno_out): modified to use the new macros.
657360484Sobrien
657460484SobrienMon Nov  4 11:38:33 1991  Steve Chamberlain  (sac at cygnus.com)
657560484Sobrien
657660484Sobrien	* aoutf1.h (sunos4_callback): Now defaults to 68020 rather than
657760484Sobrien	unknown arch when the magic number doesn't specify the
657860484Sobrien	architecture, since some OSs (eg old sun3s) don't set the number, and
657960484Sobrien	020 is probably the right answer anyway.
658060484Sobrien
658160484SobrienSun Nov  3 12:07:08 1991  Per Bothner  (bothner at cygnus.com)
658260484Sobrien
658360484Sobrien	* hosts/h-news.h, hosts/h-rtbsd.h:
658460484Sobrien	Get rid of MISSING_VFPRINTF, since libiberty provides one.
658560484Sobrien	* bfd-in.h (bfd_print_symbol_type_hopw enum):   Add new option
658660484Sobrien	bfd_print_symbol_nm, for use by nm.
658760484Sobrien	* aoutx.h (NAME(aout,print_symbol)):  Add code for new
658860484Sobrien	bfd_print_symbol_nm option, to print in nm format.
658960484Sobrien	* coffcode.h (coff_print_symbol), ieee.c (ieee_print_symbol)
659060484Sobrien	oasys.c (oasys_print_symbol):  Provide stub implementations
659160484Sobrien	for bfd_print_symbol_nm.
659260484Sobrien	* syms.c:  New function bfd_decode_symclass, used by nm printer.
659360484Sobrien	New function bfd_stab_name to look up string name of stab code.
659460484Sobrien
659560484SobrienSat Nov  2 14:26:03 1991  Steve Chamberlain  (steve at cygnus.com)
659660484Sobrien
659760484Sobrien	* Makefile.in: Added ctor.c
659860484Sobrien	* archures.c (bfd_default_arch_struct) added
659960484Sobrien	bfd_default_reloc_type_lookup.
660060484Sobrien	* coffcode.h: removed a load of #if 0ed code.
660160484Sobrien	(coff_compute_file_section_positions): now works out the section
660260484Sobrien	alignment and size correctly in all cases.
660360484Sobrien	(coff_get_symtab): looks for constructor symbols and calls the
660460484Sobrien	right function when they're found. (coff_canonicalize_reloc):
660560484Sobrien	knows when a section is full of constructors and does the right
660660484Sobrien	thing.
660760484Sobrien	* cpu-m88k.c: Added default_reloc_type lookup to the architecture
660860484Sobrien	description.
660960484Sobrien	* libbfd-in.h: (bfd_default_reloc_type_lookup) defun  added.
661060484Sobrien	* libcoff.h: removed #if 0ed code
661160484Sobrien	* reloc.c: (bfd_reloc_code_real_type) added BFD_RELOC_CTOR for
661260484Sobrien	arch independent constructor relocation type.
661360484Sobrien	(bfd_reloc_type_lookup): removed the comment "this will go away"
661460484Sobrien	since it won't. (bfd_howto_32): stolen from 88k, this is a 32bit
661560484Sobrien	reloc which is used when BFD_RELOC_CTOR falls through to give a
661660484Sobrien	default 32bit reloc for constructors.
661760484Sobrien	(bfd_default_reloc_type_lookup): added.
661860484Sobrien	* aoutf1.h: fixed SEGMENT_SIZE typo.
661960484Sobrien
662060484SobrienThu Oct 31 18:23:06 1991  John Gilmore  (gnu at cygnus.com)
662160484Sobrien
662260484Sobrien	* coff-rs6000.c:  Change name to "aixcoff-rs6000", to avoid
662360484Sobrien	matching prefix "coff".
662460484Sobrien	* coffcode.h (coff_swap_aux_in, coff_swap_aux_out):  Handle
662560484Sobrien	rs/6000 csect records.
662660484Sobrien
662760484SobrienSun Oct 27 16:56:58 1991  Steve Chamberlain  (steve at cygnus.com)
662860484Sobrien
662960484Sobrien	* coff-m88k.c, targets.c: change name of m88k_bcs to m88kbcs
663060484Sobrien	* configure.in: add motorola delta88 cases
663160484Sobrien	* libbfd.h, libbfd-in.h, archive.c, ieee.c, elf.c, srec.c: fix
663260484Sobrien	write_armap prototype
663360484Sobrien	* libbfd.c: add doc on bfd_write_bigendian_4byte_int
663460484Sobrien
663560484SobrienFri Oct 25 02:48:19 1991  John Gilmore  (gnu at cygnus.com)
663660484Sobrien
663760484Sobrien	* Rename COFF-related files in `coff-ARCH.c' form.
663860484Sobrien	coff-a29k.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c,
663960484Sobrien	coff-mips.c, coff-rs6000.c to be exact.
664060484Sobrien
664160484Sobrien	* Makefile.in:  Only supply TARGET_DEFAULTS to targets.c, reducing
664260484Sobrien	make output clutter.
664360484Sobrien	* config/mt-*:  Ditto.
664460484Sobrien
664560484SobrienThu Oct 24 22:40:07 1991  John Gilmore  (gnu at cygnus.com)
664660484Sobrien
664760484Sobrien	RS/6000 support, by Metin G. Ozisik, Mimi Ph��ng-Th�o V�, and
664860484Sobrien	John Gilmore.  Archive support from Damon A. Permezel.
664960484Sobrien
665060484Sobrien	* Makefile.in:  Add cpu-rs6000.c and rs6000coff.c.
665160484Sobrien	* configure.in:  Add rs6000 case.
665260484Sobrien	* targets.c:  Add rs6000 vector.
665360484Sobrien	* archures.c:  Add rs6000, fix comment on romp.
665460484Sobrien	* bfd-in.h (enum bfd_error):  Add no_debug_section error.
665560484Sobrien	* libcoff-in.h (struct coff_tdata):  Remove unused string_table.
665660484Sobrien	* bfd.c (bfd_errmsgs):  Add no_debug_section error message.
665760484Sobrien	* section.c (bfd_make_section):  Return NULL on attempt to create
665860484Sobrien	a section twice.
665960484Sobrien	* coffcode.h (bfd_swap_reloc_in):  Handle r_type and r_size.
666060484Sobrien	(bfd_swap_aouthdr_in):  Handle lots more members.
666160484Sobrien	(make_a_section_from_file):  If section has already been seen,
666260484Sobrien	just return false rather than overwriting it.
666360484Sobrien	(coff_real_object_p):  Understand incoming magic numbers.
666460484Sobrien	(coff_set_flags):  Understand outgoing magic numbers.
666560484Sobrien	(coff_compute_section_file_positions):  outgoing aouthdr magic #.
666660484Sobrien	(build_debug_section):  Add fn for reading debug string section.
666760484Sobrien	(get_normalized_symtab):  Handle symbol names in debug string section.
666860484Sobrien	Remove unused obj_string_table.
666960484Sobrien	(coff_slurp_symbol_table):  Handle rs6000-specific storage classes.
667060484Sobrien	* aoutx.h (translate_from_native_sym_flags, N_SET*):  Check for
667160484Sobrien	existing section before making one.
667260484Sobrien	* cpu-rs6000.c:  New file.
667360484Sobrien	* rs6000coff.c:  New file.
667460484Sobrien
667560484SobrienThu Oct 24 02:03:24 1991  Fred Fish  (fnf at cygnus.com)
667660484Sobrien
667760484Sobrien	* elf.c: Add partial support for ELF format corefiles. Still needs
667860484Sobrien	support for extracting registers from corefiles.
667960484Sobrien
668060484Sobrien	* config/t-m68k-elf:  Set DEFAULT_VECTOR to elf_big_vec.
668160484Sobrien
668260484Sobrien	* config/{h-amix,h-dgux,h-irix3,h-ultra3}: For systems where
668360484Sobrien	RANLIB is defined as echo, send the output to /dev/null to help
668460484Sobrien	reduce clutter in the output from doing a make.
668560484Sobrien
668660484SobrienMon Oct 21 17:48:48 1991  John Gilmore  (gnu at cygnus.com)
668760484Sobrien
668860484Sobrien	* hosts/h-vaxult.h:  Remove malloc/free decls covered in stdlib.h.
668960484Sobrien	Fix HOST_PAGE_SIZE and HOST_SEGMENT_SIZE.  From David Taylor.
669060484Sobrien
669160484SobrienMon Oct 21 09:34:11 1991  Steve Chamberlain  (steve at rtl.cygnus.com)
669260484Sobrien
669360484Sobrien	* coffcode.h (coff_compute_section_file_positions): make it pad
669460484Sobrien	section size out if there are alignment restrictions so that the
669560484Sobrien	image will be ok on a system where section positions are worked
669660484Sobrien	out by accumulating sizes rather than from the section headers.
669760484Sobrien	* targets.c (proto write_armap). Changed orl_count to unsigned.
669860484Sobrien	* opncls.c (bfd_close_all_done). Added so that generative
669960484Sobrien	programs like gas can close a bfd without causing bfd confusion.
670060484Sobrien	* libbfd.h (changed becuase of protos)
670160484Sobrien	* amdcoff.c: messed with the way that jmp displacements are
670260484Sobrien	calcualated. This may not yet be totally correct.
670360484Sobrien	* archive.c (coff_write_armap): rewrote the way that ranlibs are
670460484Sobrien	written out.
670560484Sobrien	* coffcode.h (fixup_symbol_value): now doesn't core dump if a non
670660484Sobrien	abs symbol has no section (like a register symbol).
670760484Sobrien	(coff_write_symbol) now zeros auxent before filling it up to help
670860484Sobrien	with sensitive applications.
670960484Sobrien	* libbfd.c (bfd_write_bigendian_4byte_int): added.
671060484Sobrien
671160484SobrienWed Oct 16 22:58:45 1991  John Gilmore  (gnu at cygnus.com)
671260484Sobrien
671360484Sobrien	* bfd.c:  Make sure we don't get a macro strerror().
671460484Sobrien	* opncls.c (bfd_fdopenr):  If FASCIST_FDOPEN, use "r", not "r+".
671560484Sobrien	* trad-core.c (trad_unix_core_file_failing_command):  Suppress
671660484Sobrien	attempt to recover command, ifdef NO_CORE_COMMAND.
671760484Sobrien	* hosts/h-tahoe.h:  Add FASCIST_FDOPEN and NO_CORE_COMMAND;
671860484Sobrien	revamp HOST_*, etc.
671960484Sobrien	* hosts/h-i386v.h:  Use <utime.h>, not <sys/utime.h>, unlike POSIX.
672060484Sobrien
672160484SobrienWed Oct 16 12:43:49 1991  Per Bothner  (bothner at cygnus.com)
672260484Sobrien
672360484Sobrien	* archive.c (bsd_write_argmap): The size of the ranlib structures
672460484Sobrien	should not include the size field itself.
672560484Sobrien	* aoutx.h, libaout.h (NAME(aout, sizeof_headers)):  Use
672660484Sobrien	adata(abfd)->exec_bytes_size field instead of constant macro,
672760484Sobrien	because aoutx.h compiles to a simple .o file shared by
672860484Sobrien	all 32-bits a.out targets.
672960484Sobrien
673060484SobrienWed Oct 16 11:11:05 1991  John Gilmore  (gnu at cygnus.com)
673160484Sobrien
673260484Sobrien	* configure.in:  Allow i386-sco-sysv.
673360484Sobrien	* bout.c:  Remove unused i960_align; lint dummy core file handlers.
673460484Sobrien	* cpu-h8300.c:  lint.
673560484Sobrien
673660484Sobrien	* host-aout.c:  New strategy.  We use common code, include files,
673760484Sobrien	and data structures to handle the file, but set a few parameters
673860484Sobrien	from the host's config file (page size, text start addr, etc).
673960484Sobrien	* libaout.h:  Define HP BSD machine types.
674060484Sobrien	* aoutf1.h:  Handle reading a.outs with these types.
674160484Sobrien
674260484Sobrien	* trad-core.c:  Pass the u.u_ar0 value as the negative of the
674360484Sobrien	virtual-memory-address of the .reg section.  We can't just make a
674460484Sobrien	section for "all the regs and nothing else" because only GDB knows
674560484Sobrien	exactly where the regs are (scattered around the upage and stack).
674660484Sobrien	Clean up memory allocation.  Remove big- and little-endian
674760484Sobrien	vectors, replace with single vector; this only runs on the host,
674860484Sobrien	in host byte order.  Replace byteswap routines with aborts in case
674960484Sobrien	anyone calls them.
675060484Sobrien	* targets.c:  There's only one trad_core_vec now.
675160484Sobrien	* aoutf1.h (sunos_core_file_p):  VMA of .reg* now needs to be 0.
675260484Sobrien
675360484SobrienTue Oct 15 08:29:03 1991  John Gilmore  (gnu at cygnus.com)
675460484Sobrien
675560484Sobrien	* hosts/h-amix.h (free):  Fix prototype.
675660484Sobrien
675760484Sobrien	* aoutx.h:  Don't use NULL as an integer, for braindead systems
675860484Sobrien	that declare it as (void *)0.  (From Peter Schauer.)
675960484Sobrien
676060484SobrienMon Oct 14 17:20:47 1991  Per Bothner  (bothner at cygnus.com)
676160484Sobrien
676260484Sobrien	* opncls.c (bfd_fdopenr):  Add parentheses to avoid reported
676360484Sobrien	problem with bad Ultrix system headers.
676460484Sobrien	* aoutx.h (NAME(aout,set_section_contents)):  Try to handle the
676560484Sobrien	various kinds of alignments for the various kinds of
676660484Sobrien	magic numbers.
676760484Sobrien
676860484SobrienMon Oct 14 14:23:10 1991  John Gilmore  (gnu at cygnus.com)
676960484Sobrien
677060484Sobrien	* doc/Makefile:  Don't assume . is on the path (from James Clark).
677160484Sobrien
677260484SobrienFri Oct 11 22:45:14 1991  John Gilmore  (gnu at cygnus.com)
677360484Sobrien
677460484Sobrien	* Makefile.in:  Avoid Sun Make VPATH bugs.
677560484Sobrien	* targets.c:  Declare trad_core vectors extern.
677660484Sobrien
677760484SobrienFri Oct 11 13:03:02 1991  Per Bothner  (bothner at cygnus.com)
677860484Sobrien
677960484Sobrien	* coffcode.h: Moved ALIGN macro to libbfd.h. Removed i960_align.
678060484Sobrien	* libbfd.h: Moved ALIGN macro here.
678160484Sobrien	* bout.c (b_out_callback): Replace i960_align by align_power.
678260484Sobrien
678360484Sobrien	* libaout.h (struct aoutdata):  Added fields page_size,
678460484Sobrien	segment_size and exec_bytes_size.  These help generic code
678560484Sobrien	(in aoutx.h and libaout.h) to figure out where to align
678660484Sobrien	the various segments in a demand paged file.
678760484Sobrien	* libaout.h (WRITE_HEADER):  Use new (struct aoutdata) fields
678860484Sobrien	to decide if the exec header counts in a_text (text segment size).
678960484Sobrien	Also, assume D_PAGED flag is set; don't set it here.
679060484Sobrien	* bout.c (b_out_callback): Add initialization of
679160484Sobrien	adata fields page_size, segment_size, and exec_bytes_size.
679260484Sobrien	* host-aout.c (NAME(host_aout, callback) and
679360484Sobrien	NAME(host_aout,mkobject): Ditto.
679460484Sobrien	* i386aout.c (aout386_callback) and new aout386_mkobject): Ditto.
679560484Sobrien	* newos3.c (newsos3_callback) and new newsos_mkobject): Ditto.
679660484Sobrien	* aoutf1.c (sunos4_callback) and new sunos_mkobject): Ditto.
679760484Sobrien	* aoutx.h (NAME(aout,some_aout_object_p)): Don't subtract
679860484Sobrien	EXEC_BYTES_SIZE from the a_test size; this is only appropriate
679960484Sobrien	for some systems (mainly sunos), so do it in the callback instead.
680060484Sobrien	Same routine: Add stuff to the THIS_IS_ONLY_DOCUMENTATION comment.
680160484Sobrien	* aoutx.h (NAME(aout,set_section_contents): Change the way
680260484Sobrien	filepos and size of sections are carried out to support
680360484Sobrien	older styles of demand paged executables.
680460484Sobrien
680560484Sobrien
680660484SobrienFri Oct 11 12:33:36 1991  Steve Chamberlain  (steve at cygnus.com)
680760484Sobrien
680860484Sobrien	* bfd-in.h: Added more macros to COFF_SWAP_TABLE.
680960484Sobrien	* bfd.c: Added macros to enable gas to swap coff records.
681060484Sobrien	* coffcode.h: Make the coff_swap_*_out routines return the number
681160484Sobrien	of bytes swapped, and cleaned up their prototypes.
681260484Sobrien	* configure.in: Added ebmon/coff support
681360484Sobrien	* ecoff.c: Changed null definitions of coff_swap_*_out to conform
681460484Sobrien	to new prototypes
681560484Sobrien	* targets.c: Added new entry points for coff swapping
681660484Sobrien
681760484SobrienFri Oct 11 03:01:52 1991  John Gilmore  (gnu at cygnus.com)
681860484Sobrien
681960484Sobrien	Restructure configuration scheme for bfd, binutils, ld.
682060484Sobrien
682160484Sobrien	* include/sys/h-*.h:  Move to bfd/hosts/h-*.h.
682260484Sobrien	* configure.in:  Revise to symlink sysdep.h to hosts/h-xxx.h.
682360484Sobrien	Change some config names to match other dirs.
682460484Sobrien	* *.c:  Include bfd.h before sysdep.h, so ansidecl and PROTO()
682560484Sobrien	get defined first.
682660484Sobrien	* Makefile.in:  Use -I. to get sysdep.h.  Remove refs to
682760484Sobrien	../include/sysdep.h.
682860484Sobrien	* cpu-i960.c:  Strncmp needed a length arg.
682960484Sobrien	* ecoff.c:  Don't ever call trad_unix_core_file_p from here.
683060484Sobrien	* i386aout.c:  Remove dead N_TXTOFF override.
683160484Sobrien	* trad-core.c:  Don't disable the whole file if SUN4_SYS.
683260484Sobrien	* config/:  Rename some config files to match up h-*.h names.
683360484Sobrien	Remove all the HOST_SYS definitions from the config files.
683460484Sobrien	* hosts/h-amix.h, h-i386v.h:  Define POSIX_UTIME, not USG.
683560484Sobrien	* hosts/h-hp9000.h:  Remove USG comment.
683660484Sobrien	* hosts/h-rs6000.h:  Include <stdlib.h> for malloc.
683760484Sobrien	* hosts/h-news.h, h-sparc-64.h:  New config files that had
683860484Sobrien	previously been kludged in the <sysdep.h> file.
683960484Sobrien
684060484SobrienThu Oct 10 17:54:08 1991  John Gilmore  (gnu at cygnus.com)
684160484Sobrien
684260484Sobrien	* config/*:  trad-core support is HOST dependent, not target
684360484Sobrien	dependent.  Target config files only set DEFAULT_VECTOR and/or
684460484Sobrien	other vector elements.  Exception:  when host-aout.c is in use,
684560484Sobrien	in which case we're forced to assume we're native (hp, vax,
684660484Sobrien	tahoe).  Rename XDEPFILES to HDEPFILES.
684760484Sobrien	* Makefile.in:  Rename XDEPFILES.
684860484Sobrien	* config/h-sun*:  Don't force static linking.
684960484Sobrien	* trad-core.c:  Document how to use it nowadays.
685060484Sobrien	* i386aout.c, newsos3.c:  Clean up.
685160484Sobrien	* i386coff.c:  Allow 386 coff files to be used as core files too
685260484Sobrien	(for reading core files from embedded systems).
685360484Sobrien
685460484SobrienTue Oct  8 15:30:39 1991  John Gilmore  (gnu at cygnus.com)
685560484Sobrien
685660484Sobrien	* Add i386aout.c for a.out support on the i386.
685760484Sobrien
685860484SobrienTue Oct  8 12:18:54 1991  Roland H. Pesch  (pesch at cygnus.com)
685960484Sobrien
686060484Sobrien	* reloc.c, section.c, syms.c, targets.c: correct info-node
686160484Sobrien	structure in *doc* comments.
686260484Sobrien	doc/Makefile: stop hiding complaints from makeinfo.
686360484Sobrien
686460484SobrienSun Oct  6 19:10:06 1991  John Gilmore  (gnu at cygnus.com)
686560484Sobrien
686660484Sobrien	* aoutx.h (...some_aout_object_p):  Take a third parameter,
686760484Sobrien	the internal_exec struct, and avoid ever looking at an
686860484Sobrien	external_exec.  All callers changed to read the entire
686960484Sobrien	external_exec struct, swap and check its magic number,
687060484Sobrien	swap in the whole structure, and pass the swapped-in version to
687160484Sobrien	some_aout_object_p.
687260484Sobrien	* bout.c:  Bring into modern era.  Use single _object_p routine
687360484Sobrien	for big- aand little-endian.  Provide internal and external
687460484Sobrien	exec header structs.  Use separate swap-in and swap-out routines.
687560484Sobrien
687660484Sobrien	* libaout.h:  Move struct internal_exec from ../include/aout64.h
687760484Sobrien	to here.  Add obj_symbol_entry_size to struct aoutdata.
687860484Sobrien	* aoutx.h (...some_aout_object_p):  Set obj_symbol_entry_size.
687960484Sobrien
688060484Sobrien	* ../include/aout64.h:  Change EXTERNAL_LIST_SIZE to
688160484Sobrien	EXTERNAL_NLIST_SIZE.  Callers changed.
688260484Sobrien
688360484SobrienFri Oct  4 18:18:46 1991  John Gilmore  (gnu at cygnus.com)
688460484Sobrien
688560484Sobrien	* bfd.c:  Remove strerror() to libiberty.
688660484Sobrien
688760484Sobrien	* elf.c:  Remove elf_set_section_contents, use generic one.  Lint.
688860484Sobrien	* libbfd-in.h, libbfd.c:  Add bfd_generic_set_section_contents.
688960484Sobrien	* libbfd.c (bfd_generic_{get,set}_section_contents):  Check that
689060484Sobrien	last byte of transfer, not first byte, is within the section.
689160484Sobrien
689260484Sobrien	* host-aout.c:  Remove `BSD' archive support.  Lint.
689360484Sobrien
689460484Sobrien	* archures.c: Rename `struct bfd_arch_info_struct' to `struct
689560484Sobrien	bfd_arch_info'.  Rename `typedef bfd_arch_info_struct_type' to
689660484Sobrien	`bfd_arch_info_type'.  All uses changed.
689760484Sobrien	* reloc.c:  Rename `bfd_reloc_status_enum_type' to
689860484Sobrien	`bfd_reloc_status_type'.  Rename `bfd_reloc_code_enum_real_type'
689960484Sobrien	to `bfd_reloc_code_real_type'.  (This seems to be a misnomer,
690060484Sobrien	it needs a better name.)  All uses changed.
690160484Sobrien	* targets.c:  Rename `enum target_flavour_enum' to `enum
690260484Sobrien	target_flavour', and remove the `_enum' from all of the enum
690360484Sobrien	values themselves.  All uses changed.
690460484Sobrien
690560484Sobrien	* configure.in, config/h-i386mach:  i386 mach host.
690660484Sobrien	* config/t-i386-aout:  Use host-aout.c.
690760484Sobrien
690860484Sobrien	* trad-core.c:  Give it its own xvec's to make it independent
690960484Sobrien	of other file formats.
691060484Sobrien	* ecoff.c, host-aout.c:  Remove refs to trad-core.
691160484Sobrien	* config/t-dec3100, t-hp300bsd, t-tahoe, t-vax:  Define TRAD_CORE.
691260484Sobrien	* targets.c:  #ifdef TRAD_CORE, include it in the vector.
691360484Sobrien
691460484SobrienFri Oct  4 17:38:03 1991  Steve Chamberlain  (steve at cygnus.com)
691560484Sobrien
691660484Sobrien	* reloc.c: Extended NEWHOWTO macro
691760484Sobrien	* ieee.c: Changed the way 8bit pcrel is done
691860484Sobrien	* cpu-h8300.c: got the registers in the right order
691960484Sobrien
692060484SobrienThu Oct  3 19:39:55 1991  John Gilmore  (gnu at cygnus.com)
692160484Sobrien
692260484Sobrien	* bfd-in.h:  enum boolean => enum bfd_boolean for SVR4.  Gumby's
692360484Sobrien	prediction is vindicated!
692460484Sobrien
692560484Sobrien	* bfd-in.h, libbfd-in.h, doc/Makefile, doc/tolibbfd, doc/intobfd:
692660484Sobrien	Remove refs to howto.c, since Steve forgot.
692760484Sobrien
692860484SobrienThu Oct  3 07:49:21 1991  Steve Chamberlain  (steve at cygnus.com)
692960484Sobrien
693060484Sobrien	* elf.c: took the abort out of set_arch_mach so that objdump -i will
693160484Sobrien	still work. Now allows any architecture/machine to be set.
693260484Sobrien
693360484SobrienWed Oct  2 13:50:35 1991  Steve Chamberlain  (steve at cygnus.com)
693460484Sobrien
693560484Sobrien	* howto.c deleted and moved code to reloc.c
693660484Sobrien
693760484Sobrien	* libbfd.h, libbfd-in.h removed $id stuff for real
693860484Sobrien
693960484Sobrien	* cpu-h8300.c Made it match various different spellings of h8300.
694060484Sobrien
694160484Sobrien	* archures.c: Took out the first char filter which made it only
694260484Sobrien	look for a cpu/arch match when the first chars of supplied and
694360484Sobrien	tested names were the same.
694460484Sobrien
694560484Sobrien	* targets.c removed oasys stuff, pending someone to fix the bugs
694660484Sobrien	in it.
694760484Sobrien
694860484Sobrien
694960484SobrienTue Oct  1 12:29:44 1991  John Gilmore  (gnu at cygnus.com)
695060484Sobrien
695160484Sobrien	* Makefile.in, configure.in, targets.c, elf.c:  Add preliminary
695260484Sobrien	ELF support good enough for GDB.
695360484Sobrien	* configure.in, config/h-amix, config/t-m68k-elf:  Handle
695460484Sobrien	m68k-cbm-svr4 host and target.
695560484Sobrien	* config/t-m68k-coff, t-m88k-coff, t-m88k-aout:  Make files nonempty
695660484Sobrien	so `diff' and `patch' can cope.
695760484Sobrien
695860484SobrienTue Oct  1 11:24:31 1991  Steve Chamberlain  (steve at cygnus.com)
695960484Sobrien
696060484Sobrien	* archures.c: removed texinfo error
696160484Sobrien
696260484Sobrien	* init.c: added texinfo hooks, and removed initialization error
696360484Sobrien	message.
696460484Sobrien
696560484Sobrien	* libcoff-in.h, libbfd-in.h removed $id field so cvs can merge
696660484Sobrien	without complaints.
696760484Sobrien
696860484SobrienTue Oct  1 05:02:53 1991  John Gilmore  (gnu at cygnus.com)
696960484Sobrien
697060484Sobrien	* cpu-i960.c:  Avoid numerical count of initializers.
697160484Sobrien
697260484Sobrien	Vax Ultrix changes from David Taylor <taylor@think.com>:
697360484Sobrien	* host-aout.c:  Make little-endian vector really little-endian.
697460484Sobrien	* configure.in:  Separate vax and tahoe cases, handle ultrix.
697560484Sobrien	* config/t-vax:  Add trad-core.o.
697660484Sobrien	* config/h-vaxult:  New host system.
697760484Sobrien
697860484SobrienMon Sep 30 15:13:46 1991  Steve Chamberlain  (steve at cygnus.com)
697960484Sobrien
698060484Sobrien	* bfd-in.h VERSION, change version number to 0.18, this makes a
698160484Sobrien	gap, but now is the same as the linker version number.
698260484Sobrien
698360484Sobrien	* cpu-a29k.c, cpu-i386.c, cpu-m68k.c, cpu-mips.c, cpu-vax.c,
698460484Sobrien	cpu-h8300.c, cpu-i960.c, cpu-m88k.c, cpu-sparc.c: added. These
698560484Sobrien	files will eventually contain processor specific bits for bfd,
698660484Sobrien	like strange relocation information and dis/assembly.  So far only
698760484Sobrien	the H8 has been even partially done.  This work also ties in with
698860484Sobrien	the change in handling architectures.
698960484Sobrien
699060484Sobrien	* amdcoff.c: (a29k_reloc) fix error message.
699160484Sobrien
699260484Sobrien	* aout-f1.h: (choose_reloc_size) now calls bfd_get_arch to
699360484Sobrien	discover the architecture of the bfd. (sunos4_callback) calls the
699460484Sobrien	function bfd_set_arch_mach rather than stuffing stuff directly
699560484Sobrien	into the bfd. (sunos4_write_object_contents), changed names of
699660484Sobrien	accessor functions.
699760484Sobrien
699860484Sobrien	* aoutx.h: (set_arch_mach) now calls bfd_default_set_arch_mach to
699960484Sobrien	setup the environment.
700060484Sobrien
700160484Sobrien	* archive.c: (bfd_slurp_coff_armap) coff archives always have the
700260484Sobrien	headers in big endian format, regardless of the endianess of the
700360484Sobrien	host or target.
700460484Sobrien
700560484Sobrien	* archures.c: totally changed. Now an architecture is represented
700660484Sobrien	with a pointer to an info structure rather than an enumerated type
700760484Sobrien	and a long. The old info is available as two elements in the
700860484Sobrien	structure.  Future enhancements to architecure support will
700960484Sobrien	involve pointers to methods being placed into the info structure.
701060484Sobrien
701160484Sobrien	* bfd.c: changed the definition of the bfd structure for the new
701260484Sobrien	architecture stuff.
701360484Sobrien
701460484Sobrien	* bout.c: (b_out_set_arch_mach) changed to use the new
701560484Sobrien	architecture mechanism.
701660484Sobrien
701760484Sobrien	* coffcode.h: (coff_set_arch_mach, coff_set_flags) changed to use
701860484Sobrien	the new architecture mechanism.
701960484Sobrien
702060484Sobrien	* configure.in: added h8 stuff.
702160484Sobrien
702260484Sobrien	* ieee.c: too many changes to note.  Now ieee files written with
702360484Sobrien	bfd gas and ld can be read by gld and ieee only linkers and
702460484Sobrien	simulators.
702560484Sobrien
702660484Sobrien	* libbfd.c, libbfd.h: changed prototype of bfd_write.
702760484Sobrien
702860484Sobrien	* newsos3.c: (newos3_callback) now calls bfd_set_arch_mach rather
702960484Sobrien	than fixing the structure directly.
703060484Sobrien
703160484Sobrien	* oasys.c: (oasys_object_p) now calls bfd_default_set_arch_mach rather
703260484Sobrien	than fixing the structure directly.
703360484Sobrien
703460484Sobrien	* opncls.c: (new_bfd) makes sure that bfd_init has been called
703560484Sobrien	before opening a bfd.
703660484Sobrien
703760484Sobrien	* srec.c: (srec_set_arch_mach) now calls bfd_default_set_arch_mach
703860484Sobrien	rather than fixing the structure directly.
703960484Sobrien
704060484Sobrien	* targets.c: (target_vector) now by defining SELECT_VECS (perhaps
704160484Sobrien	in the t/hmake file) a user can select which backends they want
704260484Sobrien	linked with bfd without changing the source.
704360484Sobrien
704460484Sobrien	* init.c: new, looks after initializing modules.
704560484Sobrien
704660484Sobrien	* howto.c: for future use, will allow an application to work out
704760484Sobrien	what cookie to use as a handle on a relcoatio howto.
704860484Sobrien
704960484SobrienMon Sep 30 13:31:15 1991  John Gilmore  (gnu at cygnus.com)
705060484Sobrien
705160484Sobrien	* srec.c:  Better error checking, partly from Peter Schauer.
705260484Sobrien	(srec_object_p):  Avoid assuming any file that starts with 'S' is
705360484Sobrien	an S-record file!  (Check for 3 uppercase-hex digits after it.)
705460484Sobrien	(ISHEX):  Define new macro for checking supposedly hex characters.
705560484Sobrien	(pass_over):  Treat as EOF any S-record line that:
705660484Sobrien	    *  doesn't have hex in either size character
705760484Sobrien	    *  produces a size larger than 0x7F
705860484Sobrien	    *  has an unrecognized type number
705960484Sobrien
706060484SobrienThu Sep 26 15:27:29 1991  John Gilmore  (gnu at cygnus.com)
706160484Sobrien
706260484Sobrien	* aoutf1.h, aoutx.h, bout.c, coffcode.h, host-aout.c, oasys.c,
706360484Sobrien	opncls.c:  Lint (saber actually).
706460484Sobrien
706560484SobrienThu Sep 26 11:24:24 1991  Per Bothner  (bothner at cygnus.com)
706660484Sobrien
706760484Sobrien	* libaout.h (WRITE_HEADERS): Set header's a_text field always.
706860484Sobrien	* newsos3.c: Fixed two types: newos3 -> newsos3.
706960484Sobrien	* reloc.c (bfd_perform_relocation): Fix pc-relative relocation
707060484Sobrien	to use correct segment.
707160484Sobrien
707260484SobrienMon Sep 23 18:24:34 1991  Per Bothner  (bothner at cygnus.com)
707360484Sobrien
707460484Sobrien	* aoutx.h (print_symbol):  Handle missing symbol->name.
707560484Sobrien
707660484SobrienFri Sep 20 12:26:01 1991  Stu Grossman  (grossman at cygnus.com)
707760484Sobrien
707860484Sobrien	* aoutf1.h (swapcore_sparc):  Change name of USRSTACK, fix comment
707960484Sobrien	at top of routine.
708060484Sobrien
708160484SobrienTue Sep 17 17:23:49 1991  Stu Grossman  (grossman at cygnus.com)
708260484Sobrien
708360484Sobrien	* oasys.c, configure.in, config/h-irix3, config/t-irix3:
708460484Sobrien	add sgi/irix support.
708560484Sobrien
708660484SobrienThu Sep 12 14:29:09 1991  John Gilmore  (gnu at cygint.cygnus.com)
708760484Sobrien
708860484Sobrien	Changes for the AMD 29000 Ultracomputer port from David Wood.
708960484Sobrien	(wood@nyu.edu).
709060484Sobrien
709160484Sobrien	* opncls.c (bfd_fdopenr):  Handle NO_FCNTL.
709260484Sobrien
709360484Sobrien	* Makefile.in:  Make subdirs work by using $(INCDIR) in the
709460484Sobrien	crude dependencies.
709560484Sobrien
709660484Sobrien	* coffcode.h (coff_real_object_p):  Pass information about the
709760484Sobrien	current file's coff symbol format to BFD via the coff_data struct.
709860484Sobrien	(coff_find_nearest_line):  obj_icof => coff_data.
709960484Sobrien	(coff_swap_sym_{in,out}):  Check that SYMNMLEN == E_SYMNMLEN.
710060484Sobrien	(coff_swap_aux_{in,out}):  Check that FILNMLEN == E_FILNMLEN
710160484Sobrien	and DIMNUM == E_DIMNUM.
710260484Sobrien	* configure.in:  Handle a29k-*-* hosts, and targets
710360484Sobrien	a29k-*-coff, a29k-*-aout, and a29k-*-sym1.
710460484Sobrien	* libcoff-in.h:  Add local_n_btmask, local_n_btshft,
710560484Sobrien	local_n_tmask, local_n_tshift, local_symesz, local_auxesz,
710660484Sobrien	local_linesz to `coff_data' (tdata) struct.
710760484Sobrien	(coff_data, coff_data_type, coff_tdata):  Rename struct icofdata.
710860484Sobrien	* config/h-ultra3:  Handle a29k-*-* hosts as Ultracomputers.
710960484Sobrien
711060484SobrienThu Sep 12 14:07:22 1991  Roland H. Pesch  (pesch at cygint.cygnus.com)
711160484Sobrien
711260484Sobrien	* Makefile.in: $(MAKE) for make, $(docdir) for doc
711360484Sobrien	* doc/Makefile: redundant dependencies for Sun-make VPATH bug
711460484Sobrien
711560484SobrienTue Sep 10 20:34:12 1991  John Gilmore  (gnu at cygint.cygnus.com)
711660484Sobrien
711760484Sobrien	* aoutf1.h (sunos4_core_file_p):  Release the right storage in
711860484Sobrien	error case.
711960484Sobrien	(sunos4_core_file_matches_executable_p):  Fix header comparison.
712060484Sobrien	* aoutx.h:  Avoid shifts of 32 bits, undefined in C.  Lint.
712160484Sobrien	* bout.c, icoff.c, ieee.c, libbfd.c, oasys.c:  gcc -O -W lint.
712260484Sobrien
712360484SobrienWed Sep  4 00:44:52 1991  John Gilmore  (gnu at cygint.cygnus.com)
712460484Sobrien
712560484Sobrien	Allow GDB to patch object files.
712660484Sobrien
712760484Sobrien	* aoutf1.h (sunos_core_file_p):  Set SEC_HAS_CONTENTS on all sections.
712860484Sobrien	* trad-core.h (trad_unix_core_file_p):  Ditto.
712960484Sobrien	* aoutx.h (aout_set_section_contents):  On first output, check
713060484Sobrien	abfd->direction and complain if erroneous.
713160484Sobrien
713260484Sobrien	* Makefile.in:  Add crude dependencies.
713360484Sobrien
713460484SobrienTue Sep  3 13:46:19 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
713560484Sobrien
713660484Sobrien	* config/* aoutx.h configure* shortened all the h/tmake-xxxx
713760484Sobrien	to h/t-xxxx files so that everything will work on System V.
713860484Sobrien
713960484SobrienFri Aug 23 13:51:06 1991  John Gilmore  (gnu at cygint.cygnus.com)
714060484Sobrien
714160484Sobrien	* aoutx.h:  Add information on host-aout.c and how to configure
714260484Sobrien	to use it, to the manual.
714360484Sobrien	* configure.in:  Tix typo.
714460484Sobrien	* ecoff.c:  If compiling for DEC3100, use trad_unix core files,
714560484Sobrien	else dummy out the core file support.
714660484Sobrien	* trad-core.c (trad_unix_core_file_p):  If HOST_DATA_START_ADDR is
714760484Sobrien	specified, use it to locate the data section.
714860484Sobrien	* coffcode.h (coff_write_symbols):  Declare buffer as bfd_bytes
714960484Sobrien	rather than as chars (lint).
715060484Sobrien
715160484SobrienThu Aug 22 22:20:19 1991  Stu Grossman  (grossman at cygint.cygnus.com)
715260484Sobrien
715360484Sobrien	* aoutx.h, coffcode.h:  saberized.
715460484Sobrien
715560484SobrienThu Aug 22 11:27:06 1991  Roland H. Pesch  (pesch at cygint.cygnus.com)
715660484Sobrien
715760484Sobrien	* bfd.texinfo: some cleanup, reincorporated more intro matter from
715860484Sobrien	bfd.doc
715960484Sobrien	bfd.c, targets.c: minor rewording of doc segments
716060484Sobrien
716160484Sobrien
716260484SobrienWed Aug 21 19:13:22 1991  John Gilmore  (gnu at cygint.cygnus.com)
716360484Sobrien
716460484Sobrien	* trad-core.c (trad_unix_core_file_p):  Use HOST_TEXT_START_ADDR,
716560484Sobrien	etc, rather than TEXT_START_ADDR.
716660484Sobrien	* host-aout.c:  Remove #if 0 around whole thing.
716760484Sobrien	Update to modern (32/64-bit) a.out naming conventions.
716860484Sobrien	Include a large chunk of ../include/a.out.gnu.h to get macros that
716960484Sobrien	are not defined by the system include files.
717060484Sobrien	(host_aout_{32,64}_write_object_contents):  Use the WRITE_HEADERS
717160484Sobrien	macro used by the other a.out implementations.
717260484Sobrien	* Makefile.in:  Give dependencies to OPTIONAL_BACKENDS.
717360484Sobrien
717460484SobrienWed Aug 21 14:33:06 1991  Roland H. Pesch  (pesch at cygint.cygnus.com)
717560484Sobrien
717660484Sobrien	* Makefile.in: use targets "bfd.dvi" and "bfd.ps" instead of
717760484Sobrien	texdoc and psdoc; make these depend on generated .texi's
717860484Sobrien
717960484Sobrien	* scanit, (new) unPROTO: turn PROTO macros into ANSI declarations in
718060484Sobrien	doc
718160484Sobrien
718260484Sobrien	* bfd.c, reloc.c, syms.c: minor spelling/wording fixes in doc
718360484Sobrien	portions
718460484Sobrien
718560484Sobrien	* Makefile.in, awkscan-ip, awkscan-p, intobfd,
718660484Sobrien	libbfd.h, libcoff.h, tolibcoff; new bfd-in.h, libbfd-in.h,
718760484Sobrien	libcoff-in.h: (a) use separate files for invariant parts of bfd.h,
718860484Sobrien	libbfd.h, and libcoff.h; (b) in generated parts of same, use less
718960484Sobrien	obtrusive marks indicating .c origins.
719060484Sobrien
719160484Sobrien	* bfd.texinfo: generalize most references to linker
719260484Sobrien
719360484SobrienTue Aug 20 15:18:02 1991  Roland H. Pesch  (pesch at cygint.cygnus.com)
719460484Sobrien
719560484Sobrien	* Makefile.in: include core.p in PROTOS (building better bfd.h)
719660484Sobrien	* archures.c: remove empty foo() definition (crept in at vn1.9)
719760484Sobrien
719860484SobrienMon Aug 19 13:48:22 1991  Roland H. Pesch  (pesch at cygint.cygnus.com)
719960484Sobrien
720060484Sobrien	* bfd.texinfo: use @setchapternewpage on instead of lots of
720160484Sobrien	@page's; minor rephrasing in Introduction.
720260484Sobrien
720360484Sobrien	* aoutx.h, archive.c, archures.c, bfd.c, bfd.texinfo, cache.c,
720460484Sobrien	coffcode.h, core.c, format.c, ieee.c, libbfd.c, libbfd.h, libcoff.h,
720560484Sobrien	oasys.c, opncls.c, reloc.c, section.c, syms.c, targets.c (documentation
720660484Sobrien	segments): used BFD (caps) more consistently as a name in
720760484Sobrien	discourse, fixed a few other minor typos and uses of fonts
720860484Sobrien
720960484Sobrien
721060484SobrienThu Aug  8 16:47:43 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
721160484Sobrien
721260484Sobrien	* coffcode.h: fixed bug where string table size wasn't being swapped.
721360484Sobrien
721460484SobrienThu Aug  1 16:35:28 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
721560484Sobrien
721660484Sobrien	* section.c: added SEC_CONSTRUCTOR_TEXT|DATA|BSS flags
721760484Sobrien
721860484Sobrien	* syms.c: added BSF_CONSTRUCTOR, BSF_WARNING and BSF_INDIRECT
721960484Sobrien	flags. (bfd_print_symbol_vandf) now knows what to do with the
722060484Sobrien	above flags.
722160484Sobrien
722260484Sobrien	* aoutx.h: made translate_from_native_sym_flags and
722360484Sobrien	translate_to_native_sym_flags produce the above flags.
722460484Sobrien
722560484Sobrien
722660484SobrienWed Jul 31 09:53:52 1991  John Gilmore  (gnu at cygint.cygnus.com)
722760484Sobrien
722860484Sobrien	* all files:  update copyright notices for GPL version 2.
722960484Sobrien	Install header comments and attribute most modules to their
723060484Sobrien	authors.  BFD's name is now officially "Binary File Descriptor",
723160484Sobrien	so remove any conflicting pejoratives.
723260484Sobrien	archures.h:  Consists solely of comments; remove it.
723360484Sobrien
723460484SobrienFri Jul 26 18:11:34 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
723560484Sobrien
723660484Sobrien	* Makefile.in, bfd.c: Made it compile again.
723760484Sobrien
723860484SobrienFri Jul 19 08:17:09 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
723960484Sobrien
724060484Sobrien	* newsos3.c, targets.c, coffcode.h: new patches from David Wood
724160484Sobrien
724260484Sobrien
724360484SobrienMon Jul 15 16:27:42 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
724460484Sobrien
724560484Sobrien	* aoutf1.h archive.c bfd.c coffcode.h core.c ecoff.c ieee.c
724660484Sobrien	bfd.texinfo oasys.c opncls.c reloc.c srec.c: More documentation on
724760484Sobrien	lint fixes.
724860484Sobrien
724960484Sobrien	* amdcoff.c bfd.texinfo Makefile.in : Folded in changes for amd
725060484Sobrien	29k coff by David Wood (wood@lab.ultra.nyu.edu).
725160484Sobrien
725260484SobrienThu Jul  4 09:53:16 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
725360484Sobrien
725460484Sobrien	* Everything: created some new files, core.c format.c, reloc.c,
725560484Sobrien	section.c and syms.c to split the functionality a bit better.
725660484Sobrien	Cleaned up the rest of the files a bit, and added some
725760484Sobrien	documentation.
725860484Sobrien
725960484Sobrien
726060484SobrienMon Jul  1 13:29:47 1991  David Wood (wood at david.ultra.nya.edu)
726160484Sobrien
726260484Sobrien	* opncls.c, ../include/sys/h-sun3.h ../include/sys/h-sun4.h: fcntl
726360484Sobrien	really takes 3 arguments, patched code and ammended prototypes.
726460484Sobrien
726560484SobrienFri Jun 14 13:19:40 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
726660484Sobrien
726760484Sobrien	* ../include/bfd.h (struct bfd_target): Added new field
726860484Sobrien	"align_power_min" which contains the minimum alignment for a
726960484Sobrien	section. This is used in coff_new_section_hook. The field
727060484Sobrien	insertion necessitates an update of all backends..
727160484Sobrien
727260484Sobrien	* aoutf1.h jump table field inserted
727360484Sobrien
727460484Sobrien	* archive.c(snarf_ar_hdr)(bfd_slurp_coff_armap) can now parse dgux style extended
727560484Sobrien	filenames too.
727660484Sobrien
727760484Sobrien	* bout.c(b_out_squirt_out_relocs) fix to assertion tests. Jump
727860484Sobrien	table field inserted.
727960484Sobrien
728060484Sobrien	* coffcode.h(just about everything) Now patches up symbol tables
728160484Sobrien	using a different mechanism. The Intel major bug has been fixed,
728260484Sobrien	and the linker can self host on the Aviion and be debugged with
728360484Sobrien	gdb.
728460484Sobrien
728560484Sobrien	* ecoff.c: new include and jump table patch, i386coff.c: new
728660484Sobrien	include and jump table patch,  icoff.c: new include and jump table
728760484Sobrien	patch, ieee.c: can now read archives containing ieee modules.,
728860484Sobrien	libcoff.h: added (combined_entry_type), libieee.h: uped max
728960484Sobrien	sections to 20, m68kcoff.c: new include and jump table patch,
729060484Sobrien	m88kbcs.c: new include and jump table patch, oasys.c: various bugs
729160484Sobrien	fixed. opncls.c: added bfd_alloc_grow and bfd_alloc_finish.
729260484Sobrien	srec.c: jump table patch. trad-code.c fixed #IF typeo
729360484Sobrien
729460484SobrienFri Jun  7 12:35:46 1991  Sean Fagan  (sef at cygint.cygnus.com)
729560484Sobrien
729660484Sobrien 	* coffcode.h (coff_swap_aux_in): added else case to deal with
729760484Sobrien 	filenames less than 9 characters.
729860484Sobrien
729960484Sobrien
730060484SobrienThu Jun  6 18:27:38 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
730160484Sobrien
730260484Sobrien	* ../include/oasys.h oasys.c (oasys_archive_p): fixed so it works
730360484Sobrien
730460484Sobrien	* srec.c: now allows any number of sections to be created in a
730560484Sobrien	file. Outputs addresses of the right length.
730660484Sobrien
730760484SobrienThu May 30 15:30:10 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
730860484Sobrien
730960484Sobrien	* bfd.c (bfd_check_format): Fixed problem where when a defaulted
731060484Sobrien	target didn't match, the format got set to the attempted match,
731160484Sobrien	breaking a future test.
731260484Sobrien
731360484Sobrien        *../include/i386coff.h : fixed typo in type field with size
731460484Sobrien
731560484Sobrien	* i386coff.c icoff.c m88k-bcs.c ecoff.c ../include/bfd.h : Added
731660484Sobrien	support in the jump table for the swapping routines exported to
731760484Sobrien	gdb. Now gdb works with the 386.
731860484Sobrien
731960484SobrienTue May 28 17:21:43 1991  John Gilmore  (gnu at cygint.cygnus.com)
732060484Sobrien
732160484Sobrien	* Merge in changes from gdb-3.95 release.
732260484Sobrien	Makefile.in:  Allow hmake and tmake files to add OFILES.
732360484Sobrien	aoutf1.h:
732460484Sobrien	bfd.c:  support specific targets as well as searching.  When
732560484Sobrien	searching, take default target in preference to others.
732660484Sobrien	bfd.doc:  typos
732760484Sobrien	ieee.c, oasys.c:  Avoid using the "tdata" macros left of assignment.
732860484Sobrien	liba.out.h:  Don't hard-code file offsets; use N_ macros for them.
732960484Sobrien	libbfd.h:  Support specific targets as well as searching.
733060484Sobrien	opncls.c:  Support specific targets as well as searching.
733160484Sobrien	targets.c:  Search is short-circuited if default target matches.
733260484Sobrien	liboasys.c, libieee.c:  Undo bothner changes that make macros
733360484Sobrien	work to the left of assignment, but which depend on the
733460484Sobrien	representations of different pointer types being the same.
733560484Sobrien
733660484SobrienFri May 24 18:56:52 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
733760484Sobrien
733860484Sobrien	* i386coff.c: created.
733960484Sobrien	* coffcode.h: added support for 386.
734060484Sobrien	* Makefile.in: added support for 386.
734160484Sobrien	* ../include/i386coff.h: created
734260484Sobrien
734360484SobrienWed May 22 07:26:38 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
734460484Sobrien
734560484Sobrien	* coffcode.h: removed all put_x_<sizes>
734660484Sobrien	* libbfd.c: Changed #ifdef __GNUC__ to #ifdef HOST_64_BIT, Added
734760484Sobrien	DEFUNS
734860484Sobrien
734960484Sobrien
735060484SobrienTue May 21 08:58:58 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
735160484Sobrien	(bothner)
735260484Sobrien	* opncls.c: Changed obstack_chunk_alloc use xmalloc
735360484Sobrien
735460484SobrienMon May 20 17:12:17 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
735560484Sobrien
735660484Sobrien	* everything: Removed sysdep.h from bfd.h and put back into files
735760484Sobrien	from which it was split out. Now 64 bit version is built with a
735860484Sobrien	-DHOST_64_BIT="long long" on the compile line.
735960484Sobrien
736060484SobrienFri May 17 19:35:26 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
736160484Sobrien
736260484Sobrien	Changed all the [get|put][name] routines to use  [get|put]_[size
736360484Sobrien	in bytes].
736460484Sobrien
736560484Sobrien	Put in support for 64 bit work. Now two versions of bfd may be
736660484Sobrien	generated, according to the state of TARGET_64_BIT, one which is
736760484Sobrien	32 bit only, and one which is 64/32 bits.
736860484Sobrien	Created new back end 'demo64' to test 64 bit functionality.
736960484Sobrien
737060484Sobrien	Renamed some files to work on DOS.
737160484Sobrien
737260484Sobrien	* archive.c: lint * bfd.c: prototypes and lint. * ecoff.c: added
737360484Sobrien	64bit transfer 	* icoff.c: added 64bit transfer * ieee.c: name
737460484Sobrien	chage, 64 bit transfer. * liba.out.h: Split out common code from
737560484Sobrien	sunos and newsos into liba.out. Name changes and prototype mods. *
737660484Sobrien	libbfd.c: lint and prototypes, extra 64bit swaps. * libbfd.h:
737760484Sobrien	prototypes for new functions. * libcoff.h: lint * libieee.h: make
737860484Sobrien	work on DOS * liboasys.h: make work on DOS * m88k-bcs.c: Name
737960484Sobrien	change and 64bit stuff.* newsos3.c: common code removed, new jump
738060484Sobrien	table. * oasys.c: Name change * opncls.c: Portability fixes *
738160484Sobrien	srec.c: Name changes * sunos.c: Removed comon code. * targets.c:
738260484Sobrien	Added demo * aout32, aout64.c include  aoutx.h * bout.c: used to
738360484Sobrien	be called b.out.c * coffcode.h: used to be called coff-code.h, now
738460484Sobrien	64bit ized. * demo64.c: 64 bit a.out back end
738560484Sobrien
738660484SobrienThu May 16 16:02:07 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
738760484Sobrien	from bothner
738860484Sobrien 	* libieee.h: Make ieee_data and ieee_ar_data macros usable
738960484Sobrien	on LHS of assignment, even when using old compilers.
739060484Sobrien	* liboasys.h: Ditto for oasys_data and oasys_ar_data.
739160484Sobrien	* m68kcoff.c: Add enum-to-int casts to accomodate old compilers.
739260484Sobrien	* newsos3.c: Fix definitions of SEGMENT_SIZE and TEXT_START_ADDR.
739360484Sobrien	* opncls.c: Define S_IXUSR, S_IXGRP, S_IXOTH if undefined.
739460484Sobrien	* targets.c: Add declaration of newsos3_vec.
739560484Sobrien
739660484SobrienMon May 13 10:03:29 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
739760484Sobrien
739860484Sobrien	* aout.c: fixxed some of the problems with filepos calculation.
739960484Sobrien	(swap_ext_reloc): fixed problem with creation of relocs.
740060484Sobrien	(aout_set_section_contents): fixed filepos problem
740160484Sobrien
740260484Sobrien	* coff-code.h: (swap_filehdr_in, swap_filehdr_out) add.
740360484Sobrien	(swap_filehdr) delete. Changed all the usage of bfd_h_put_x.
740460484Sobrien	(swap_aouthdr_in, swap_aouthdr_out) add. (swap_aouthdr) delete.
740560484Sobrien	(coff_real_object_p) cleaned up, added MIPS. (coff_object_p)
740660484Sobrien	cleaned up. (coff_write_object_contents) cleaned up.
740760484Sobrien
740860484Sobrien	* ecoff.c: Totally different. Now supports ecoff fully.
740960484Sobrien
741060484Sobrien	* icoff.c: fixed problems in relocation callout.
741160484Sobrien
741260484Sobrien	* libcoff.h: (struct icofdata) removed hdr structure from tdata.
741360484Sobrien
741460484Sobrien	* m68kcoff.c: updated target vector.
741560484Sobrien
741660484Sobrien	* sunos.c: (choose_reloc_size) added: (sunos4_callback) calls
741760484Sobrien	choose_reloc_size. (sunos4_write_object_contents) now calls
741860484Sobrien	choose_reloc_size so outputs relocs correctly, also calculates the
741960484Sobrien	size of the sections correctly.
742060484Sobrien
742160484Sobrien
742260484Sobrien
742360484SobrienFri May 10 16:58:53 1991  John Gilmore  (gnu at cygint.cygnus.com)
742460484Sobrien
742560484Sobrien	Merge Per Bothner's changes to modularize BFD a.out a bit.
742660484Sobrien
742760484Sobrien	* libbfd.h, libbfd.c (bfd_generic_get_section_contents):  Add.
742860484Sobrien	* ieee.c:  Cast enums to int before comparing them, for brain-
742960484Sobrien	dead compilers.
743060484Sobrien	* coff-code.h:  Remove coff_get_section_contents, and use the
743160484Sobrien	generic one instead.
743260484Sobrien
743360484Sobrien	* aout.c:  Derive new module from sunos.c, containing generic
743460484Sobrien	support code for all kinds of a.out files.
743560484Sobrien
743660484Sobrien	* sunos.c: Remove all code that goes in aout.c.  Split out
743760484Sobrien	machine dependent followup in sunos4_object_p into
743860484Sobrien	sunos4_callback.  Use JUMP_TABLE(aout) for the transver vector,
743960484Sobrien	and redefine only the names we CHANGE, not all the names.  Drop
744060484Sobrien	the little-endian vector, and rename the vector as sunos4 rather
744160484Sobrien	than generic.
744260484Sobrien
744360484Sobrien	* b.out.c:  Use aout.c routines for most of the work.  Slight
744460484Sobrien	changes for the new regime.  Remove close_and_cleanup and
744560484Sobrien	get_section_contents in favor of generics.  New transfer vector
744660484Sobrien	regime.
744760484Sobrien
744860484Sobrien	* newsos.c:  New support for Sony NEWS, another a.out format.
744960484Sobrien
745060484Sobrien	* ecoff.c:  Remove close_and_cleanup.  New tvec regime.
745160484Sobrien	* icoff.c, m88k-bcs.c:  Add write_contents to tvec.
745260484Sobrien	* ieee.c, oasys.c:  Remove close_and_cleanup, add write_contents
745360484Sobrien	to tvec.
745460484Sobrien	* opncls.c (bfd_close):  Call format-dependent write_contents
745560484Sobrien	routine, if writing, before calling target-dependent
745660484Sobrien	close_and_cleanup routine (which is now always generic, I think).
745760484Sobrien	* srec.c:  Use bfd_alloc instead of malloc.  Remove
745860484Sobrien	close_and_cleanup and move code from it to
745960484Sobrien	srec_write_object_contents.  Add write_contents to tvec.
746060484Sobrien	* targets.c:  Remove a.out little vector, replace a.out big
746160484Sobrien	vector with SunOS vector.  FIXME:  Need Vax support again now.
746260484Sobrien
746360484Sobrien	* libbfd.h:  Add write_contents format-dependent-vector to the
746460484Sobrien	bfd_target vector.  Supply a generic close_and_cleanup routine.
746560484Sobrien	* liba.out.h:  Handle the new aout.c split.  Add prototypes for
746660484Sobrien	all routines defined in aout.c.  Rename "sunos" things to "aout"
746760484Sobrien	things.  Add a few fields where needed for various formats.
746860484Sobrien	* Makefile.in:  Add aout.c and newsos.c.
746960484Sobrien
747060484Sobrien	* archive.c, ieee.c, oasys.c:  Lint.
747160484Sobrien
747260484SobrienFri May 10 12:34:48 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
747360484Sobrien
747460484Sobrien	* ../include/bfd.h
747560484Sobrien	changed forward declaration struct stat; to reduce warnings. Changed
747660484Sobrien	comment on bfd_h_<x>_x.
747760484Sobrien
747860484Sobrien	* ../include/m68kcoff.h, ../include/intel-coff.h,
747960484Sobrien	../include/m88k-bcs.h
748060484Sobrien	Now there are two incarnations of relocs, linenos and syments. One for
748160484Sobrien	internal digestion, and one full of char arrays for I/O. The original
748260484Sobrien	names have gone to detect errors.
748360484Sobrien
748460484Sobrien	* Makefile.in, m68kcoff.c, targets.c
748560484Sobrien	Test new structure code with a 68k coff implementaion
748660484Sobrien
748760484Sobrien	* coff-code.h, icoff.c, coffswap.c, libcoff.h
748860484Sobrien	Fixed all the places where there were problems with the size and
748960484Sobrien	alignments of structures on disk and structures in memory. #ifed out
749060484Sobrien	all the code in coffswap.c, since it should be done using the target
749160484Sobrien	swap routines now.
749260484Sobrien
749360484SobrienThu May  9 11:00:45 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
749460484Sobrien
749560484Sobrien	* ieee.c (do_one, ieee_slurp_section_data): now supports the load
749660484Sobrien	multiple reloc command.
749760484Sobrien
749860484Sobrien	* sunos.c (sunos4_set_section_contents): Made it so that sections
749960484Sobrien	are always padded to their alignment size.
750060484Sobrien
750160484SobrienSat May  4 15:49:43 1991  John Gilmore  (gnu at cygint.cygnus.com)
750260484Sobrien
750360484Sobrien	* archive.c, bfd.c, coff-code.h, opncls.c, sunos.c, trad-core.c:
750460484Sobrien	Clean up types and such (saber C problems).
750560484Sobrien	* ecoff.c:  Clean up types and such.  Remove routines that are
750660484Sobrien	not used.  Fix up reading and swapping of shorts from files.
750760484Sobrien
750860484Sobrien   Notes on bfd-0.5.2-patch1a, from Per Bothner:
750960484Sobrien
751060484Sobrien	* a.out.vax.c: Remove two bogus "static" from prototypes.
751160484Sobrien
751260484Sobrien	* ecoff.c: Got rid of lots of non-working junk (that had
751360484Sobrien	been copied directly from coff-code.h).
751460484Sobrien	Updated to be consistent with updates to icoff.c and coff-code.h.
751560484Sobrien
751660484Sobrien	* libbfd.h: Added definitions for S_IXUSR, S_IXGRP, and S_IXOTH
751760484Sobrien	if they're missing (as they are in (BDS-4.3-based) NewsOS-3).
751860484Sobrien
751960484Sobrien	* sunos.c (n_txtoff): (Re-)Add support for sony. This is a kludge,
752060484Sobrien	but until the target_vector is automatically generated,
752160484Sobrien	it's as good as any. Note that the text offset is the only
752260484Sobrien	difference between NewsOS and SunOs (including magic numbers).
752360484Sobrien	(Most of the sunos_* routines should to renamed bsd_*
752460484Sobrien	and move to a bsd.c file. Then (and when the target_vector
752560484Sobrien	is automatically generated) it might make sense to create
752660484Sobrien	a separate Sony target.)
752760484Sobrien
752860484Sobrien	* sysdep.h: Don't declare fread and fwrite. Causes trouble
752960484Sobrien	on some systems, and doesn't help on others.
753060484Sobrien	Similarly, only define X_OK if not already defined.
753160484Sobrien
753260484Sobrien	* trad-core.c: Don't include sys/stat.h - at least
753360484Sobrien	on NewsOS 3, it has already been included.
753460484Sobrien
753560484SobrienTue Mar  5 01:47:57 1991  John Gilmore  (gnu at cygint.cygnus.com)
753660484Sobrien
753760484Sobrien	* coff-code.h (bfd_coff_swap_sym, bfd_coff_swap_aux,
753860484Sobrien	bfd_coff_swap_lineno):  Export the routines that byte-swap COFF
753960484Sobrien	symbol tables if necessary when reading them in, so gdb can use
754060484Sobrien	them.  Add "bfd_coff_" to the names so they won't conflict with
754160484Sobrien	names in calling programs.  FIXME-soon:  if coff-code.h is
754260484Sobrien	included in two BFD modules, this will cause duplicate
754360484Sobrien	definitions; the routines should be exported to a separate,
754460484Sobrien	common, module (probably along with a mess of other ones).
754560484Sobrien
754660484SobrienSat Mar  2 12:11:26 1991  John Gilmore  (gnu at cygint.cygnus.com)
754760484Sobrien
754860484Sobrien	Improve modtime support.
754960484Sobrien
755060484Sobrien	* bfd.h:  Add boolean mtime_set, and declare bfd_get_mtime.
755160484Sobrien	Remove #define for bfd_get_mtime.  Remove gratuitous comment.
755260484Sobrien	* bfd.c (bfd_get_mtime):  New fn, caches mtime, gets if not cached.
755360484Sobrien	BUG:  archive members still do not get correct mod times.
755460484Sobrien
755560484Sobrien	Improve floating point support for core files.
755660484Sobrien
755760484Sobrien	* sunos.c (struct core):  Change void *fpa_dummy to double fp_stuff.
755860484Sobrien	(sunos4_core_file_p):  Create a second registers section in the
755960484Sobrien	core file, called ".reg2", for the float registers.
756060484Sobrien
756160484SobrienThu Feb 14 15:49:06 1991  Gumby Vinayak Wallace  (gumby at cygint.cygnus.com)
756260484Sobrien
756360484Sobrien	* many changes to improve archive handling; found a logic flaw in
756460484Sobrien	  bfd_check_format which only just happened to work by cooncidence.
756560484Sobrien
756660484SobrienThu Feb 14 07:53:16 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
756760484Sobrien
756860484Sobrien	* bfd.c (bfd_perform_relocation): fixed to use output_offsets
756960484Sobrien	correctly.
757060484Sobrien
757160484Sobrien	* bfd.h: changed type of udata in asymbol to void *, like it
757260484Sobrien	should be. Added bfd_reloc_dangerous enum member.
757360484Sobrien
757460484Sobrien	* coff-code.h: Fixed it so that internally generated symbols get
757560484Sobrien	their values relocated correctly in all cases. Removed calls to
757660484Sobrien	xmalloc.
757760484Sobrien
757860484Sobrien	* icoff.c: Not understanding the destination symbol of a reloc is
757960484Sobrien	not a failure any more, just 'dangerous'. This allows linking of
758060484Sobrien	b.out and coff images.
758160484Sobrien
758260484Sobrien	* sunos.c: Cleaned up the way that ZMAGIC section sizes are
758360484Sobrien	calculated.
758460484Sobrien
758560484Sobrien
758660484SobrienTue Feb 12 13:25:46 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
758760484Sobrien
758860484Sobrien	* sunos.c (translate_to_native_sym_flags): fixed
758960484Sobrien	sym_pointer->n_value so that symbols on the way out get their
759060484Sobrien	section relative values calculated correctly.
759160484Sobrien
759260484Sobrien	* coff-code.h (mangle_symbols): fixed problem where tags were not
759360484Sobrien	being relocated for structs, enums, unions. Also various lints.
759460484Sobrien
759560484SobrienMon Feb 11 19:52:26 1991  Gumby Vinayak Wallace  (gumby at cygint.cygnus.com)
759660484Sobrien
759760484Sobrien	* archive.c (get_elt_at_filepos): system_call_error returned
759860484Sobrien	  incorrectly.
759960484Sobrien
760060484SobrienSun Feb 10 23:18:40 1991  Gumby Vinayak Wallace  (gumby at cygint.cygnus.com)
760160484Sobrien
760260484Sobrien	* Resolve the use of no_error and system_call_error.
760360484Sobrien	  The bfd library itself now will never set bfd_error to
760460484Sobrien	  no_error.
760560484Sobrien
760660484Sobrien	  The code still needs to be combed to make sure all the error
760760484Sobrien	  codes are correct.  I suspect they are not always set correctly.
760860484Sobrien
760960484Sobrien	* The names of all the messages have _ prepended because the sun
761060484Sobrien	  bundled compiler can't distinguish from a macro which takes an
761160484Sobrien	  argument and the same identifier in a non-macro context.
761260484Sobrien
761360484Sobrien	* The reason for the above being that entry points which used to
761460484Sobrien	  be trampoline functions are now just macros which expand to a
761560484Sobrien	  direct call through the bfd's xfer vector.
761660484Sobrien
761760484Sobrien	* (../include/intel-coff.h) F_AR32WR: fix this constant.  Why
761860484Sobrien	  must gas have its own version of everything (the gas version
761960484Sobrien	  had the correct value)
762060484Sobrien
762160484SobrienTue Feb  5 11:46:53 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
762260484Sobrien
762360484Sobrien	* b.out.c: Added patches supplied by chrisb@mipon2.intel.com to
762460484Sobrien	properly support i960 architecture and output correct reloc stuff.
762560484Sobrien
762660484Sobrien	* bfd.h: added prototype for bfd_printable_arch_mach, added
762760484Sobrien	BFD_FAIL
762860484Sobrien
762960484Sobrien	* coff-code.h: Applied patches from chrisb to support i960
763060484Sobrien	architecture, zero relocs and swap them correcly and conditionally
763160484Sobrien	compiled the timestamp.
763260484Sobrien
763360484Sobrien	* sunos.c: Made the default section alignment 2^3 so that doubles
763460484Sobrien	are done properly. Fixed the same reloc bug that was in b.out.c
763560484Sobrien
763660484Sobrien	* sysdep.h: Now compiles on a Posix box
763760484Sobrien
763860484SobrienWed Jan 30 21:36:26 1991  John Gilmore  (gnu at cygint.cygnus.com)
763960484Sobrien
764060484Sobrien	* icoff.c:  Fix comment on big-endian version.
764160484Sobrien	* coff-code.h:  Make HAS_RELOC really work (it's backwards from
764260484Sobrien	F_RELFLG).  Set F_AR32WR in output files if little endian
764360484Sobrien	architecture.
764460484Sobrien
764560484SobrienTue Jan 29 20:56:10 PST 1991 steve@cygnus.com
764660484Sobrien
764760484Sobrien	* archures.c fixed =/== typo
764860484Sobrien
764960484Sobrien	* sunos.c added architecture stuff for output. Fixed
765060484Sobrien	bug where files where vma(data) != size(text)
765160484Sobrien	were processed wrong.
765260484Sobrien
765360484Sobrien	* coff-code.h added a lint cast
765460484Sobrien
765560484Sobrien	* (../include/a.out.sun4.h) fixed it so zmagic
765660484Sobrien	worked
765760484Sobrien
765860484SobrienMon Jan 28 19:15:29 PST 1991 steve@cygnus.com
765960484Sobrien
766060484Sobrien	* archive.c removed loads of includes, and fixed bug where string
766160484Sobrien	table didn't have a null at the end.
766260484Sobrien
766360484Sobrien	* bfd.c fixed includes, added symbols argument to
766460484Sobrien	canonicalize_reloc entry point.
766560484Sobrien
766660484Sobrien	* libbfd.c fixed includes and added some lint patches.
766760484Sobrien
766860484Sobrien	* targets.c added both sorts of intel coff.
766960484Sobrien
767060484Sobrien	* b.out.c fixed included, changed was the canonical
767160484Sobrien	relocs were done.
767260484Sobrien
767360484Sobrien	* icoff.c added support for callj and big and little
767460484Sobrien	enidian tables.
767560484Sobrien
767660484Sobrien	* opncls.c added chmod+xing for files with EXEC_P set.
767760484Sobrien
767860484Sobrien	* sunos.c fixed includes. Changed default section
767960484Sobrien	alignement to words. Fixed relocation stuff to work with
768060484Sobrien	new scheme
768160484Sobrien
768260484Sobrien	* bfd.h various new types added, prototype for new
768360484Sobrien	reloc calls, changed bfd->iostream to a void *
768460484Sobrien	to including files don't need stdio.h.
768560484Sobrien
768660484Sobrien	* libcoff.h added conversion table to tie relocs to
768760484Sobrien	canonical symbols
768860484Sobrien
768960484Sobrien	* sysdep.h created
769060484Sobrien
769160484Sobrien	* coff-code.h fixed includes. Added code to support
769260484Sobrien	big and little endian formats. Various lints. Better
769360484Sobrien	processing of symbols. Changed reloc stuff to new
769460484Sobrien	order
769560484Sobrien
769660484Sobrien	* libbfd.h fixed includes
769760484Sobrien
769860484Sobrien
769960484SobrienMon Jan 21 11:53:51 PST 1991 steve@cygnus.com
770060484Sobrien
770160484Sobrien	* bfd.h	changed name of alignment entry in sec_struct to
770260484Sobrien	alignment_power, because of conflicting uses within bfd.
770360484Sobrien	Now it should be obvious that it's a 2**n alignment
770460484Sobrien	specifier. Removed start_pad, end_alignment, block, minsize,
770560484Sobrien	output_file_alignment, subsection_alignment and original_vma fields.
770660484Sobrien	Added align_power() macro. Fixed bfd_section_alignment
770760484Sobrien	acessor macros. Added bfd_symbol_same_target macro.
770860484Sobrien
770960484Sobrien	* b.out.c (b_out_write_object_contents) fixed to use
771060484Sobrien	new alignment member. Fixed (callj_callback) to use section
771160484Sobrien	relative symbols properly.
771260484Sobrien
771360484Sobrien	* sunos.c (sunos4_object_p) fixed to use new alignment_power.
771460484Sobrien	Fixed (translate_from_native_sym_flags) to correctly make
771560484Sobrien	symbols section relative.
771660484Sobrien
771760484Sobrien	* bfd.c (bfd_errmsg) fixed various enum cast problems.
771860484Sobrien	(bfd_make_section) took out initialization of obsolete members.
771960484Sobrien	(bfd_print_symbol_vandf) added
772060484Sobrien
772160484Sobrien	* opncls.c (bfd_create) created.
772260484Sobrien
772360484Sobrien	* coff-code.h (coff_new_section_hook) took away refs
772460484Sobrien	to obsolete members. (make_a_section_from_file) added
772560484Sobrien	conversion between alignment types. (coff_symbol_from)
772660484Sobrien	added. (coff_count_linenumbers) only counts linenumbers
772760484Sobrien	if symbol is of coff-type. (coff_mangle_symbols) only
772860484Sobrien	heavily mangles symbols if symbol is coff-type.
772960484Sobrien	(coff_write_symbols) various lints. (coff_write_object_contents)
773060484Sobrien	various lints and modification for alignment conversion.
773160484Sobrien	(coff_slurp_relocs) fixed for use with new asection shape.
773260484Sobrien
773360484SobrienSat Jan 19 16:10:42 PST 1991 steve@cygnus.com
773460484Sobrien
773560484Sobrien	* archive.c lots of lint
773660484Sobrien
773760484Sobrien	* b.out.c added callj relocation support, upgrated reloc howto.
773860484Sobrien	Fixed so that asymbol and reloc records are output
773960484Sobrien	correctly.
774060484Sobrien
774160484Sobrien	* bfd.c lots of lint, support for new bfd entry point
774260484Sobrien	bfd_print_symbol.
774360484Sobrien
774460484Sobrien	* bfd.h changed definition of asymbol to contain pointer to
774560484Sobrien	owning bfd, removed target dependencies.
774660484Sobrien
774760484Sobrien	* cache.c took out print statements, put in BFD_ASSERT calls.
774860484Sobrien
774960484Sobrien	* coff-code.h various lints, corrected linenumber output
775060484Sobrien	functionality. Added support for new style asymbols and
775160484Sobrien	bfd_print_symbol. Fixed so that asymbol and
775260484Sobrien	reloc records are handled correctly. Added timestamp.
775360484Sobrien
775460484Sobrien	* icoff.c Added support for new howto shape.
775560484Sobrien
775660484Sobrien	* liba.out.h Added support for new asymbol shape
775760484Sobrien
775860484Sobrien	* libbfd.c various lints
775960484Sobrien
776060484Sobrien	* libbfd.h various lints
776160484Sobrien
776260484Sobrien	* libcoff.h added support for new asymbol shape.
776360484Sobrien
776460484Sobrien	* sunos.c  various lints. Added support for new asymbol shape
776560484Sobrien	and bfd_print_symbol.
776660484Sobrien
776760484SobrienWed Jan 16 21:38:09 PST 1991 steve@cygnus.com
776860484Sobrien
776960484Sobrien	* b.out.c removed prototype of sunos4_ennativate_symtab, lots of
777060484Sobrien	pointer lint. Added support for callj relocation. Fixed bug where
777160484Sobrien	the last 32 bytes of the text section were overwritten by data. Fixed bug
777260484Sobrien	where archives of b.out didn't work due bfd_slurp_extended_name_table
777360484Sobrien	returning false.
777460484Sobrien
777560484Sobrien	* sunos.c added support for n_other field. Braced the howto table so
777660484Sobrien	that it won't be affected by any lengthing of the howto struct typedef.
777760484Sobrien	Various lints
777860484Sobrien
777960484Sobrien	* bfd.h added support for n_other field, added special_function
778060484Sobrien	reloc type, modified bfd_perform_relocation prototype. Added bfd_h_get_x
778160484Sobrien	macros.
778260484Sobrien
778360484Sobrien	* bfd.c upgraded bfd_perform_relocation, various lints.
778460484Sobrien
778560484SobrienWed Jan 16 01:55:53 1991  John Gilmore  (gnu at rtl)
778660484Sobrien
778760484Sobrien	* ChangeLog:  Started ChangeLog for BFD.
778860484Sobrien	* ToDo:  Create file for suggestions.
778960484Sobrien
779060484Sobrien	* Makefile:  Support easy loading into Saber C.
779160484Sobrien	Add dependencies for icoff.o and bcs88kcoff.o.
779260484Sobrien	Rename coff.c to coff-code.h.  Change callers.
779360484Sobrien
779460484Sobrien	* bfd.c (bfd_check_format):  Allow the check_format routines
779560484Sobrien	to return the desired target vector, rather than just a Boolean.
779660484Sobrien	bfd.h (bfd_check_format):  Change function pointer return type.
779760484Sobrien	archive.c (bfd_generic_archive_p):  change callee.
779860484Sobrien	b.out.c (b_out_little_object_p, b_out_big_object_p,
779960484Sobrien	b_out_real_object_p):  change callee.
780060484Sobrien	libbfd.c (_bfd_dummy_target):  Dummy routine replacing bfd_false
780160484Sobrien	in check_format transfer vectors that need a filler.
780260484Sobrien	libbfd.h (bfd_generic_archive_p, _bfd_dummy_target):  Fix decls.
780360484Sobrien	bcs88kcoff.c:  change callee.
780460484Sobrien	coff-code.h (coff_real_object_p, coff_big_object_p):  change callee.
780560484Sobrien	icoff.c:  change callee.
780660484Sobrien	sunos.c (sunos4_object_p, sunos4_core_file_p):  change callee.
780760484Sobrien
780860484Sobrien	* libbfd.c (zalloc):  It should actually zero the storage!
780960484Sobrien	This was commented out for some reason.
781060484Sobrien
781160484Sobrien	* libbfd.h:  Add malloc, xmalloc, memcpy, and fatal decls.
781260484Sobrien	This is so callers can avoid <stdlib.h> which doesn't exist
781360484Sobrien	on older systems.
781460484Sobrien
781560484Sobrien	* bfd.c (map_over_sections):  Add debugging code, since I
781660484Sobrien	noticed the section count for sunos core files was bad, but only
781760484Sobrien	GDB had detected the problem.
781860484Sobrien	(bfd_set_section_lineno_size, bfd_set_section_linenos,
781960484Sobrien	bfd_get_section_linenos):  Remove obsolete functions.
782060484Sobrien	(bfd_apply_relocations):  Use longs, not ints, for the math.
782160484Sobrien
782260484Sobrien	* bfd.h:  Declare enum boolean and struct bfd_target as well
782360484Sobrien	as typedefs for them.  Remove obsolete
782460484Sobrien	bfd_get_section_lineno_size.
782560484Sobrien
782660484Sobrien	* cache.c:  Make the "fdopen" support work.  Keep better track
782760484Sobrien	of how many files are open.  Centralize the opening of files
782860484Sobrien	and be sure bfd_open[rw] actually try to open the file.  Evade
782960484Sobrien	linked list initialization problems.
783060484Sobrien
783160484Sobrien	* b.out.c, coff-code.h, opncls.c, sunos.c:  lint.
783260484Sobrien
783360484Sobrien	* coff-code.h (coff_slurp_symbol_table):  Null-terminate symtab names.
783460484Sobrien
783560484Sobrien	* cplus-dem.c:  Delete file, since it is not part of BFD.
783660484Sobrien
783760484Sobrien	* opncls.c (bfd_openr):  Eliminate misplaced #if 0 code.
783860484Sobrien	(bfd_openr, bfd_openw):  Actually open the file, give error now.
783960484Sobrien
784060484Sobrien	* sunos.c (sunos4_core_file_p):  Set section count.
784160484Sobrien	(sunos4_set_section_linenos, stab_names, fprint_name):  Eliminiate
784260484Sobrien	obsolete definitions.
784360484Sobrien	(_write_symbol_table):  Initialize <idx> counter.
784460484Sobrien	(foop):  Eliminate debugging code.
784560484Sobrien
784660484SobrienLocal Variables:
784760484Sobrienmode: change-log
784860484Sobrienleft-margin: 8
784960484Sobrienfill-column: 74
785060484Sobrienversion-control: never
785160484SobrienEnd:
7852