1MACHINE= 2SCRIPT_NAME=elf 3OUTPUT_FORMAT="elf32-rx-le" 4# See also `include/elf/rx.h' 5TEXT_START_ADDR=0x10000000 6ARCH=rx 7ENTRY=_start 8EMBEDDED=yes 9TEMPLATE_NAME=elf32 10EXTRA_EM_FILE=rxelf 11# EXTRA_EM_FILE=needrelax 12ELFSIZE=32 13MAXPAGESIZE=256 14# This is like setting STACK_ADDR to 0xbffffffc, except that the setting can 15# be overridden, e.g. --defsym _stack=0x0f00, and that we put an extra 16# sentinal value at the bottom. 17# N.B. We can't use PROVIDE to set the default value in a symbol because 18# the address is needed to place the .stack section, which in turn is needed 19# to hold the sentinel value(s). 20test -z "$CREATE_SHLIB" && OTHER_SECTIONS=" .stack ${RELOCATING-0}${RELOCATING+(DEFINED(__stack) ? __stack : 0xbffffffc)} : 21 { 22 ${RELOCATING+__stack = .;} 23 *(.stack) 24 LONG(0xdeaddead) 25 }" 26# We do not need .stack for shared library. 27test -n "$CREATE_SHLIB" && OTHER_SECTIONS="" 28 29OTHER_TEXT_SECTIONS='*(P)' 30OTHER_READONLY_SECTIONS='C_1 : { *(C_1) } C_2 : { *(C_2) } C : { *(C) } W_1 : { *(W_1) } W_2 : { *(W_2) } W : { *(W) }' 31OTHER_READWRITE_SECTIONS='D_1 : { *(D_1) } D_2 : { *(D_2) } D : { *(D) }' 32OTHER_BSS_SECTIONS='B_1 : { *(B_1) } B_2 : { *(B_2) } B : { *(B) }' 33