Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2012 16:26:25 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 219741 for review
Message-ID:  <201211101626.qAAGQPNa066146@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@219741?ac=10

Change 219741 by rwatson@rwatson_svr_ctsrd_mipsbuild on 2012/11/10 16:25:51

	Edge towards linking potential sandboxed stub code for use in a
	CheriBSD process.  Much linker script and makefile suffering is
	being experienced, which is undoubtably of great moral value in
	improving me as a person.

Affected files ...

.. //depot/projects/ctsrd/cheribsd/src/libexec/cheritest-helper/Makefile#2 edit

Differences ...

==== //depot/projects/ctsrd/cheribsd/src/libexec/cheritest-helper/Makefile#2 (text+ko) ====

@@ -3,6 +3,21 @@
 #
 PROG=	cheritest-helper
 SRCS=	cheritest-helper.c
+LDFLAGS+=	--script=sandbox.ld -nostdlib
 NO_MAN=
+STRIP=
+
+FILESOWN=       ${LIBOWN}
+FILESGRP=       ${LIBGRP}
+FILESMODE=      ${LIBMODE}
+FILESDIR=       ${LIBDIR}
+FILES=		cheritest-helper.bin cheritest-helper.dump
+CLEANFILES=	cheritest-helper.bin cheritest-helper.dump
+
+cheritest-helper.bin: cheritest-helper
+	objcopy -S -O binary ${.ALLSRC} ${.TARGET}
+
+cheritest-helper.dump: cheritest-helper
+	objdump -xsSD ${.ALLSRC} > ${.TARGET}
 
 .include <bsd.prog.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211101626.qAAGQPNa066146>