X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=binutils%2Fstabs.c;h=bf536075607889ae97f967b2919f0dab5018c9a6;hb=dcd9adc5cbac756507eb5da65a4f9cf3edb8fc93;hp=807ca1e3c4ab2d59fb65043ae6c4340c3180db50;hpb=81db3241f2c888c4fae1884444953085be224815;p=binutils-gdb.git diff --git a/binutils/stabs.c b/binutils/stabs.c index 807ca1e3c4a..bf536075607 100644 --- a/binutils/stabs.c +++ b/binutils/stabs.c @@ -449,7 +449,6 @@ parse_stab (void *dhandle, void *handle, int type, int desc, bfd_vma value, info->file_types = ((struct stab_types **) xmalloc (sizeof *info->file_types)); info->file_types[0] = NULL; - info->so_string = NULL; /* Now process whatever type we just got. */ @@ -3326,6 +3325,9 @@ pop_bincl (struct stab_handle *info) return info->main_filename; info->bincl_stack = o->next_stack; + if (o->file >= info->files) + return info->main_filename; + o->file_types = info->file_types[o->file]; if (info->bincl_stack == NULL)