More correct m68k LynxOS support
This commit is contained in:
parent
a721c80b05
commit
dd3f0e5b7d
|
@ -1,5 +1,8 @@
|
||||||
SCRIPT_NAME=m68kcoff
|
SCRIPT_NAME=m68klynx
|
||||||
OUTPUT_FORMAT="coff-m68k"
|
OUTPUT_FORMAT="coff-m68k-lynx"
|
||||||
TEXT_START_ADDR=0x1000000
|
# This is what LynxOS /lib/init1.o wants.
|
||||||
PAGE_SIZE=0x1000000
|
ENTRY=__main
|
||||||
|
# following are dubious
|
||||||
|
TEXT_START_ADDR=0
|
||||||
|
PAGE_SIZE=0x1000
|
||||||
ARCH=m68k
|
ARCH=m68k
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
SCRIPT_NAME=sparccoff
|
SCRIPT_NAME=sparccoff
|
||||||
OUTPUT_FORMAT="coff-sparc-lynx"
|
OUTPUT_FORMAT="coff-sparc-lynx"
|
||||||
# This is what /lib/init1.o seems to want.
|
# This is what LynxOS /lib/init1.o wants.
|
||||||
ENTRY=_main
|
ENTRY=_main
|
||||||
# following are dubious
|
# following are dubious
|
||||||
PAGE_SIZE=0x1000
|
PAGE_SIZE=0x1000
|
||||||
|
|
|
@ -37,6 +37,7 @@ hppaosf.sc
|
||||||
i386coff.sc
|
i386coff.sc
|
||||||
i960.sc
|
i960.sc
|
||||||
m68kcoff.sc
|
m68kcoff.sc
|
||||||
|
m68klynx.sc
|
||||||
m88kbcs.sc
|
m88kbcs.sc
|
||||||
mips.sc
|
mips.sc
|
||||||
mipsbsd.sc
|
mipsbsd.sc
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
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 .data2)
|
||||||
|
${RELOCATING+ edata = .};
|
||||||
|
}
|
||||||
|
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
|
||||||
|
{
|
||||||
|
*(.bss)
|
||||||
|
*(COMMON)
|
||||||
|
${RELOCATING+ end = .};
|
||||||
|
}
|
||||||
|
.stab . (NOLOAD) :
|
||||||
|
{
|
||||||
|
[ .stab ]
|
||||||
|
}
|
||||||
|
.stabstr . (NOLOAD) :
|
||||||
|
{
|
||||||
|
[ .stabstr ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
Loading…
Reference in New Issue