* scripttempl/elf32msp430.sc (.data): Set the based on the next
free location in the text memory region, not a computation based upon the size of the text section. Orphaned sections or other linker scripts might insert new sections between the .text section and the .data section. * scripttempl/elf32msp430_3.sc (.data): Likewise.
This commit is contained in:
parent
8986e351a4
commit
925bbbbb98
3 changed files with 14 additions and 5 deletions
|
@ -1,3 +1,12 @@
|
|||
2013-11-20 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* scripttempl/elf32msp430.sc (.data): Set the based on the next
|
||||
free location in the text memory region, not a computation based
|
||||
upon the size of the text section. Orphaned sections or other
|
||||
linker scripts might insert new sections between the .text section
|
||||
and the .data section.
|
||||
* scripttempl/elf32msp430_3.sc (.data): Likewise.
|
||||
|
||||
2013-11-19 Roland McGrath <mcgrathr@google.com>
|
||||
Alan Modra <amodra@gmail.com>
|
||||
|
||||
|
|
|
@ -222,8 +222,8 @@ SECTIONS
|
|||
${RELOCATING+ _vectors_end = . ; }
|
||||
} ${RELOCATING+ > vectors}
|
||||
|
||||
.data ${RELOCATING-0} : ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text) + SIZEOF (.rodata))}
|
||||
{
|
||||
.data ${RELOCATING-0} :
|
||||
{
|
||||
${RELOCATING+ PROVIDE (__data_start = .) ; }
|
||||
${RELOCATING+ PROVIDE (__datastart = .) ; }
|
||||
${RELOCATING+. = ALIGN(2);}
|
||||
|
@ -242,7 +242,7 @@ SECTIONS
|
|||
*(.sdata .sdata.* .gnu.linkonce.s.*)
|
||||
${RELOCATING+. = ALIGN(2);}
|
||||
${RELOCATING+ _edata = . ; }
|
||||
} ${RELOCATING+ > data}
|
||||
} ${RELOCATING+ > data ${RELOCATING+AT> text}}
|
||||
|
||||
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
|
||||
{
|
||||
|
|
|
@ -124,7 +124,7 @@ SECTIONS
|
|||
*(.const:*)
|
||||
} ${RELOCATING+ > text}
|
||||
|
||||
.data ${RELOCATING-0} : ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text))}
|
||||
.data ${RELOCATING-0} :
|
||||
{
|
||||
${RELOCATING+ PROVIDE (__data_start = .) ; }
|
||||
${RELOCATING+. = ALIGN(2);}
|
||||
|
@ -133,7 +133,7 @@ SECTIONS
|
|||
*(.gnu.linkonce.d*)
|
||||
${RELOCATING+. = ALIGN(2);}
|
||||
${RELOCATING+ _edata = . ; }
|
||||
} ${RELOCATING+ > data}
|
||||
} ${RELOCATING+ > data ${RELOCATING+AT> text}}
|
||||
|
||||
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue