You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.2 KiB
29 lines
1.2 KiB
diff -rupN --no-dereference binutils-2.39/bfd/elf.c binutils-2.39-new/bfd/elf.c
|
|
--- binutils-2.39/bfd/elf.c 2022-07-08 11:46:47.000000000 +0200
|
|
+++ binutils-2.39-new/bfd/elf.c 2022-10-30 12:41:29.952023763 +0100
|
|
@@ -824,7 +824,13 @@ setup_group (bfd *abfd, Elf_Internal_Shd
|
|
}
|
|
}
|
|
|
|
- if (elf_group_name (newsect) == NULL)
|
|
+ if (elf_group_name (newsect) == NULL
|
|
+ /* OS specific sections might be in a group (eg ARM's ARM_EXIDX section)
|
|
+ but they will not have been added to the group because they do not
|
|
+ have contents that the ELF code in the BFD library knows how to
|
|
+ process. This is OK though - we rely upon the target backends to
|
|
+ handle these sections for us. */
|
|
+ && hdr->sh_type < SHT_LOOS)
|
|
{
|
|
/* xgettext:c-format */
|
|
_bfd_error_handler (_("%pB: no group info for section '%pA'"),
|
|
@@ -927,7 +933,8 @@ _bfd_elf_setup_sections (bfd *abfd)
|
|
else if (idx->shdr->bfd_section)
|
|
elf_sec_group (idx->shdr->bfd_section) = shdr->bfd_section;
|
|
else if (idx->shdr->sh_type != SHT_RELA
|
|
- && idx->shdr->sh_type != SHT_REL)
|
|
+ && idx->shdr->sh_type != SHT_REL
|
|
+ && idx->shdr->sh_type < SHT_LOOS)
|
|
{
|
|
/* There are some unknown sections in the group. */
|
|
_bfd_error_handler
|