]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/branch-islands/Makefile
ld64-133.3.tar.gz
[apple/ld64.git] / unit-tests / test-cases / branch-islands / Makefile
index c85f382b76c1b157c09f06946ae362b83d72cdf1..8e1870b7c1575c740fdb8cc1d2797f0c4c36f504 100644 (file)
@@ -1,5 +1,5 @@
 ##
-# Copyright (c) 2008 Apple Inc. All rights reserved.
+# Copyright (c) 2008-2009 Apple Inc. All rights reserved.
 #
 # @APPLE_LICENSE_HEADER_START@
 # 
 TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
-ifeq ($(ARCH),armv6)
-       ARCH_FLAGS = -mlong-branch
-else
-       ARCH_FLAGS = 
-endif
-
-
 
 #
 # Simple test for branch islands
@@ -38,10 +31,13 @@ endif
 run: all
 
 
-
 all:
+       # Verify that we fail if there is no valid place to insert branch islands.
+       ${CC} ${CCFLAGS} hello.c atomic_space.s extra.c -o hello ${ARCH_FLAGS} 2>&1 | grep "Unable to insert branch island. No insertion point available." | ${PASS_IFF_STDIN}
+
        ${CC} ${CCFLAGS} hello.c space.s extra.c -o hello ${ARCH_FLAGS}
        ${PASS_IFF_GOOD_MACHO} hello
 
+
 clean:
        rm  hello