X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/55e3d2f687f4ed9653982dbda92c6a055b0a8350..afe874b1634377ecb27057ee76deb04915bb34d7:/unit-tests/test-cases/eh-stripped-symbols/Makefile diff --git a/unit-tests/test-cases/eh-stripped-symbols/Makefile b/unit-tests/test-cases/eh-stripped-symbols/Makefile index 107400e..404cc41 100644 --- a/unit-tests/test-cases/eh-stripped-symbols/Makefile +++ b/unit-tests/test-cases/eh-stripped-symbols/Makefile @@ -7,17 +7,28 @@ include ${TESTROOT}/include/common.makefile # the linker can still process unwind info from .o files # correctly -run: all +ifeq (${FILEARCH},arm) + FILE_TYPE = KEXTBUNDLE +endif -all: - ${CXX} ${CCXXFLAGS} main.cxx -c -o main1.o -Os + +all: all-${FILEARCH} +all-i386: all-zce +all-x86_64: all-zce +all-arm: all-good + +all-zce: + ${CXX} ${CCXXFLAGS} main.cxx -g -c -o main1.o -Os #strip main1.o -u -s keep.exp -o main2.o ${LD} main1.o -r -x -exported_symbols_list keep.exp -o main2.o - ${CXX} ${CCXXFLAGS} main1.o -Wl,-x -o main1 -exported_symbols_list keep.exp + ${CXX} ${CCXXFLAGS} main1.o -o main1 ${CXX} ${CCXXFLAGS} main2.o -o main2 - unwinddump -arch ${ARCH} main1 > main1.unwind - unwinddump -arch ${ARCH} main2 > main2.unwind + ${UNWINDDUMP} -arch ${ARCH} -no_symbols main1 > main1.unwind + ${UNWINDDUMP} -arch ${ARCH} -no_symbols main2 > main2.unwind ${PASS_IFF} diff main1.unwind main2.unwind +all-good: + ${PASS_IFF} true + clean: rm -f main1* main2*