]> git.saurik.com Git - apple/ld64.git/blame - ld64-134.9/unit-tests/test-cases/dwarf-strip-objc/Makefile
ld64-134.9.tar.gz
[apple/ld64.git] / ld64-134.9 / unit-tests / test-cases / dwarf-strip-objc / Makefile
CommitLineData
b1f7435d
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 ($(FILEARCH),arm)
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