Commit | Line | Data |
---|---|---|
465bc359 | 1 | # If you change this file, please also look at files which source this one: |
8d05742f | 2 | # shlelf.sh, shelf_nbsd.sh |
465bc359 | 3 | |
252b5132 RH |
4 | SCRIPT_NAME=elf |
5 | OUTPUT_FORMAT="elf32-sh" | |
485cf679 | 6 | NO_REL_RELOCS=yes |
252b5132 RH |
7 | TEXT_START_ADDR=0x1000 |
8 | MAXPAGESIZE=128 | |
9 | ARCH=sh | |
10 | MACHINE= | |
11 | TEMPLATE_NAME=elf32 | |
12 | GENERATE_SHLIB_SCRIPT=yes | |
13 | EMBEDDED=yes | |
252b5132 RH |
14 | # These are for compatibility with the COFF toolchain. |
15 | ENTRY=start | |
16 | CTOR_START='___ctors = .;' | |
17 | CTOR_END='___ctors_end = .;' | |
18 | DTOR_START='___dtors = .;' | |
19 | DTOR_END='___dtors_end = .;' | |
74dc9032 AM |
20 | STACK_ADDR="(DEFINED(_stack) ? _stack : 0x3FFFFF00)" |
21 | STACK_SENTINEL="LONG(0xdeaddead)" | |
8a1cb159 | 22 | # We do not need .stack for shared library. |
74dc9032 | 23 | test -n "$CREATE_SHLIB" && unset STACK_ADDR |