X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/60ce07c1e7dbeedd94a57ba21c14ff07c4ada4db..afe874b1634377ecb27057ee76deb04915bb34d7:/unit-tests/test-cases/function-starts/Makefile?ds=sidebyside diff --git a/unit-tests/test-cases/function-starts/Makefile b/unit-tests/test-cases/function-starts/Makefile index 0b43cd5..531bb7a 100644 --- a/unit-tests/test-cases/function-starts/Makefile +++ b/unit-tests/test-cases/function-starts/Makefile @@ -22,8 +22,15 @@ all: # as dylib with aliases ${CC} ${CCFLAGS} main.c -dynamiclib -o libmain3.dylib -Wl,-function_starts -Wl,-alias,_mid,midalias ${DYLDINFO} -function_starts libmain3.dylib | grep _bar | ${FAIL_IF_EMPTY} + # as static main executable + ${CC} ${CCFLAGS} main.c -static -e _main -o main_static -nostdlib -Wl,-new_linker -Wl,-alias,_myexit,_exit + ${DYLDINFO} -function_starts main_static | grep _bar | ${FAIL_IF_STDIN} + ${CC} ${CCFLAGS} main.c -static -e _main -o main_static -nostdlib -Wl,-new_linker -Wl,-alias,_myexit,_exit -Wl,-function_starts + ${DYLDINFO} -function_starts main_static | grep _bar | ${FAIL_IF_EMPTY} + + ${PASS_IFF_GOOD_MACHO} main clean: - rm main libmain.dylib libmain2.dylib libmain3.dylib + rm main libmain.dylib libmain2.dylib libmain3.dylib main_static