svn commit: r368545 - in stable/12/lib/csu/tests: . dynamic dynamicpie

John Baldwin <[email protected]> Fri, 11 Dec 2020 01:06:49 +0000 (UTC)
Newsgroups gmane.os.freebsd.devel.cvs
Message-ID <202012110106.0BB16nAN003755__10406.5124339954$1607648827$gmane$org@repo.freebsd.org>
Author: jhb
Date: Fri Dec 11 01:06:49 2020
New Revision: 368545
URL: https://svnweb.freebsd.org/changeset/base/368545

Log:
  MFC 367576: 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.

Added:
  stable/12/lib/csu/tests/dynamicpie/
     - copied from r367576, head/lib/csu/tests/dynamicpie/
Modified:
  stable/12/lib/csu/tests/Makefile
  stable/12/lib/csu/tests/dynamic/Makefile
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/lib/csu/tests/Makefile
==============================================================================
--- stable/12/lib/csu/tests/Makefile	Fri Dec 11 01:04:36 2020	(r368544)
+++ stable/12/lib/csu/tests/Makefile	Fri Dec 11 01:06:49 2020	(r368545)
@@ -3,6 +3,7 @@
 SUBDIR=		dso
 TESTS_SUBDIRS=	dynamic
 TESTS_SUBDIRS+=	dynamiclib
+TESTS_SUBDIRS+=	dynamicpie
 TESTS_SUBDIRS+=	static
 
 SUBDIR_DEPEND_dynamiclib=dso

Modified: stable/12/lib/csu/tests/dynamic/Makefile
==============================================================================
--- stable/12/lib/csu/tests/dynamic/Makefile	Fri Dec 11 01:04:36 2020	(r368544)
+++ stable/12/lib/csu/tests/dynamic/Makefile	Fri Dec 11 01:06:49 2020	(r368545)
@@ -2,5 +2,8 @@
 
 .PATH: ${.CURDIR:H}
 
+.include <src.opts.mk>
+MK_PIE=	no
+
 .include "../Makefile.tests"
 .include <bsd.test.mk>
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"