1994-06-03 06:01:53 +08:00
|
|
|
cat <<EOF
|
|
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
|
|
OUTPUT_ARCH(${ARCH})
|
|
|
|
${RELOCATING+${LIB_SEARCH_DIRS}}
|
|
|
|
${STACKZERO+${RELOCATING+${STACKZERO}}}
|
|
|
|
${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}
|
1996-04-16 04:53:00 +08:00
|
|
|
${RELOCATING+${EXECUTABLE_SYMBOLS}}
|
|
|
|
PROVIDE (__stack = 0);
|
1994-06-03 06:01:53 +08:00
|
|
|
SECTIONS
|
|
|
|
{
|
1996-04-16 04:53:00 +08:00
|
|
|
.text ${TEXT_START_ADDR} :
|
1994-06-03 06:01:53 +08:00
|
|
|
{
|
|
|
|
CREATE_OBJECT_SYMBOLS
|
|
|
|
*(.text)
|
|
|
|
/* The next six sections are for SunOS dynamic linking. The order
|
|
|
|
is important. */
|
|
|
|
*(.dynrel)
|
|
|
|
*(.hash)
|
|
|
|
*(.dynsym)
|
|
|
|
*(.dynstr)
|
|
|
|
*(.rules)
|
|
|
|
*(.need)
|
1995-09-29 00:36:34 +08:00
|
|
|
${RELOCATING+_etext = .;}
|
|
|
|
${RELOCATING+__etext = .;}
|
1994-06-03 06:01:53 +08:00
|
|
|
${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}}
|
|
|
|
}
|
1995-09-29 00:36:34 +08:00
|
|
|
${RELOCATING+. = ${DATA_ALIGNMENT};}
|
|
|
|
.data :
|
1994-06-03 06:01:53 +08:00
|
|
|
{
|
|
|
|
/* The first three sections are for SunOS dynamic linking. */
|
|
|
|
*(.dynamic)
|
|
|
|
*(.got)
|
|
|
|
*(.plt)
|
|
|
|
*(.data)
|
1995-09-29 00:36:34 +08:00
|
|
|
*(.linux-dynamic) /* For Linux dynamic linking. */
|
1994-06-03 06:01:53 +08:00
|
|
|
${CONSTRUCTING+CONSTRUCTORS}
|
|
|
|
${RELOCATING+_edata = .;}
|
1994-06-16 00:17:48 +08:00
|
|
|
${RELOCATING+__edata = .;}
|
1994-06-03 06:01:53 +08:00
|
|
|
}
|
1995-09-29 00:36:34 +08:00
|
|
|
.bss :
|
1994-06-03 06:01:53 +08:00
|
|
|
{
|
|
|
|
${RELOCATING+ __bss_start = .};
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
${RELOCATING+_end = ALIGN(4) };
|
|
|
|
${RELOCATING+__end = ALIGN(4) };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|