use Wl,--no-undefined and import.