Other Parts Discussed in Thread: SYSCONFIG, MSPM0L1306
Tool/software:
Hello,
I believe there is something wrong with the mspm0l1304.lds linker file. It does not remove unused code from the final .out file no matter what kind of flags i use (-Os -ffunction-sections -fdata-sections ect.. as a few examples) when compiling and generating a .out file.
I noticed there was a lot of space still used after removing a driver (not using it, but still compiling it with make).
Removing KEEP (*(.text)) from the mspm0l1304.lds on line 83 here seemed to do the trick:
.text : {
CREATE_OBJECT_SYMBOLS
KEEP (*(.text))
. = ALIGN(0x8);
*(.text.*)
. = ALIGN(0x8);
KEEP (*(.ctors))
. = ALIGN(0x8);
KEEP (*(.dtors))
. = ALIGN(0x8);
KEEP (*(.init))
. = ALIGN(0x8);
KEEP (*(.fini*))
. = ALIGN(0x8);
} > REGION_TEXT AT> REGION_TEXT
Would like to hear your thoughts on this
Marcus