]>
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 | ||
10 | run: all | |
11 | ||
12 | all: | |
a645023d | 13 | ${CXX} ${CCXXFLAGS} main.cxx -g -c -o main1.o -Os |
55e3d2f6 A |
14 | #strip main1.o -u -s keep.exp -o main2.o |
15 | ${LD} main1.o -r -x -exported_symbols_list keep.exp -o main2.o | |
a645023d | 16 | ${CXX} ${CCXXFLAGS} main1.o -o main1 |
55e3d2f6 | 17 | ${CXX} ${CCXXFLAGS} main2.o -o main2 |
a645023d A |
18 | ${UNWINDDUMP} -arch ${ARCH} -no_symbols main1 > main1.unwind |
19 | ${UNWINDDUMP} -arch ${ARCH} -no_symbols main2 > main2.unwind | |
55e3d2f6 A |
20 | ${PASS_IFF} diff main1.unwind main2.unwind |
21 | ||
22 | clean: | |
23 | rm -f main1* main2* |