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/] [armcoff.sc] - Diff between revs 38 and 156

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

Rev 38 Rev 156
# Linker script for ARM COFF.
# Linker script for ARM COFF.
# Based on i386coff.sc by Ian Taylor .
# Based on i386coff.sc by Ian Taylor .
test -z "$ENTRY" && ENTRY=_start
test -z "$ENTRY" && ENTRY=_start
if test -z "${DATA_ADDR}"; then
if test -z "${DATA_ADDR}"; then
  if test "$LD_FLAG" = "N" || test "$LD_FLAG" = "n"; then
  if test "$LD_FLAG" = "N" || test "$LD_FLAG" = "n"; then
    DATA_ADDR=.
    DATA_ADDR=.
  fi
  fi
fi
fi
# These are substituted in as variables in order to get '}' in a shell
# These are substituted in as variables in order to get '}' in a shell
# conditional expansion.
# conditional expansion.
CTOR='.ctor : {
CTOR='.ctor : {
    *(SORT(.ctors.*))
    *(SORT(.ctors.*))
    *(.ctor)
    *(.ctor)
  }'
  }'
DTOR='.dtor : {
DTOR='.dtor : {
    *(SORT(.dtors.*))
    *(SORT(.dtors.*))
    *(.dtor)
    *(.dtor)
  }'
  }'
cat <
cat <
OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}")
OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
${LIB_SEARCH_DIRS}
ENTRY(${ENTRY})
ENTRY(${ENTRY})
SECTIONS
SECTIONS
{
{
  /* We start at 0x8000 because gdb assumes it (see FRAME_CHAIN).
  /* We start at 0x8000 because gdb assumes it (see FRAME_CHAIN).
     This is an artifact of the ARM Demon monitor using the bottom 32k
     This is an artifact of the ARM Demon monitor using the bottom 32k
     as workspace (shared with the FP instruction emulator if
     as workspace (shared with the FP instruction emulator if
     present): */
     present): */
  .text ${RELOCATING+ 0x8000} : {
  .text ${RELOCATING+ 0x8000} : {
    *(.init)
    *(.init)
    *(.text*)
    *(.text*)
    *(.glue_7t)
    *(.glue_7t)
    *(.glue_7)
    *(.glue_7)
    *(.rdata)
    *(.rdata)
    ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
    ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
                        LONG (-1); *(.ctors); *(.ctor); LONG (0); }
                        LONG (-1); *(.ctors); *(.ctor); LONG (0); }
    ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
    ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
                        LONG (-1); *(.dtors); *(.dtor);  LONG (0); }
                        LONG (-1); *(.dtors); *(.dtor);  LONG (0); }
    *(.fini)
    *(.fini)
    ${RELOCATING+ etext  =  .;}
    ${RELOCATING+ etext  =  .;}
    ${RELOCATING+ _etext =  .;}
    ${RELOCATING+ _etext =  .;}
  }
  }
  .data ${RELOCATING+${DATA_ADDR-0x40000 + (ALIGN(0x8) & 0xfffc0fff)}} : {
  .data ${RELOCATING+${DATA_ADDR-0x40000 + (ALIGN(0x8) & 0xfffc0fff)}} : {
    ${RELOCATING+  __data_start__ = . ;}
    ${RELOCATING+  __data_start__ = . ;}
    *(.data*)
    *(.data*)
    ${RELOCATING+*(.gcc_exc*)}
    ${RELOCATING+*(.gcc_exc*)}
    ${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
    ${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
    ${RELOCATING+*(.eh_fram*)}
    ${RELOCATING+*(.eh_fram*)}
    ${RELOCATING+___EH_FRAME_END__ = . ;}
    ${RELOCATING+___EH_FRAME_END__ = . ;}
    ${RELOCATING+LONG(0);}
    ${RELOCATING+LONG(0);}
    ${RELOCATING+ __data_end__ = . ;}
    ${RELOCATING+ __data_end__ = . ;}
    ${RELOCATING+ edata  =  .;}
    ${RELOCATING+ edata  =  .;}
    ${RELOCATING+ _edata  =  .;}
    ${RELOCATING+ _edata  =  .;}
  }
  }
  ${CONSTRUCTING+${RELOCATING-$CTOR}}
  ${CONSTRUCTING+${RELOCATING-$CTOR}}
  ${CONSTRUCTING+${RELOCATING-$DTOR}}
  ${CONSTRUCTING+${RELOCATING-$DTOR}}
  .bss ${RELOCATING+ ALIGN(0x8)} :
  .bss ${RELOCATING+ ALIGN(0x8)} :
  {
  {
    ${RELOCATING+ __bss_start__ = . ;}
    ${RELOCATING+ __bss_start__ = . ;}
    *(.bss)
    *(.bss)
    *(COMMON)
    *(COMMON)
    ${RELOCATING+ __bss_end__ = . ;}
    ${RELOCATING+ __bss_end__ = . ;}
  }
  }
  ${RELOCATING+ end = .;}
  ${RELOCATING+ end = .;}
  ${RELOCATING+ _end = .;}
  ${RELOCATING+ _end = .;}
  ${RELOCATING+ __end__ = .;}
  ${RELOCATING+ __end__ = .;}
  .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.