It's probably fine to use -nostartfiles -nostdlib and make the C file not refer to any symbols but the test symbol, e.g. void _start() { glibc_conftest_frobozz = 1; } If you try this and it works, send a patch. Thanks, Roland