mirror of
https://github.com/yellows8/dsi.git
synced 2025-06-19 03:35:34 -04:00

- Use nds-bootloader submodule (latest official devkitPro code) - Consequence of above: FAT12/FAT16 support restored - Now compressing bootloader with exomizer (grab from here:) https://bitbucket.org/magli143/exomizer/wiki/browse/downloads - Miscellaneous code cleanup & stability fixes
83 lines
1.5 KiB
Plaintext
83 lines
1.5 KiB
Plaintext
/*
|
|
elfloader - a Free Software replacement for the Nintendo/BroadOn IOS.
|
|
|
|
Copyright (C) 2008, 2009 Hector Martin "marcan" <marcan@marcansoft.com>
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, version 2.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
/*Modified for nzoneurlstacksmash.*/
|
|
|
|
OUTPUT_FORMAT("elf32-littlearm")
|
|
OUTPUT_ARCH(arm)
|
|
EXTERN(_start)
|
|
ENTRY(_start)
|
|
|
|
MEMORY
|
|
{
|
|
ewram : ORIGIN = 0x02200000, LENGTH = 6K
|
|
}
|
|
|
|
__base_addr = ORIGIN(ewram);
|
|
|
|
SECTIONS
|
|
{
|
|
.crt0 :
|
|
{
|
|
*(.crt0)
|
|
. = ALIGN(4);
|
|
} >ewram
|
|
|
|
.text :
|
|
{
|
|
*(.text.*)
|
|
*(.gnu.warning)
|
|
*(.gnu.linkonce.t*)
|
|
*(.glue_7)
|
|
*(.glue_7t)
|
|
. = ALIGN(4);
|
|
} >ewram
|
|
|
|
.rodata :
|
|
{
|
|
*(.rodata)
|
|
*all.rodata*(*)
|
|
*(.roda)
|
|
*(.rodata.*)
|
|
*(.gnu.linkonce.r*)
|
|
. = ALIGN(4);
|
|
} >ewram
|
|
|
|
.data :
|
|
{
|
|
*(.data)
|
|
*(.data.*)
|
|
*(.gnu.linkonce.d*)
|
|
. = ALIGN(4);
|
|
} >ewram
|
|
|
|
.bss . (NOLOAD) :
|
|
{
|
|
__bss_start = . ;
|
|
*(.dynbss)
|
|
*(.gnu.linkonce.b*)
|
|
*(.bss*)
|
|
*(.sbss*)
|
|
*(COMMON)
|
|
. = ALIGN(4);
|
|
__bss_end = . ;
|
|
}
|
|
}
|