homebrewfilter/nand-loader/openstub.ld
2016-08-14 19:14:42 +02:00

36 lines
622 B
Plaintext

/*
TinyLoad - a simple region free (original) game launcher in 4k
# This code is licensed to you under the terms of the GNU GPL, version 2;
# see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
*/
OUTPUT_FORMAT("elf32-powerpc")
OUTPUT_ARCH(powerpc:common)
ENTRY(_start)
PHDRS {
app PT_LOAD FLAGS(7);
}
SECTIONS {
. = 0x80004000;
.text : { *(.text) *(.text.*) } :app
.data : { *(.data) *(.data.*) }
.rodata : { *(.rodata) *(.rodata.*) }
__bss_start = .;
.bss : { *(.bss) *(.bss.*) }
__bss_end = .;
. = ALIGN(64);
__stack_end = .;
.stack : {
. += 0x8000;
__stack_top = .;
}
}