11 Star 0 Fork 5

src-openEuler / mingw-binutils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
binutils-special-sections-in-groups.patch 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
yinhongchang 提交于 2024-02-05 17:21 . update version to 2.37
diff -rupN --no-dereference binutils-2.37/bfd/elf.c binutils-2.37-new/bfd/elf.c
--- binutils-2.37/bfd/elf.c 2021-07-08 13:37:19.000000000 +0200
+++ binutils-2.37-new/bfd/elf.c 2021-07-24 21:59:16.679826669 +0200
@@ -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
1
https://gitee.com/src-openeuler/mingw-binutils.git
git@gitee.com:src-openeuler/mingw-binutils.git
src-openeuler
mingw-binutils
mingw-binutils
master

搜索帮助