1992-02-16 06:07:15 +08:00
|
|
|
cat <<EOF
|
1992-02-16 07:13:00 +08:00
|
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
1992-02-16 06:07:15 +08:00
|
|
|
INPUT(/lab3/u3/sym1/tools/usr/lib/segments.o) /* Has .rstack/.mstack */
|
1992-02-16 07:13:00 +08:00
|
|
|
${LIB_SEARCH_DIRS}
|
|
|
|
|
1992-02-16 06:07:15 +08:00
|
|
|
MEMORY {
|
|
|
|
text : ORIGIN = 0x1000000, LENGTH = 0x1000000
|
|
|
|
talias : ORIGIN = 0x2000000, LENGTH = 0x1000000
|
|
|
|
data : ORIGIN = 0x3000000, LENGTH = 0x1000000
|
|
|
|
mstack : ORIGIN = 0x4000000, LENGTH = 0x1000000
|
|
|
|
rstack : ORIGIN = 0x5000000, LENGTH = 0x1000000
|
|
|
|
}
|
1992-02-16 07:13:00 +08:00
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text : {
|
1992-02-16 06:07:15 +08:00
|
|
|
*(.text)
|
1992-02-16 07:13:00 +08:00
|
|
|
${RELOCATING+ __etext = .}
|
|
|
|
*(.lit)
|
|
|
|
*(.shdata)
|
|
|
|
} ${RELOCATING+ > text}
|
1992-02-16 06:07:15 +08:00
|
|
|
.shbss SIZEOF(.text) + ADDR(.text) : {
|
1992-02-16 07:13:00 +08:00
|
|
|
*(.shbss)
|
1992-02-16 06:07:15 +08:00
|
|
|
}
|
1992-02-16 07:13:00 +08:00
|
|
|
.talias : { } ${RELOCATING+ > talias}
|
|
|
|
.data : {
|
|
|
|
*(.data)
|
|
|
|
${RELOCATING+ __edata = .}
|
|
|
|
} ${RELOCATING+ > data}
|
|
|
|
.bss SIZEOF(.data) + ADDR(.data) :
|
1992-02-16 06:07:15 +08:00
|
|
|
{
|
1992-02-16 07:13:00 +08:00
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
${RELOCATING+ __end = ALIGN(0x8)}
|
|
|
|
}
|
|
|
|
.mstack : { } ${RELOCATING+ > mstack}
|
|
|
|
.rstack : { } ${RELOCATING+ > rstack}
|
1992-02-16 06:07:15 +08:00
|
|
|
}
|
|
|
|
EOF
|