-# $OpenBSD: Makefile.inc,v 1.5 2016/05/07 19:05:22 guenther Exp $
+# $OpenBSD: Makefile.inc,v 1.6 2023/02/27 15:00:17 deraadt Exp $
.PATH: ${LIBCSRCDIR}/dlfcn
.include <bsd.own.mk>
SRCS+= dlfcn_stubs.c init.c tib.c
+
+init.o init.po: _execvesize.c
-/* $OpenBSD: init.c,v 1.17 2023/02/24 16:30:19 deraadt Exp $ */
+/* $OpenBSD: init.c,v 1.18 2023/02/27 15:00:17 deraadt Exp $ */
/*
* Copyright (c) 2014,2015 Philip Guenther <guenther@openbsd.org>
*
setup_static_tib(phdr, phnum);
#if !defined(__hppa__)
- /* XXX 128 maximum size of a system call stub, hopefully */
- if (&HIDDEN(execve))
- pinsyscall(SYS_execve, &HIDDEN(execve), 128);
+ if (&HIDDEN(execve)) {
+ extern const int _execve_size;
+
+ pinsyscall(SYS_execve, &HIDDEN(execve), _execve_size);
+ }
#endif
}