X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=ld%2Fscripttempl%2Felf32msp430.sc;h=dda82ff2a30909fe460532ff9cbf9cab56fbcc4a;hb=9ad39107ca6e4efcda0f48a6abf528844a2f11aa;hp=78c7c12188ffffb660b266d4a57abd538826d78e;hpb=6f2750feaf2827ef8a1a0a5b2f90c1e9a6cabbd1;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/scripttempl/elf32msp430.sc b/ld/scripttempl/elf32msp430.sc index 78c7c12188..dda82ff2a3 100644 --- a/ld/scripttempl/elf32msp430.sc +++ b/ld/scripttempl/elf32msp430.sc @@ -210,7 +210,6 @@ SECTIONS KEEP (*(.fini_array)) KEEP (*(SORT(.fini_array.*))) PROVIDE (__fini_array_end = .); - LONG(0); /* Sentinel. */ /* gcc uses crtbegin.o to find the start of the constructors, so we make sure it is first. Because this is a wildcard, it @@ -269,10 +268,14 @@ SECTIONS ${RELOCATING+ _edata = . ; } } ${RELOCATING+ > data ${RELOCATING+AT> text}} + __romdatastart = LOADADDR(.data); + __romdatacopysize = SIZEOF(.data); + .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) @@ -280,6 +283,7 @@ SECTIONS *(COMMON) ${RELOCATING+ PROVIDE (__bss_end = .) ; } } ${RELOCATING+ > data} + ${RELOCATING+ PROVIDE (__bsssize = SIZEOF(.bss)); } .noinit ${RELOCATING+ SIZEOF(.bss) + ADDR(.bss)} : { @@ -311,10 +315,10 @@ SECTIONS .comment 0 : { *(.comment) } EOF -source $srcdir/scripttempl/DWARF.sc +. $srcdir/scripttempl/DWARF.sc cat <