]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/check-init-no-rebase/Makefile
ld64-127.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / check-init-no-rebase / Makefile
1
2 TESTROOT = ../..
3 include ${TESTROOT}/include/common.makefile
4
5 SHELL = bash # use bash shell so we can redirect just stderr
6
7 #
8 # Verify machochecker catchs init routines in slidable images that are missing rebasing info
9 #
10
11 run: all
12
13 all:
14 ${CC} ${CCFLAGS} main.c init.s -Wl,-pie -o init.exe
15 ${FAIL_IF_SUCCESS} ${MACHOCHECK} init.exe 2>/dev/null
16 ${CC} ${CCFLAGS} main.c term.s -Wl,-pie -o term.exe
17 ${FAIL_IF_SUCCESS} ${MACHOCHECK} term.exe 2>/dev/null
18 ${PASS_IFF} /usr/bin/true
19
20 clean:
21 rm -f init.exe term.exe