diff options
-rw-r--r-- | bfd/dwarf1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/dwarf1.c b/bfd/dwarf1.c index c851f67..9046100 100644 --- a/bfd/dwarf1.c +++ b/bfd/dwarf1.c @@ -510,7 +510,8 @@ _bfd_dwarf1_find_nearest_line (bfd *abfd, return false; msec = bfd_get_section_by_name (abfd, ".debug"); - if (! msec) + if (! msec + || (msec->flags & SEC_HAS_CONTENTS) == 0) /* No dwarf1 info. Note that at this point the stash has been allocated, but contains zeros, this lets future calls to this function fail quicker. */ |