]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/dwarf-strip-objc/Makefile
ld64-123.2.1.tar.gz
[apple/ld64.git] / unit-tests / test-cases / dwarf-strip-objc / Makefile
CommitLineData
a645023d
A
1TESTROOT = ../..
2include ${TESTROOT}/include/common.makefile
3
4#
5# Verify that ld -r -S preserves the __objc_imageinfo section
6#
7
8IMAGE_INFO = "__image_info"
9
10ifeq ($(ARCH),x86_64)
11 IMAGE_INFO = "__objc_imageinfo"
12endif
13ifeq ($(ARCH),armv6)
14 IMAGE_INFO = "__objc_imageinfo"
15endif
16
17
18
19run: all
20
21all:
22 ${CC} ${CCFLAGS} -gdwarf-2 hello.m -c -o hello.o
23 ${LD} -r -S hello.o -o hello-r.o
24 size -l hello-r.o | grep ${IMAGE_INFO} | ${PASS_IFF_STDIN}
25
26
27
28clean:
29 rm -rf hello.o hello-r.o