mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-12 03:43:33 +08:00
36 lines
574 B
Scala
36 lines
574 B
Scala
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
|