Use standard compile_prog test to check for -Ttext-segment

Newer binutils disallows the /dev/null hack I tried.