mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
is to use shell scripts to generate everything. * generic.em replaces ldtemplate. * Other *.em files replace various *.c files. A *.em file is a shell script that generates the corresponding ld__*.c file that implements an emulation. This is usually a straight 'cat' of a here-document, possibly with substitutions. * Script files (*.sc) are places by *.sc-sh scripts. Again, these are simple shell scripts that 'cat' here-documents, usually with some substitutions. The output a *.sc-sh is a script file.
24 lines
302 B
Plaintext
Executable File
24 lines
302 B
Plaintext
Executable File
cat <<EOF
|
|
SECTIONS
|
|
{
|
|
.text :
|
|
{
|
|
${GLD_STYLE+ CREATE_OBJECT_SYMBOLS}
|
|
*(.text)
|
|
${RELOCATING+ _etext = .}
|
|
}
|
|
.data :
|
|
{
|
|
*(.data)
|
|
${RELOCATING+ _edata = .}
|
|
}
|
|
.bss :
|
|
{
|
|
${RELOCATING+ _bss_start = .}
|
|
*(.bss)
|
|
*(COMMON)
|
|
${RELOCATING+ _end = .}
|
|
}
|
|
}
|
|
EOF
|