Use linker option '-z defs' if possible to avoid unresolvable symbols.