diff options
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/elf32msp430.sc | 4 | ||||
-rw-r--r-- | ld/scripttempl/elf32msp430_3.sc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/scripttempl/elf32msp430.sc b/ld/scripttempl/elf32msp430.sc index 17bcb36..dda82ff 100644 --- a/ld/scripttempl/elf32msp430.sc +++ b/ld/scripttempl/elf32msp430.sc @@ -274,7 +274,8 @@ SECTIONS .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} : { ${RELOCATING+. = ALIGN(2);} - ${RELOCATING+ PROVIDE (__bss_start = .) ; } + ${RELOCATING+ PROVIDE (__bss_start = .); } + ${RELOCATING+ PROVIDE (__bssstart = .); } *(.lower.bss.* .lower.bss) ${RELOCATING+. = ALIGN(2);} *(.bss) @@ -282,6 +283,7 @@ SECTIONS *(COMMON) ${RELOCATING+ PROVIDE (__bss_end = .) ; } } ${RELOCATING+ > data} + ${RELOCATING+ PROVIDE (__bsssize = SIZEOF(.bss)); } .noinit ${RELOCATING+ SIZEOF(.bss) + ADDR(.bss)} : { diff --git a/ld/scripttempl/elf32msp430_3.sc b/ld/scripttempl/elf32msp430_3.sc index 6c4ac15..1e1a68f 100644 --- a/ld/scripttempl/elf32msp430_3.sc +++ b/ld/scripttempl/elf32msp430_3.sc @@ -154,10 +154,12 @@ SECTIONS { ${RELOCATING+. = ALIGN(2);} ${RELOCATING+ PROVIDE (__bss_start = .) ; } + ${RELOCATING+ PROVIDE (__bssstart = .); } *(.bss) *(COMMON) ${RELOCATING+ PROVIDE (__bss_end = .) ; } } ${RELOCATING+ > data} + ${RELOCATING+ PROVIDE (__bsssize = SIZEOF(.bss)); } .noinit ${RELOCATING+ SIZEOF(.bss) + ADDR(.bss)} : { |