Add elfutils-0.170-new-notes-hack.patch

This commit is contained in:
Mark Wielaard 2018-02-17 01:13:46 +01:00
parent c39ad136ab
commit bdf00824d9
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,25 @@
diff --git a/libebl/eblcheckreloctargettype.c b/libebl/eblcheckreloctargettype.c
index e0d57c1..068ad8f 100644
--- a/libebl/eblcheckreloctargettype.c
+++ b/libebl/eblcheckreloctargettype.c
@@ -46,6 +46,7 @@ ebl_check_reloc_target_type (Ebl *ebl, Elf64_Word sh_type)
case SHT_INIT_ARRAY:
case SHT_FINI_ARRAY:
case SHT_PREINIT_ARRAY:
+ case SHT_NOTE:
return true;
default:
diff --git a/src/elflint.c b/src/elflint.c
index df1b3a0..f4d82d9 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -4329,6 +4329,8 @@ section [%2d] '%s': unknown core file note type %" PRIu32
case NT_GNU_HWCAP:
case NT_GNU_BUILD_ID:
case NT_GNU_GOLD_VERSION:
+ case NT_GNU_PROPERTY_TYPE_0:
+ case 256:
break;
case 0:

View File

@ -26,6 +26,7 @@ Patch2: elfutils-0.170-sys-ptrace.patch
Patch3: elfutils-0.170-m68k-packed-not-aligned.patch
Patch4: elfutils-0.170-core-pid.patch
Patch5: elfutils-0.170-elf_sync.patch
Patch6: elfutils-0.170-new-notes-hack.patch
Requires: elfutils-libelf%{depsuffix} = %{version}-%{release}
Requires: elfutils-libs%{depsuffix} = %{version}-%{release}
@ -183,6 +184,7 @@ cp %SOURCE1 tests/
%patch3 -p1 -b .m68k_packed
%patch4 -p1 -b .core_pid
%patch5 -p1 -b .elf_sync
%patch6 -p1 -b .notes_hack
find . -name \*.sh ! -perm -0100 -print | xargs chmod +x
@ -321,6 +323,7 @@ fi
* Fri Feb 16 2018 Mark Wielaard <mjw@fedoraproject.org>
- Add elfutils-0.170-core-pid.patch
- Add elfutils-0.170-elf_sync.patch
- Add elfutils-0.170-new-notes-hack.patch
* Thu Feb 15 2018 Mark Wielaard <mjw@fedoraproject.org> - 0.170-8
- Add elfutils-0.170-sys-ptrace.patch