Sparc COFF support
This commit is contained in:
parent
7b95fe96ef
commit
1ffcbc2511
1 changed files with 37 additions and 0 deletions
37
ld/scripttempl/sparccoff.sc
Normal file
37
ld/scripttempl/sparccoff.sc
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# Linker script for Sparc COFF.
|
||||||
|
# Based on i386coff.sc by Ian Taylor <ian@cygnus.com>.
|
||||||
|
test -z "$ENTRY" && ENTRY=_start
|
||||||
|
cat <<EOF
|
||||||
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||||
|
${LIB_SEARCH_DIRS}
|
||||||
|
|
||||||
|
ENTRY(${ENTRY})
|
||||||
|
|
||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
.text ${RELOCATING+ SIZEOF_HEADERS} : {
|
||||||
|
*(.init)
|
||||||
|
*(.text)
|
||||||
|
*(.fini)
|
||||||
|
${RELOCATING+ etext = .};
|
||||||
|
}
|
||||||
|
.data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : {
|
||||||
|
*(.data)
|
||||||
|
${RELOCATING+ edata = .};
|
||||||
|
}
|
||||||
|
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
|
||||||
|
{
|
||||||
|
*(.bss)
|
||||||
|
*(COMMON)
|
||||||
|
${RELOCATING+ end = .};
|
||||||
|
}
|
||||||
|
.stab . (NOLOAD) :
|
||||||
|
{
|
||||||
|
[ .stab ]
|
||||||
|
}
|
||||||
|
.stabstr . (NOLOAD) :
|
||||||
|
{
|
||||||
|
[ .stabstr ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
Loading…
Reference in a new issue