1TEMPLATE_NAME=elf32 2MACHINE= 3SCRIPT_NAME=elf 4OUTPUT_FORMAT="elf32-epiphany" 5NO_REL_RELOCS=yes 6# See also `include/elf/epiphany.h' 7 8MMR_ADDR=0x00000000 9MMR_LEN=0x100 10 11#RESERVED_ADDR=0x00000100 12#RESERVED_LEN=8128 13 14IVT_ADDR=0x00000000 15IVT_LEN=0x040 16 17# ??? This fails: 'Not enough room for program headers, try linking with -N' 18#TEXT_START_ADDR=0x00000040 19 20#The following two lines would allow small to medium sized programs 21#to run in the first 1 MB. 22#TEXT_START_ADDR=0x00000060 23#EXECUTABLE_SYMBOLS='PROVIDE (___bss_start = __bss_start); PROVIDE (___heap_start = end); PROVIDE (___heap_end = (0x0c0000)); PROVIDE (___stack = (0x0ffff0));' 24 25TEXT_START_ADDR='DEFINED (___text_start) ? ___text_start : 0x80000000' 26EXECUTABLE_SYMBOLS='PROVIDE (___bss_start = __bss_start); PROVIDE (___heap_start = end); PROVIDE (___heap_end = (0x81800000)); PROVIDE (___stack = (0x81fffff0));' 27 28#Smuggle an alignemnt directive in here so that .bss is aligned. 29OTHER_SDATA_SECTIONS='. = ALIGN(8);' 30 31 32ARCH=epiphany 33ENTRY=_start 34EMBEDDED=yes 35ELFSIZE=32 36ALIGNMENT=8 37#MAXPAGESIZE=8192 38MAXPAGESIZE=1 39WRITABLE_RODATA= 40#OTHER_RELOCATING_SECTIONS= 41#OTHER_READONLY_SECTIONS= 42#OTHER_READWRITE_SECTIONS= 43