From f99a409614d6c4522947819dc74a336ee3815b6c Mon Sep 17 00:00:00 2001 From: guenther <> Date: Sun, 25 Oct 2015 18:01:24 +0000 Subject: Hide __atexit and __atexit_register_cleanup() Wrap __cxa_{atexit,finalize}() so the call from exit() goes direct Switch regress/lib/libc/atexit/ to be built with -static so that it can still access __atexit* ok millert@ jca@ --- src/regress/lib/libc/atexit/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/regress/lib/libc') diff --git a/src/regress/lib/libc/atexit/Makefile b/src/regress/lib/libc/atexit/Makefile index c14b3c7ac4..057844d767 100644 --- a/src/regress/lib/libc/atexit/Makefile +++ b/src/regress/lib/libc/atexit/Makefile @@ -1,9 +1,10 @@ -# $OpenBSD: Makefile,v 1.5 2003/07/31 22:46:59 david Exp $ +# $OpenBSD: Makefile,v 1.6 2015/10/25 18:01:24 guenther Exp $ NOMAN= PROG=atexit_test -CPPFLAGS+=-I${.CURDIR}/../../../../lib/libc +CPPFLAGS+=-I${.CURDIR}/../../../../lib/libc -D'PROTO_NORMAL(x)=__asm("")' CLEANFILES+= invalid.out valid.out +LDADD=-static run-regress-atexit_test: ${PROG} ./${PROG} -valid 2>${.OBJDIR}/valid.out -- cgit v1.2.3-55-g6feb