Message ID | Z_eavanXGLVFjDjq@squeak.grove.modra.org |
---|---|
State | New |
Headers | |
Series | PR32858 ld segfault on fuzzed object | |
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_binutils_build--master-arm | fail | Patch failed to apply |
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | fail | Patch failed to apply |
Commit Message
diff --git a/bfd/elflink.c b/bfd/elflink.c index a76e8e38da7..549b7b7dd92 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -14408,7 +14408,8 @@ elf_gc_sweep (bfd *abfd, struct bfd_link_info *info) if (o->flags & SEC_GROUP) { asection *first = elf_next_in_group (o); - o->gc_mark = first->gc_mark; + if (first != NULL) + o->gc_mark = first->gc_mark; } if (o->gc_mark)