]>
Commit | Line | Data |
---|---|---|
55e3d2f6 A |
1 | |
2 | TESTROOT = ../.. | |
3 | include ${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 | ||
afe874b1 A |
10 | ifeq (${FILEARCH},arm) |
11 | FILE_TYPE = KEXTBUNDLE | |
12 | endif | |
55e3d2f6 | 13 | |
afe874b1 A |
14 | |
15 | all: all-${FILEARCH} | |
16 | all-i386: all-zce | |
17 | all-x86_64: all-zce | |
18 | all-arm: all-good | |
19 | ||
20 | all-zce: | |
a645023d | 21 | ${CXX} ${CCXXFLAGS} main.cxx -g -c -o main1.o -Os |
55e3d2f6 A |
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 | |
a645023d | 24 | ${CXX} ${CCXXFLAGS} main1.o -o main1 |
55e3d2f6 | 25 | ${CXX} ${CCXXFLAGS} main2.o -o main2 |
a645023d A |
26 | ${UNWINDDUMP} -arch ${ARCH} -no_symbols main1 > main1.unwind |
27 | ${UNWINDDUMP} -arch ${ARCH} -no_symbols main2 > main2.unwind | |
55e3d2f6 A |
28 | ${PASS_IFF} diff main1.unwind main2.unwind |
29 | ||
afe874b1 A |
30 | all-good: |
31 | ${PASS_IFF} true | |
32 | ||
55e3d2f6 A |
33 | clean: |
34 | rm -f main1* main2* |