# check jump table in a weak function
${CC} ${CCFLAGS} main.c switch.s -o main
otool -rv main | grep _foo | ${FAIL_IF_STDIN}
# check jump table in a weak function
${CC} ${CCFLAGS} main.c switch.s -o main
otool -rv main | grep _foo | ${FAIL_IF_STDIN}
# check jump table with -pie, should have no external and some local relocations
${CC} ${CCFLAGS} main.c switch.s -o main -Wl,-pie -read_only_relocs suppress
otool -rv main | grep "External relocation" | ${FAIL_IF_STDIN}
# check jump table with -pie, should have no external and some local relocations
${CC} ${CCFLAGS} main.c switch.s -o main -Wl,-pie -read_only_relocs suppress
otool -rv main | grep "External relocation" | ${FAIL_IF_STDIN}