diff options
author | Stan Shebs <shebs@codesourcery.com> | 1993-11-12 00:37:00 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1993-11-12 00:37:00 +0000 |
commit | dd3f0e5b7d58d6892c51938ceffe887e614d1b72 (patch) | |
tree | 7771f73d474eadbbc484ef33f42f7495e042ca59 /ld/scripttempl/m68klynx.sc | |
parent | a721c80b05ddb22fb13b121e71e41adb19f456ba (diff) | |
download | gdb-dd3f0e5b7d58d6892c51938ceffe887e614d1b72.zip gdb-dd3f0e5b7d58d6892c51938ceffe887e614d1b72.tar.gz gdb-dd3f0e5b7d58d6892c51938ceffe887e614d1b72.tar.bz2 |
More correct m68k LynxOS support
Diffstat (limited to 'ld/scripttempl/m68klynx.sc')
-rw-r--r-- | ld/scripttempl/m68klynx.sc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ld/scripttempl/m68klynx.sc b/ld/scripttempl/m68klynx.sc new file mode 100644 index 0000000..3f601c7 --- /dev/null +++ b/ld/scripttempl/m68klynx.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 |