]> git.saurik.com Git - apple/ld64.git/blame - ld64-134.9/unit-tests/test-cases/code-signed-object-file/Makefile
ld64-134.9.tar.gz
[apple/ld64.git] / ld64-134.9 / unit-tests / test-cases / code-signed-object-file / Makefile
CommitLineData
b1f7435d
A
1
2TESTROOT = ../..
3include ${TESTROOT}/include/common.makefile
4
5#
6# Test that an object file can be code signed
7#
8# <rdar://problem/5881324> when linking a kext the static linker should leave a pad in the headers to allow code signing
9#
10
11CODE_SIGN_ARCH = ${ARCH}
12ifeq (${ARCH},ppc)
13 CODE_SIGN_ARCH = ppc7400
14endif
15
16
17run: all
18
19all:
20 ${CC} foo.c -c -o foo.o
21 ${LD} -r foo.o -o foo2.o
22 codesign_allocate -i foo2.o -a ${CODE_SIGN_ARCH} 256 -o foo3.o
23 ${PASS_IFF} true
24
25clean:
26 rm foo.o foo2.o foo3.o