diff options
author | Jeff Law <law@redhat.com> | 1994-02-26 00:39:03 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1994-02-26 00:39:03 +0000 |
commit | d643978558037f6c74cb1180732283994fe83504 (patch) | |
tree | 71d8f8f87ae394f133e5071a9e066fbe676ebba3 /bfd/som.c | |
parent | 531a5bd1896a9dff68428dc252cb4602ab1bdc02 (diff) | |
download | gdb-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. */ |