PERFORCE change 219741 for review
Robert Watson
rwatson at FreeBSD.org
Sat Nov 10 16:26:26 UTC 2012
http://p4web.freebsd.org/@@219741?ac=10
Change 219741 by rwatson at 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>
More information about the p4-projects
mailing list