1# If you change this file, please also look at files which source this one: 2# shelf32_linux.sh 3 4SCRIPT_NAME=elf 5OUTPUT_FORMAT="elf32-sh64-linux" 6NO_REL_RELOCS=yes 7TEXT_START_ADDR=0x400000 8MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" 9COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" 10ARCH=sh 11MACHINE=sh5 12ALIGNMENT=8 13TEMPLATE_NAME=elf32 14GENERATE_SHLIB_SCRIPT=yes 15GENERATE_PIE_SCRIPT=yes 16 17 18DATA_START_SYMBOLS='PROVIDE (___data = .);' 19 20# If data is located right after .text (not explicitly specified), 21# then we need to align it to an 8-byte boundary. 22OTHER_READONLY_SECTIONS=' 23PROVIDE (___rodata = DEFINED (.rodata) ? .rodata : 0); 24. = ALIGN (8); 25' 26 27# Make _edata and .bss aligned by smuggling in an alignment directive. 28OTHER_GOT_SECTIONS='. = ALIGN (8);' 29 30CTOR_START='___ctors = .;' 31CTOR_END='___ctors_end = .;' 32DTOR_START='___dtors = .;' 33DTOR_END='___dtors_end = .;' 34 35# Do not use the varname=${varname-'string'} construct here; there are 36# problems with that on some shells (e.g. on Solaris) where there is a bug 37# that trigs when $varname contains a "}". 38test -z "$OTHER_RELOCATING_SECTIONS" && OTHER_RELOCATING_SECTIONS=' 39 .cranges 0 : { *(.cranges) } 40' 41 42# We need to adjust sizes in the .cranges section after relaxation, so 43# we need an after_allocation function, and it goes in this file. 44EXTRA_EM_FILE=${EXTRA_EM_FILE-sh64elf} 45