1 MACHINE= 2 SCRIPT_NAME=elf 3 OUTPUT_FORMAT="elf32-rx-le" 4 # See also `include/elf/rx.h' 5 TEXT_START_ADDR=0x10000000 6 ARCH=rx 7 ENTRY=_start 8 EMBEDDED=yes 9 TEMPLATE_NAME=elf32 10 EXTRA_EM_FILE=rxelf 11 # EXTRA_EM_FILE=needrelax 12 ELFSIZE=32 13 MAXPAGESIZE=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). 20 test -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. 27 test -n "$CREATE_SHLIB" && OTHER_SECTIONS="" 28 29 OTHER_TEXT_SECTIONS='*(P)' 30 OTHER_READONLY_SECTIONS='C_1 : { *(C_1) } C_2 : { *(C_2) } C : { *(C) } W_1 : { *(W_1) } W_2 : { *(W_2) } W : { *(W) }' 31 OTHER_READWRITE_SECTIONS='D_1 : { *(D_1) } D_2 : { *(D_2) } D : { *(D) }' 32 OTHER_BSS_SECTIONS='B_1 : { *(B_1) } B_2 : { *(B_2) } B : { *(B) }' 33