X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/f410558f5d60087e4c310119a1751b437121c3b9..e456bf1059cf7e6b8b71545d1b2f2092b55a9684:/unit-tests/test-cases/static-executable-pie/Makefile diff --git a/unit-tests/test-cases/static-executable-pie/Makefile b/unit-tests/test-cases/static-executable-pie/Makefile index 5854b0f..cc02303 100644 --- a/unit-tests/test-cases/static-executable-pie/Makefile +++ b/unit-tests/test-cases/static-executable-pie/Makefile @@ -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