ctr_firmware/trunk/firmware/include/firm/specfiles/ARM9-APP.ldscript.template
(no author) 8d4eb3a702 (shirait)
FATFSフォーマッタおよびFATFSサンプル追加

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@257 b871894f-2f95-9b40-918c-086798483c85
2009-02-06 07:57:59 +00:00

85 lines
1.8 KiB
Plaintext

/*---------------------------------------------------------------------------*
Project: TwlFirm - specfiles
File: ARM9-APP.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 Template
//
#define SDK_ASM
#include <brom/memorymap.h>
#define HW_APP HW_PRV_WRAM_SYSRV_END
#define HW_APP_END (HW_APP + HW_APP_SIZE)
#define HW_APP_SIZE (HW_PRV_WRAM_SIZE - HW_PRV_WRAM_SYSRV_SIZE)
LOAD_STATIC HW_APP HW_APP_SIZE
{
STUP_ENTRY +0
{
*crt0_app.*o (.emb_text, +FIRST)
#ifdef FIRM_DEF_LINK_SCATLD
*crt0scat.*o (.emb_text)
__main.o (+RO)
* (Region$$Table)
* (ZISection$$$Table)
#endif // FIRM_DEF_LINK_SCATLD
}
RO +0
{
* (+RO)
}
RW +0
{
* (+RW)
}
ZI +0
{
* (+ZI)
}
BUF_OVER_BARRIER HW_APP_END EMPTY 0
{
}
#ifndef FIRM_DEF_LINK_SCATLD
DTCM HW_DTCM EMPTY 0
{
}
#else // FIRM_DEF_LINK_SCATLD
ITCM (HW_ITCM + 0x100) (HW_ITCM_SIZE - 0x100)
{
* (.itcm)
* (.itcm.bss)
}
DTCM HW_DTCM HW_DTCM_SIZE
{
* (.dtcm)
* (.dtcm.bss)
}
#endif // FIRM_DEF_LINK_SCATLD
}