Skip to content

Commit a23bf9b

Browse files
clazissClaudiu Zissulescu
authored and
Claudiu Zissulescu
committed
binutils: Relaxation fix in mainline
1 parent cb1efea commit a23bf9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bfd/elflink.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -13580,7 +13580,7 @@ elf_gc_mark_debug_section (asection *sec ATTRIBUTE_UNUSED,
1358013580
/* Return the local debug definition section. */
1358113581
asection *isec = bfd_section_from_elf_index (sec->owner,
1358213582
sym->st_shndx);
13583-
if ((isec->flags & SEC_DEBUGGING) != 0)
13583+
if (isec && (isec->flags & SEC_DEBUGGING) != 0)
1358413584
return isec;
1358513585
}
1358613586

0 commit comments

Comments
 (0)