MM32 Linker Description Files for GNU Linker at Link Phase.
memory/MM32_4K_32K.ld ----> RAM=4K, ROM=32K
memory/*.ld
IS FISRT
@Command:
arm-none-eabi-gcc XXX.o ... -Tmemory/MM32_4K_32K.ld -Tcommon/sections.ld -Tlibs/libs.ld
@Makefile:
...
LDSCRIPT = \
-Tld/memory/MM32_4K_32K.ld \
-Tld/common/sections.ld \
-Tld/libs/libs.ld
...
LDFLAGS = $(MCU) --specs=nano.specs $(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections
...
│ README.md
│
├─common # Common party
│ └─ sections.ld
│
├─libs # Libs/Third-party
│ └─ libs.ld
│
└─memory # Chip Memory
├─ MM32_2K_16K.ld
├─ ...
└─ MM32_128K_512K.ld