iclite / mm32_ld

MM32 Linker Description File for the link stage of the GNU linker.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MM32_LD

MM32 Linker Description Files for GNU Linker at Link Phase.

memory/MM32_4K_32K.ld ----> RAM=4K, ROM=32K

Usage

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

...

Tree List

│ README.md
│  
├─common            # Common party
│  └─ sections.ld        
│
├─libs              # Libs/Third-party 
│  └─ libs.ld      
│
└─memory            # Chip Memory
   ├─ MM32_2K_16K.ld
   ├─ ...
   └─ MM32_128K_512K.ld

About

MM32 Linker Description File for the link stage of the GNU linker.