1997-09-24 19:39:15 +04:00
|
|
|
TORS=".tors :
|
|
|
|
{
|
|
|
|
___ctors = . ;
|
|
|
|
*(.ctors)
|
|
|
|
___ctors_end = . ;
|
|
|
|
___dtors = . ;
|
|
|
|
*(.dtors)
|
|
|
|
___dtors_end = . ;
|
1999-10-07 22:05:17 +04:00
|
|
|
}"
|
|
|
|
|
1997-09-24 19:39:15 +04:00
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
|
|
OUTPUT_ARCH(${ARCH})
|
1999-10-07 22:05:17 +04:00
|
|
|
${LIB_SEARCH_DIRS}
|
1997-09-24 19:39:15 +04:00
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
*(.text)
|
|
|
|
*(.strings)
|
|
|
|
${RELOCATING+ _etext = . ; }
|
1999-10-07 22:05:17 +04:00
|
|
|
}
|
1997-09-24 19:39:15 +04:00
|
|
|
${CONSTRUCTING+${TORS}}
|
1999-10-07 22:05:17 +04:00
|
|
|
.data ${RELOCATING+ ALIGN(${TARGET_PAGE_SIZE})} :
|
1997-09-24 19:39:15 +04:00
|
|
|
{
|
|
|
|
*(.data)
|
|
|
|
${RELOCATING+ _edata = . ; }
|
1999-10-07 22:05:17 +04:00
|
|
|
}
|
|
|
|
.bss ${RELOCATING+ ALIGN(${TARGET_PAGE_SIZE})} :
|
1997-09-24 19:39:15 +04:00
|
|
|
{
|
|
|
|
${RELOCATING+ _bss_start = . ; }
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
${RELOCATING+ _end = . ; }
|
1999-10-07 22:05:17 +04:00
|
|
|
}
|
|
|
|
.stack :
|
1997-09-24 19:39:15 +04:00
|
|
|
{
|
|
|
|
${RELOCATING+ _stack = . ; }
|
|
|
|
*(.stack)
|
1999-10-07 22:05:17 +04:00
|
|
|
}
|
1997-09-24 19:39:15 +04:00
|
|
|
.stab 0 ${RELOCATING+(NOLOAD)} :
|
|
|
|
{
|
|
|
|
*(.stab)
|
|
|
|
}
|
|
|
|
.stabstr 0 ${RELOCATING+(NOLOAD)} :
|
|
|
|
{
|
|
|
|
*(.stabstr)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|