setglobal SCRIPT_NAME = 'elf' if test -z $OUTPUT_FORMAT { # Allow overriding externally to "elf32-tile64" if desired setglobal OUTPUT_FORMAT = 'elf32-tilepro' } setglobal TEXT_START_ADDR = '0x10000' setglobal NO_REL_RELOCS = 'yes' setglobal MAXPAGESIZE = '"CONSTANT (MAXPAGESIZE)'" setglobal COMMONPAGESIZE = '"CONSTANT (COMMONPAGESIZE)'" # See also `include/elf/tilepro.h' setglobal ARCH = 'tilepro' setglobal ALIGNMENT = '64' setglobal MACHINE = '' setglobal NOP = '0' setglobal TEMPLATE_NAME = 'elf32' setglobal GENERATE_SHLIB_SCRIPT = 'yes' setglobal GENERATE_COMBRELOC_SCRIPT = 'yes' setglobal GENERATE_PIE_SCRIPT = 'yes' setglobal NO_SMALL_DATA = 'yes' setglobal SEPARATE_GOTPLT = '"SIZEOF (.got.plt) >= 8 ? 8 : 0'" setglobal OTHER_SECTIONS = '" /* TILEPRO architecture interrupt vector areas */ .intrpt0 0xfc000000 : { KEEP(*(.intrpt0)) } .intrpt1 0xfd000000 : { KEEP(*(.intrpt1)) } .intrpt2 0xfe000000 : { KEEP(*(.intrpt2)) } .intrpt3 0xff000000 : { KEEP(*(.intrpt3)) } '"