mirror of
https://github.com/isfshax/isfshax.git
synced 2024-11-25 12:56:55 +01:00
95 lines
1.7 KiB
Plaintext
95 lines
1.7 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
|
|
|
|
*/
|
|
OUTPUT_FORMAT("elf32-bigarm")
|
|
OUTPUT_ARCH(arm)
|
|
EXTERN(_start)
|
|
ENTRY(_start)
|
|
|
|
__base_addr = 0;
|
|
__stack_size = 0x100;
|
|
|
|
SECTIONS
|
|
{
|
|
. = __base_addr;
|
|
__code_start = .;
|
|
|
|
.init :
|
|
{
|
|
*(.init)
|
|
. = ALIGN(4);
|
|
}
|
|
|
|
.got :
|
|
{
|
|
__got_start = .;
|
|
*(.got.*)
|
|
*(.got)
|
|
. = ALIGN(4);
|
|
__got_end = . ;
|
|
}
|
|
|
|
.text :
|
|
{
|
|
*(.text.*)
|
|
*(.gnu.warning)
|
|
*(.gnu.linkonce.t*)
|
|
*(.glue_7)
|
|
*(.glue_7t)
|
|
. = ALIGN(4);
|
|
}
|
|
|
|
__text_end = . ;
|
|
|
|
.rodata :
|
|
{
|
|
*(.rodata)
|
|
*all.rodata*(*)
|
|
*(.roda)
|
|
*(.rodata.*)
|
|
*(.gnu.linkonce.r*)
|
|
. = ALIGN(4);
|
|
}
|
|
|
|
.data :
|
|
{
|
|
*(.data)
|
|
*(.data.*)
|
|
*(.gnu.linkonce.d*)
|
|
*(.dynbss)
|
|
*(.gnu.linkonce.b*)
|
|
*(.bss*)
|
|
*(.sbss*)
|
|
*(COMMON)
|
|
|
|
. = ALIGN(32);
|
|
__stack_end = .;
|
|
. = . + __stack_size;
|
|
__stack_addr = .;
|
|
}
|
|
|
|
__end = .;
|
|
}
|
|
|
|
PROVIDE (__stack_end = __stack_end);
|
|
PROVIDE (__stack_addr = __stack_addr);
|
|
PROVIDE (__got_start = __got_start);
|
|
PROVIDE (__got_end = __got_end);
|
|
PROVIDE (__elf_start = __end);
|