]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/scripttempl/elf32cr16.sc
Merge commit 'upstream/2.20'
[msp430-binutils.git] / ld / scripttempl / elf32cr16.sc
index 2e62fa2f5c76c04f67cb5ada4cb5d052f5bfa3c0..61351c579bdfa6e2ddf54a641afdf4782dc05970 100644 (file)
@@ -10,15 +10,9 @@ cat <<EOF
 
 /* Example Linker Script for linking NS CR16 elf32 files. */
 
-/* The next line forces the entry point (${ENTRY} in this script)
-   to be entered in the output file as an undefined symbol.
-   It is needed in case the entry point is not called explicitly
-   (which is the usual case) AND is in an archive.  */
-
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(${ARCH})
-EXTERN(${ENTRY})
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY(${ENTRY})}
 
 /* Define memory regions.  */
 MEMORY
@@ -133,21 +127,21 @@ SECTIONS
    The heap and stack are aligned to the bus width, as a speed optimization
    for accessing data located there.  */
 
-  .heap :
+  .heap (NOLOAD) :
   {
     . = ALIGN(4);
     __HEAP_START = .;
     . += 0x2000; __HEAP_MAX = .;
   } > ram
 
-  .stack :
+  .stack (NOLOAD) :
   {
     . = ALIGN(4);
     . += 0x6000;
     __STACK_START = .;
   } > ram
 
-  .istack :
+  .istack (NOLOAD) :
   {
     . = ALIGN(4);
     . += 0x100;