stages: Do not provide .Info documents to speed up the installation a bit
[dragora.git] / patches / binutils / 2.38 / binutils-special-sections-in-groups.patch
blob7de5a93f6164492be280ea08453181213e3ba5fd
1 --- binutils.orig/bfd/elf.c 2018-10-19 11:42:10.107277490 +0100
2 +++ binutils-2.31.1/bfd/elf.c 2018-10-19 11:44:33.607105801 +0100
3 @@ -830,7 +830,13 @@ setup_group (bfd *abfd, Elf_Internal_Shd
7 - if (elf_group_name (newsect) == NULL)
8 + if (elf_group_name (newsect) == NULL
9 + /* OS specific sections might be in a group (eg ARM's ARM_EXIDX section)
10 + but they will not have been added to the group because they do not
11 + have contents that the ELF code in the BFD library knows how to
12 + process. This is OK though - we rely upon the target backends to
13 + handle these sections for us. */
14 + && hdr->sh_type < SHT_LOOS)
16 /* xgettext:c-format */
17 _bfd_error_handler (_("%pB: no group info for section '%pA'"),
18 @@ -936,7 +942,8 @@ _bfd_elf_setup_sections (bfd *abfd)
19 else if (idx->shdr->bfd_section)
20 elf_sec_group (idx->shdr->bfd_section) = shdr->bfd_section;
21 else if (idx->shdr->sh_type != SHT_RELA
22 - && idx->shdr->sh_type != SHT_REL)
23 + && idx->shdr->sh_type != SHT_REL
24 + && idx->shdr->sh_type < SHT_LOOS)
26 /* There are some unknown sections in the group. */
27 _bfd_error_handler