diff options
author | Steve Chamberlain <sac@cygnus> | 1992-02-27 19:22:41 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-02-27 19:22:41 +0000 |
commit | e7b4046cbfb5d78d6e41864da763c8ffaf09f23e (patch) | |
tree | b82e328ab0a7c79ab11d8ef5930084f53006cb17 /bfd/aoutx.h | |
parent | 3e6e09c068dfd31facc4a9f964dfa76f9ba9e3cd (diff) | |
download | gdb-e7b4046cbfb5d78d6e41864da763c8ffaf09f23e.zip gdb-e7b4046cbfb5d78d6e41864da763c8ffaf09f23e.tar.gz gdb-e7b4046cbfb5d78d6e41864da763c8ffaf09f23e.tar.bz2 |
Don't core dump if no output section available for a symbol
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 4fc8cd7..95c1a92 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -951,8 +951,19 @@ DEFUN(translate_to_native_sym_flags,(sym_pointer, cache_ptr, abfd), sym_pointer->e_type[0] = (N_UNDF | N_EXT); } else { - bfd_error_vector.nonrepresentable_section(abfd, - bfd_get_output_section(cache_ptr)->name); + if (cache_ptr->section->output_section) + { + + bfd_error_vector.nonrepresentable_section(abfd, + bfd_get_output_section(cache_ptr)->name); + } + else + { + bfd_error_vector.nonrepresentable_section(abfd, + cache_ptr->section->name); + + } + } /* Turn the symbol from section relative to absolute again */ |