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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [mep/] [gmap_default.ld] - Diff between revs 158 and 816

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

Rev 158 Rev 816
/******************************************************************************
/******************************************************************************
begin-header
begin-header
   Copyright (c) 2000-2007  Red Hat, Inc. All rights reserved.
   Copyright (c) 2000-2007  Red Hat, Inc. All rights reserved.
   This copyrighted material is made available to anyone wishing to use, modify,
   This copyrighted material is made available to anyone wishing to use, modify,
   copy, or redistribute it subject to the terms and conditions of the BSD
   copy, or redistribute it subject to the terms and conditions of the BSD
   License.   This program is distributed in the hope that it will be useful,
   License.   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY expressed or implied, including the implied
   but WITHOUT ANY WARRANTY expressed or implied, including the implied
   warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  A copy
   warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  A copy
   of this license is available at http://www.opensource.org/licenses. Any
   of this license is available at http://www.opensource.org/licenses. Any
   Red Hat trademarks that are incorporated in the source code or documentation
   Red Hat trademarks that are incorporated in the source code or documentation
   are not subject to the BSD License and may only be used or replicated with
   are not subject to the BSD License and may only be used or replicated with
   the express permission of Red Hat, Inc.
   the express permission of Red Hat, Inc.
   Default linker script for use with the Configuration Tool for
   Default linker script for use with the Configuration Tool for
   Toshiba Media Processor.
   Toshiba Media Processor.
   When generating a configuration for a media module, M, the
   When generating a configuration for a media module, M, the
   configuration tool will copy this file into a custom linker script
   configuration tool will copy this file into a custom linker script
   M.ld, and customize the script with settings from the media
   M.ld, and customize the script with settings from the media
   module's global map file.
   module's global map file.
end-header
end-header
*******************************************************************************/
*******************************************************************************/
OUTPUT_FORMAT("elf32-mep", "elf32-mep",
OUTPUT_FORMAT("elf32-mep", "elf32-mep",
              "elf32-mep")
              "elf32-mep")
OUTPUT_ARCH(mep)
OUTPUT_ARCH(mep)
ENTRY(_reset)
ENTRY(_reset)
MEMORY
MEMORY
{
{
/* begin-memory */
/* begin-memory */
  VEC   (r) : ORIGIN = 0x00000000, LENGTH = 0x000000b8
  VEC   (r) : ORIGIN = 0x00000000, LENGTH = 0x000000b8
  ROM   (r) : ORIGIN = 0x000000b8, LENGTH = 0x001fff48
  ROM   (r) : ORIGIN = 0x000000b8, LENGTH = 0x001fff48
  RAM   (w) : ORIGIN = 0x00800000, LENGTH = 0x00800000
  RAM   (w) : ORIGIN = 0x00800000, LENGTH = 0x00800000
/* end-memory */
/* end-memory */
}
}
SECTIONS
SECTIONS
{
{
  /* Sections to be placed in the vec area.  */
  /* Sections to be placed in the vec area.  */
  .vec : { *(.vec) } >VEC /* VEC-section */
  .vec : { *(.vec) } >VEC /* VEC-section */
  /* Sections to be placed in the HWINIT area.  */
  /* Sections to be placed in the HWINIT area.  */
  .hwinit : { *(.hwinit) } >HWINIT /* HWINIT-section */
  .hwinit : { *(.hwinit) } >HWINIT /* HWINIT-section */
  /* Sections to be placed in the ROM area.  */
  /* Sections to be placed in the ROM area.  */
  .gnu.version   : { *(.gnu.version)    } >ROM /* ROM-section */
  .gnu.version   : { *(.gnu.version)    } >ROM /* ROM-section */
  .gnu.version_d : { *(.gnu.version_d)  } >ROM /* ROM-section */
  .gnu.version_d : { *(.gnu.version_d)  } >ROM /* ROM-section */
  .gnu.version_r : { *(.gnu.version_r)  } >ROM /* ROM-section */
  .gnu.version_r : { *(.gnu.version_r)  } >ROM /* ROM-section */
  /* Sections to be placed in the romdata.s area.  */
  /* Sections to be placed in the romdata.s area.  */
  .srodata :
  .srodata :
  {
  {
    __sdabase = . + 0x8000;
    __sdabase = . + 0x8000;
    *(.srodata) *(.srodata.*) *(.gnu.linkonce.srd.*)
    *(.srodata) *(.srodata.*) *(.gnu.linkonce.srd.*)
  } >RAM /* DATA-section */
  } >RAM /* DATA-section */
  /* Sections to be placed in the data.s area.  */
  /* Sections to be placed in the data.s area.  */
  .sdata     :
  .sdata     :
  {
  {
    *(.sdata)
    *(.sdata)
    *(.sdata.*)
    *(.sdata.*)
    *(.gnu.linkonce.s.*)
    *(.gnu.linkonce.s.*)
  } >RAM /* DATA-section */
  } >RAM /* DATA-section */
  .sbss      :
  .sbss      :
  {
  {
    PROVIDE (__sbss_start = .);
    PROVIDE (__sbss_start = .);
    PROVIDE (___sbss_start = .);
    PROVIDE (___sbss_start = .);
    *(.dynsbss)
    *(.dynsbss)
    *(.sbss)
    *(.sbss)
    *(.sbss.*)
    *(.sbss.*)
    *(.gnu.linkonce.sb.*)
    *(.gnu.linkonce.sb.*)
    *(.scommon)
    *(.scommon)
    PROVIDE (__sbss_end = .);
    PROVIDE (__sbss_end = .);
    PROVIDE (___sbss_end = .);
    PROVIDE (___sbss_end = .);
    /* Assert maximum size */
    /* Assert maximum size */
    __assert_tiny_size = ASSERT ((. < __sdabase) || ((. - __sdabase) <= 0x8000),
    __assert_tiny_size = ASSERT ((. < __sdabase) || ((. - __sdabase) <= 0x8000),
                                 "tiny section overflow");
                                 "tiny section overflow");
  } >RAM /* DATA-section */
  } >RAM /* DATA-section */
  /* Sections to be placed in the data.m area.  */
  /* Sections to be placed in the data.m area.  */
  .data    :
  .data    :
  {
  {
    __data_start = . ;
    __data_start = . ;
    *(.data)
    *(.data)
    *(.data.*)
    *(.data.*)
    *(.gnu.linkonce.d.*)
    *(.gnu.linkonce.d.*)
    SORT(CONSTRUCTORS)
    SORT(CONSTRUCTORS)
  } >RAM /* DATA-section */
  } >RAM /* DATA-section */
  .data1   : { *(.data1) } >RAM /* DATA-section */
  .data1   : { *(.data1) } >RAM /* DATA-section */
  .eh_frame : { KEEP (*(.eh_frame))} >RAM /* DATA-section */
  .eh_frame : { KEEP (*(.eh_frame))} >RAM /* DATA-section */
  .gcc_except_table : { *(.gcc_except_table) *(.gcc_except_table.*) } >RAM /* DATA-section */
  .gcc_except_table : { *(.gcc_except_table) *(.gcc_except_table.*) } >RAM /* DATA-section */
  .dynamic       : { *(.dynamic) } >RAM /* DATA-section */
  .dynamic       : { *(.dynamic) } >RAM /* DATA-section */
  .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))
  } >RAM /* DATA-section */
  } >RAM /* DATA-section */
  .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))
  } >RAM /* DATA-section */
  } >RAM /* DATA-section */
  .jcr :
  .jcr :
  {
  {
    . = ALIGN(4);
    . = ALIGN(4);
    *(.jcr)
    *(.jcr)
  } >RAM /* DATA-section */
  } >RAM /* DATA-section */
  .got :
  .got :
  {
  {
    *(.got.plt) *(.got)
    *(.got.plt) *(.got)
    _edata = .;
    _edata = .;
    PROVIDE (edata = .);
    PROVIDE (edata = .);
  } >RAM /* DATA-section */
  } >RAM /* DATA-section */
  .based :
  .based :
  {
  {
    __tpbase = .;
    __tpbase = .;
    *(.based) *(.based.*) *(.gnu.linkonce.based.*)
    *(.based) *(.based.*) *(.gnu.linkonce.based.*)
    /* Assert maximum size */
    /* Assert maximum size */
    __assert_based_size = ASSERT ((. - __tpbase) <= 0x80,
    __assert_based_size = ASSERT ((. - __tpbase) <= 0x80,
                                  "based section overflow");
                                  "based section overflow");
  } >RAM /* DATA-section */
  } >RAM /* DATA-section */
  .bss       :
  .bss       :
  {
  {
    __bss_start = .;
    __bss_start = .;
    *(.dynbss)
    *(.dynbss)
    *(.bss)
    *(.bss)
    *(.bss.*)
    *(.bss.*)
    *(.gnu.linkonce.b.*)
    *(.gnu.linkonce.b.*)
    *(COMMON)
    *(COMMON)
    /* Align here to ensure that the .bss section occupies space up to
    /* Align here to ensure that the .bss section occupies space up to
      _end.  Align after .bss to ensure correct alignment even if the
      _end.  Align after .bss to ensure correct alignment even if the
      .bss section disappears because there are no input sections.  */
      .bss section disappears because there are no input sections.  */
    . = ALIGN(32 / 8);
    . = ALIGN(32 / 8);
    _end = .;
    _end = .;
    PROVIDE (end = .);
    PROVIDE (end = .);
  } >RAM /* DATA-section */
  } >RAM /* DATA-section */
  /* Sections to be placed in the code.m area.  */
  /* Sections to be placed in the code.m area.  */
  .init          :
  .init          :
  {
  {
    KEEP (*(.init))
    KEEP (*(.init))
  } >RAM /* CODE-section */
  } >RAM /* CODE-section */
  .plt      : { *(.plt) } >RAM /* DATA-section */
  .plt      : { *(.plt) } >RAM /* DATA-section */
  .text      :
  .text      :
  {
  {
    *(.text)
    *(.text)
    *(.text.*)
    *(.text.*)
    *(.stub)
    *(.stub)
    /* .gnu.warning sections are handled specially by elf32.em.  */
    /* .gnu.warning sections are handled specially by elf32.em.  */
    *(.gnu.warning)
    *(.gnu.warning)
    *(.gnu.linkonce.t.*)
    *(.gnu.linkonce.t.*)
  } >RAM /* CODE-section */ =0
  } >RAM /* CODE-section */ =0
  .vtext ALIGN(8)    :
  .vtext ALIGN(8)    :
  {
  {
    *(.vtext)
    *(.vtext)
  } >RAM /* CODE-section */
  } >RAM /* CODE-section */
  .fini      :
  .fini      :
  {
  {
    KEEP (*(.fini))
    KEEP (*(.fini))
    PROVIDE (__etext = .);
    PROVIDE (__etext = .);
    PROVIDE (_etext = .);
    PROVIDE (_etext = .);
    PROVIDE (etext = .);
    PROVIDE (etext = .);
  } >RAM /* CODE-section */ =0
  } >RAM /* CODE-section */ =0
  /* Sections to be placed in the romdata.m area.  */
  /* Sections to be placed in the romdata.m area.  */
  .rodata   : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) } >RAM /* DATA-section */
  .rodata   : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) } >RAM /* DATA-section */
  .rodata1   : { *(.rodata1) } >RAM /* DATA-section */
  .rodata1   : { *(.rodata1) } >RAM /* DATA-section */
  /* Sections to be placed in the code.l area.  */
  /* Sections to be placed in the code.l area.  */
  .ftext : {  *(.ftext) *(.ftext.*) *(.gnu.linkonce.ft.*) } >RAM /* CODE-section */
  .ftext : {  *(.ftext) *(.ftext.*) *(.gnu.linkonce.ft.*) } >RAM /* CODE-section */
  .vftext ALIGN(8)    :
  .vftext ALIGN(8)    :
  {
  {
    *(.vftext) *(.vftext.*) *(.gnu.linkonce.vf.*)
    *(.vftext) *(.vftext.*) *(.gnu.linkonce.vf.*)
  } >RAM /* CODE-section */
  } >RAM /* CODE-section */
  /* Sections to be placed in the romdata.l area.  */
  /* Sections to be placed in the romdata.l area.  */
  .frodata :
  .frodata :
  {
  {
    *(.frodata) *(.frodata.*) *(.gnu.linkonce.frd.*)
    *(.frodata) *(.frodata.*) *(.gnu.linkonce.frd.*)
    __assert_near_size = ASSERT (. <= 0x1000000, "near section overflow");
    __assert_near_size = ASSERT (. <= 0x1000000, "near section overflow");
  } >RAM /* DATA-section */
  } >RAM /* DATA-section */
  /* Sections to be placed in the data.l area.  */
  /* Sections to be placed in the data.l area.  */
  .far : { *(.far) *(.far.*) *(.gnu.linkonce.far.*) } >RAM /* DATA-section */
  .far : { *(.far) *(.far.*) *(.gnu.linkonce.far.*) } >RAM /* DATA-section */
  .farbss :
  .farbss :
  { PROVIDE (__farbss_start = .);
  { PROVIDE (__farbss_start = .);
    *(.farbss) *(.farbss.*)
    *(.farbss) *(.farbss.*)
    PROVIDE (__farbss_end = .);
    PROVIDE (__farbss_end = .);
  } >RAM /* DATA-section */
  } >RAM /* DATA-section */
  /* END-mep-sections */
  /* END-mep-sections */
  /* begin-stack-table */
  /* begin-stack-table */
  __stack0  = (__stack - (0 *  (__stack_size / 1)) + 15) / 16 * 16;
  __stack0  = (__stack - (0 *  (__stack_size / 1)) + 15) / 16 * 16;
  .rostacktab :
  .rostacktab :
  {
  {
    /* Emit a table describing the location of the different stacks.
    /* Emit a table describing the location of the different stacks.
       Only 1 processor in the default configuration.  */
       Only 1 processor in the default configuration.  */
    . = ALIGN(4);
    . = ALIGN(4);
    __stack_table = .;
    __stack_table = .;
    LONG (__stack0);
    LONG (__stack0);
    __stack_end = .;
    __stack_end = .;
  } >RAM
  } >RAM
  /* end-stack-table */
  /* end-stack-table */
  /* begin-heap */
  /* begin-heap */
  /* End of DATA is 0x00800000 + 0x00800000. That's where the heap will end.  */
  /* End of DATA is 0x00800000 + 0x00800000. That's where the heap will end.  */
  __heap_end = 0x00800000 + 0x00800000 - 1;
  __heap_end = 0x00800000 + 0x00800000 - 1;
  /* end-heap */
  /* end-heap */
  /* Default stack size is 1M.  That's where the heap will start if there's
  /* Default stack size is 1M.  That's where the heap will start if there's
     room.  If there's not enough room, allocate half of the remaining space
     room.  If there's not enough room, allocate half of the remaining space
     for stack and half for heap.  Align the heap on a 16 byte boundary.  */
     for stack and half for heap.  Align the heap on a 16 byte boundary.  */
  __stack_size = (__stack_end + 0x100000 <= __heap_end + 1
  __stack_size = (__stack_end + 0x100000 <= __heap_end + 1
                  ? 0x100000
                  ? 0x100000
                  : ((__heap_end + 1 - __stack_end) / 2));
                  : ((__heap_end + 1 - __stack_end) / 2));
  __heap = (__stack_end + __stack_size + 15) / 16 * 16;
  __heap = (__stack_end + __stack_size + 15) / 16 * 16;
  /* Leave 16 bytes between the stack and the heap.  */
  /* Leave 16 bytes between the stack and the heap.  */
  __stack = __heap - 0x10;
  __stack = __heap - 0x10;
  /* Stabs debugging sections.  */
  /* Stabs debugging sections.  */
  .stab 0 : { *(.stab) }
  .stab 0 : { *(.stab) }
  .stabstr 0 : { *(.stabstr) }
  .stabstr 0 : { *(.stabstr) }
  .stab.excl 0 : { *(.stab.excl) }
  .stab.excl 0 : { *(.stab.excl) }
  .stab.exclstr 0 : { *(.stab.exclstr) }
  .stab.exclstr 0 : { *(.stab.exclstr) }
  .stab.index 0 : { *(.stab.index) }
  .stab.index 0 : { *(.stab.index) }
  .stab.indexstr 0 : { *(.stab.indexstr) }
  .stab.indexstr 0 : { *(.stab.indexstr) }
  .comment 0 : { *(.comment) }
  .comment 0 : { *(.comment) }
  /* DWARF debug sections.
  /* DWARF debug sections.
     Symbols in the DWARF debugging sections are relative to the beginning
     Symbols in the DWARF debugging sections are relative to the beginning
     of the section so we begin them at 0.  */
     of the section so we begin them at 0.  */
  /* DWARF 1 */
  /* DWARF 1 */
  .debug          0 : { *(.debug) }
  .debug          0 : { *(.debug) }
  .line           0 : { *(.line) }
  .line           0 : { *(.line) }
  /* GNU DWARF 1 extensions */
  /* GNU DWARF 1 extensions */
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
  .debug_sfnames  0 : { *(.debug_sfnames) }
  .debug_sfnames  0 : { *(.debug_sfnames) }
  /* DWARF 1.1 and DWARF 2 */
  /* DWARF 1.1 and DWARF 2 */
  .debug_aranges  0 : { *(.debug_aranges) }
  .debug_aranges  0 : { *(.debug_aranges) }
  .debug_pubnames 0 : { *(.debug_pubnames) }
  .debug_pubnames 0 : { *(.debug_pubnames) }
  /* DWARF 2 */
  /* DWARF 2 */
  .debug_info     0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
  .debug_info     0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
  .debug_abbrev   0 : { *(.debug_abbrev) }
  .debug_abbrev   0 : { *(.debug_abbrev) }
  .debug_line     0 : { *(.debug_line) }
  .debug_line     0 : { *(.debug_line) }
  .debug_frame    0 : { *(.debug_frame) }
  .debug_frame    0 : { *(.debug_frame) }
  .debug_str      0 : { *(.debug_str) }
  .debug_str      0 : { *(.debug_str) }
  .debug_loc      0 : { *(.debug_loc) }
  .debug_loc      0 : { *(.debug_loc) }
  .debug_macinfo  0 : { *(.debug_macinfo) }
  .debug_macinfo  0 : { *(.debug_macinfo) }
  .debug_ranges   0 : { *(.debug_ranges) }
  .debug_ranges   0 : { *(.debug_ranges) }
  /* SGI/MIPS DWARF 2 extensions */
  /* SGI/MIPS DWARF 2 extensions */
  .debug_weaknames 0 : { *(.debug_weaknames) }
  .debug_weaknames 0 : { *(.debug_weaknames) }
  .debug_funcnames 0 : { *(.debug_funcnames) }
  .debug_funcnames 0 : { *(.debug_funcnames) }
  .debug_typenames 0 : { *(.debug_typenames) }
  .debug_typenames 0 : { *(.debug_typenames) }
  .debug_varnames  0 : { *(.debug_varnames) }
  .debug_varnames  0 : { *(.debug_varnames) }
  /* These must appear regardless of  .  */
  /* These must appear regardless of  .  */
}
}
 
 

powered by: WebSVN 2.1.0

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