aboutsummaryrefslogtreecommitdiff
path: root/bfd/som.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-02-15 07:48:56 +0000
committerJeff Law <law@redhat.com>1994-02-15 07:48:56 +0000
commit24a1f6a05f4dbef1d9e296beb3eecd4b32e693d2 (patch)
tree4e10d2a86ab3de3edff46acfec41cfe51082ff98 /bfd/som.c
parent6e033f8639db0aab74ccf8059254b1dafefe40ea (diff)
downloadgdb-24a1f6a05f4dbef1d9e296beb3eecd4b32e693d2.zip
gdb-24a1f6a05f4dbef1d9e296beb3eecd4b32e693d2.tar.gz
gdb-24a1f6a05f4dbef1d9e296beb3eecd4b32e693d2.tar.bz2
* som.c (som_slurp_symbol_table): Do not die if a BFD doesn't
have any symbols.
Diffstat (limited to 'bfd/som.c')
-rw-r--r--bfd/som.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/bfd/som.c b/bfd/som.c
index 758f306..3dbfc9f 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -3375,13 +3375,9 @@ som_slurp_symbol_table (abfd)
if (obj_som_symtab (abfd) != NULL)
return true;
- /* Sanity checking. Make sure there are some symbols and that
- we can read the string table too. */
+ /* Special case. This is *not* an error. */
if (symbol_count == 0)
- {
- bfd_error = no_symbols;
- return false;
- }
+ return true;
if (!som_slurp_string_table (abfd))
return false;