X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/2f2f92e40575142405a1caa9bcf847f7ad011c92..0a8dc3df050bd5c0a70486b9ebdb9dccce439f3e:/unit-tests/test-cases/stripped-indirect-symbol-table/Makefile?ds=sidebyside diff --git a/unit-tests/test-cases/stripped-indirect-symbol-table/Makefile b/unit-tests/test-cases/stripped-indirect-symbol-table/Makefile old mode 100755 new mode 100644 index c0647b3..2288cf9 --- a/unit-tests/test-cases/stripped-indirect-symbol-table/Makefile +++ b/unit-tests/test-cases/stripped-indirect-symbol-table/Makefile @@ -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@ # @@ -23,18 +23,14 @@ 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 # 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: