mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
30 lines
563 B
Plaintext
30 lines
563 B
Plaintext
cat <<EOF
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
OUTPUT_ARCH(${ARCH})
|
|
ENTRY("\$START\$")
|
|
${RELOCATING+${LIB_SEARCH_DIRS}}
|
|
SECTIONS
|
|
{
|
|
.text ${RELOCATING+${TEXT_START_ADDR}}:
|
|
{
|
|
${RELOCATING+__text_start = .};
|
|
CREATE_OBJECT_SYMBOLS
|
|
*(.text)
|
|
}
|
|
.data ${RELOCATING+ 0x40000000 } :
|
|
{
|
|
${RELOCATING+__data_start = .};
|
|
${RELOCATING+ . = . + 0x1000 };
|
|
*(.data)
|
|
${CONSTRUCTING+CONSTRUCTORS}
|
|
}
|
|
.bss ${RELOCATING+SIZEOF(.data) + ADDR(.data)} :
|
|
{
|
|
*(.bss)
|
|
*(COMMON)
|
|
${RELOCATING+_end = . };
|
|
${RELOCATING+__end = . };
|
|
}
|
|
}
|
|
EOF
|