old-cross-binutils/bfd
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
..
doc include elf doc 1993-08-09 20:31:30 +00:00
hosts Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
.Sanitize New files for preliminary Alpha NetWare support. 1993-12-02 01:46:53 +00:00
aix386-core.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
aout-adobe.c * aout-adobe.c, cpu-h8300.c, mipsbsd.c, srec.c: lint -Wall. 1993-04-15 04:52:32 +00:00
aout-encap.c
aout-target.h Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
aout32.c
aout64.c
aoutf1.h Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
aoutx.h Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
archive.c doc cleanup 1993-11-05 19:51:52 +00:00
archures.c doc cleanup 1993-11-05 19:51:52 +00:00
bfd-in.h Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
bfd-in2.h Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
bfd.c fix mistakes in last change 1993-11-05 20:39:26 +00:00
bout.c * bfd-in.h (JUMP_TABLE): Added bfd_reloc_type_lookup and 1993-02-23 20:24:06 +00:00
cache.c doc cleanup 1993-11-05 19:51:52 +00:00
cf-m68klynx.c A number of minor Lynx-related changes, plus basic Sparc Lynx support. 1993-10-29 02:01:43 +00:00
cf-sparclynx.c A number of minor Lynx-related changes, plus basic Sparc Lynx support. 1993-10-29 02:01:43 +00:00
ChangeLog Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
ChangeLog.1 Split ChangeLog into two. 1993-11-23 08:06:20 +00:00
coff-a29k.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
coff-alpha.c * ecoff.c: New file for generic ECOFF functions. 1993-08-03 20:22:47 +00:00
coff-h8300.c gcc -Wall lint: 1993-10-28 20:36:48 +00:00
coff-h8500.c * coff-h8500.c (reloc_processing, rtype2howto): New relocation 1993-07-13 19:08:25 +00:00
coff-i386.c coff-i386.c (i3coff_object_p): Now static. 1993-10-13 19:17:05 +00:00
coff-i960.c
coff-m68k.c * coff-m68k.c (m68k_howto2rtype): Make arg CONST to match callers. 1993-07-20 23:20:36 +00:00
coff-m88k.c * coff-m88k.c (howto_table): Corrected bitsize for R_PCR26L from 1993-07-15 20:06:41 +00:00
coff-mips.c * coff-alpha.c: Implemented reloc handling for the linker, made 1993-10-19 19:41:44 +00:00
coff-rs6000.c * aout-adobe.c, aoutf1.h, archive.c, bout.c, coff-rs6000.c, 1992-10-15 09:00:09 +00:00
coff-sh.c * coff-h8500.c (reloc_processing, rtype2howto): New relocation 1993-07-13 19:08:25 +00:00
coff-u68k.c * Rename for DOS uniqueness: coff-m68k-un.c -> coff-u68k.c 1993-07-20 21:45:32 +00:00
coff-z8k.c These changes cut the size of libbfd.a on a Sun4 by about 11%. 1993-01-08 21:11:21 +00:00
coffcode.h (coff_write_relocs) [SWAP_OUT_RELOC_OFFSET]: Copy addend to r_offset field. 1993-12-21 17:41:45 +00:00
coffgen.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
coffswap.h * coffswap.h: (bfd_swap_reloc_in): a symndx is signed. 1993-10-07 19:24:22 +00:00
config.bfd handle sparc*-*-coff* 1993-12-01 22:26:06 +00:00
configure.bat
configure.host * hosts/delta88v4.h: New for SVR4. 1993-09-02 06:06:40 +00:00
configure.in handle sparccoff_vec 1993-12-01 22:27:03 +00:00
COPYING
core.c more doc cleanups 1993-11-06 04:10:25 +00:00
cpu-a29k.c Insert copyright notices in all BFD files that need them. 1992-10-15 10:59:13 +00:00
cpu-alpha.c Support for the alpha 1993-04-24 02:10:09 +00:00
cpu-h8300.c * bfd-in2.h, archures.c (bfd_mach_h8300[h]): new defines. 1993-06-08 19:15:35 +00:00
cpu-h8500.c H8/500 support 1993-02-04 20:59:55 +00:00
cpu-hppa.c
cpu-i386.c
cpu-i960.c
cpu-m88k.c
cpu-rs6000.c
cpu-vax.c
cpu-we32k.c
cpu-z8k.c
ctor.c doc cleanup 1993-11-05 19:51:52 +00:00
demo64.c
dep-in.sed Make "make dep" easier to work with. Updated lots of dependencies. 1993-10-13 19:04:08 +00:00
ecoff.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
ecofflink.c New file to hold ECOFF linking routines used by both ECOFF and MIPS ELF. 1993-11-24 07:18:44 +00:00
ecoffswap.h * ecoffswap.h (ecoff_swap_{hdr,ext}_{in,out}): Use signed 1993-08-11 13:42:17 +00:00
elf.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
elf32-hppa.c * elf32-hppa.c (hppa_elf_gen_reloc_type): Handle 'T' field 1993-12-14 07:36:15 +00:00
elf32-hppa.h More patches from Jeff Law, plus a little cleanup of my own. 1993-08-28 00:10:54 +00:00
elf32-i386.c * coff-h8500.c (rtype2howto): Do an fprintf to stderr rather than 1993-08-04 16:36:10 +00:00
elf32-mips.c * reloc.c (enum bfd_reloc_code_real): Added 1993-11-01 21:17:31 +00:00
elf32-sparc.c * elf32-sparc.c (elf_sparc_howto_table): Don't use "^&" before 1993-07-20 20:26:51 +00:00
elf32-target.h Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
elf32.c hppa support, initial linker support 1993-04-29 15:48:35 +00:00
elf64-gen.c * Rename elf{32,64}-generic.c to *-gen.c for 14 char filenames. 1993-07-17 01:28:11 +00:00
elf64-sparc.c * elf32-sparc.c (elf_sparc_howto_table): Don't use "^&" before 1993-07-20 20:26:51 +00:00
elf64-target.h Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
elf64.c begin reorganization to support 64-bit elf 1993-05-25 18:50:49 +00:00
elfcode.h * elfcode.h (map_program_segments): Restore check of file_size != 1993-11-24 07:31:02 +00:00
filemode.c
format.c doc cleanup 1993-11-05 19:51:52 +00:00
gen-aout.c
host-aout.c
hp300bsd.c
hp300hpux.c * aoutx.h (translate_from_native_sym_flags): Removed statep 1993-07-07 18:05:06 +00:00
hppa_stubs.h Fri Dec 3 09:55:17 1993 Pete Hoogenboom (hoogen@cs.utah.edu) 1993-12-05 03:41:25 +00:00
hppabsd-core.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
hpux-core.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
i386aout.c
i386bsd.c
i386lynx.c * configure.in: i386lynx_coff_vec requires coff-i386lynx.o. 1993-10-01 21:42:59 +00:00
i386mach3.c new for mach 1993-08-17 22:50:20 +00:00
ieee.c gcc -Wall lint: 1993-10-28 20:36:48 +00:00
init.c doc cleanup 1993-11-05 19:51:52 +00:00
irix-core.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
libaout.h Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
libbfd-in.h Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
libbfd.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
libbfd.h Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
libcoff-in.h Mon Jan 11 18:32:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 1993-01-12 00:38:59 +00:00
libcoff.h * libcoff.h (obj_raw_syment_coun): New macro. 1993-02-23 06:50:49 +00:00
libecoff.h * ecoff.c: New file for generic ECOFF functions. 1993-08-03 20:22:47 +00:00
libelf.h Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
libhppa.h * libhppa.h: Restore #undefs of e_fsel and other e_* symbols. 1993-08-31 17:11:46 +00:00
libieee.h
libnlm.h * libnlm.h (struct nlm_backend_data): New fields 1993-12-02 02:22:35 +00:00
liboasys.h
lynx-core.c * Makefile.in (OPTIONAL_BACKENDS): Add lynx-core.o. 1993-09-22 14:54:50 +00:00
m68klynx.c * lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc. 1993-11-17 01:11:30 +00:00
Makefile.in added coff-sparc.c to CFILES, rebuilt dependencies 1993-12-21 17:27:20 +00:00
mipsbsd.c * aout-adobe.c, cpu-h8300.c, mipsbsd.c, srec.c: lint -Wall. 1993-04-15 04:52:32 +00:00
netbsd386.c gcc -Wall lint: 1993-10-28 20:36:48 +00:00
newsos3.c
nlm-target.h * nlm{32,64}-target.h: Remove. 1993-07-22 23:09:07 +00:00
nlm.c * configure.in (*-*-netware, i[34]86-*-netware): New configs. 1993-07-20 04:45:13 +00:00
nlm32-alpha.c New files for preliminary Alpha NetWare support. 1993-12-02 01:46:53 +00:00
nlm32-gen.c * nlm32-i386.c: New file. First cut at i386 NLM code. 1993-07-30 22:32:09 +00:00
nlm32-i386.c * libnlm.h (struct nlm_backend_data): New fields 1993-12-02 02:22:35 +00:00
nlm32-sparc.c * libnlm.h (struct nlm_backend_data): New fields 1993-12-02 02:22:35 +00:00
nlm32.c * configure.in (*-*-netware, i[34]86-*-netware): New configs. 1993-07-20 04:45:13 +00:00
nlm64-gen.c * nlm32-i386.c: New file. First cut at i386 NLM code. 1993-07-30 22:32:09 +00:00
nlm64.c * configure.in (*-*-netware, i[34]86-*-netware): New configs. 1993-07-20 04:45:13 +00:00
nlmcode.h * libnlm.h (struct nlm_backend_data): New fields 1993-12-02 02:22:35 +00:00
nlmswap.h * nlmswap.h: Declare functions. 1993-12-02 02:19:25 +00:00
oasys.c gcc -Wall lint: 1993-10-28 20:36:48 +00:00
opncls.c doc cleanup 1993-11-05 19:51:52 +00:00
osf-core.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
PORTING add pointer to config/README 1993-08-07 22:45:02 +00:00
ptrace-core.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
reloc.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
reloc16.c These changes cut the size of libbfd.a on a Sun4 by about 11%. 1993-01-08 21:11:21 +00:00
seclet.c * libbfd.c (bfd_write): If not everything is written out, set 1993-10-25 20:09:46 +00:00
seclet.h * bfd-in.h, bfd.c, libbfd.h, reloc.c, seclet.h, section.c, 1992-11-05 13:17:38 +00:00
section.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
som.c * elf32-hppa.c (hppa_elf_gen_reloc_type): Handle 'T' field 1993-12-14 07:36:15 +00:00
som.h * som.h (struct som_symbol): Add new fields to hold additional 1993-11-12 23:08:13 +00:00
srec.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
stab-syms.c
sunos.c
syms.c doc cleanup 1993-11-05 19:51:52 +00:00
targets.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
tekhex.c * bfd.c: Use right name for tekhex tdata struct. 1992-12-17 08:42:31 +00:00
TODO make target selection fully configurable 1993-08-07 22:38:22 +00:00
trad-core.c Extensive changes to move the bulk of the linker into BFD so that 1993-12-30 19:56:50 +00:00
VERSION * Makefile.in (diststuff): New target. 1993-11-15 20:10:49 +00:00