Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
/ mm32_ld Public archive

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

Notifications You must be signed in to change notification settings

iclite/mm32_ld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published