On Tue, 12 Jan 2010 11:03:42 +0100, caiq...@redhat.com wrote:
> detach_sigkill_race also need to link with -Wl,-z,now and then minimize the
> library code you rely on. Otherwise, it will fail due to the reason
> mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=542731 .

Good catch, used it also for some other clone()-calling tests.


Thanks,
Jan


--- tests/Makefile.am   14 Dec 2009 09:47:54 -0000      1.61
+++ tests/Makefile.am   12 Jan 2010 11:52:55 -0000      1.62
@@ -112,7 +112,11 @@ erestartsys_trap_LDFLAGS = -lutil
 erestartsys_trap_debugger_LDFLAGS = -lutil
 erestartsys_trap_32fails_debugger_LDFLAGS = -lutil
 # After clone syscall it must call no glibc code (such as _dl_runtime_resolve).
+clone_get_signal_LDFLAGS = -Wl,-z,now
 clone_multi_ptrace_LDFLAGS = -Wl,-z,now
+clone_ptrace_LDFLAGS = -Wl,-z,now
+detach_sigkill_race_LDFLAGS = -Wl,-z,now
+ptrace_event_clone_LDFLAGS = -Wl,-z,now
 
 check_TESTS = $(SAFE)
 xcheck_TESTS = $(CRASHERS)

Reply via email to