mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 08:13:37 +08:00
97b11f4094
* lexsup.c (parse_args <-e>): Revert 2009-03-18 change. * ldemul.c (after_parse_default): Add entry symbol as undef. * emultempl/alphaelf.em (alpha_after_parse): Call after_parse_default. * emultempl/cr16elf.em (cr16elf_after_parse): Likewise. * emultempl/crxelf.em (crxelf_after_parse): Likewise. * emultempl/hppaelf.em (hppaelf_after_parse): Likewise. * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Likewise. * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Call after_parse_default and delete now duplicate code. * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise. * scripttempl/elf32cr16.sc: No need to make entry extern. * scripttempl/elf32cr16c.sc: Likewise. * scripttempl/elf32crx.sc: Likewise. * scripttempl/elf32xc16xs.sc: Only provide ENTRY on final link.
65 lines
1.0 KiB
Scala
65 lines
1.0 KiB
Scala
cat <<EOF
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
OUTPUT_ARCH(${ARCH})
|
|
${RELOCATING+ENTRY ("_start")}
|
|
MEMORY
|
|
{
|
|
vectarea : o =0xc00000, l = 0x0300
|
|
|
|
introm : o = 0xc00300, l = 0x16000
|
|
/* The stack starts at the top of main ram. */
|
|
|
|
dram : o = 0x8000 , l = 0xffff
|
|
/* At the very top of the address space is the 8-bit area. */
|
|
|
|
ldata : o =0x4000 ,l = 0x0200
|
|
}
|
|
SECTIONS
|
|
{
|
|
/*.vects :
|
|
{
|
|
*(.vects)
|
|
} ${RELOCATING+ > vectarea} */
|
|
.init :
|
|
{
|
|
*(.init)
|
|
} ${RELOCATING+ >introm}
|
|
|
|
.text :
|
|
{
|
|
*(.rodata)
|
|
*(.text.*)
|
|
*(.text)
|
|
${RELOCATING+ _etext = . ; }
|
|
} ${RELOCATING+ > introm}
|
|
.data :
|
|
{
|
|
*(.data)
|
|
*(.data.*)
|
|
|
|
${RELOCATING+ _edata = . ; }
|
|
} ${RELOCATING+ > dram}
|
|
|
|
.bss :
|
|
{
|
|
${RELOCATING+ _bss_start = . ;}
|
|
*(.bss)
|
|
*(COMMON)
|
|
${RELOCATING+ _end = . ; }
|
|
} ${RELOCATING+ > dram}
|
|
|
|
.ldata :
|
|
{
|
|
*(.ldata)
|
|
} ${RELOCATING+ > ldata}
|
|
|
|
|
|
.vects :
|
|
{
|
|
*(.vects)
|
|
} ${RELOCATING+ > vectarea}
|
|
|
|
|
|
}
|
|
EOF
|