Lints for bfd_reloc_code_type->bfd_reloc_code_real_type, and
correct calling of howto special functions and fixes from Raeburn
for gas<>bfdness
* archures.c: nuke bfd_reloc_code_type
* bout.c, cpu-h8300.c, coff-i960.c, coff-m88k.c: special function lint
* coffcode.h (styp_to_sec_flags): STYP_INFO is marked as
SEC_NEVER_LOAD, various other bfdgas newness
* reloc.c->libbfd.h: change protype of bfd_default_reloc_type_lookup
* targets.c: change jump table vector to above
its prototype will be included in libbfd.h. Change result type
to struct * (rather than equivalent typedef) so it can be used in
the prototype, where they typedef won't be known.
* libbfd.h: Updated version.
Correct misconception that there can be only one symbol table.
Only call elf_slurp_symbol_table on the full symbol table, not
the dynamic one which is only a subset of the full one.
(The bfd library was slurping in the first ELF symbol table it
found and then ignoring any others. For dynamically linked
executables, this happened to be the dynamic symbol table, which
is a subset of the full symbol table and only contains the
symbols that need to be used in dynamic linking.)
* don't set/adjust section file positions or vmas more than once
* use correct page size and segment size when calculating them
* deal with some variations in a.out implementations
Tested on sun4 and sun4->sun3 so far, will be testing further but
needed to get wider exposure&testing. See ChangeLog for details.
Also:
* coffcode.h (coff_write_relocs): Write out swapped reloc, not
pre-swapped version.
* hosts/sparc.h (abort, exit): Hide these names if compiling with
gcc version 2, to avoid warnings.
* configure.in: Rewrite target parsing to use simple format.
Handle sparc-sun-solaris2 configuration.
* aout64.h: Avoid ANSI C brain death warning.
* elf.c: Avoid trigraph (???) or /* in comments.
elf_core_tdata_struct into a single common struct. Core files
wouldn't have worked at all without this.
(bfd_elf_find_section): New function for GDB's undercover use
to find string sections that BFD hides from it.
(elf_get_str_section): Avoid multiple alloc&reads for same data; lint.
(elf_object_p, elf_core_file_p): Allocate internal file header
storage dynamically.
* bfd.c (union {...} tdata): Remove elf_core_tdata_struct.
* demo64.c: Prevent "empty translation unit" warnings from idiots.
* working reloc lookup support
* better support for creation of COFF files from scratch
* misc doc changes, macro tweaks, "const" additions, typo fixes, etc.
* one or two ugly kludges that should get cleaned up (but what's one
or two more, in BFD?)
See ChangeLog for details.
* coff-a29k.c (perform_reloc): fix bug in jmp/call evaluation
* coff-h8300.c (reloc_processing): all relocs are relative to
section start.
* opncls.c: don't use fdopen on DOS systems
short patches from Glenn Kasten (glenn@ready.com)
* target.c: enabled oasys support
* oasys.c: Insert . when UNDERSCORE_HACK is enabled,
fix problem where a relocation which crossed a modification byte
boundary did not work. Fix problem where a relocation near the end
of a data record did not work.
Major change; changed calling convention for
bfd_get_relocated_section_contents so that caller allocates
memory for section data.
* coffcode.h (bfd_coff_get_relocated_section_contents), reloc.c,
seclet.c, targets.c, bfd.c: reflect new convention.
* coffcode.h (styp_to_sec_flags): if styp_flags is not a special
case, then use reasonable default values for SEC_* flags.
* ieee.c: if some places where null pointers were used instead of &bfd_abs_section.
* configure.in: tandem target is st2000
* coff-m68k.c: rename static howto_table to global
m68kcoff_howto_table.
* bout.c: remove unnecessary abort
bout.c (b_out_squirt_out_relocs): treat abs sumbols the right way.
* reloc.c (bfd_perform-relocation): don't relocate refs to
absolute symbols if doing a partial link.
structure before initializing the fields that are used, so that the unused
fields are in a known state. Two of these structures are memcmp'd so
any fields not explicitly initialized must be set to a known state.