From 24a1f6a05f4dbef1d9e296beb3eecd4b32e693d2 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 15 Feb 1994 07:48:56 +0000 Subject: [PATCH] * som.c (som_slurp_symbol_table): Do not die if a BFD doesn't have any symbols. --- bfd/ChangeLog | 3 +++ bfd/som.c | 8 ++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7f5bfff2d3a..ab1bb8fa09d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ Mon Feb 14 22:55:20 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + * som.c (som_slurp_symbol_table): Do not die if a BFD doesn't + have any symbols. + * Finish basic read-write support for SOM archive libraries. Bugs surely remain as this hasn't been tested all that much. * som.c (SOM_LST_HASH_SIZE, SOM_LST_MODULE_LIMIT): Define. diff --git a/bfd/som.c b/bfd/som.c index 758f3065bd0..3dbfc9f26b4 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; -- 2.30.2