pico430prog/test/rl78g10/link-dbg.ld

34 lines
454 B
Plaintext

OUTPUT_FORMAT("elf32-rl78","elf32-rl78","elf32-rl78")
OUTPUT_ARCH(rl78)
ENTRY(_start)
MEMORY
{
ram (rwx) : ORIGIN = 0xffe00, LENGTH = 0x0a0/*idk*/
}
SECTIONS {
/*.hdr :
{
BYTE(0xe0); BYTE(0x07); / * address * /
BYTE(SIZEOF(.text));
} > ram*/
.text :
{
*(.text* .rodata* .data*)
} > ram
.bss :
{
*(.bss)
} > ram =0x00
/DISCARD/ :
{
*(.vectors)
*(.callt)
*(.option)
*(.password)
*(.plt)
}
}