1 # If you change this file, please also look at files which source this one:
2 # shlelf.sh, shelf_nbsd.sh
5 OUTPUT_FORMAT
="elf32-sh"
12 GENERATE_SHLIB_SCRIPT
=yes
14 # PR 17739. Delay checking relocs until after all files have
15 # been opened and linker garbage collection has taken place.
16 CHECK_RELOCS_AFTER_OPEN_INPUT
=yes
18 # These are for compatibility with the COFF toolchain.
20 CTOR_START
='___ctors = .;'
21 CTOR_END
='___ctors_end = .;'
22 DTOR_START
='___dtors = .;'
23 DTOR_END
='___dtors_end = .;'
24 # This is like setting STACK_ADDR to 0x3FFFFF00, except that the setting can
25 # be overridden, e.g. --defsym _stack=0x0f00, and that we put an extra
26 # sentinal value at the bottom.
27 # N.B. We can't use PROVIDE to set the default value in a symbol because
28 # the address is needed to place the .stack section, which in turn is needed
29 # to hold the sentinel value(s).
30 test -z "$CREATE_SHLIB" && OTHER_SECTIONS
=" .stack ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : 0x3FFFFF00)} :
32 ${RELOCATING+_stack = .;}
36 # We do not need .stack for shared library.
37 test -n "$CREATE_SHLIB" && OTHER_SECTIONS
=""