old-cross-binutils/bfd
Ken Raeburn d24928c05b * elfcode.h (elf_build_phdrs): Unused function deleted.
(bfd_shdr_from_section): Ditto.
(write_relocs): Don't change section contents for addend.
(elf_locate_sh): Return type is now always elf_internal_shdr, since the other
types were really aliases for this type anyways.  Don't compile this function,
since it is static and doesn't appear to be used in this file.
(sym_is_global): Return non-zero for weak symbols.  Abort if sec ptr is null.
(swap_out_syms): Reorder tests so function symbols can be weak.
(elf_slurp_symbol_table): Don't use BSF_EXPORT.
(elf_slurp_reloca_table): Make RELOC_PROCESSING section smaller by
extracting out some common code.  Abort if BFD section symbol has null name.
(elf_slurp_reloc_table): Translate ELF section symbols into BFD section
symbols.  Don't read section contents to fill in addend field.

* Merged from OSF:

Tue Jun 15 14:38:32 1993  Michael Meissner  (meissner@osf.org)

* libelf.h (struct Elf_Sym_Extra): New structure to contain ELF
specific information for a symbol.  Put in elf_sym_num, which
gives the external symbol number in the elf object file, since
local symbols must come before global symbols.
(elf_sym_extra): New macro.
(elf_symtab_map): Delete, in favor of using Elf_Sym_Extra.
* elfcode.h (elf_map_symbols): Use Elf_Sym_Extra to map internal
symbol number to external number.  Store the address of the
Elf_Sym_Extra field for the symbol in the udata field.
(elf_write_object_contents): Use Elf_Sym_Extra to map out symbols.

Sun Jun 20 16:30:11 1993  Michael Meissner  (meissner@osf.org)

* elfcode.h (elf_obj_tdata): Add field to count the size of the
array of pointers to section symbols.
(elf_map_symbols): Bump the max index of the section symbols so
that we don't overwrite memory.  Store the max index into the
elf_obj_tdata field.

Sat Jun 19 10:12:27 1993  Michael Meissner  (meissner@osf.org)

* elfcode.h (elf_obj_tdata): Add pointer to an array of pointers
to the section symbols we created.  Remove unused field internal_syms.
(elf_map_symbols): Fill in array of pointers to section symbols.  Only create
section symbols for sections that have SEC_ALLOC set, and have non-zero size.
(elf_symbol_from_bfd_symbol): If udata is NULL, and this is a section symbol,
look up the section in the list of section symbols, and set the udata pointer
appropriately.  Otherwise, if udata is still NULL, fail an assertion, and use
0, instead of dropping core.
1993-08-20 22:21:49 +00:00
..
doc include elf doc 1993-08-09 20:31:30 +00:00
hosts * hosts/i386{mach3,osf1mk}.h: New files, for Mach hosting. 1993-08-18 05:10:45 +00:00
.Sanitize * hosts/i386{mach3,osf1mk}.h: New files, for Mach hosting. 1993-08-18 05:10:45 +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 Use aout-target.h more extensively. 1991-12-18 23:01:48 +00:00
aout-target.h * aout-target.h, aoutf1.h, trad-core.c, coffcode.h, libaout.h: 1992-11-28 13:00:18 +00:00
aout32.c Initial revision 1991-05-18 02:58:02 +00:00
aout64.c Initial revision 1991-05-18 02:58:02 +00:00
aoutf1.h * aoutf1.h: Add definition of MACHTYPE_OK. 1993-07-09 05:47:07 +00:00
aoutx.h * archures.c (bfd_default_set_arch_mach): Set bfd_error on 1993-08-17 19:24:21 +00:00
archive.c Wed Dec 30 12:46:30 1992 Ian Lance Taylor (ian@cygnus.com) 1992-12-30 20:49:21 +00:00
archures.c * archures.c (bfd_default_set_arch_mach): Set bfd_error on 1993-08-17 19:24:21 +00:00
bfd-in.h rewrite comment -- bfd-in2.h is generated too 1993-08-05 18:27:16 +00:00
bfd-in2.h regenerated 1993-08-09 19:25:56 +00:00
bfd.c With these changes, the binutils mostly work on the Alpha, except for 1993-08-04 01:37:25 +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 If fclose fails, set bfd_error to system_call_error. 1992-10-23 21:25:38 +00:00
ChangeLog * elfcode.h (elf_build_phdrs): Unused function deleted. 1993-08-20 22:21:49 +00:00
coff-a29k.c * reloc.c (enum complain_overflow): New enumeration with the 1993-07-22 18:03:51 +00:00
coff-alpha.c * ecoff.c: New file for generic ECOFF functions. 1993-08-03 20:22:47 +00:00
coff-h8300.c Some of these are guesses, if you know different, just yell. 1992-10-08 16:02:09 +00:00
coff-h8500.c * coff-h8500.c (reloc_processing, rtype2howto): New relocation 1993-07-13 19:08:25 +00:00
coff-i386.c Some of these are guesses, if you know different, just yell. 1992-10-08 16:02:09 +00:00
coff-i960.c Some of these are guesses, if you know different, just yell. 1992-10-08 16:02:09 +00:00
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 * ecoff.c: New file for generic ECOFF functions. 1993-08-03 20:22:47 +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-h8500.c (rtype2howto): Do an fprintf to stderr rather than 1993-08-04 16:36:10 +00:00
coffgen.c * coff-h8500.c (rtype2howto): Do an fprintf to stderr rather than 1993-08-04 16:36:10 +00:00
coffswap.h These changes cut the size of libbfd.a on a Sun4 by about 11%. 1993-01-08 21:11:21 +00:00
config.bfd * config.bfd (mips-*-elfl*, mips-*-elf*): New targets, using 1993-08-20 19:19:51 +00:00
configure.bat Name change for DJ 1992-02-21 22:54:39 +00:00
configure.host * hosts/i386{mach3,osf1mk}.h: New files, for Mach hosting. 1993-08-18 00:54:48 +00:00
configure.in * config.bfd (mips-*-elfl*, mips-*-elf*): New targets, using 1993-08-20 19:19:51 +00:00
COPYING Initial revision 1991-03-21 21:11:25 +00:00
core.c * aoutx.h, archive.c, archures.c, bfd.c, cache.c, coff-m88k.c, 1991-12-08 00:56:56 +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 * Makefile.in, archures.c, configure.in, cpu-hppa.c, hppa.c, libhppa.h, 1992-06-19 22:24:13 +00:00
cpu-i386.c Initial revision 1991-10-01 03:43:11 +00:00
cpu-i960.c Initial revision 1991-10-01 03:43:11 +00:00
cpu-m88k.c Initial revision 1991-10-01 03:43:11 +00:00
cpu-rs6000.c Initial revision 1991-10-25 07:16:56 +00:00
cpu-vax.c Initial revision 1991-10-01 03:43:11 +00:00
cpu-we32k.c Add preliminary support for the we32k (AT&T 3b2 family). 1992-08-27 22:09:30 +00:00
cpu-z8k.c Add basic support for the z8k: 1992-08-25 22:04:53 +00:00
ctor.c minor doc tweaks 1993-08-20 19:10:58 +00:00
demo64.c Initial revision 1991-05-18 02:58:02 +00:00
ecoff.c * coff-aplha.alpha.c (alpha_howto_table, alpha_finish_reloc, 1993-08-12 22:15:25 +00:00
ecoffswap.h * ecoffswap.h (ecoff_swap_{hdr,ext}_{in,out}): Use signed 1993-08-11 13:42:17 +00:00
elf.c * elf.c, elfcode.h, libelf.h: Serious reorganization. 1993-07-19 19:12:59 +00:00
elf32-hppa.c Use new size-independent elf internal data structures. 1993-06-22 03:07:39 +00:00
elf32-hppa.h elfcode.h 1993-06-02 21:24:35 +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 * cache.c, bfd-in.h: New function bfd_make_cacheable. 1993-06-18 16:13:10 +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 (elfXX_bed): Initialize maxpagesize from ELF_MAXPAGESIZE. 1993-07-26 18:46:37 +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 (elfXX_bed): Initialize maxpagesize from ELF_MAXPAGESIZE. 1993-07-26 18:46:37 +00:00
elf64.c begin reorganization to support 64-bit elf 1993-05-25 18:50:49 +00:00
elfcode.h * elfcode.h (elf_build_phdrs): Unused function deleted. 1993-08-20 22:21:49 +00:00
filemode.c * all files: update copyright notices for GPL version 2. 1991-07-31 16:58:05 +00:00
format.c Mon Aug 19 13:48:22 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 1991-08-19 20:52:38 +00:00
gen-aout.c Initial revision 1991-12-18 23:01:07 +00:00
host-aout.c * host-aout.c: Change TARGETNAME to "a.out" to be compatible with 1992-01-30 19:42:52 +00:00
hp300bsd.c * hp300bsd.c (new), config/mt-hp300bsd: Make hp300bsd 1992-02-17 20:04:21 +00:00
hp300hpux.c * aoutx.h (translate_from_native_sym_flags): Removed statep 1993-07-07 18:05:06 +00:00
hppa.c * hpux-core.c: New file; backend for HP/UX style core files. 1993-07-22 19:39:41 +00:00
hppa_stubs.h new file for hppa linker support 1993-06-02 20:24:22 +00:00
i386aout.c Linker now works for go32; other changes keep it from breaking the other 1992-10-09 02:41:30 +00:00
i386bsd.c * aout-target.h (callback): Don't define this function if it won't be used. 1992-10-09 01:39:06 +00:00
i386mach3.c new for mach 1993-08-17 22:50:20 +00:00
ieee.c Stricter prototyping, to force type conversions between 64-bit target and 1993-07-06 20:20:31 +00:00
init.c Initial revision 1991-10-01 03:43:11 +00:00
libaout.h comment branches in ARCH_SIZE test 1993-06-16 01:51:56 +00:00
libbfd-in.h * libbfd.c: Add signed versions of bfd_{h_,}{get,put}_signed_<size>. 1993-04-17 00:39:36 +00:00
libbfd.c (COERCE64): Avoid out-of-range numbers 1993-05-25 19:48:12 +00:00
libbfd.h regenerated 1993-06-22 03:22:54 +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 * elfcode.h (elf_build_phdrs): Unused function deleted. 1993-08-20 22:21:49 +00:00
libhppa.h * hppa.c [HOST_HPPABSD]: Use hpux-style core files. 1993-07-14 20:35:18 +00:00
libieee.h Undo Bothner changes that depend on pointer representation. 1991-05-29 00:38:52 +00:00
libnlm.h * libnlm.h (nlm_backend_data): Added nlm_mangle_relocs. 1993-08-04 20:25:53 +00:00
liboasys.h Minor cleanup to make it compile on DECstation. 1991-05-02 21:22:43 +00:00
Makefile.in * Makefile.in (BFD_LIBS, ALL_MACHINES, BFD32_BACKENDS, BFD64_BACKENDS, 1993-08-19 21:07:50 +00:00
mipsbsd.c * aout-adobe.c, cpu-h8300.c, mipsbsd.c, srec.c: lint -Wall. 1993-04-15 04:52:32 +00:00
newsos3.c Include bfd.h before sysdep.h, so ansidecl and PROTO() get defined first. 1991-10-11 10:11:37 +00:00
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-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 (nlm_backend_data): Added nlm_mangle_relocs. 1993-08-04 20:25:53 +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 * nlmcode.h (nlm_get_reloc_upper_bound): Test return value 1993-08-05 17:22:58 +00:00
oasys.c * bfd-in.h (JUMP_TABLE): Added bfd_reloc_type_lookup and 1993-02-23 20:24:06 +00:00
opncls.c Stricter prototyping, to force type conversions between 64-bit target and 1993-07-06 20:20:31 +00:00
PORTING add pointer to config/README 1993-08-07 22:45:02 +00:00
README.hppaelf checkpoint hppa-elf code from Utah (Sanitize out until it's cleaned up & working) 1993-04-28 22:55:25 +00:00
reloc.c add i386-elf relocs (from Meissner) 1993-08-05 18:24:21 +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
sco-core.c Move printing from bfd to nm and add POSIX and SysV formats. 1993-05-21 21:06:25 +00:00
seclet.c These changes make shared library support work again on 386 COFF 1993-04-06 00:53:41 +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 * aoutx.h (translate_from_native_sym_flags): Now handles indirect 1993-03-30 17:40:51 +00:00
srec.c (srec_write_symbols): Use sprintf_vma, in case bfd_vma is too wide for 1993-06-22 02:58:25 +00:00
stab-syms.c Initial revision 1991-11-22 04:59:56 +00:00
sunos.c * sunos.c: (choose_reloc_size) added: (sunos4_callback) calls 1991-05-13 21:02:56 +00:00
syms.c bfd.c: use `<<foo>>' instead of @file{foo} 1992-01-29 01:04:30 +00:00
targets.c targets.c (target_vector): Remove hp300bsd_vec due to clash with sunos_big_vec. 1993-08-19 19:11:30 +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 * elfcode.h: Use memset not bzero. 1993-07-11 23:23:20 +00:00
VERSION bump version number 1993-05-17 19:03:44 +00:00

HPPA/ELF README file:

	HP PA-RISC support was contributed by the Center for Software Science
	at the University of Utah.

This is the status of the hppa/elf code in bfd 2.0 as of January 29, 1993:

1. It generates correct ELF files for all of the input I've given it
so far.  I've used this version of libbfd.a to build an hppa/elf
version of gas 1.36 (emits SOM).  I've run files as large as 200K
lines of assembly through it.

2. ELF executables that are created *always* have 3 program header
table entries.  This is due to the exec() support we have in the
kernel for ELF executables.  It expects *exactly* 3 program header
table entries -- one for text, one for data, and one for bss.
Currently, there's no support for any other types of program header
table entries.