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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [sh/] [sh3bb.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
/* Linker script for the "SH3 Target System", also known as "the big box". */
/* Linker script for the "SH3 Target System", also known as "the big box". */
/*STARTUP(crt0.o) */
/*STARTUP(crt0.o) */
/*OUTPUT_ARCH(shl)*/
/*OUTPUT_ARCH(shl)*/
SEARCH_DIR(.)
SEARCH_DIR(.)
GROUP(-lc -lgcc)
GROUP(-lc -lgcc)
__DYNAMIC  =  0;
__DYNAMIC  =  0;
MEMORY
MEMORY
{
{
  ram (rwx) : ORIGIN = 0xc008000, LENGTH = 0x2000000
  ram (rwx) : ORIGIN = 0xc008000, LENGTH = 0x2000000
}
}
/* Put the stack up high. */
/* Put the stack up high. */
/* (Commented out because it doesn't seem to work right) */
/* (Commented out because it doesn't seem to work right) */
/*PROVIDE (__stack = 0xc800000);*/
/*PROVIDE (__stack = 0xc800000);*/
/* Initalize some symbols to be zero so we can reference them in the
/* Initalize some symbols to be zero so we can reference them in the
   crt0 without core dumping. These functions are all optional, but
   crt0 without core dumping. These functions are all optional, but
   we do this so we can have our crt0 always use them if they exist.
   we do this so we can have our crt0 always use them if they exist.
   This is so BSPs work better when using the crt0 installed with gcc.
   This is so BSPs work better when using the crt0 installed with gcc.
   We have to initalize them twice, so we cover a.out (which prepends
   We have to initalize them twice, so we cover a.out (which prepends
   an underscore) and coff object file formats. */
   an underscore) and coff object file formats. */
PROVIDE (hardware_init_hook = 0);
PROVIDE (hardware_init_hook = 0);
PROVIDE (_hardware_init_hook = 0);
PROVIDE (_hardware_init_hook = 0);
PROVIDE (software_init_hook = 0);
PROVIDE (software_init_hook = 0);
PROVIDE (_software_init_hook = 0);
PROVIDE (_software_init_hook = 0);
/* Put everything in ram (of course).  */
/* Put everything in ram (of course).  */
SECTIONS
SECTIONS
{
{
  .text :
  .text :
  {
  {
    *(.text)
    *(.text)
    . = ALIGN(0x4);
    . = ALIGN(0x4);
     __CTOR_LIST__ = .;
     __CTOR_LIST__ = .;
    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
    ___ctors = .;
    ___ctors = .;
    *(.ctors)
    *(.ctors)
    ___ctors_end = .;
    ___ctors_end = .;
    LONG(0)
    LONG(0)
    __CTOR_END__ = .;
    __CTOR_END__ = .;
    __DTOR_LIST__ = .;
    __DTOR_LIST__ = .;
    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
    ___dtors = .;
    ___dtors = .;
    *(.dtors)
    *(.dtors)
    ___dtors_end = .;
    ___dtors_end = .;
     LONG(0)
     LONG(0)
    __DTOR_END__ = .;
    __DTOR_END__ = .;
    *(.rodata)
    *(.rodata)
    *(.gcc_except_table)
    *(.gcc_except_table)
     _etext = .;
     _etext = .;
    *(.lit)
    *(.lit)
  } > ram
  } > ram
  .data BLOCK (0x4) :
  .data BLOCK (0x4) :
  {
  {
    *(.shdata)
    *(.shdata)
    *(.data)
    *(.data)
    _edata = .;
    _edata = .;
  } > ram
  } > ram
  .bss BLOCK (0x4) :
  .bss BLOCK (0x4) :
  {
  {
    __bss_start = . ;
    __bss_start = . ;
    *(.shbss)
    *(.shbss)
    *(.bss)
    *(.bss)
    *(COMMON)
    *(COMMON)
    _end =  ALIGN (0x8);
    _end =  ALIGN (0x8);
    __end = _end;
    __end = _end;
  } > ram
  } > ram
  /* I know, I know, stack sections are supposed to be useless; but
  /* I know, I know, stack sections are supposed to be useless; but
     this actually worked for me, as opposed to the PROVIDE. */
     this actually worked for me, as opposed to the PROVIDE. */
  .stack 0xc800000 :
  .stack 0xc800000 :
  {
  {
        __stack = .;
        __stack = .;
  } > ram
  } > ram
  .stab 0 (NOLOAD) : { *(.stab) }
  .stab 0 (NOLOAD) : { *(.stab) }
  .stabstr 0 (NOLOAD) : { *(.stabstr) }
  .stabstr 0 (NOLOAD) : { *(.stabstr) }
  /* DWARF debug sections.
  /* DWARF debug sections.
     Symbols in the DWARF debugging sections are relative to
     Symbols in the DWARF debugging sections are relative to
     the beginning of the section so we begin them at 0.  */
     the beginning 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) }
  .debug_info     0 : { *(.debug_info) }
  .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) }
}
}
 
 

powered by: WebSVN 2.1.0

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