aboutsummaryrefslogtreecommitdiff
path: root/bfd/som.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-02-26 00:39:03 +0000
committerJeff Law <law@redhat.com>1994-02-26 00:39:03 +0000
commitd643978558037f6c74cb1180732283994fe83504 (patch)
tree71d8f8f87ae394f133e5071a9e066fbe676ebba3 /bfd/som.c
parent531a5bd1896a9dff68428dc252cb4602ab1bdc02 (diff)
downloadgdb-d643978558037f6c74cb1180732283994fe83504.zip
gdb-d643978558037f6c74cb1180732283994fe83504.tar.gz
gdb-d643978558037f6c74cb1180732283994fe83504.tar.bz2
* som.c (som_get_symtab_upper_bound): Use "sizeof (asymbol *)"
not "sizeof (som_symbol_type *)". * elfcode.h (elf_get_symtab_upper_bound): Use "sizeof (asymbol *)" not "sizeof (asymbol"). Opps.
Diffstat (limited to 'bfd/som.c')
-rw-r--r--bfd/som.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/som.c b/bfd/som.c
index 4a4fc01..df78f00 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -3190,7 +3190,8 @@ som_bfd_derive_misc_symbol_info (abfd, sym, info)
for undefined or common symbols, but the HP linker will
choke if it's not set to some "reasonable" value. We
use zero as a reasonable value. */
- if (sym->section == &bfd_com_section || sym->section == &bfd_und_section)
+ if (sym->section == &bfd_com_section || sym->section == &bfd_und_section
+ || sym->section == &bfd_abs_section)
info->symbol_info = 0;
/* For all other symbols, the symbol_info field contains the
subspace index of the space this symbol is contained in. */
@@ -3334,7 +3335,7 @@ som_get_symtab_upper_bound (abfd)
if (!som_slurp_symbol_table (abfd))
return 0;
- return (bfd_get_symcount (abfd) + 1) * (sizeof (som_symbol_type *));
+ return (bfd_get_symcount (abfd) + 1) * (sizeof (asymbol *));
}
/* Convert from a SOM subspace index to a BFD section. */