diff -rupN paxtest-0.9.13/getmain.c paxtest-0.9.13.fixed/getmain.c
--- paxtest-0.9.13/getmain.c	2015-03-06 11:03:25.218686546 +0100
+++ paxtest-0.9.13.fixed/getmain.c	2015-03-06 11:16:41.614669807 +0100
@@ -7,10 +7,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-void foo(void)
+void __attribute__ ((noinline)) foo(void)
 {
 	printf( "%p\n", __builtin_return_address(0) );
-	
 }
 
 int main( int argc, char *argv[] )
