Add a flag to asection, linker_has_input, and use it to reliably