aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-05-26 11:43:38 +0100
committerNick Clifton <nickc@redhat.com>2016-05-26 11:43:38 +0100
commit0d832c8ea736150cb246f8988b2f9f78bf58de5e (patch)
tree5a5a789a3198640f36898eef81cb667911179093 /ld/scripttempl
parent94740f9c4b20ec88a5e33823a4da13d6da311a22 (diff)
downloadgdb-0d832c8ea736150cb246f8988b2f9f78bf58de5e.zip
gdb-0d832c8ea736150cb246f8988b2f9f78bf58de5e.tar.gz
gdb-0d832c8ea736150cb246f8988b2f9f78bf58de5e.tar.bz2
Provide the __bssstart and __bsssize symbols needed by the MSP430's crt0.o code.
PR target/20134 * scripttempl/elf32msp430.sc (.bss): Provide __bssstart and __bsssize. * scripttempl/elf32msp430_3.sc (.bss): Likewise.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/elf32msp430.sc4
-rw-r--r--ld/scripttempl/elf32msp430_3.sc2
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)} :
{