Generate linker script to only expose symbols of the public API