old-cross-binutils/bfd
Ian Lance Taylor 69645d10fb Add new style linker support to COFF backend. a29k only for now.
* cofflink.c: New file.
	* libcoff-in.h: Include bfdlink.h.
	(obj_coff_external_syms, obj_coff_strings): Define accessor macro.
	(obj_coff_sym_hashes): Define accessor macro.
	(struct coff_tdata): Add fields external_syms, strings, and
	sym_hashes.
	(struct coff_link_hash_entry): Define.
	(struct coff_link_hash_table): Define.
	(coff_link_hash_lookup, coff_link_hash_traverse): Define.
	(coff_hash_table): Define.
	(_bfd_coff_link_hash_table_create): Declare.
	(_bfd_coff_link_add_symbols, _bfd_coff_final_link): Declare.
	* coffcode.h (bfd_coff_backend_data): Add fields _bfd_relsz,
	_bfd_coff_swap_reloc_in, _bfd_coff_sym_is_global,
	_bfd_coff_compute_section_file_positions,
	_bfd_coff_relocate_section.
	(bfd_coff_relsz, bfd_coff_swap_reloc_in): Define.
	(bfd_coff_sym_is_global): Define.
	(bfd_coff_compute_section_file_positions): Define.
	(bfd_coff_relocate_section): Define.
	(coff_mkobject_hook): Initialize obj_raw_syment_count and
	obj_conv_table_size.
	(coff_compute_section_file_positions): Set target_index of all
	sections.  Set output_has_begun field.
	(coff_write_object_contents): Don't set target_index; now done by
	coff_compute_section_file_positions.  Remove obsolete handling of
	scn_base and data_base.  Don't bother to check that target_index
	is positive, since it always is.  Remove use of pad, which is
	always zero.  Check obj_raw_syment_count, not bfd_get_symcount,
	for the number of symbols, but only write them out if
	bfd_get_symcount is non-zero.
	(coff_slurp_symbol_table): Use obj_raw_syment_count, not
	bfd_get_symcount for the number of symbols.  Don't set
	obj_conv_table_size.
	(coff_sym_is_global): New static function or macro.
	(coff_slurp_reloc_table): Call coff_swap_reloc_in, not
	bfd_swap_reloc_in.
	(coff_bfd_link_hash_table_create): If coff_relocate_section is
	defined, define as _bfd_coff_link_hash_table_create.
	(coff_bfd_link_add_symbols): Similar change.
	(coff_bfd_final_link): Similar change.
	(coff_relocate_section): Define as NULL if not defined.
	(bfd_coff_std_swap_table): Initialize new fields.
	* coffgen.c (coff_real_object_p): Don't set obj_raw_syment_count
	and obj_conv_table_size here.
	(coff_count_linenumbers): Reindent.  If bfd_get_symcount is zero,
	add up the line numbers from the sections.
	(coff_write_symbols): Don't set bfd_get_symcount.
	(coff_pointerize_aux): Don't pointerize a nonpositive x_endndx
	field.
	(coff_get_normalized_symtab): Use obj_raw_syment_count, not
	bfd_get_symcount.
	(coff_print_symbol): If auxp->fix_end, print x_endndx value.
	* coffswap.h (coff_swap_reloc_in): Rename from bfd_swap_reloc_in.
	Reindent.  Change argument type to  PTR.
	* coff-a29k.c (coff_a29k_relocate_section): New static function.
	(coff_relocate_section): Define.
	* configure.in (a29kcoff_big_vec): Compile cofflink.o.
	* coff-alpha.c (alpha_ecoff_backend_data): Initialize new fields.
	* coff-mips.c (mips_ecoff_backend_data): Likewise.
	* libcoff.h: Rebuilt.
	* Makefile.in: Rebuilt dependencies.
	(BFD32_BACKENDS): Add cofflink.o.
	(CFILES): Add cofflink.c.
1994-09-06 19:28:55 +00:00
..
doc * bfd.texinfo: Added Hash Tables node. 1994-01-03 16:48:24 +00:00
hosts * configure.host (sparc-*-solaris2*): Use solaris2, not sysv4. 1994-08-12 15:28:19 +00:00
.Sanitize Add new style linker support to COFF backend. a29k only for now. 1994-09-06 19:28:55 +00:00
aix386-core.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
aout-adobe.c * All backends: Added BFD_JUMP_TABLE_DYNAMIC to target vector. 1994-04-07 01:58:27 +00:00
aout-encap.c * aout-encap.c (ARCH): Don't define. Obsolete. 1994-07-12 15:46:32 +00:00
aout-target.h * aout-target.h (MY_zmagic_contiguous): Define as 0 if not already 1994-08-15 18:12:05 +00:00
aout0.c For PR 1927. 1994-05-04 19:37:36 +00:00
aout32.c
aout64.c
aoutf1.h * aoutf1.h (aout_32_sunos4_write_object_contents): Handle a 1994-06-13 18:25:12 +00:00
aoutx.h * aoutx.h (add_to_stringtab): Check for _bfd_stringtab_add error 1994-08-25 18:56:11 +00:00
archive.c * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add _update_armap_timestamp. 1994-08-22 21:20:12 +00:00
archures.c doc cleanup 1993-11-05 19:51:52 +00:00
bfd-in.h * libelf.h (struct elf_obj_tdata): New field dt_needed_name. 1994-06-16 00:01:32 +00:00
bfd-in2.h * reloc.c (enum bfd_reloc_code_real): Rewrote definition to use new "chew" 1994-09-02 18:21:41 +00:00
bfd.c * targets.c (bfd_target): Add _bfd_free_cached_info field. 1994-04-01 17:55:47 +00:00
bout.c * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
cache.c Modified Files: 1994-02-28 23:49:08 +00:00
cf-i386lynx.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
cf-m68klynx.c Fix up namespace handling in last patch. 1994-08-04 19:59:27 +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 Add new style linker support to COFF backend. a29k only for now. 1994-09-06 19:28:55 +00:00
ChangeLog.1 Split ChangeLog into two. 1993-11-23 08:06:20 +00:00
ChangeLog.mpw * ecoffswap.h (ecoff_swap_pdr_in, ecoff_swap_pdr_in) [MPW_C]: 1994-06-30 00:20:40 +00:00
cisco-core.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
coff-a29k.c Add new style linker support to COFF backend. a29k only for now. 1994-09-06 19:28:55 +00:00
coff-alpha.c Add new style linker support to COFF backend. a29k only for now. 1994-09-06 19:28:55 +00:00
coff-apollo.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
coff-go32.c * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
coff-h8300.c * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
coff-h8500.c * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
coff-i386.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
coff-i960.c * coff-i960.c (coff_i960_relocate): Rewrote to change relocs 1994-08-03 20:51:59 +00:00
coff-m68k.c * coff-m68k.c (_bfd_coff_m68k_reloc_type_lookup): New function. 1994-08-04 16:38:05 +00:00
coff-m88k.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
coff-mips.c Add new style linker support to COFF backend. a29k only for now. 1994-09-06 19:28:55 +00:00
coff-rs6000.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
coff-sh.c * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
coff-sparc.c * coff-sparc.c (SWAP_OUT_RELOC_EXTRA): Define to clear the r_spare 1994-06-15 19:54:15 +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-we32k.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
coff-z8k.c * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
coffcode.h Add new style linker support to COFF backend. a29k only for now. 1994-09-06 19:28:55 +00:00
coffgen.c Add new style linker support to COFF backend. a29k only for now. 1994-09-06 19:28:55 +00:00
cofflink.c Add new style linker support to COFF backend. a29k only for now. 1994-09-06 19:28:55 +00:00
coffswap.h * coffcode.h (bfd_coff_backend_data): Added new arguments to 1994-02-01 17:11:56 +00:00
config.bfd * configure.host, config.bfd: Change i[34]86 to i[345]86. 1994-08-24 16:41:48 +00:00
configure.bat changes from gas-2.3/binutils-2.4 dist (details in branch log msgs, changelogs) 1994-05-27 16:58:05 +00:00
configure.host * configure.host, config.bfd: Change i[34]86 to i[345]86. 1994-08-24 16:41:48 +00:00
configure.in Add new style linker support to COFF backend. a29k only for now. 1994-09-06 19:28:55 +00:00
COPYING
core.c * Most files: 1994-03-15 15:13:13 +00:00
cpu-a29k.c * Most files: 1994-03-15 15:13:13 +00:00
cpu-alpha.c
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
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 * Most files: 1994-03-15 15:13:13 +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 * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
ecofflink.c * coff-mips.c (mips_relocate_section): When relaxing, adjust local 1994-04-15 18:35:32 +00:00
ecoffswap.h * ecoff.c (ecoff_swap_tir_in): Change input argument to const. 1994-06-20 18:26:55 +00:00
elf.c * aoutx.h (aout_link_check_ar_symbols): When changing a symbol to 1994-07-22 18:53:23 +00:00
elf32-hppa.c * bfd-in2.h: Rebuilt. 1994-05-16 19:34:13 +00:00
elf32-hppa.h * bfd-in2.h: Rebuilt. 1994-05-16 19:34:13 +00:00
elf32-i386.c * aoutx.h (aout_link_check_ar_symbols): When changing a symbol to 1994-07-22 18:53:23 +00:00
elf32-mips.c * ecoff.c, libecoff.h, ecoffswap.h, coff-alpha.c, coff-mips.c, 1994-06-20 19:39:15 +00:00
elf32-sparc.c * aoutx.h (aout_link_check_ar_symbols): When changing a symbol to 1994-07-22 18:53:23 +00:00
elf32-target.h Add support for creating shared libraries under i386 ELF and SPARC 1994-07-26 17:18:37 +00:00
elf32.c
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 Add support for creating shared libraries under i386 ELF and SPARC 1994-07-26 17:18:37 +00:00
elf64.c begin reorganization to support 64-bit elf 1993-05-25 18:50:49 +00:00
elfcode.h * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add soname 1994-08-30 16:04:40 +00:00
filemode.c
format.c * format.c (bfd_check_format_matches): Put the new entry in the 1994-01-26 21:53:55 +00:00
gen-aout.c
genlink.h Added new files for linker support, and removed old seclet files. 1993-12-30 20:03:34 +00:00
hash.c Make all callers of malloc or realloc (including via obstacks) 1994-02-12 00:45:54 +00:00
host-aout.c
hp300bsd.c
hp300hpux.c * hp300hpux.c (MY_final_link_callback): Define to avoid warning. 1994-06-20 15:11:34 +00:00
hppa_stubs.h * Support code for enabling the new style linker for PA ELF. 1994-07-01 19:00:17 +00:00
hppabsd-core.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
hpux-core.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
i386aout.c
i386bsd.c
i386dynix.c * i386dynix.c, config/i386-dynix.mt: New files, handling Dynix 1994-03-30 08:53:45 +00:00
i386linux.c * i386linux.c (linux_link_create_dynamic_sections): Create section 1994-08-16 04:15:50 +00:00
i386lynx.c * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
i386mach3.c * i386mach3.c (N_TXTADDR): Don't define after all. 1993-12-31 21:11:49 +00:00
i386os9k.c * All backends: Added BFD_JUMP_TABLE_DYNAMIC to target vector. 1994-04-07 01:58:27 +00:00
ieee.c * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
init.c doc cleanup 1993-11-05 19:51:52 +00:00
irix-core.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
libaout.h * libaout.h (struct aoutdata): Add q_magic_format to subformat 1994-06-14 22:04:54 +00:00
libbfd-in.h * hash.c: Copy string hash functions from aoutx.h. 1994-08-22 16:36:52 +00:00
libbfd.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
libbfd.h * reloc.c (enum bfd_reloc_code_real): Rewrote definition to use new "chew" 1994-09-02 18:21:41 +00:00
libcoff-in.h Add new style linker support to COFF backend. a29k only for now. 1994-09-06 19:28:55 +00:00
libcoff.h Add new style linker support to COFF backend. a29k only for now. 1994-09-06 19:28:55 +00:00
libecoff.h * coffcode.h (styp_to_sec_flags): Add name argument. If no flags 1994-08-15 16:26:06 +00:00
libelf.h Add support for creating shared libraries under i386 ELF and SPARC 1994-07-26 17:18:37 +00:00
libhppa.h Fix typo in last check-in. 1994-05-16 16:35:36 +00:00
libieee.h
libnlm.h * libnlm.h (struct nlm_obj_tdata): Add nlm_cygnus_section_hdr 1994-04-21 16:13:01 +00:00
liboasys.h
linker.c linker.c (FAIL): Undefine macro before defining as enum. 1994-06-23 00:10:06 +00:00
lynx-core.c * Makefile.in (OPTIONAL_BACKENDS): Add lynx-core.o. 1993-09-22 14:54:50 +00:00
m68klynx.c * aout-encap.c (ARCH): Don't define. Obsolete. 1994-07-12 15:46:32 +00:00
m88kmach3.c Mach 3 support. 1994-07-05 21:50:43 +00:00
makefile.dos changes from gas-2.3/binutils-2.4 dist (details in branch log msgs, changelogs) 1994-05-27 16:58:05 +00:00
Makefile.in Makefile.in (ALL_MACHINES): ADded cpu-arm.o. 1994-09-06 18:03:03 +00:00
mipsbsd.c * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
mpw-config.in * mpw-config.in: Use sed instead of StreamEdit, add definitions 1994-06-26 23:00:20 +00:00
mpw-make.in * mpw-config.in: Use sed instead of StreamEdit, add definitions 1994-06-26 23:00:20 +00:00
netbsd386.c * aout-encap.c (ARCH): Don't define. Obsolete. 1994-07-12 15:46:32 +00:00
netbsd532.c Update to ns32k support, from Ian Dall (dall@hfrd.dsto.gov.au). 1994-08-09 01:06:29 +00:00
newsos3.c
nlm-target.h * All backends: Added BFD_JUMP_TABLE_DYNAMIC to target vector. 1994-04-07 01:58:27 +00:00
nlm.c * configure.in (*-*-netware, i[34]86-*-netware): New configs. 1993-07-20 04:45:13 +00:00
nlm32-alpha.c An annoying typo (faflse instead of false). Oopsie. 1994-03-28 23:03:21 +00:00
nlm32-i386.c * libbfd.c (bfd_read): Set bfd_error as appropriate for a short 1994-03-26 18:28:29 +00:00
nlm32-ppc.c start-sanitize-powerpc-netware 1994-04-20 18:38:22 +00:00
nlm32-sparc.c * nlm32-i386.c (nlm_i386_read_import): Null terminate the symbol 1994-03-31 19:05:03 +00:00
nlm32.c * configure.in (*-*-netware, i[34]86-*-netware): New configs. 1993-07-20 04:45:13 +00:00
nlm64.c * configure.in (*-*-netware, i[34]86-*-netware): New configs. 1993-07-20 04:45:13 +00:00
nlmcode.h * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
nlmswap.h * nlmswap.h: Declare functions. 1993-12-02 02:19:25 +00:00
oasys.c * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
opncls.c Make all callers of malloc or realloc (including via obstacks) 1994-02-12 00:45:54 +00:00
osf-core.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
pc532-mach.c NS32K changes from Ian Dall. 1994-07-14 21:35:54 +00:00
PORTING add pointer to config/README 1993-08-07 22:45:02 +00:00
ptrace-core.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
reloc.c * reloc.c (enum bfd_reloc_code_real): Rewrote definition to use new "chew" 1994-09-02 18:21:41 +00:00
reloc16.c * bout.c (calljx_callback, callj_callback): Use get_value to get 1994-01-24 18:05:08 +00:00
rs6000-core.c * coff-rs6000.c: Add Lynx core file support, use HOST_AIX, where 1994-02-15 01:28:16 +00:00
section.c * Most files: 1994-03-15 15:13:13 +00:00
som.c * som.c (som_write_fixups, case R_ENTRY): Handle case where no 1994-08-31 03:30:39 +00:00
som.h * som.h (R_HPPA_COMPLEX): Define. 1994-07-05 01:19:31 +00:00
sparclynx.c * sparclynx.c: Setup appropriate macros to enable core file 1994-01-22 20:27:55 +00:00
srec.c * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
stab-syms.c
sunos.c * sunos.c (sunos_add_one_symbol): Treat a common symbol from a 1994-06-17 18:47:50 +00:00
syms.c * Most files: 1994-03-15 15:13:13 +00:00
targets.c unsanitize v9 1994-06-15 22:10:50 +00:00
tekhex.c * Many files: change all bfd_target vectors to be const. Change 1994-06-20 21:55:45 +00:00
TODO make target selection fully configurable 1993-08-07 22:38:22 +00:00
trad-core.c * targets.c (bfd_target): Rearranged fields in target vector. 1994-04-06 22:00:40 +00:00
VERSION * Makefile.in (diststuff): New target. 1993-11-15 20:10:49 +00:00