mirror of
https://github.com/rvtr/ctr_firmware.git
synced 2025-10-31 07:51:08 -04:00
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@154 b871894f-2f95-9b40-918c-086798483c85
93 lines
2.1 KiB
Plaintext
93 lines
2.1 KiB
Plaintext
/*---------------------------------------------------------------------------*
|
|
Project: CtrBrom - specfiles
|
|
File: ARM11.ldscript.template
|
|
|
|
Copyright 2008-2009 Nintendo. All rights reserved.
|
|
|
|
These coded instructions, statements, and computer programs contain
|
|
proprietary information of Nintendo of America Inc. and/or Nintendo
|
|
Company Ltd., and are protected by Federal copyright law. They may
|
|
not be disclosed to third parties or copied or duplicated in any form,
|
|
in whole or in part, without the prior written consent of Nintendo.
|
|
|
|
$Date:: $
|
|
$Rev$
|
|
$Author$
|
|
*---------------------------------------------------------------------------*/
|
|
//
|
|
// Scatter Loading Description File Templete
|
|
//
|
|
|
|
#define SDK_ASM
|
|
#include <brom/hw/ARM11/mmap_brom.h>
|
|
|
|
|
|
LOAD_NORMAL HW_BROM_NML HW_BROM_NML_ABT_SIZE
|
|
{
|
|
STUP_ENTRY +0
|
|
{
|
|
*crt0.*o (.emb_text, +FIRST)
|
|
}
|
|
}
|
|
|
|
LOAD_UNABORT HW_BROM_NML_ABT_END (HW_BROM_NML_SIZE - HW_BROM_NML_ABT_SIZE)
|
|
{
|
|
NML_RO +0
|
|
{
|
|
*crt0_excp.o (.emb_text, +FIRST)
|
|
*libos*.brom*.a (:gdef:osBoot)
|
|
*libos*.brom*.a (:gdef:osDisableInterrupts)
|
|
*libos*.brom*.a (:gdef:osRestoreInterrupts)
|
|
*libmi*.brom*.a (+RO)
|
|
*libswi*.brom*.a (+RO)
|
|
*libpxi*.brom*.a (+RO)
|
|
*libacsign*.brom*.a (+RO)
|
|
* (Veneer$$Code)
|
|
}
|
|
RO +0
|
|
{
|
|
* (+RO)
|
|
}
|
|
}
|
|
|
|
LOAD_SECURE HW_BROM_SEC HW_BROM_SEC_SIZE
|
|
{
|
|
SEC_RO +0
|
|
{
|
|
*crt0_secure.o (.emb_text, +FIRST)
|
|
|
|
#ifdef BROM_DEF_LINK_SCATLD
|
|
|
|
*crt0scat.*o (.emb_text)
|
|
|
|
__main.o (+RO)
|
|
* (Region$$Table)
|
|
* (ZISection$$$Table)
|
|
* (!!!scatter)
|
|
* (!!handler_copy)
|
|
* (!!handler_zi)
|
|
* (x$fpl$fpinit)
|
|
|
|
#endif // BROM_DEF_LINK_SCATLD
|
|
|
|
*main.o (+RO)
|
|
*libos*.brom*.a (+RO)
|
|
}
|
|
|
|
RW HW_BROM_WRAM HW_BROM_WRAM_SIZE
|
|
{
|
|
* (+RW)
|
|
}
|
|
ZI +0
|
|
{
|
|
* (+ZI)
|
|
}
|
|
BUF_OVER_BARRIER HW_BROM_WRAM_END EMPTY 0
|
|
{
|
|
}
|
|
|
|
TO_FIRM HW_BROM_TO_FIRM_BUF EMPTY HW_BROM_TO_FIRM_BUF_SIZE
|
|
{
|
|
}
|
|
}
|