]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/static-executable-pie/Makefile
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / static-executable-pie / Makefile
index 5854b0fe7b728b3bda8f07b3f38f2c5d176fd918..cc02303d260bef8268c4c519c2e8381db6ecd3a7 100644 (file)
@@ -38,7 +38,7 @@ endif
 all:
        ${CC} ${CCFLAGS} test.c -c -o test.o
        ${CC} ${CCFLAGS} test.o -static -Wl,-pie -o test -e _entry  -nostdlib -Wl,-new_linker
-       otool -rv test | grep __DATA | wc -l | grep ${RELOC_COUNT} | ${FAIL_IF_EMPTY}
+       ${DYLDINFO} -rebase test | grep __DATA | wc -l | grep ${RELOC_COUNT} | ${FAIL_IF_EMPTY}
        # verify trying to use absolute addressing fails
        ${CC} ${CCFLAGS} -static bad.c -c -o bad.o
        ${FAIL_IF_SUCCESS} ${CC} ${CCFLAGS} test.o bad.o -static -Wl,-pie -o test.bad -e _entry -nostdlib -Wl,-new_linker 2>/dev/null