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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [libgloss/] [microblaze/] [xilinx.ld] - Diff between revs 207 and 345

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

Rev 207 Rev 345
/* Default linker script, for normal executables */
/* Default linker script, for normal executables */
OUTPUT_FORMAT("elf32-microblaze", "",
OUTPUT_FORMAT("elf32-microblaze", "",
              "")
              "")
/*SEARCH_DIR("/proj/fv1/gnu_builds/head/mb/release/lin/mb/microblaze-xilinx-elf/lib");*/
/*SEARCH_DIR("/proj/fv1/gnu_builds/head/mb/release/lin/mb/microblaze-xilinx-elf/lib");*/
/*SEARCH_DIR("/proj/fv1/gnu_builds/head/mb/release/lin/mb/microblaze-xilinx-elf/lib");*/
/*SEARCH_DIR("/proj/fv1/gnu_builds/head/mb/release/lin/mb/microblaze-xilinx-elf/lib");*/
ENTRY(_start)
ENTRY(_start)
_TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x50;
_TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x50;
_HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x0;
_HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x0;
_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x400;
_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x400;
SECTIONS
SECTIONS
{
{
  .vectors.reset 0x0 : { KEEP (*(.vectors.reset)) } = 0
  .vectors.reset 0x0 : { KEEP (*(.vectors.reset)) } = 0
  .vectors.sw_exception 0x8 : { KEEP (*(.vectors.sw_exception)) } = 0
  .vectors.sw_exception 0x8 : { KEEP (*(.vectors.sw_exception)) } = 0
  .vectors.interrupt 0x10 : { KEEP (*(.vectors.interrupt)) } = 0
  .vectors.interrupt 0x10 : { KEEP (*(.vectors.interrupt)) } = 0
  .vectors.debug_sw_break 0x18 : { KEEP (*(.vectors.debug_sw_break)) } = 0
  .vectors.debug_sw_break 0x18 : { KEEP (*(.vectors.debug_sw_break)) } = 0
  .vectors.hw_exception 0x20 : { KEEP (*(.vectors.hw_exception)) } = 0
  .vectors.hw_exception 0x20 : { KEEP (*(.vectors.hw_exception)) } = 0
  . = _TEXT_START_ADDR;
  . = _TEXT_START_ADDR;
   _ftext  =  .;
   _ftext  =  .;
  .text : {
  .text : {
    *(.text)
    *(.text)
    *(.text.*)
    *(.text.*)
    *(.gnu.linkonce.t.*)
    *(.gnu.linkonce.t.*)
  }
  }
   _etext  =  .;
   _etext  =  .;
  .init : { KEEP (*(.init))     } =0
  .init : { KEEP (*(.init))     } =0
  .fini : { KEEP (*(.fini))     } =0
  .fini : { KEEP (*(.fini))     } =0
  PROVIDE (__CTOR_LIST__ = .);
  PROVIDE (__CTOR_LIST__ = .);
  PROVIDE (___CTOR_LIST__ = .);
  PROVIDE (___CTOR_LIST__ = .);
  .ctors   :
  .ctors   :
  {
  {
    /* gcc uses crtbegin.o to find the start of
    /* gcc uses crtbegin.o to find the start of
       the constructors, so we make sure it is
       the constructors, so we make sure it is
       first.  Because this is a wildcard, it
       first.  Because this is a wildcard, it
       doesn't matter if the user does not
       doesn't matter if the user does not
       actually link against crtbegin.o; the
       actually link against crtbegin.o; the
       linker won't look for a file to match a
       linker won't look for a file to match a
       wildcard.  The wildcard also means that it
       wildcard.  The wildcard also means that it
       doesn't matter which directory crtbegin.o
       doesn't matter which directory crtbegin.o
       is in.  */
       is in.  */
    KEEP (*crtbegin.o(.ctors))
    KEEP (*crtbegin.o(.ctors))
    /* We don't want to include the .ctor section from
    /* We don't want to include the .ctor section from
       from the crtend.o file until after the sorted ctors.
       from the crtend.o file until after the sorted ctors.
       The .ctor section from the crtend file contains the
       The .ctor section from the crtend file contains the
       end of ctors marker and it must be last */
       end of ctors marker and it must be last */
    KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
    KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
    KEEP (*(SORT(.ctors.*)))
    KEEP (*(SORT(.ctors.*)))
    KEEP (*(.ctors))
    KEEP (*(.ctors))
  }
  }
  PROVIDE (__CTOR_END__ = .);
  PROVIDE (__CTOR_END__ = .);
  PROVIDE (___CTOR_END__ = .);
  PROVIDE (___CTOR_END__ = .);
  PROVIDE (__DTOR_LIST__ = .);
  PROVIDE (__DTOR_LIST__ = .);
  PROVIDE (___DTOR_LIST__ = .);
  PROVIDE (___DTOR_LIST__ = .);
   .dtors         :
   .dtors         :
  {
  {
    KEEP (*crtbegin.o(.dtors))
    KEEP (*crtbegin.o(.dtors))
    KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
    KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
    KEEP (*(SORT(.dtors.*)))
    KEEP (*(SORT(.dtors.*)))
    KEEP (*(.dtors))
    KEEP (*(.dtors))
  }
  }
  PROVIDE (__DTOR_END__ = .);
  PROVIDE (__DTOR_END__ = .);
  PROVIDE (___DTOR_END__ = .);
  PROVIDE (___DTOR_END__ = .);
   . = ALIGN(4);
   . = ALIGN(4);
    _frodata = . ;
    _frodata = . ;
  .rodata : {
  .rodata : {
    *(.rodata)
    *(.rodata)
    *(.rodata.*)
    *(.rodata.*)
    *(.gnu.linkonce.r.*)
    *(.gnu.linkonce.r.*)
    CONSTRUCTORS; /* Is this needed? */
    CONSTRUCTORS; /* Is this needed? */
  }
  }
   _erodata = .;
   _erodata = .;
  /* Alignments by 8 to ensure that _SDA2_BASE_ on a word boundary */
  /* Alignments by 8 to ensure that _SDA2_BASE_ on a word boundary */
  /* Note that .sdata2 and .sbss2 must be contiguous */
  /* Note that .sdata2 and .sbss2 must be contiguous */
  . = ALIGN(8);
  . = ALIGN(8);
   _ssrw = .;
   _ssrw = .;
  .sdata2 : {
  .sdata2 : {
    *(.sdata2)
    *(.sdata2)
    *(.sdata2.*)
    *(.sdata2.*)
    *(.gnu.linkonce.s2.*)
    *(.gnu.linkonce.s2.*)
  }
  }
  . = ALIGN(4);
  . = ALIGN(4);
  .sbss2 : {
  .sbss2 : {
    PROVIDE (__sbss2_start = .);
    PROVIDE (__sbss2_start = .);
    *(.sbss2)
    *(.sbss2)
    *(.sbss2.*)
    *(.sbss2.*)
    *(.gnu.linkonce.sb2.*)
    *(.gnu.linkonce.sb2.*)
    PROVIDE (__sbss2_end = .);
    PROVIDE (__sbss2_end = .);
  }
  }
  . = ALIGN(8);
  . = ALIGN(8);
   _essrw = .;
   _essrw = .;
   _ssrw_size = _essrw - _ssrw;
   _ssrw_size = _essrw - _ssrw;
   PROVIDE (_SDA2_BASE_ = _ssrw + (_ssrw_size / 2 ));
   PROVIDE (_SDA2_BASE_ = _ssrw + (_ssrw_size / 2 ));
   . = ALIGN(4);
   . = ALIGN(4);
   _fdata = .;
   _fdata = .;
  .data : {
  .data : {
    *(.data)
    *(.data)
    *(.gnu.linkonce.d.*)
    *(.gnu.linkonce.d.*)
    CONSTRUCTORS; /* Is this needed? */
    CONSTRUCTORS; /* Is this needed? */
  }
  }
   _edata = . ;
   _edata = . ;
   /* Added to handle pic code */
   /* Added to handle pic code */
  .got : {
  .got : {
    *(.got)
    *(.got)
  }
  }
  .got1 : {
  .got1 : {
    *(.got1)
    *(.got1)
  }
  }
  .got2 : {
  .got2 : {
    *(.got2)
    *(.got2)
  }
  }
  /* Added by Sathya to handle C++ exceptions */
  /* Added by Sathya to handle C++ exceptions */
  .eh_frame : {
  .eh_frame : {
    *(.eh_frame)
    *(.eh_frame)
  }
  }
  .jcr : {
  .jcr : {
    *(.jcr)
    *(.jcr)
  }
  }
  .gcc_except_table : {
  .gcc_except_table : {
    *(.gcc_except_table)
    *(.gcc_except_table)
  }
  }
  /* Alignments by 8 to ensure that _SDA_BASE_ on a word boundary */
  /* Alignments by 8 to ensure that _SDA_BASE_ on a word boundary */
  /* Note that .sdata and .sbss must be contiguous */
  /* Note that .sdata and .sbss must be contiguous */
  . = ALIGN(8);
  . = ALIGN(8);
   _ssro = .;
   _ssro = .;
  .sdata : {
  .sdata : {
    *(.sdata)
    *(.sdata)
    *(.sdata.*)
    *(.sdata.*)
    *(.gnu.linkonce.s.*)
    *(.gnu.linkonce.s.*)
  }
  }
  . = ALIGN(4);
  . = ALIGN(4);
  .sbss : {
  .sbss : {
    PROVIDE (__sbss_start = .);
    PROVIDE (__sbss_start = .);
    *(.sbss)
    *(.sbss)
    *(.sbss.*)
    *(.sbss.*)
    *(.gnu.linkonce.sb.*)
    *(.gnu.linkonce.sb.*)
    PROVIDE (__sbss_end = .);
    PROVIDE (__sbss_end = .);
  }
  }
  . = ALIGN(8);
  . = ALIGN(8);
   _essro = .;
   _essro = .;
   _ssro_size = _essro - _ssro;
   _ssro_size = _essro - _ssro;
  PROVIDE (_SDA_BASE_ = _ssro + (_ssro_size / 2 ));
  PROVIDE (_SDA_BASE_ = _ssro + (_ssro_size / 2 ));
  . = ALIGN(4);
  . = ALIGN(4);
   _fbss = .;
   _fbss = .;
  .bss : {
  .bss : {
    PROVIDE (__bss_start = .);
    PROVIDE (__bss_start = .);
    *(.bss)
    *(.bss)
    *(.bss.*)
    *(.bss.*)
    *(.gnu.linkonce.b.*)
    *(.gnu.linkonce.b.*)
    *(COMMON)
    *(COMMON)
    . = ALIGN(4);
    . = ALIGN(4);
    PROVIDE (__bss_end = .);
    PROVIDE (__bss_end = .);
  }
  }
  . = ALIGN(4);
  . = ALIGN(4);
  .heap : {
  .heap : {
     _heap = .;
     _heap = .;
     _heap_start = .;
     _heap_start = .;
     . += _HEAP_SIZE;
     . += _HEAP_SIZE;
     _heap_end = .;
     _heap_end = .;
  }
  }
  . = ALIGN(4);
  . = ALIGN(4);
  .stack : {
  .stack : {
     _stack_end = .;
     _stack_end = .;
     . += _STACK_SIZE;
     . += _STACK_SIZE;
     . = ALIGN(8);
     . = ALIGN(8);
     _stack = .;
     _stack = .;
     _end = .;
     _end = .;
  }
  }
  .tdata : {
  .tdata : {
    *(.tdata)
    *(.tdata)
    *(.tdata.*)
    *(.tdata.*)
    *(.gnu.linkonce.td.*)
    *(.gnu.linkonce.td.*)
  }
  }
  .tbss : {
  .tbss : {
    *(.tbss)
    *(.tbss)
    *(.tbss.*)
    *(.tbss.*)
    *(.gnu.linkonce.tb.*)
    *(.gnu.linkonce.tb.*)
  }
  }
}
}
 
 

powered by: WebSVN 2.1.0

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