On Thu, 13 Jun 2013 16:41:55 +0200, Mark Wielaard wrote:
But on rhel6.4 it does fail because nm tests/backtrace-child|grep -w
is empty, and so you get:
FAIL: run-backtrace.sh (exit: 1)
backtrace: /home/mark/src/elfutils/tests/backtrace.c:439: selfdump: Assertion `symi <
/home/mark/src/elfutils/tests/test-subr.sh: line 84: 17144 Aborted (core
I seem to need to build with CFLAGS="-g -O0" to keep the jmp function
around. Then backtrace-child seems to succeed, but backtrace-child-biarch
OK, with CentOS-6.3 && -O2 build I also get FAIL.
This is because you broke it.
Author: Mark Wielaard <mjw(a)redhat.com>
GCC version check attributes, noclone was introduced with GCC 4.5
+#define NO_INLINE_CLONE __attribute__ ((noinline, noclone))
+#define NO_INLINE_CLONE __attribute__ ((noinline))
-static __attribute__ ((noinline, noclone, used)) void
+static NO_INLINE_CLONE void