darling-gdb/bfd/hosts
Ian Lance Taylor 4c3721d514 Extensive changes to move the bulk of the linker into BFD so that
more efficient backend code can be written for specific object
	files.  Only existing efficient backend is a.out.
	* seclet.c, seclet.h: Removed.
	* hash.c, linker.c, genlink.h: New files.
	* bfd-in.h: Removed bfd_error_vector.  Declared hash table
	structures and functions.
	(JUMP_TABLE): Removed bfd_seclet_link, added
	bfd_link_hash_table_create, bfd_link_add_symbols and
	bfd_final_link.
	* All backends: Changed accordingly.
	* bfd-in2.h: Rebuilt.
	* bfd.c (struct _bfd): Added link_next and archive_pass fields.
	Removed ld_symbols field.
	(bfd_nonrepresentable_section, bfd_undefined_symbol,
	bfd_reloc_value_truncated, bfd_reloc_is_dangerous,
	bfd_error_vector): Removed.
	(bfd_default_error_trap, bfd_error_trap,
	bfd_error_nonrepresentabltrap): Removed.
	(bfd_get_relocated_section_contents): Pass link_info.  Pass
	link_order instead of seclet.  Pass symbols.
	(bfd_relax_section): Pass link_info.
	(bfd_seclet_link): Removed.
	(bfd_link_hash_table_create, bfd_link_add_symbols,
	bfd_final_link): New macros.
	* libbfd-in.h: If __GNUC__ is defined and alloca is not, define
	alloca as __builtin_alloca.  Declare internal linking functions.
	* libbfd.h: Rebuilt.
	* libbfd.c (bfd_seek): Comment out fseek assertion.  It's worked
	for months.
	* reloc.c (reloc_howto_type): Added error_message argument to
	special_function field.  Changed all callers and all definitions.
	(bfd_get_reloc_size): Make argument a const pointer.
	(bfd_perform_relocation): Add error_message argument to hold
	string set if return value if bfd_reloc_dangerous.  Changed all
	callers.
	(_bfd_final_link_relocate, _bfd_relocate_contents): New functions.
	* section.c (asection): Renamed seclets_head and seclets_tail to
	link_order_head and link_order_tail.
	* targets.c (bfd_target): Replaced seclet argument with link_info
	and link_order and symbols arguments in
	bfd_get_relocated_section_contents.  Added symbols argument to
	bfd_relax_section.  Removed bfd_seclet_link.  Added
	bfd_link_hash_table_create, bfd_link_add_symbols and
	bfd_final_link.
	* libaout.h (struct aoutdata): Added external_syms,
	external_sym_count, external_strings, sym_hashes fields.
	(obj_aout_external_syms, obj_aout_external_sym_count,
	obj_aout_external_strings, obj_aout_sym_hashes): New accessor
	macros.
	(WRITE_HEADERS): Only output symbols if outsymbols is not NULL.
	* aoutx.h: Wrote new back end linker routines.
	(translate_to_native_sym_flags): Return boolean value.  Don't use
	bfd_error_vector.
	(NAME(aout,write_syms)): Return boolean value.  Check return value
	of translate_to_native_sym_flags and bfd_write.
	* aout-target.h (final_link_callback): New function.
	(MY_bfd_final_link): New function.
	* aout-adobe.c (aout_adobe_write_object_contents): Check return
	value of aout_32_write_syms.
	* hp300hpux.c (MY(write_object_contents)): Likewise.
	* i386lynx.c (WRITE_HEADERS): Likewise.
	* libaout.h (WRITE_HEADERS): Likewise.
	* bout.c: Changed functions to use link_info->callbacks rather
	than bfd_error_vector, and link_orders rather than seclets.
	* coff-alpha.c: Likewise.
	* coff-h8300.c: Likewise.
	* coff-h8500.c: Likewise.
	* coff-sh.c: Likewise.
	* coff-z8k.c: Likewise.
	* elf32-hppa.c: Likewise.
	* reloc16.c: Likewise.
	* coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Look
	up _gp in the hash table rather than in outsymbols.
	* coff-a29k.c (a29k_reloc): Pass errors back in new error_message
	argument rather than printing them.
	* coffcode.h (bfd_coff_reloc16_extra_cases): Take link_info and
	link_order arguments rather than seclet.  Changed all uses and
	definitions.
	(bfd_coff_reloc16_estimate): Pass link_info arguments.  Changed
	all uses and definitions.
	* libcoff.h: Rebuilt.
	* ecoff.c (ecoff_get_extr): If symbol is defined by linker, but
	not by ECOFF, make it scAbs.
	(ecoff_bfd_final_link): Renamed from ecoff_bfd_seclet_link and
	rewritten.
	* elf32-mips.c (mips_elf_final_link): Renamed from
	mips_elf_seclet_link and rewritten.
	* elf32-hppa.c (elf32_hppa_stub_description): Added link_info
	field.
	(new_stub, add_stub_by_name, hppa_elf_build_arg_reloc_stub,
	hppa_elf_build_long_branch_stub, hppa_look_for_stubs_in_section):
	Added link_info arguments.  Changed all callers.
	* elfcode.h (elf_slurp_symbol_table): Don't quit if outsymbols is
	not NULL.
	* oasys.c (oasys_write_sections): Return boolean value rather than
	using bfd_error_vector.
	(oasys_write_object_contents): Check return value of
	oasys_write_sections.
	* hosts/std-host.h: Don't declare qsort or strtol.
	* Makefile.in: Rebuild dependencies.
	(BFD_LIBS): Removed seclet.o.  Added hash.o and linker.o.
	(CFILES): Removed seclet.c.  Added hash.c and linker.c.
	(HFILES): Removed seclet.h.  Added genlink.h.
1993-12-30 19:56:50 +00:00
..
.Sanitize * lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc. 1993-11-17 01:11:30 +00:00
alphaosf.h * hosts/alphaosf.h (uint64_typeLOW, uint64_typeHIGH): Cast results 1993-12-01 19:51:19 +00:00
amix.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
apollo68.h remove inclusion of strings.h 1993-10-13 21:42:42 +00:00
apollov68.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
decstation.h Thu Aug 27 17:01:04 1992 Ian Lance Taylor (ian@cygnus.com) 1992-08-28 00:08:13 +00:00
delta68.h new file for delta 68 1993-07-02 15:05:47 +00:00
delta88.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
delta88v4.h * hosts/delta88v4.h: New for SVR4. 1993-09-02 06:06:40 +00:00
dgux.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
dose.h Make sure that "offsetof" is defined on all hosts, now that archive.c uses it. 1993-09-17 09:08:00 +00:00
dpx2.h new for dpx2 1993-07-11 22:58:00 +00:00
esix.h Yet another trad-core variant: 1993-07-26 22:53:02 +00:00
go32.h Make sure that "offsetof" is defined on all hosts, now that archive.c uses it. 1993-09-17 09:08:00 +00:00
harris.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
hp300.h Make sure that "offsetof" is defined on all hosts, now that archive.c uses it. 1993-09-17 09:08:00 +00:00
hp300bsd.h Added macros for the 'type' part of an fopen, freopen or fdopen. 1991-12-12 01:21:40 +00:00
hppabsd.h Make sure that "offsetof" is defined on all hosts, now that archive.c uses it. 1993-09-17 09:08:00 +00:00
hppahpux.h Make sure that "offsetof" is defined on all hosts, now that archive.c uses it. 1993-09-17 09:08:00 +00:00
i386aix.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
i386bsd.h * hosts/i386bsd.h: Conditionalize HOST_STACK_END_ADDR on __bsdi__. 1993-07-08 19:24:29 +00:00
i386lynx.h * lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc. 1993-11-17 01:11:30 +00:00
i386mach3.h new for mach 1993-08-17 22:50:20 +00:00
i386osf1mk.h * hosts/i386{mach3,osf1mk}.h: New files, for Mach hosting. 1993-08-18 00:54:48 +00:00
i386sco.h * Base use of sco-core on host, not target. 1993-08-11 15:56:14 +00:00
i386v4.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
i386v.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
irix3.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
irix4.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
lynx.h define FPRINTF_ALREADY_DECLARED 1993-11-21 21:28:01 +00:00
m68klynx.h * lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc. 1993-11-17 01:11:30 +00:00
miniframe.h add ct miniframe host support 1993-05-14 09:39:38 +00:00
mipsbsd.h changes from Ralph Campbell @ Pyramid for MIPS a.out (BSD 4.4) support 1993-02-01 21:35:16 +00:00
ncr3000.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
news-mips.h new for mips corefiles 1993-10-02 23:55:34 +00:00
riscos.h * hosts/riscos.h: New file. 1993-06-23 18:38:41 +00:00
rs6000.h Make sure that "offsetof" is defined on all hosts, now that archive.c uses it. 1993-09-17 09:08:00 +00:00
rtbsd.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
solaris2.h * config/solaris2.mh (HDEFINES): Remove -Dconst= 1993-12-03 23:42:59 +00:00
sparc-ll.h Make sure that "offsetof" is defined on all hosts, now that archive.c uses it. 1993-09-17 09:08:00 +00:00
sparc.h protect against multiple inclusions 1993-06-15 18:36:11 +00:00
sparclynx.h Modified to be based on lynx.h, like i386 and m68k versions. 1993-11-21 21:29:46 +00:00
std-host.h Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
stratus.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
sun3.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
symmetry.h * coffcode.h: Recognize I386PTXMAGIC. 1993-07-19 04:55:21 +00:00
sysv4.h Make sure that "offsetof" is defined on all hosts, now that archive.c uses it. 1993-09-17 09:08:00 +00:00
tahoe.h * hosts/h-hp300bsd.h, h-tahoe.h, h-vaxbsd.h, h-vaxult.h: 1992-01-31 07:59:13 +00:00
ultra3.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00
vaxbsd.h Fix core file stacks. 1992-01-31 09:21:14 +00:00
vaxult2.h (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>) 1993-03-03 05:56:52 +00:00
vaxult.h Added macros for the 'type' part of an fopen, freopen or fdopen. 1991-12-12 01:21:40 +00:00
we32k.h * archive.c: Define offsetof here. 1993-09-27 23:27:46 +00:00