forked from pool/elfutils
Accepting request 504468 from home:AndreasSchwab:f
- ppc-machine-flags.patch: support EM_PPC machine flags - disable-tests-with-ptrace.patch: disable more tests OBS-URL: https://build.opensuse.org/request/show/504468 OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=97
This commit is contained in:
parent
d18184c0f4
commit
0cab1d9022
@ -1,22 +1,34 @@
|
|||||||
qemu-linux-user does not support ptrace, disable tests that depend on it
|
qemu-linux-user does not support ptrace, disable tests that depend on it
|
||||||
|
/proc/self/auxv is not properly abstracted away
|
||||||
|
|
||||||
Index: elfutils-0.166/tests/Makefile.am
|
Index: elfutils-0.168/tests/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- elfutils-0.166.orig/tests/Makefile.am
|
--- elfutils-0.168.orig/tests/Makefile.am
|
||||||
+++ elfutils-0.166/tests/Makefile.am
|
+++ elfutils-0.168/tests/Makefile.am
|
||||||
@@ -121,7 +121,7 @@ TESTS = run-arextract.sh run-arsymtest.s
|
@@ -96,7 +96,7 @@ TESTS = run-arextract.sh run-arsymtest.s
|
||||||
|
run-native-test.sh run-bug1-test.sh \
|
||||||
|
run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
|
||||||
|
dwfl-bug-addr-overflow run-addrname-test.sh \
|
||||||
|
- dwfl-bug-fd-leak dwfl-bug-report \
|
||||||
|
+ dwfl-bug-report \
|
||||||
|
run-dwfl-bug-offline-rel.sh run-dwfl-addr-sect.sh \
|
||||||
|
run-disasm-x86.sh run-disasm-x86-64.sh \
|
||||||
|
run-early-offscn.sh run-dwarf-getmacros.sh run-dwarf-ranges.sh \
|
||||||
|
@@ -120,8 +120,8 @@ TESTS = run-arextract.sh run-arsymtest.s
|
||||||
|
run-backtrace-demangle.sh run-stack-d-test.sh run-stack-i-test.sh \
|
||||||
run-stack-demangled-test.sh run-readelf-zx.sh run-readelf-zp.sh \
|
run-stack-demangled-test.sh run-readelf-zx.sh run-readelf-zp.sh \
|
||||||
run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \
|
run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \
|
||||||
run-linkmap-cut.sh run-aggregate-size.sh vdsosyms run-readelf-A.sh \
|
- run-linkmap-cut.sh run-aggregate-size.sh vdsosyms run-readelf-A.sh \
|
||||||
- run-getsrc-die.sh run-strptr.sh newdata elfstrtab dwfl-proc-attach \
|
- run-getsrc-die.sh run-strptr.sh newdata elfstrtab dwfl-proc-attach \
|
||||||
|
+ run-linkmap-cut.sh run-aggregate-size.sh run-readelf-A.sh \
|
||||||
+ run-getsrc-die.sh run-strptr.sh newdata elfstrtab \
|
+ run-getsrc-die.sh run-strptr.sh newdata elfstrtab \
|
||||||
elfshphehdr run-lfs-symbols.sh run-dwelfgnucompressed.sh \
|
elfshphehdr run-lfs-symbols.sh run-dwelfgnucompressed.sh \
|
||||||
run-elfgetchdr.sh \
|
run-elfgetchdr.sh \
|
||||||
run-elfgetzdata.sh run-elfputzdata.sh run-zstrptr.sh \
|
run-elfgetzdata.sh run-elfputzdata.sh run-zstrptr.sh \
|
||||||
Index: elfutils-0.166/tests/backtrace-subr.sh
|
Index: elfutils-0.168/tests/backtrace-subr.sh
|
||||||
===================================================================
|
===================================================================
|
||||||
--- elfutils-0.166.orig/tests/backtrace-subr.sh
|
--- elfutils-0.168.orig/tests/backtrace-subr.sh
|
||||||
+++ elfutils-0.166/tests/backtrace-subr.sh
|
+++ elfutils-0.168/tests/backtrace-subr.sh
|
||||||
@@ -93,6 +93,11 @@ check_native_unsupported()
|
@@ -93,6 +93,11 @@ check_native_unsupported()
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jun 18 12:45:19 UTC 2017 - schwab@linux-m68k.org
|
||||||
|
|
||||||
|
- ppc-machine-flags.patch: support EM_PPC machine flags
|
||||||
|
- disable-tests-with-ptrace.patch: disable more tests
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun May 28 07:44:17 UTC 2017 - jengelh@inai.de
|
Sun May 28 07:44:17 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@ Source2: baselibs.conf
|
|||||||
Source3: %{name}.changes
|
Source3: %{name}.changes
|
||||||
Patch1: disable-tests-with-ptrace.patch
|
Patch1: disable-tests-with-ptrace.patch
|
||||||
Patch2: 0001-backends-Add-support-for-EM_PPC64-GNU_ATTRIBUTES.patch
|
Patch2: 0001-backends-Add-support-for-EM_PPC64-GNU_ATTRIBUTES.patch
|
||||||
|
Patch3: ppc-machine-flags.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -144,6 +145,7 @@ to develop applications that require these.
|
|||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Change DATE/TIME macros to use last change time of elfutils.changes
|
# Change DATE/TIME macros to use last change time of elfutils.changes
|
||||||
|
41
ppc-machine-flags.patch
Normal file
41
ppc-machine-flags.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
2017-06-15 Andreas Schwab <schwab@linux-m68k.org>
|
||||||
|
|
||||||
|
* ppc_symbol.c (ppc_machine_flag_check): New function.
|
||||||
|
* ppc_init.c (ppc_init): Hook it.
|
||||||
|
|
||||||
|
diff --git a/backends/ppc_init.c b/backends/ppc_init.c
|
||||||
|
index c3e3ca3607..aea9f2d740 100644
|
||||||
|
--- a/backends/ppc_init.c
|
||||||
|
+++ b/backends/ppc_init.c
|
||||||
|
@@ -53,6 +53,7 @@ ppc_init (Elf *elf __attribute__ ((unused)),
|
||||||
|
eh->name = "PowerPC";
|
||||||
|
ppc_init_reloc (eh);
|
||||||
|
HOOK (eh, reloc_simple_type);
|
||||||
|
+ HOOK (eh, machine_flag_check);
|
||||||
|
HOOK (eh, dynamic_tag_name);
|
||||||
|
HOOK (eh, dynamic_tag_check);
|
||||||
|
HOOK (eh, check_special_symbol);
|
||||||
|
diff --git a/backends/ppc_symbol.c b/backends/ppc_symbol.c
|
||||||
|
index 1273c1d299..4b32003acc 100644
|
||||||
|
--- a/backends/ppc_symbol.c
|
||||||
|
+++ b/backends/ppc_symbol.c
|
||||||
|
@@ -57,6 +57,16 @@ ppc_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
+/* Check whether machine flags are valid. */
|
||||||
|
+bool
|
||||||
|
+ppc_machine_flag_check (GElf_Word flags)
|
||||||
|
+{
|
||||||
|
+ return ((flags &~ (EF_PPC_EMB
|
||||||
|
+ | EF_PPC_RELOCATABLE
|
||||||
|
+ | EF_PPC_RELOCATABLE_LIB)) == 0);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+
|
||||||
|
const char *
|
||||||
|
ppc_dynamic_tag_name (int64_t tag, char *buf __attribute__ ((unused)),
|
||||||
|
size_t len __attribute__ ((unused)))
|
||||||
|
--
|
||||||
|
2.13.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user