1 # Note: this parameter script is sourced by the other
2 # sh[l]elf(32|64).sh parameter scripts.
4 OUTPUT_FORMAT
=${OUTPUT_FORMAT-"elf32-sh64"}
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 DATA_START_SYMBOLS
='PROVIDE (___data = .);'
20 # If data is located right after .text (not explicitly specified),
21 # then we need to align it to an 8-byte boundary.
22 OTHER_READONLY_SECTIONS
='
23 PROVIDE (___rodata = DEFINED (.rodata) ? .rodata : 0);
27 # Make _edata and .bss aligned by smuggling in an alignment directive.
28 OTHER_GOT_SECTIONS
='. = ALIGN (8);'
30 # These are for compatibility with the COFF toolchain.
32 CTOR_START
='___ctors = .;'
33 CTOR_END
='___ctors_end = .;'
34 DTOR_START
='___dtors = .;'
35 DTOR_END
='___dtors_end = .;'
37 STACK_ADDR
="(DEFINED(_stack) ? _stack : ALIGN (0x40000) + 0x80000)"
38 STACK_SENTINEL
="LONG(0xdeaddead)"
39 # We do not need .stack for shared library.
40 test -n "$CREATE_SHLIB" && unset STACK_ADDR
42 OTHER_SECTIONS
=".cranges 0 : { *(.cranges) }"
44 # We need to adjust sizes in the .cranges section after relaxation, so
45 # we need an after_allocation function, and it goes in this file.
46 EXTRA_EM_FILE
=${EXTRA_EM_FILE-sh64elf}