summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc
diff options
context:
space:
mode:
authorguenther <>2015-10-25 18:01:24 +0000
committerguenther <>2015-10-25 18:01:24 +0000
commitd26dd1386187b2be08c82b67e3a2199a67c82900 (patch)
treed693093c1d02f4d871efc5d2a1f844d4efa6f765 /src/regress/lib/libc
parentfa8b89b99dd0b9e5ae639623c7a1078d667bf0ce (diff)
downloadopenbsd-d26dd1386187b2be08c82b67e3a2199a67c82900.tar.gz
openbsd-d26dd1386187b2be08c82b67e3a2199a67c82900.tar.bz2
openbsd-d26dd1386187b2be08c82b67e3a2199a67c82900.zip
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@
Diffstat (limited to 'src/regress/lib/libc')
-rw-r--r--src/regress/lib/libc/atexit/Makefile5
1 files changed, 3 insertions, 2 deletions
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 @@
1# $OpenBSD: Makefile,v 1.5 2003/07/31 22:46:59 david Exp $ 1# $OpenBSD: Makefile,v 1.6 2015/10/25 18:01:24 guenther Exp $
2 2
3NOMAN= 3NOMAN=
4PROG=atexit_test 4PROG=atexit_test
5CPPFLAGS+=-I${.CURDIR}/../../../../lib/libc 5CPPFLAGS+=-I${.CURDIR}/../../../../lib/libc -D'PROTO_NORMAL(x)=__asm("")'
6CLEANFILES+= invalid.out valid.out 6CLEANFILES+= invalid.out valid.out
7LDADD=-static
7 8
8run-regress-atexit_test: ${PROG} 9run-regress-atexit_test: ${PROG}
9 ./${PROG} -valid 2>${.OBJDIR}/valid.out 10 ./${PROG} -valid 2>${.OBJDIR}/valid.out