This makes the m68k make rules usable from other makefiles. This also adds scsp start address macros. The sound.c example-fragment is deleted, as a better version now exists in saturn-examples.
39 lines
599 B
Plaintext
39 lines
599 B
Plaintext
OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
|
|
OUTPUT_ARCH(m68k)
|
|
MEMORY
|
|
{
|
|
sound_ram : ORIGIN = 0x000000, LENGTH = 512K
|
|
}
|
|
SECTIONS
|
|
{
|
|
.text :
|
|
{
|
|
. = 0x000000;
|
|
KEEP(*(.vectors))
|
|
KEEP(*(.text.start))
|
|
*(.text)
|
|
*(.text.*)
|
|
} > sound_ram
|
|
|
|
.data ALIGN(4) : SUBALIGN(4)
|
|
{
|
|
*(.data)
|
|
*(.data.*)
|
|
} > sound_ram
|
|
|
|
.rodata ALIGN(4) : SUBALIGN(4)
|
|
{
|
|
*(.rodata)
|
|
} > sound_ram
|
|
|
|
.bss ALIGN(4) (NOLOAD) : SUBALIGN(4)
|
|
{
|
|
*(.bss)
|
|
} > sound_ram
|
|
|
|
__bss_link_start = ADDR(.bss);
|
|
__bss_link_end = ADDR(.bss) + SIZEOF(.bss);
|
|
}
|
|
|
|
scsp = 0x000000;
|