X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/55e3d2f687f4ed9653982dbda92c6a055b0a8350..ebf6f43431fe84b7b17822014a6d1f0169516e93:/unit-tests/test-cases/branch-islands/Makefile diff --git a/unit-tests/test-cases/branch-islands/Makefile b/unit-tests/test-cases/branch-islands/Makefile index c85f382..8e1870b 100644 --- a/unit-tests/test-cases/branch-islands/Makefile +++ b/unit-tests/test-cases/branch-islands/Makefile @@ -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@ # @@ -23,13 +23,6 @@ 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