We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello All,
Lets say I have a library foo.a which inside has many object files (bar1.o, bar2.o .. barN.o).
How can I tell the linker to not remove the unused sections of the complete library? Not all object files are being used but I would like to keep them in the final image.
I could use the --keep command and specify every barN.o file but it would be too many. Is there a way to tell it to keep the whole library?
In GCC I could write: KEEP(*foo.a:*) in the linker script. Is there something alike for the scatter file/command like.
Thanks