setvar TEMPLATE_NAME = 'elf32' setvar MACHINE = '' setvar SCRIPT_NAME = 'elf' setvar OUTPUT_FORMAT = ""elf32-epiphany"" setvar NO_REL_RELOCS = 'yes' # See also `include/elf/epiphany.h' setvar MMR_ADDR = '0x00000000' setvar MMR_LEN = '0x100' #RESERVED_ADDR=0x00000100 #RESERVED_LEN=8128 setvar IVT_ADDR = '0x00000000' setvar IVT_LEN = '0x040' # ??? This fails: 'Not enough room for program headers, try linking with -N' #TEXT_START_ADDR=0x00000040 #The following two lines would allow small to medium sized programs #to run in the first 1 MB. #TEXT_START_ADDR=0x00000060 #EXECUTABLE_SYMBOLS='PROVIDE (___bss_start = __bss_start); PROVIDE (___heap_start = end); PROVIDE (___heap_end = (0x0c0000)); PROVIDE (___stack = (0x0ffff0));' setvar TEXT_START_ADDR = ''DEFINED (___text_start) ? ___text_start : 0x80000000'' setvar EXECUTABLE_SYMBOLS = ''PROVIDE (___bss_start = __bss_start); PROVIDE (___heap_start = end); PROVIDE (___heap_end = (0x81800000)); PROVIDE (___stack = (0x81fffff0));'' #Smuggle an alignemnt directive in here so that .bss is aligned. setvar OTHER_SDATA_SECTIONS = ''. = ALIGN(8);'' setvar ARCH = 'epiphany' setvar ENTRY = '_start' setvar EMBEDDED = 'yes' setvar ELFSIZE = '32' setvar ALIGNMENT = '8' #MAXPAGESIZE=8192 setvar MAXPAGESIZE = '1' setvar WRITABLE_RODATA = '' #OTHER_RELOCATING_SECTIONS= #OTHER_READONLY_SECTIONS= #OTHER_READWRITE_SECTIONS=