]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/dwarf-strip-objc/Makefile
ld64-409.12.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
afe874b1 13ifeq ($(FILEARCH),arm)
a645023d
A
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
0a8dc3df 24 size -m -l hello-r.o | grep ${IMAGE_INFO} | ${PASS_IFF_STDIN}
a645023d
A
25
26
27
28clean:
29 rm -rf hello.o hello-r.o