Add C startup code tests for PIE binaries.

- Force dynamic to be a non-PIE binary.

- Add a dynamicpie test which uses a PIE binary.

Reviewed by:	andrew
Obtained from:	CheriBSD
MFC after:	2 weeks
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D27127
This commit is contained in:
John Baldwin 2020-11-10 19:09:35 +00:00
parent f9fd7337f6
commit 9ebe945bd7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367576
3 changed files with 13 additions and 0 deletions

View file

@ -3,6 +3,7 @@
SUBDIR= dso
TESTS_SUBDIRS= dynamic
TESTS_SUBDIRS+= dynamiclib
TESTS_SUBDIRS+= dynamicpie
TESTS_SUBDIRS+= static
SUBDIR_DEPEND_dynamiclib=dso

View file

@ -2,5 +2,8 @@
.PATH: ${.CURDIR:H}
.include <src.opts.mk>
MK_PIE= no
.include "../Makefile.tests"
.include <bsd.test.mk>

View file

@ -0,0 +1,9 @@
# $FreeBSD$
.PATH: ${.CURDIR:H}
.include <src.opts.mk>
MK_PIE= yes
.include "../Makefile.tests"
.include <bsd.test.mk>