From c53934057a84e8210d7561970de1a21cfd38dab3 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Mon, 3 Jun 2019 19:24:08 +0200 Subject: [PATCH] 0.176-3 - Update elfutils-0.176-elf-update.patch --- elfutils-0.176-elf-update.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/elfutils-0.176-elf-update.patch b/elfutils-0.176-elf-update.patch index f11f13c..501c103 100644 --- a/elfutils-0.176-elf-update.patch +++ b/elfutils-0.176-elf-update.patch @@ -650,3 +650,15 @@ diff -ru elfutils-0.176.orig/tests/Makefile.in elfutils-0.176/tests/Makefile.in -rm -f ./$(DEPDIR)/elfshphehdr.Po -rm -f ./$(DEPDIR)/elfstrmerge.Po -rm -f ./$(DEPDIR)/elfstrtab.Po +diff --git a/tests/elfcopy.c b/tests/elfcopy.c +index d457bad..4542222 100644 +--- a/tests/elfcopy.c ++++ b/tests/elfcopy.c +@@ -225,6 +225,7 @@ copy_elf (const char *in, const char *out, bool use_mmap, bool reverse_offs) + && shdr.sh_addralign == 1 + && last_shdr.sh_type != SHT_NOBITS + && shdr.sh_type != SHT_NOBITS ++ && last_shdr.sh_offset + last_shdr.sh_size == shdr.sh_offset + && (phnum == 0 + || ((shdr.sh_flags & SHF_ALLOC) == 0 + && (last_shdr.sh_flags & SHF_ALLOC) == 0)))