]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/dead_strip/Makefile
ld64-274.1.tar.gz
[apple/ld64.git] / unit-tests / test-cases / dead_strip / Makefile
index 32ac1c5d817b7563c3dacf52bed409e7104b8fff..62c1bbee2cb5aa5e80fa68d3ad615963ce4c346e 100644 (file)
@@ -1,5 +1,5 @@
 ##
-# Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
+# Copyright (c) 2010 Apple Inc. All rights reserved.
 #
 # @APPLE_LICENSE_HEADER_START@
 # 
@@ -35,6 +35,7 @@ run: all
 
 all:
        ${CC} ${CCFLAGS} main.c deadwood.c -dead_strip -o main-${ARCH}
+       size -m -l main-${ARCH} | grep __PAGEZERO | ${FAIL_IF_EMPTY}
        ${FAIL_IF_BAD_MACHO} main-${ARCH}
        nm -j main-${ARCH} | egrep 'dead_wood|dead_door' | ${FAIL_IF_STDIN}
        ${CC} ${CCFLAGS} -dynamiclib main.c deadwood.c -dead_strip -exported_symbols_list main.exp -o dylib-${ARCH}