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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [ld/] [scripttempl/] [i386coff.sc] - Diff between revs 156 and 816

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

Rev 156 Rev 816
# Linker script for 386 COFF.  This works on SVR3.2 and SCO Unix 3.2.2.
# Linker script for 386 COFF.  This works on SVR3.2 and SCO Unix 3.2.2.
# Ian Taylor .
# Ian Taylor .
test -z "$ENTRY" && ENTRY=_start
test -z "$ENTRY" && ENTRY=_start
# 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.
INIT='.init : { *(.init) }'
INIT='.init : { *(.init) }'
FINI='.fini : { *(.fini) }'
FINI='.fini : { *(.fini) }'
cat <
cat <
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
${LIB_SEARCH_DIRS}
ENTRY(${ENTRY})
ENTRY(${ENTRY})
SECTIONS
SECTIONS
{
{
  .text ${RELOCATING+ SIZEOF_HEADERS} : {
  .text ${RELOCATING+ SIZEOF_HEADERS} : {
    ${RELOCATING+ *(.init)}
    ${RELOCATING+ *(.init)}
    *(.text)
    *(.text)
    ${RELOCATING+ *(.fini)}
    ${RELOCATING+ *(.fini)}
    ${RELOCATING+ etext  =  .};
    ${RELOCATING+ etext  =  .};
  }
  }
  .data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : {
  .data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : {
    *(.data)
    *(.data)
    ${RELOCATING+ edata  =  .};
    ${RELOCATING+ edata  =  .};
  }
  }
  .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
  .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
  {
  {
    *(.bss)
    *(.bss)
    *(COMMON)
    *(COMMON)
    ${RELOCATING+ end = .};
    ${RELOCATING+ end = .};
  }
  }
  ${RELOCATING- ${INIT}}
  ${RELOCATING- ${INIT}}
  ${RELOCATING- ${FINI}}
  ${RELOCATING- ${FINI}}
  .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.