mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
aa6743a58d
Create symbol "end" instead of "__end". Comment out some parts that may not be needed (yet) for elf.
37 lines
757 B
Scala
37 lines
757 B
Scala
cat <<EOF
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
OUTPUT_ARCH(${ARCH})
|
|
|
|
${RELOCATING+${LIB_SEARCH_DIRS}}
|
|
/* Do we need any of these for elf?
|
|
${RELOCATING+__DYNAMIC = 0;}
|
|
${STACKZERO+${RELOCATING+${STACKZERO}}}
|
|
${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}} */
|
|
SECTIONS
|
|
{
|
|
.text ${RELOCATING+${TEXT_START_ADDR}}:
|
|
{
|
|
CREATE_OBJECT_SYMBOLS
|
|
*(.init)
|
|
*(.text)
|
|
*(.fini)
|
|
*(.rodata)
|
|
${RELOCATING+_etext = ${DATA_ALIGNMENT};}
|
|
}
|
|
.data ${RELOCATING+${DATA_ALIGNMENT}} :
|
|
{
|
|
*(.data)
|
|
${CONSTRUCTING+CONSTRUCTORS}
|
|
${RELOCATING+_edata = .;}
|
|
}
|
|
.bss ${RELOCATING+SIZEOF(.data) + ADDR(.data)} :
|
|
{
|
|
${RELOCATING+ __bss_start = .};
|
|
*(.bss)
|
|
*(COMMON)
|
|
${RELOCATING+_end = . };
|
|
${RELOCATING+end = . };
|
|
}
|
|
}
|
|
EOF
|