diff --git a/SOURCES/elfutils-dts9-armhfp.patch b/SOURCES/elfutils-dts9-armhfp.patch new file mode 100644 index 0000000..9e797cb --- /dev/null +++ b/SOURCES/elfutils-dts9-armhfp.patch @@ -0,0 +1,32 @@ +diff -Naurp a/backends/Makefile.am b/backends/Makefile.am +--- a/backends/Makefile.am 2019-06-13 12:19:49.078487313 +0000 ++++ b/backends/Makefile.am 2019-06-13 12:21:44.137496575 +0000 +@@ -99,7 +99,7 @@ csky_SRCS = csky_attrs.c csky_init.c csk + csky_regs.c csky_initreg.c csky_corenote.c + + libebl_backends_a_CFLAGS = -fPIC $(AM_CFLAGS) +-libebl_backends_a_SOURCES = $(i386_SRCS) $(x86_64_SRCS) \ ++libebl_backends_a_SOURCES = $(i386_SRCS) $(x86_64_SRCS) $(arm_SRCS) \ + $(ia64_SRCS) $(aarch64_SRCS) $(ppc_SRCS) \ + $(ppc64_SRCS) $(s390_SRCS) \ + $(bpf_SRCS) +diff -Naurp a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c +--- a/libebl/eblopenbackend.c 2019-06-13 12:19:49.083487139 +0000 ++++ b/libebl/eblopenbackend.c 2019-06-13 12:24:04.382632274 +0000 +@@ -48,6 +48,7 @@ Ebl *aarch64_init (Elf *, GElf_Half, Ebl + Ebl *ppc_init (Elf *, GElf_Half, Ebl *); + Ebl *ppc64_init (Elf *, GElf_Half, Ebl *); + Ebl *s390_init (Elf *, GElf_Half, Ebl *); ++Ebl *arm_init (Elf *, GElf_Half, Ebl *); + Ebl *bpf_init (Elf *, GElf_Half, Ebl *); + + /* This table should contain the complete list of architectures as far +@@ -74,7 +75,7 @@ static const struct + { NULL, "elf_tilegx", "tilegx", 6, EM_TILEGX, ELFCLASS64, ELFDATA2LSB }, + // XXX class and machine fields need to be filled in for all archs. + { NULL, "elf_sh", "sh", 2, EM_SH, 0, 0 }, +- { NULL, "ebl_arm", "arm", 3, EM_ARM, 0, 0 }, ++ { arm_init, "ebl_arm", "arm", 3, EM_ARM, 0, 0 }, + { NULL, "elf_sparcv9", "sparc", 5, EM_SPARCV9, 0, 0 }, + { NULL, "elf_sparc", "sparc", 5, EM_SPARC, 0, 0 }, + { NULL, "elf_sparcv8plus", "sparc", 5, EM_SPARC32PLUS, 0, 0 }, diff --git a/SPECS/elfutils.spec b/SPECS/elfutils.spec index 2b19101..e21cf03 100644 --- a/SPECS/elfutils.spec +++ b/SPECS/elfutils.spec @@ -17,6 +17,8 @@ Group: Development/Tools # Needed for isa specific Provides and Requires. %global depsuffix %{?_isa}%{!?_isa:-%{_arch}} +Patch1001: elfutils-dts9-armhfp.patch + Requires: %{?scl_prefix}elfutils-libelf%{depsuffix} = %{version}-%{release} Requires: %{?scl_prefix}elfutils-libs%{depsuffix} = %{version}-%{release} %if 0%{?rhel} >= 8 || 0%{?fedora} >= 20 @@ -245,12 +247,20 @@ such servers to download those files on demand. %patch101 -p1 -b .versions %patch102 -p1 -b .curl +%ifarch %{arm} +%patch1001 -p1 -b .armhfp +%endif + autoreconf # In case the above patches added any new test scripts, make sure they # are executable. find . -name \*.sh ! -perm -0100 -print | xargs chmod +x +%ifarch %{arm} +echo -e '"dwarf: arm needs debuginfo installed for all libraries"\nexit 77' > tests/run-backtrace-native-core.sh +%endif + %build # Remove -Wall from default flags. The makefiles enable enough warnings # themselves, and they use -Werror. Appending -Wall defeats the cases where