Skip to content

Commit 0d6fe26

Browse files
clazissClaudiu Zissulescu
authored andcommitted
binutils: Relaxation fix in mainline
1 parent 2bee21e commit 0d6fe26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bfd/elflink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13584,7 +13584,7 @@ elf_gc_mark_debug_section (asection *sec ATTRIBUTE_UNUSED,
1358413584
/* Return the local debug definition section. */
1358513585
asection *isec = bfd_section_from_elf_index (sec->owner,
1358613586
sym->st_shndx);
13587-
if ((isec->flags & SEC_DEBUGGING) != 0)
13587+
if (isec && (isec->flags & SEC_DEBUGGING) != 0)
1358813588
return isec;
1358913589
}
1359013590

0 commit comments

Comments
 (0)