forked from Imagelibrary/binutils-gdb
Support debuginfo files with empty group sections.
PR 29532 bfd * elf.c (setup_group): Do not return false if there is no group information available. bionutils* objcopy.c (setup_section): Leave group sections intact when creating separate debuginfo files.
This commit is contained in:
@@ -830,7 +830,11 @@ setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect)
|
||||
/* xgettext:c-format */
|
||||
_bfd_error_handler (_("%pB: no group info for section '%pA'"),
|
||||
abfd, newsect);
|
||||
return false;
|
||||
/* PR 29532: Return true here, even though the group info has not been
|
||||
read. Separate debug info files can have empty group sections, but
|
||||
we do not want this to prevent them from being loaded as otherwise
|
||||
GDB will not be able to use them. */
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user