OUTPUT_FORMAT("coff-h8300") OUTPUT_ARCH(h8300h) ENTRY("_start") /* The memory size is 256KB to coincide with the simulator. Don't change either without considering the other. */ MEMORY { ram : o = 0x0000, l = 0x100000 reloc : o = 0x100000, l = 0x10000 } SECTIONS { .text : { *(.text) *(.strings) *(.ctors) *(.dtors) _etext = . ; } > ram .data : { *(.rodata) *(.data) _edata = . ; } > ram .bss : { _bss_start = . ; *(.bss) *(COMMON) _end = . ; } >ram .stack : { _stack = . ; *(.stack) } > ram .emreloc : { } > reloc }