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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [ld/] [scripttempl/] [elfm68hc11.sc] - Diff between revs 38 and 156

Only display areas with differences | Details | Blame | View Log

Rev 38 Rev 156
#
#
# Unusual variables checked by this code:
# Unusual variables checked by this code:
#       NOP - four byte opcode for no-op (defaults to 0)
#       NOP - four byte opcode for no-op (defaults to 0)
#       DATA_ADDR - if end-of-text-plus-one-page isn't right for data start
#       DATA_ADDR - if end-of-text-plus-one-page isn't right for data start
#       OTHER_READWRITE_SECTIONS - other than .data .bss .ctors .sdata ...
#       OTHER_READWRITE_SECTIONS - other than .data .bss .ctors .sdata ...
#               (e.g., .PARISC.global)
#               (e.g., .PARISC.global)
#       OTHER_SECTIONS - at the end
#       OTHER_SECTIONS - at the end
#       EXECUTABLE_SYMBOLS - symbols that must be defined for an
#       EXECUTABLE_SYMBOLS - symbols that must be defined for an
#               executable (e.g., _DYNAMIC_LINK)
#               executable (e.g., _DYNAMIC_LINK)
#       TEXT_START_SYMBOLS - symbols that appear at the start of the
#       TEXT_START_SYMBOLS - symbols that appear at the start of the
#               .text section.
#               .text section.
#       DATA_START_SYMBOLS - symbols that appear at the start of the
#       DATA_START_SYMBOLS - symbols that appear at the start of the
#               .data section.
#               .data section.
#       OTHER_BSS_SYMBOLS - symbols that appear at the start of the
#       OTHER_BSS_SYMBOLS - symbols that appear at the start of the
#               .bss section besides __bss_start.
#               .bss section besides __bss_start.
#       EMBEDDED - whether this is for an embedded system.
#       EMBEDDED - whether this is for an embedded system.
#
#
# When adding sections, do note that the names of some sections are used
# When adding sections, do note that the names of some sections are used
# when specifying the start address of the next.
# when specifying the start address of the next.
#
#
test -z "$ENTRY" && ENTRY=_start
test -z "$ENTRY" && ENTRY=_start
test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
if [ -z "$MACHINE" ]; then OUTPUT_ARCH=${ARCH}; else OUTPUT_ARCH=${ARCH}:${MACHINE}; fi
if [ -z "$MACHINE" ]; then OUTPUT_ARCH=${ARCH}; else OUTPUT_ARCH=${ARCH}:${MACHINE}; fi
test "$LD_FLAG" = "N" && DATA_ADDR=.
test "$LD_FLAG" = "N" && DATA_ADDR=.
CTOR=".ctors ${CONSTRUCTING-0} :
CTOR=".ctors ${CONSTRUCTING-0} :
  {
  {
    ${CONSTRUCTING+ PROVIDE (__CTOR_LIST__ = .); }
    ${CONSTRUCTING+ PROVIDE (__CTOR_LIST__ = .); }
    ${CONSTRUCTING+${CTOR_START}}
    ${CONSTRUCTING+${CTOR_START}}
    KEEP (*(.ctors))
    KEEP (*(.ctors))
    ${CONSTRUCTING+${CTOR_END}}
    ${CONSTRUCTING+${CTOR_END}}
    ${CONSTRUCTING+ PROVIDE(__CTOR_END__ = .); }
    ${CONSTRUCTING+ PROVIDE(__CTOR_END__ = .); }
  } ${RELOCATING+ > ${TEXT_MEMORY}}"
  } ${RELOCATING+ > ${TEXT_MEMORY}}"
DTOR="  .dtors  ${CONSTRUCTING-0} :
DTOR="  .dtors  ${CONSTRUCTING-0} :
  {
  {
    ${CONSTRUCTING+ PROVIDE(__DTOR_LIST__ = .); }
    ${CONSTRUCTING+ PROVIDE(__DTOR_LIST__ = .); }
    KEEP (*(.dtors))
    KEEP (*(.dtors))
    ${CONSTRUCTING+ PROVIDE(__DTOR_END__ = .); }
    ${CONSTRUCTING+ PROVIDE(__DTOR_END__ = .); }
  } ${RELOCATING+ > ${TEXT_MEMORY}}"
  } ${RELOCATING+ > ${TEXT_MEMORY}}"
VECTORS="
VECTORS="
  /* If the 'vectors_addr' symbol is defined, it indicates the start address
  /* If the 'vectors_addr' symbol is defined, it indicates the start address
     of interrupt vectors.  This depends on the 68HC11 operating mode:
     of interrupt vectors.  This depends on the 68HC11 operating mode:
                        Addr
                        Addr
     Single chip        0xffc0
     Single chip        0xffc0
     Extended mode      0xffc0
     Extended mode      0xffc0
     Bootstrap          0x00c0
     Bootstrap          0x00c0
     Test               0xbfc0
     Test               0xbfc0
     In general, the vectors address is 0xffc0.  This can be overriden
     In general, the vectors address is 0xffc0.  This can be overriden
     with the '-defsym vectors_addr=0xbfc0' ld option.
     with the '-defsym vectors_addr=0xbfc0' ld option.
     Note: for the bootstrap mode, the interrupt vectors are at 0xbfc0 but
     Note: for the bootstrap mode, the interrupt vectors are at 0xbfc0 but
     they are redirected to 0x00c0 by the internal PROM.  Application's vectors
     they are redirected to 0x00c0 by the internal PROM.  Application's vectors
     must also consist of jump instructions (see Motorola's manual).  */
     must also consist of jump instructions (see Motorola's manual).  */
  PROVIDE (_vectors_addr = DEFINED (vectors_addr) ? vectors_addr : 0xffc0);
  PROVIDE (_vectors_addr = DEFINED (vectors_addr) ? vectors_addr : 0xffc0);
  .vectors DEFINED (vectors_addr) ? vectors_addr : 0xffc0 :
  .vectors DEFINED (vectors_addr) ? vectors_addr : 0xffc0 :
  {
  {
    KEEP (*(.vectors))
    KEEP (*(.vectors))
  }"
  }"
#
#
# We provide two emulations: a fixed on that defines some memory banks
# We provide two emulations: a fixed on that defines some memory banks
# and a configurable one that includes a user provided memory definition.
# and a configurable one that includes a user provided memory definition.
#
#
case $GENERIC_BOARD in
case $GENERIC_BOARD in
  yes|1|YES)
  yes|1|YES)
        MEMORY_DEF="
        MEMORY_DEF="
/* Get memory banks definition from some user configuration file.
/* Get memory banks definition from some user configuration file.
   This file must be located in some linker directory (search path
   This file must be located in some linker directory (search path
   with -L). See fixed memory banks emulation script.  */
   with -L). See fixed memory banks emulation script.  */
INCLUDE memory.x;
INCLUDE memory.x;
"
"
        ;;
        ;;
  *)
  *)
MEMORY_DEF="
MEMORY_DEF="
/* Fixed definition of the available memory banks.
/* Fixed definition of the available memory banks.
   See generic emulation script for a user defined configuration.  */
   See generic emulation script for a user defined configuration.  */
MEMORY
MEMORY
{
{
  page0 (rwx) : ORIGIN = 0x0, LENGTH = 256
  page0 (rwx) : ORIGIN = 0x0, LENGTH = 256
  text  (rx)  : ORIGIN = ${ROM_START_ADDR}, LENGTH = ${ROM_SIZE}
  text  (rx)  : ORIGIN = ${ROM_START_ADDR}, LENGTH = ${ROM_SIZE}
  data        : ORIGIN = ${RAM_START_ADDR}, LENGTH = ${RAM_SIZE}
  data        : ORIGIN = ${RAM_START_ADDR}, LENGTH = ${RAM_SIZE}
  eeprom      : ORIGIN = ${EEPROM_START_ADDR}, LENGTH = ${EEPROM_SIZE}
  eeprom      : ORIGIN = ${EEPROM_START_ADDR}, LENGTH = ${EEPROM_SIZE}
}
}
/* Setup the stack on the top of the data memory bank.  */
/* Setup the stack on the top of the data memory bank.  */
PROVIDE (_stack = ${RAM_START_ADDR} + ${RAM_SIZE} - 1);
PROVIDE (_stack = ${RAM_START_ADDR} + ${RAM_SIZE} - 1);
"
"
        ;;
        ;;
esac
esac
STARTUP_CODE="
STARTUP_CODE="
    /* Startup code.  */
    /* Startup code.  */
    KEEP (*(.install0)) /* Section should setup the stack pointer.  */
    KEEP (*(.install0)) /* Section should setup the stack pointer.  */
    KEEP (*(.install1)) /* Place holder for applications.  */
    KEEP (*(.install1)) /* Place holder for applications.  */
    KEEP (*(.install2)) /* Optional installation of data sections in RAM.  */
    KEEP (*(.install2)) /* Optional installation of data sections in RAM.  */
    KEEP (*(.install3)) /* Place holder for applications.  */
    KEEP (*(.install3)) /* Place holder for applications.  */
    KEEP (*(.install4)) /* Section that calls the main.  */
    KEEP (*(.install4)) /* Section that calls the main.  */
"
"
FINISH_CODE="
FINISH_CODE="
    /* Finish code.  */
    /* Finish code.  */
    KEEP (*(.fini0))    /* Beginning of finish code (_exit symbol).  */
    KEEP (*(.fini0))    /* Beginning of finish code (_exit symbol).  */
    KEEP (*(.fini1))    /* Place holder for applications.  */
    KEEP (*(.fini1))    /* Place holder for applications.  */
    KEEP (*(.fini2))    /* C++ destructors.  */
    KEEP (*(.fini2))    /* C++ destructors.  */
    KEEP (*(.fini3))    /* Place holder for applications.  */
    KEEP (*(.fini3))    /* Place holder for applications.  */
    KEEP (*(.fini4))    /* Runtime exit.  */
    KEEP (*(.fini4))    /* Runtime exit.  */
"
"
PRE_COMPUTE_DATA_SIZE="
PRE_COMPUTE_DATA_SIZE="
/* SCz: this does not work yet... This is supposed to force the loading
/* SCz: this does not work yet... This is supposed to force the loading
   of _map_data.o (from libgcc.a) when the .data section is not empty.
   of _map_data.o (from libgcc.a) when the .data section is not empty.
   By doing so, this should bring the code that copies the .data section
   By doing so, this should bring the code that copies the .data section
   from ROM to RAM at init time.
   from ROM to RAM at init time.
  ___pre_comp_data_size = SIZEOF(.data);
  ___pre_comp_data_size = SIZEOF(.data);
  __install_data_sections = ___pre_comp_data_size > 0 ?
  __install_data_sections = ___pre_comp_data_size > 0 ?
                __map_data_sections : 0;
                __map_data_sections : 0;
*/
*/
"
"
INSTALL_RELOC="
INSTALL_RELOC="
  .install0 0 : { *(.install0) }
  .install0 0 : { *(.install0) }
  .install1 0 : { *(.install1) }
  .install1 0 : { *(.install1) }
  .install2 0 : { *(.install2) }
  .install2 0 : { *(.install2) }
  .install3 0 : { *(.install3) }
  .install3 0 : { *(.install3) }
  .install4 0 : { *(.install4) }
  .install4 0 : { *(.install4) }
"
"
FINISH_RELOC="
FINISH_RELOC="
  .fini0 0 : { *(.fini0) }
  .fini0 0 : { *(.fini0) }
  .fini1 0 : { *(.fini1) }
  .fini1 0 : { *(.fini1) }
  .fini2 0 : { *(.fini2) }
  .fini2 0 : { *(.fini2) }
  .fini3 0 : { *(.fini3) }
  .fini3 0 : { *(.fini3) }
  .fini4 0 : { *(.fini4) }
  .fini4 0 : { *(.fini4) }
"
"
BSS_DATA_RELOC="
BSS_DATA_RELOC="
  .data1 0 : { *(.data1) }
  .data1 0 : { *(.data1) }
  /* We want the small data sections together, so single-instruction offsets
  /* We want the small data sections together, so single-instruction offsets
     can access them all, and initialized data all before uninitialized, so
     can access them all, and initialized data all before uninitialized, so
     we can shorten the on-disk segment size.  */
     we can shorten the on-disk segment size.  */
  .sdata   0 : { *(.sdata) }
  .sdata   0 : { *(.sdata) }
  .sbss    0 : { *(.sbss) }
  .sbss    0 : { *(.sbss) }
  .scommon 0 : { *(.scommon) }
  .scommon 0 : { *(.scommon) }
"
"
SOFT_REGS_RELOC="
SOFT_REGS_RELOC="
  .softregs 0 : { *(.softregs) }
  .softregs 0 : { *(.softregs) }
"
"
cat <
cat <
${RELOCATING+/* Linker script for 68HC11 executable (PROM).  */}
${RELOCATING+/* Linker script for 68HC11 executable (PROM).  */}
${RELOCATING-/* Linker script for 68HC11 object file (ld -r).  */}
${RELOCATING-/* Linker script for 68HC11 object file (ld -r).  */}
OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
              "${LITTLE_OUTPUT_FORMAT}")
              "${LITTLE_OUTPUT_FORMAT}")
OUTPUT_ARCH(${OUTPUT_ARCH})
OUTPUT_ARCH(${OUTPUT_ARCH})
${RELOCATING+ENTRY(${ENTRY})}
${RELOCATING+ENTRY(${ENTRY})}
${RELOCATING+${LIB_SEARCH_DIRS}}
${RELOCATING+${LIB_SEARCH_DIRS}}
${RELOCATING+${EXECUTABLE_SYMBOLS}}
${RELOCATING+${EXECUTABLE_SYMBOLS}}
${RELOCATING+${MEMORY_DEF}}
${RELOCATING+${MEMORY_DEF}}
SECTIONS
SECTIONS
{
{
  .hash        ${RELOCATING-0} : { *(.hash)             }
  .hash        ${RELOCATING-0} : { *(.hash)             }
  .dynsym      ${RELOCATING-0} : { *(.dynsym)           }
  .dynsym      ${RELOCATING-0} : { *(.dynsym)           }
  .dynstr      ${RELOCATING-0} : { *(.dynstr)           }
  .dynstr      ${RELOCATING-0} : { *(.dynstr)           }
  .gnu.version          ${RELOCATING-0} : { *(.gnu.version) }
  .gnu.version          ${RELOCATING-0} : { *(.gnu.version) }
  .gnu.version_d        ${RELOCATING-0} : { *(.gnu.version_d) }
  .gnu.version_d        ${RELOCATING-0} : { *(.gnu.version_d) }
  .gnu.version_r        ${RELOCATING-0} : { *(.gnu.version_r) }
  .gnu.version_r        ${RELOCATING-0} : { *(.gnu.version_r) }
  .rel.text    ${RELOCATING-0} :
  .rel.text    ${RELOCATING-0} :
    {
    {
      *(.rel.text)
      *(.rel.text)
      ${RELOCATING+*(.rel.text.*)}
      ${RELOCATING+*(.rel.text.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.t.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.t.*)}
    }
    }
  .rela.text   ${RELOCATING-0} :
  .rela.text   ${RELOCATING-0} :
    {
    {
      *(.rela.text)
      *(.rela.text)
      ${RELOCATING+*(.rela.text.*)}
      ${RELOCATING+*(.rela.text.*)}
      ${RELOCATING+*(.rela.gnu.linkonce.t.*)}
      ${RELOCATING+*(.rela.gnu.linkonce.t.*)}
    }
    }
  .rel.data    ${RELOCATING-0} :
  .rel.data    ${RELOCATING-0} :
    {
    {
      *(.rel.data)
      *(.rel.data)
      ${RELOCATING+*(.rel.data.*)}
      ${RELOCATING+*(.rel.data.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.d.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.d.*)}
    }
    }
  .rela.data   ${RELOCATING-0} :
  .rela.data   ${RELOCATING-0} :
    {
    {
      *(.rela.data)
      *(.rela.data)
      ${RELOCATING+*(.rela.data.*)}
      ${RELOCATING+*(.rela.data.*)}
      ${RELOCATING+*(.rela.gnu.linkonce.d.*)}
      ${RELOCATING+*(.rela.gnu.linkonce.d.*)}
    }
    }
  .rel.rodata  ${RELOCATING-0} :
  .rel.rodata  ${RELOCATING-0} :
    {
    {
      *(.rel.rodata)
      *(.rel.rodata)
      ${RELOCATING+*(.rel.rodata.*)}
      ${RELOCATING+*(.rel.rodata.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.r.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.r.*)}
    }
    }
  .rela.rodata ${RELOCATING-0} :
  .rela.rodata ${RELOCATING-0} :
    {
    {
      *(.rela.rodata)
      *(.rela.rodata)
      ${RELOCATING+*(.rela.rodata.*)}
      ${RELOCATING+*(.rela.rodata.*)}
      ${RELOCATING+*(.rela.gnu.linkonce.r.*)}
      ${RELOCATING+*(.rela.gnu.linkonce.r.*)}
    }
    }
  .rel.sdata   ${RELOCATING-0} :
  .rel.sdata   ${RELOCATING-0} :
    {
    {
      *(.rel.sdata)
      *(.rel.sdata)
      ${RELOCATING+*(.rel.sdata.*)}
      ${RELOCATING+*(.rel.sdata.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.s.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.s.*)}
    }
    }
  .rela.sdata   ${RELOCATING-0} :
  .rela.sdata   ${RELOCATING-0} :
    {
    {
      *(.rela.sdata)
      *(.rela.sdata)
      ${RELOCATING+*(.rela.sdata.*)}
      ${RELOCATING+*(.rela.sdata.*)}
      ${RELOCATING+*(.rela.gnu.linkonce.s.*)}
      ${RELOCATING+*(.rela.gnu.linkonce.s.*)}
    }
    }
  .rel.sbss    ${RELOCATING-0} :
  .rel.sbss    ${RELOCATING-0} :
    {
    {
      *(.rel.sbss)
      *(.rel.sbss)
      ${RELOCATING+*(.rel.sbss.*)}
      ${RELOCATING+*(.rel.sbss.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.sb.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.sb.*)}
    }
    }
  .rela.sbss   ${RELOCATING-0} :
  .rela.sbss   ${RELOCATING-0} :
    {
    {
      *(.rela.sbss)
      *(.rela.sbss)
      ${RELOCATING+*(.rela.sbss.*)}
      ${RELOCATING+*(.rela.sbss.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.sb.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.sb.*)}
    }
    }
  .rel.bss     ${RELOCATING-0} :
  .rel.bss     ${RELOCATING-0} :
    {
    {
      *(.rel.bss)
      *(.rel.bss)
      ${RELOCATING+*(.rel.bss.*)}
      ${RELOCATING+*(.rel.bss.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.b.*)}
      ${RELOCATING+*(.rel.gnu.linkonce.b.*)}
    }
    }
  .rela.bss    ${RELOCATING-0} :
  .rela.bss    ${RELOCATING-0} :
    {
    {
      *(.rela.bss)
      *(.rela.bss)
      ${RELOCATING+*(.rela.bss.*)}
      ${RELOCATING+*(.rela.bss.*)}
      ${RELOCATING+*(.rela.gnu.linkonce.b.*)}
      ${RELOCATING+*(.rela.gnu.linkonce.b.*)}
    }
    }
  .rel.stext            ${RELOCATING-0} : { *(.rel.stest) }
  .rel.stext            ${RELOCATING-0} : { *(.rel.stest) }
  .rela.stext           ${RELOCATING-0} : { *(.rela.stest) }
  .rela.stext           ${RELOCATING-0} : { *(.rela.stest) }
  .rel.etext            ${RELOCATING-0} : { *(.rel.etest) }
  .rel.etext            ${RELOCATING-0} : { *(.rel.etest) }
  .rela.etext           ${RELOCATING-0} : { *(.rela.etest) }
  .rela.etext           ${RELOCATING-0} : { *(.rela.etest) }
  .rel.sdata            ${RELOCATING-0} : { *(.rel.sdata) }
  .rel.sdata            ${RELOCATING-0} : { *(.rel.sdata) }
  .rela.sdata           ${RELOCATING-0} : { *(.rela.sdata) }
  .rela.sdata           ${RELOCATING-0} : { *(.rela.sdata) }
  .rel.edata            ${RELOCATING-0} : { *(.rel.edata) }
  .rel.edata            ${RELOCATING-0} : { *(.rel.edata) }
  .rela.edata           ${RELOCATING-0} : { *(.rela.edata) }
  .rela.edata           ${RELOCATING-0} : { *(.rela.edata) }
  .rel.eit_v            ${RELOCATING-0} : { *(.rel.eit_v) }
  .rel.eit_v            ${RELOCATING-0} : { *(.rel.eit_v) }
  .rela.eit_v           ${RELOCATING-0} : { *(.rela.eit_v) }
  .rela.eit_v           ${RELOCATING-0} : { *(.rela.eit_v) }
  .rel.ebss             ${RELOCATING-0} : { *(.rel.ebss) }
  .rel.ebss             ${RELOCATING-0} : { *(.rel.ebss) }
  .rela.ebss            ${RELOCATING-0} : { *(.rela.ebss) }
  .rela.ebss            ${RELOCATING-0} : { *(.rela.ebss) }
  .rel.srodata          ${RELOCATING-0} : { *(.rel.srodata) }
  .rel.srodata          ${RELOCATING-0} : { *(.rel.srodata) }
  .rela.srodata         ${RELOCATING-0} : { *(.rela.srodata) }
  .rela.srodata         ${RELOCATING-0} : { *(.rela.srodata) }
  .rel.erodata          ${RELOCATING-0} : { *(.rel.erodata) }
  .rel.erodata          ${RELOCATING-0} : { *(.rel.erodata) }
  .rela.erodata         ${RELOCATING-0} : { *(.rela.erodata) }
  .rela.erodata         ${RELOCATING-0} : { *(.rela.erodata) }
  .rel.got              ${RELOCATING-0} : { *(.rel.got) }
  .rel.got              ${RELOCATING-0} : { *(.rel.got) }
  .rela.got             ${RELOCATING-0} : { *(.rela.got) }
  .rela.got             ${RELOCATING-0} : { *(.rela.got) }
  .rel.ctors            ${RELOCATING-0} : { *(.rel.ctors) }
  .rel.ctors            ${RELOCATING-0} : { *(.rel.ctors) }
  .rela.ctors           ${RELOCATING-0} : { *(.rela.ctors) }
  .rela.ctors           ${RELOCATING-0} : { *(.rela.ctors) }
  .rel.dtors            ${RELOCATING-0} : { *(.rel.dtors) }
  .rel.dtors            ${RELOCATING-0} : { *(.rel.dtors) }
  .rela.dtors           ${RELOCATING-0} : { *(.rela.dtors) }
  .rela.dtors           ${RELOCATING-0} : { *(.rela.dtors) }
  .rel.init             ${RELOCATING-0} : { *(.rel.init) }
  .rel.init             ${RELOCATING-0} : { *(.rel.init) }
  .rela.init            ${RELOCATING-0} : { *(.rela.init) }
  .rela.init            ${RELOCATING-0} : { *(.rela.init) }
  .rel.fini             ${RELOCATING-0} : { *(.rel.fini) }
  .rel.fini             ${RELOCATING-0} : { *(.rel.fini) }
  .rela.fini            ${RELOCATING-0} : { *(.rela.fini) }
  .rela.fini            ${RELOCATING-0} : { *(.rela.fini) }
  .rel.plt              ${RELOCATING-0} : { *(.rel.plt) }
  .rel.plt              ${RELOCATING-0} : { *(.rel.plt) }
  .rela.plt             ${RELOCATING-0} : { *(.rela.plt) }
  .rela.plt             ${RELOCATING-0} : { *(.rela.plt) }
  /* Concatenate .page0 sections.  Put them in the page0 memory bank
  /* Concatenate .page0 sections.  Put them in the page0 memory bank
     unless we are creating a relocatable file.  */
     unless we are creating a relocatable file.  */
  .page0 :
  .page0 :
  {
  {
    *(.page0)
    *(.page0)
    ${RELOCATING+*(.softregs)}
    ${RELOCATING+*(.softregs)}
  } ${RELOCATING+ > page0}
  } ${RELOCATING+ > page0}
  /* Start of text section.  */
  /* Start of text section.  */
  .stext ${RELOCATING-0} :
  .stext ${RELOCATING-0} :
  {
  {
    *(.stext)
    *(.stext)
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  .init ${RELOCATING-0} :
  .init ${RELOCATING-0} :
  {
  {
    *(.init)
    *(.init)
  } ${RELOCATING+=${NOP-0}}
  } ${RELOCATING+=${NOP-0}}
  ${RELOCATING-${INSTALL_RELOC}}
  ${RELOCATING-${INSTALL_RELOC}}
  ${RELOCATING-${FINISH_RELOC}}
  ${RELOCATING-${FINISH_RELOC}}
  .text ${RELOCATING-0}:
  .text ${RELOCATING-0}:
  {
  {
    /* Put startup code at beginning so that _start keeps same address.  */
    /* Put startup code at beginning so that _start keeps same address.  */
    ${RELOCATING+${STARTUP_CODE}}
    ${RELOCATING+${STARTUP_CODE}}
    ${RELOCATING+*(.init)}
    ${RELOCATING+*(.init)}
    *(.text)
    *(.text)
    ${RELOCATING+*(.text.*)}
    ${RELOCATING+*(.text.*)}
    /* .gnu.warning sections are handled specially by elf32.em.  */
    /* .gnu.warning sections are handled specially by elf32.em.  */
    *(.gnu.warning)
    *(.gnu.warning)
    ${RELOCATING+*(.gnu.linkonce.t.*)}
    ${RELOCATING+*(.gnu.linkonce.t.*)}
    ${RELOCATING+*(.tramp)}
    ${RELOCATING+*(.tramp)}
    ${RELOCATING+*(.tramp.*)}
    ${RELOCATING+*(.tramp.*)}
    ${RELOCATING+${FINISH_CODE}}
    ${RELOCATING+${FINISH_CODE}}
    ${RELOCATING+_etext = .;}
    ${RELOCATING+_etext = .;}
    ${RELOCATING+PROVIDE (etext = .);}
    ${RELOCATING+PROVIDE (etext = .);}
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  .eh_frame ${RELOCATING-0} :
  .eh_frame ${RELOCATING-0} :
  {
  {
    KEEP (*(.eh_frame))
    KEEP (*(.eh_frame))
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  .gcc_except_table ${RELOCATING-0} :
  .gcc_except_table ${RELOCATING-0} :
  {
  {
    *(.gcc_except_table)
    *(.gcc_except_table)
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  .rodata  ${RELOCATING-0} :
  .rodata  ${RELOCATING-0} :
  {
  {
    *(.rodata)
    *(.rodata)
    ${RELOCATING+*(.rodata.*)}
    ${RELOCATING+*(.rodata.*)}
    ${RELOCATING+*(.gnu.linkonce.r*)}
    ${RELOCATING+*(.gnu.linkonce.r*)}
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  .rodata1 ${RELOCATING-0} :
  .rodata1 ${RELOCATING-0} :
  {
  {
    *(.rodata1)
    *(.rodata1)
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  /* Constructor and destructor tables are in ROM.  */
  /* Constructor and destructor tables are in ROM.  */
  ${RELOCATING+${CTOR}}
  ${RELOCATING+${CTOR}}
  ${RELOCATING+${DTOR}}
  ${RELOCATING+${DTOR}}
  .jcr ${RELOCATING-0} :
  .jcr ${RELOCATING-0} :
  {
  {
    KEEP (*(.jcr))
    KEEP (*(.jcr))
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  } ${RELOCATING+ > ${TEXT_MEMORY}}
  /* Start of the data section image in ROM.  */
  /* Start of the data section image in ROM.  */
  ${RELOCATING+__data_image = .;}
  ${RELOCATING+__data_image = .;}
  ${RELOCATING+PROVIDE (__data_image = .);}
  ${RELOCATING+PROVIDE (__data_image = .);}
  /* All read-only sections that normally go in PROM must be above.
  /* All read-only sections that normally go in PROM must be above.
     We construct the DATA image section in PROM at end of all these
     We construct the DATA image section in PROM at end of all these
     read-only sections.  The data image must be copied at init time.
     read-only sections.  The data image must be copied at init time.
     Refer to GNU ld, Section 3.6.8.2 Output Section LMA.  */
     Refer to GNU ld, Section 3.6.8.2 Output Section LMA.  */
  .data  ${RELOCATING-0} : ${RELOCATING+AT (__data_image)}
  .data  ${RELOCATING-0} : ${RELOCATING+AT (__data_image)}
  {
  {
    ${RELOCATING+__data_section_start = .;}
    ${RELOCATING+__data_section_start = .;}
    ${RELOCATING+PROVIDE (__data_section_start = .);}
    ${RELOCATING+PROVIDE (__data_section_start = .);}
    ${RELOCATING+${DATA_START_SYMBOLS}}
    ${RELOCATING+${DATA_START_SYMBOLS}}
    ${RELOCATING+*(.sdata)}
    ${RELOCATING+*(.sdata)}
    *(.data)
    *(.data)
    ${RELOCATING+*(.data.*)}
    ${RELOCATING+*(.data.*)}
    ${RELOCATING+*(.data1)}
    ${RELOCATING+*(.data1)}
    ${RELOCATING+*(.gnu.linkonce.d.*)}
    ${RELOCATING+*(.gnu.linkonce.d.*)}
    ${CONSTRUCTING+CONSTRUCTORS}
    ${CONSTRUCTING+CONSTRUCTORS}
    ${RELOCATING+_edata  =  .;}
    ${RELOCATING+_edata  =  .;}
    ${RELOCATING+PROVIDE (edata = .);}
    ${RELOCATING+PROVIDE (edata = .);}
  } ${RELOCATING+ > ${DATA_MEMORY}}
  } ${RELOCATING+ > ${DATA_MEMORY}}
  ${RELOCATING+__data_section_size = SIZEOF(.data);}
  ${RELOCATING+__data_section_size = SIZEOF(.data);}
  ${RELOCATING+PROVIDE (__data_section_size = SIZEOF(.data));}
  ${RELOCATING+PROVIDE (__data_section_size = SIZEOF(.data));}
  ${RELOCATING+__data_image_end = __data_image + __data_section_size;}
  ${RELOCATING+__data_image_end = __data_image + __data_section_size;}
  ${RELOCATING+${PRE_COMPUTE_DATA_SIZE}}
  ${RELOCATING+${PRE_COMPUTE_DATA_SIZE}}
  /* .install ${RELOCATING-0}:
  /* .install ${RELOCATING-0}:
  {
  {
    . = _data_image_end;
    . = _data_image_end;
  } ${RELOCATING+ > ${TEXT_MEMORY}} */
  } ${RELOCATING+ > ${TEXT_MEMORY}} */
  /* Relocation for some bss and data sections.  */
  /* Relocation for some bss and data sections.  */
  ${RELOCATING-${BSS_DATA_RELOC}}
  ${RELOCATING-${BSS_DATA_RELOC}}
  ${RELOCATING-${SOFT_REGS_RELOC}}
  ${RELOCATING-${SOFT_REGS_RELOC}}
  .bss ${RELOCATING-0} :
  .bss ${RELOCATING-0} :
  {
  {
    ${RELOCATING+__bss_start = .;}
    ${RELOCATING+__bss_start = .;}
    ${RELOCATING+*(.sbss)}
    ${RELOCATING+*(.sbss)}
    ${RELOCATING+*(.scommon)}
    ${RELOCATING+*(.scommon)}
    *(.dynbss)
    *(.dynbss)
    *(.bss)
    *(.bss)
    ${RELOCATING+*(.bss.*)}
    ${RELOCATING+*(.bss.*)}
    ${RELOCATING+*(.gnu.linkonce.b.*)}
    ${RELOCATING+*(.gnu.linkonce.b.*)}
    *(COMMON)
    *(COMMON)
    ${RELOCATING+PROVIDE (_end = .);}
    ${RELOCATING+PROVIDE (_end = .);}
  } ${RELOCATING+ > ${DATA_MEMORY}}
  } ${RELOCATING+ > ${DATA_MEMORY}}
  ${RELOCATING+__bss_size = SIZEOF(.bss);}
  ${RELOCATING+__bss_size = SIZEOF(.bss);}
  ${RELOCATING+PROVIDE (__bss_size = SIZEOF(.bss));}
  ${RELOCATING+PROVIDE (__bss_size = SIZEOF(.bss));}
  .eeprom ${RELOCATING-0} :
  .eeprom ${RELOCATING-0} :
  {
  {
    *(.eeprom)
    *(.eeprom)
    *(.eeprom.*)
    *(.eeprom.*)
  } ${RELOCATING+ > ${EEPROM_MEMORY}}
  } ${RELOCATING+ > ${EEPROM_MEMORY}}
  ${RELOCATING+${VECTORS}}
  ${RELOCATING+${VECTORS}}
  /* 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.
     Treatment of DWARF debug section must be at end of the linker
     Treatment of DWARF debug section must be at end of the linker
     script to avoid problems when there are undefined symbols. It's necessary
     script to avoid problems when there are undefined symbols. It's necessary
     to avoid that the DWARF section is relocated before such undefined
     to avoid that the DWARF section is relocated before such undefined
     symbols are found.  */
     symbols are found.  */
  /* 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) }
}
}
EOF
EOF
 
 

powered by: WebSVN 2.1.0

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