svn commit: r367576 - in head/lib/csu/tests: . dynamic dynamicpie
John Baldwin
jhb at FreeBSD.org
Tue Nov 10 19:09:36 UTC 2020
Author: jhb
Date: Tue Nov 10 19:09:35 2020
New Revision: 367576
URL: https://svnweb.freebsd.org/changeset/base/367576
Log:
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
Added:
head/lib/csu/tests/dynamicpie/
head/lib/csu/tests/dynamicpie/Makefile
- copied, changed from r367573, head/lib/csu/tests/dynamic/Makefile
Modified:
head/lib/csu/tests/Makefile
head/lib/csu/tests/dynamic/Makefile
Modified: head/lib/csu/tests/Makefile
==============================================================================
--- head/lib/csu/tests/Makefile Tue Nov 10 19:07:30 2020 (r367575)
+++ head/lib/csu/tests/Makefile Tue Nov 10 19:09:35 2020 (r367576)
@@ -3,6 +3,7 @@
SUBDIR= dso
TESTS_SUBDIRS= dynamic
TESTS_SUBDIRS+= dynamiclib
+TESTS_SUBDIRS+= dynamicpie
TESTS_SUBDIRS+= static
SUBDIR_DEPEND_dynamiclib=dso
Modified: head/lib/csu/tests/dynamic/Makefile
==============================================================================
--- head/lib/csu/tests/dynamic/Makefile Tue Nov 10 19:07:30 2020 (r367575)
+++ head/lib/csu/tests/dynamic/Makefile Tue Nov 10 19:09:35 2020 (r367576)
@@ -2,5 +2,8 @@
.PATH: ${.CURDIR:H}
+.include <src.opts.mk>
+MK_PIE= no
+
.include "../Makefile.tests"
.include <bsd.test.mk>
Copied and modified: head/lib/csu/tests/dynamicpie/Makefile (from r367573, head/lib/csu/tests/dynamic/Makefile)
==============================================================================
--- head/lib/csu/tests/dynamic/Makefile Tue Nov 10 18:12:09 2020 (r367573, copy source)
+++ head/lib/csu/tests/dynamicpie/Makefile Tue Nov 10 19:09:35 2020 (r367576)
@@ -2,5 +2,8 @@
.PATH: ${.CURDIR:H}
+.include <src.opts.mk>
+MK_PIE= yes
+
.include "../Makefile.tests"
.include <bsd.test.mk>
More information about the svn-src-all
mailing list