Keep

(Project Properties window)

*.prj\BUILD\Link Advanced\
Keep

See –-keep in the documentation for your toolchain.