I added back the --gc-sections option that seemed to delete unused sections. I removed it because it was also deleting used sections. To mark sections that should always be kept in the final executable, the KEEP macro has to be aplied in the linker script to these sections.
Fixes #96
I added back the
--gc-sections
option that seemed to delete unused sections. I removed it because it was also deleting used sections. To mark sections that should always be kept in the final executable, theKEEP
macro has to be aplied in the linker script to these sections.