##
-# 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
${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: