mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-22 16:53:31 +08:00
efd48a6a97
* emulparams/shelf.sh: New file. * emulparams/shlelf.sh: New file. * Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o. (eshelf.c, eshlelf.c): New targets. * scripttempl/elf.sc: If EMBEDDED is defined, then don't add SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END around .ctors, and DTOR_START and DTOR_END around .dtors. Expand OTHER_RELOCATING_SECTIONS if RELOCATING.
17 lines
399 B
Bash
17 lines
399 B
Bash
SCRIPT_NAME=elf
|
|
OUTPUT_FORMAT="elf32-shl"
|
|
TEXT_START_ADDR=0x1000
|
|
MAXPAGESIZE=128
|
|
ARCH=sh
|
|
TEMPLATE_NAME=elf32
|
|
GENERATE_SHLIB_SCRIPT=yes
|
|
EMBEDDED=yes
|
|
|
|
# These are for compatibility with the COFF toolchain.
|
|
ENTRY=start
|
|
CTOR_START='___ctors = .;'
|
|
CTOR_END='___ctors_end = .;'
|
|
DTOR_START='___dtors = .;'
|
|
DTOR_END='___dtors_end = .;'
|
|
OTHER_RELOCATING_SECTIONS='.stack 0x30000 : { _stack = .; *(.stack) }'
|