OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [ld/] [scripttempl/] [h8300sn.sc] - Diff between revs 156 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 156 Rev 816
TORS=".tors :
TORS=".tors :
        {
        {
          ___ctors = . ;
          ___ctors = . ;
          *(.ctors)
          *(.ctors)
          ___ctors_end = . ;
          ___ctors_end = . ;
          ___dtors = . ;
          ___dtors = . ;
          *(.dtors)
          *(.dtors)
          ___dtors_end = . ;
          ___dtors_end = . ;
        } > ram"
        } > ram"
cat <
cat <
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(h8300sn)
OUTPUT_ARCH(h8300sn)
ENTRY("_start")
ENTRY("_start")
MEMORY
MEMORY
{
{
        /* 0xc4 is a magic entry.  We should have the linker just
        /* 0xc4 is a magic entry.  We should have the linker just
           skip over it one day...  */
           skip over it one day...  */
        vectors : o = 0x0000, l = 0xc4
        vectors : o = 0x0000, l = 0xc4
        magicvectors : o = 0xc4, l = 0x3c
        magicvectors : o = 0xc4, l = 0x3c
        ram    : o = 0x0100, l = 0xfdfc
        ram    : o = 0x0100, l = 0xfdfc
        /* The stack starts at the top of main ram.  */
        /* The stack starts at the top of main ram.  */
        topram : o = 0xfefc, l = 0x4
        topram : o = 0xfefc, l = 0x4
        /* At the very top of the address space is the 8-bit area.  */
        /* At the very top of the address space is the 8-bit area.  */
        eight : o = 0xff00, l = 0x100
        eight : o = 0xff00, l = 0x100
}
}
SECTIONS
SECTIONS
{
{
.vectors :
.vectors :
        {
        {
          /* Use something like this to place a specific
          /* Use something like this to place a specific
             function's address into the vector table.
             function's address into the vector table.
             SHORT (ABSOLUTE (_foobar)).  */
             SHORT (ABSOLUTE (_foobar)).  */
          *(.vectors)
          *(.vectors)
        } ${RELOCATING+ > vectors}
        } ${RELOCATING+ > vectors}
.text :
.text :
        {
        {
          *(.rodata)
          *(.rodata)
          *(.text)
          *(.text)
          *(.strings)
          *(.strings)
          ${RELOCATING+ _etext = . ; }
          ${RELOCATING+ _etext = . ; }
        } ${RELOCATING+ > ram}
        } ${RELOCATING+ > ram}
${CONSTRUCTING+${TORS}}
${CONSTRUCTING+${TORS}}
.data :
.data :
        {
        {
          *(.data)
          *(.data)
          *(.tiny)
          *(.tiny)
          ${RELOCATING+ _edata = . ; }
          ${RELOCATING+ _edata = . ; }
        } ${RELOCATING+ > ram}
        } ${RELOCATING+ > ram}
.bss :
.bss :
        {
        {
          ${RELOCATING+ _bss_start = . ;}
          ${RELOCATING+ _bss_start = . ;}
          *(.bss)
          *(.bss)
          *(COMMON)
          *(COMMON)
          ${RELOCATING+ _end = . ;  }
          ${RELOCATING+ _end = . ;  }
        } ${RELOCATING+ >ram}
        } ${RELOCATING+ >ram}
.stack :
.stack :
        {
        {
          ${RELOCATING+ _stack = . ; }
          ${RELOCATING+ _stack = . ; }
          *(.stack)
          *(.stack)
        } ${RELOCATING+ > topram}
        } ${RELOCATING+ > topram}
.eight :
.eight :
        {
        {
          *(.eight)
          *(.eight)
        } ${RELOCATING+ > eight}
        } ${RELOCATING+ > eight}
.stab 0 ${RELOCATING+(NOLOAD)} :
.stab 0 ${RELOCATING+(NOLOAD)} :
        {
        {
          [ .stab ]
          [ .stab ]
        }
        }
.stabstr 0 ${RELOCATING+(NOLOAD)} :
.stabstr 0 ${RELOCATING+(NOLOAD)} :
        {
        {
          [ .stabstr ]
          [ .stabstr ]
        }
        }
}
}
EOF
EOF
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.