]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/custom-segment-layout/Makefile
ld64-127.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / custom-segment-layout / Makefile
1
2 TESTROOT = ../..
3 include ${TESTROOT}/include/common.makefile
4
5 #
6 # Check that a large page zero works
7 #
8 ifeq (,${findstring "macosx","$(VERSION_NEW_LINKEDIT)"})
9 SEG_ADDR = 0x20000000
10 else
11 SEG_ADDR = 0xb8000000
12 endif
13
14 run: all
15
16 all:
17 ${CC} ${CCFLAGS} main.c zero.s -o main -pagezero_size 0 -segaddr __TEXT $(SEG_ADDR) -segaddr __MYZEROPAGE 0
18 ${PASS_IFF_GOOD_MACHO} main
19
20 clean:
21 rm -f main