]> git.saurik.com Git - apple/ld64.git/blame - ld64-134.9/unit-tests/test-cases/eh-stripped-symbols/Makefile
ld64-134.9.tar.gz
[apple/ld64.git] / ld64-134.9 / unit-tests / test-cases / eh-stripped-symbols / Makefile
CommitLineData
b1f7435d
A
1
2TESTROOT = ../..
3include ${TESTROOT}/include/common.makefile
4
5#
6# verify that if symbols are stripped out of .o files
7# the linker can still process unwind info from .o files
8# correctly
9
10ifeq (${FILEARCH},arm)
11 FILE_TYPE = KEXTBUNDLE
12endif
13
14
15all: all-${FILEARCH}
16all-i386: all-zce
17all-x86_64: all-zce
18all-arm: all-good
19
20all-zce:
21 ${CXX} ${CCXXFLAGS} main.cxx -g -c -o main1.o -Os
22 #strip main1.o -u -s keep.exp -o main2.o
23 ${LD} main1.o -r -x -exported_symbols_list keep.exp -o main2.o
24 ${CXX} ${CCXXFLAGS} main1.o -o main1
25 ${CXX} ${CCXXFLAGS} main2.o -o main2
26 ${UNWINDDUMP} -arch ${ARCH} -no_symbols main1 > main1.unwind
27 ${UNWINDDUMP} -arch ${ARCH} -no_symbols main2 > main2.unwind
28 ${PASS_IFF} diff main1.unwind main2.unwind
29
30all-good:
31 ${PASS_IFF} true
32
33clean:
34 rm -f main1* main2*