diff options
author | guenther <> | 2015-10-25 18:01:24 +0000 |
---|---|---|
committer | guenther <> | 2015-10-25 18:01:24 +0000 |
commit | f99a409614d6c4522947819dc74a336ee3815b6c (patch) | |
tree | d693093c1d02f4d871efc5d2a1f844d4efa6f765 /src/regress/lib/libc | |
parent | 42fee343ee2dc57b8df51e274a7981adeaa05c85 (diff) | |
download | openbsd-f99a409614d6c4522947819dc74a336ee3815b6c.tar.gz openbsd-f99a409614d6c4522947819dc74a336ee3815b6c.tar.bz2 openbsd-f99a409614d6c4522947819dc74a336ee3815b6c.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/Makefile | 5 |
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 | ||
3 | NOMAN= | 3 | NOMAN= |
4 | PROG=atexit_test | 4 | PROG=atexit_test |
5 | CPPFLAGS+=-I${.CURDIR}/../../../../lib/libc | 5 | CPPFLAGS+=-I${.CURDIR}/../../../../lib/libc -D'PROTO_NORMAL(x)=__asm("")' |
6 | CLEANFILES+= invalid.out valid.out | 6 | CLEANFILES+= invalid.out valid.out |
7 | LDADD=-static | ||
7 | 8 | ||
8 | run-regress-atexit_test: ${PROG} | 9 | run-regress-atexit_test: ${PROG} |
9 | ./${PROG} -valid 2>${.OBJDIR}/valid.out | 10 | ./${PROG} -valid 2>${.OBJDIR}/valid.out |