Skip to content

Commit

Permalink
cpu/msp430_common: add _srom, _erom, _end_fw symbols to linker script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ollrogge committed Oct 18, 2021
1 parent 82cd618 commit 8c4f0d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cpu/msp430_common/ldscripts/msp430_common.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SECTIONS
{
/* Populate information about rom size */
_srom = ORIGIN(ROM);
_erom = ORIGIN(ROM) + LENGTH(ROM);

.end_fw (NOLOAD) : ALIGN(4) {
_end_fw = . ;
} > ROM
}
1 change: 1 addition & 0 deletions makefiles/arch/msp430.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ASFLAGS += $(CFLAGS_CPU) --defsym $(CPU_MODEL)=1 $(CFLAGS_DBG)
LINKFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG) $(CFLAGS_OPT)
LINKFLAGS += -Wl,--gc-sections -Wl,-L$(MSP430_SUPPORT_FILES)/include
LINKFLAGS += -T $(MSP430_SUPPORT_FILES)/include/$(CPU_MODEL).ld
LINKFLAGS += -T $(RIOTCPU)/msp430_common/ldscripts/msp430_common.ld
LINKFLAGS += $(RIOTCPU)/msp430_common/ldscripts/xfa.ld

OPTIONAL_CFLAGS_BLACKLIST += -fdiagnostics-color
Expand Down

0 comments on commit 8c4f0d6

Please sign in to comment.