/* BFD backend for hp-ux 9000/300
- Copyright (C) 1990, 91, 94, 95, 97, 1999 Free Software Foundation, Inc.
+ Copyright 1990, 1991, 1993, 1994, 1995, 1997, 2000, 2001
+ Free Software Foundation, Inc.
Written by Glenn Engel.
This file is part of BFD, the Binary File Descriptor library.
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/*
-
hpux native ------------> | |
| hp300hpux bfd | ----------> hpux w/gnu ext
hpux w/gnu extension ----> | |
-
Support for the 9000/[34]00 has several limitations.
1. Shared libraries are not supported.
2. The output format from this bfd is not usable by native tools.
#include "aoutx.h"
+static const bfd_target * MY (callback) PARAMS ((bfd *));
+static boolean MY (write_object_contents) PARAMS ((bfd *));
+static void convert_sym_type PARAMS ((struct external_nlist *, aout_symbol_type *, bfd *));
+
+boolean MY (slurp_symbol_table) PARAMS ((bfd *));
+void MY (swap_std_reloc_in) PARAMS ((bfd *, struct hp300hpux_reloc *, arelent *, asymbol **, bfd_size_type));
+boolean MY (slurp_reloc_table) PARAMS ((bfd *, sec_ptr, asymbol **));
+long MY (get_symtab) PARAMS ((bfd *, asymbol **));
+long MY (get_symtab_upper_bound) PARAMS ((bfd *));
+long MY (canonicalize_reloc) PARAMS ((bfd *, sec_ptr, arelent **, asymbol **));
+
/* Since the hpux symbol table has nlist elements interspersed with
strings and we need to insert som strings for secondary symbols, we
give ourselves a little extra padding up front to account for
bfd_default_set_arch_mach (abfd, DEFAULT_ARCH, 0);
#endif
-
if (obj_aout_subformat (abfd) == gnu_encap_format)
{
/* The file offsets of the relocation info */
file_ptr text_end;
memset (&exec_bytes, 0, sizeof (exec_bytes));
-#if CHOOSE_RELOC_SIZE
- CHOOSE_RELOC_SIZE (abfd);
-#else
+
obj_reloc_entry_size (abfd) = RELOC_STD_SIZE;
-#endif
if (adata (abfd).magic == undecided_magic)
NAME (aout,adjust_sizes_and_vmas) (abfd, &text_size, &text_end);
}
-
/*
DESCRIPTION
Swaps the information in an executable header taken from a raw
while (0);
}
-
/* The hp symbol table is a bit different than other a.out targets. Instead
of having an array of nlist items and an array of strings, hp's format
has them mixed together in one structure. In addition, the strings are
return false;
}
-
sym_end = (struct external_nlist *) (((char *) syms) + symbol_bytes);
/* first, march thru the table and figure out how many symbols there are */
return true;
}
-
-
void
MY (swap_std_reloc_in) (abfd, bytes, cache_ptr, symbols, symcount)
bfd *abfd;
count = reloc_size / each_size;
-
reloc_cache = (arelent *) bfd_zalloc (abfd, (size_t) (count * sizeof
(arelent)));
if (!reloc_cache && count != 0)
bfd_get_symcount (abfd));
}
-
bfd_release (abfd, relocs);
asect->relocation = reloc_cache;
asect->reloc_count = count;
return true;
}
-
/************************************************************************/
/* The following functions are identical to functions in aoutx.h except */
/* they refer to MY(func) rather than NAME(aout,func) and they also */
return (bfd_get_symcount (abfd) + 1) * (sizeof (aout_symbol_type *));
}
-
-
-
long
MY (canonicalize_reloc) (abfd, section, relptr, symbols)
bfd *abfd;
return section->reloc_count;
}
-
#include "aout-target.h"