]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/stripped-indirect-symbol-table/Makefile
ld64-274.1.tar.gz
[apple/ld64.git] / unit-tests / test-cases / stripped-indirect-symbol-table / Makefile
old mode 100755 (executable)
new mode 100644 (file)
index c0647b3..2288cf9
@@ -1,5 +1,5 @@
 ##
-# Copyright (c) 2007 Apple Inc. All rights reserved.
+# Copyright (c) 2007-2009 Apple Inc. All rights reserved.
 #
 # @APPLE_LICENSE_HEADER_START@
 # 
 TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
-ifeq "${ARCH}"  "i386"
-       POINTER_SEGMENT = __IMPORT
-       POINTER_SECTION  = __pointers
-else
-       POINTER_SEGMENT = __DATA
-       POINTER_SECTION  = __nl_symbol_ptr
-endif
+POINTER_SEGMENT = __DATA
+POINTER_SECTION  = __nl_symbol_ptr
 
 
 #
 # Test that using strip -R to selectively strip symbol names
 # of of a .o file still works with ld.
+# And for i386 that there are no __IMPORT/__pointers left <rdar://problem/6666004>
 #
 
 run: all
@@ -51,6 +47,8 @@ all:
        ${CC} ${CCFLAGS} all.o  -dynamiclib -o dylib2   
        otool -X -s ${POINTER_SEGMENT} ${POINTER_SECTION} dylib1 >dylib1.pointers
        otool -X -s ${POINTER_SEGMENT} ${POINTER_SECTION} dylib2 >dylib2.pointers
+       size -m -l dylib1 | grep __IMPORT | ${FAIL_IF_STDIN}
+       size -m -l dylib2 | grep __IMPORT | ${FAIL_IF_STDIN}
        ${PASS_IFF} diff dylib1.pointers dylib2.pointers
 
 clean: