mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
54 lines
1.1 KiB
Scala
54 lines
1.1 KiB
Scala
# Copyright (C) 2014-2021 Free Software Foundation, Inc.
|
|
#
|
|
# Copying and distribution of this file, with or without modification,
|
|
# are permitted in any medium without royalty provided the copyright
|
|
# notice and this notice are preserved.
|
|
|
|
if test "${OUTPUT_FORMAT}" = "elf32-z80"; then
|
|
NO_REL_RELOCS=1
|
|
NO_RELA_RELOCS=1
|
|
NO_SMALL_DATA=1
|
|
EMBEDDED=1
|
|
ALIGNMENT=1
|
|
. $srcdir/scripttempl/elf.sc
|
|
return 0
|
|
fi
|
|
|
|
cat << EOF
|
|
/* Copyright (C) 2014-2021 Free Software Foundation, Inc.
|
|
|
|
Copying and distribution of this script, with or without modification,
|
|
are permitted in any medium without royalty provided the copyright
|
|
notice and this notice are preserved. */
|
|
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
OUTPUT_ARCH("${ARCH}")
|
|
SECTIONS
|
|
{
|
|
.isr : {
|
|
${RELOCATING+ __Labs = .;}
|
|
*(.isr)
|
|
*(isr)
|
|
${RELOCATING+ __Habs = .;}
|
|
}
|
|
.text : {
|
|
${RELOCATING+ __Ltext = .;}
|
|
*(.text)
|
|
*(text)
|
|
${RELOCATING+ __Htext = .;}
|
|
}
|
|
.data : {
|
|
${RELOCATING+ __Ldata = .;}
|
|
*(.data)
|
|
*(data)
|
|
${RELOCATING+ __Hdata = .;}
|
|
}
|
|
.bss : {
|
|
${RELOCATING+ __Lbss = .;}
|
|
*(.bss)
|
|
*(bss)
|
|
${RELOCATING+ __Hbss = .;}
|
|
}
|
|
}
|
|
EOF
|