1#----------------------------------------------------------------------------
2# Project:  NitroSDK - MB - demos - multiboot-wfs
3# File:     main.lsf
4#
5# Copyright 2005-2008 Nintendo. All rights reserved.
6#
7# These coded instructions, statements, and computer programs contain
8# proprietary information of Nintendo of America Inc. and/or Nintendo
9# Company Ltd., and are protected by Federal copyright law. They may
10# not be disclosed to third parties or copied or duplicated in any form,
11# in whole or in part, without the prior written consent of Nintendo.
12#
13# $Log: main.lsf,v $
14# Revision 1.1  2005/06/23 09:06:03  yosizaki
15# Initial upload.
16#
17# $NoKeywords: $
18#----------------------------------------------------------------------------
19#
20#  Nitro LCF SPEC FILE
21#
22
23Static main
24{
25	Address		$(ADDRESS_STATIC)
26	Object		$(OBJS_STATIC)
27	Library		$(LLIBS) $(GLIBS) $(CW_LIBS)
28
29#	Increase capacity of IRQ stack
30	StackSize	0 0x800
31}
32
33Autoload ITCM
34{
35	Address		$(ADDRESS_ITCM)
36	Object		*     		 (.itcm)
37	Object		$(OBJS_AUTOLOAD) (.text)
38	Object		$(OBJS_AUTOLOAD) (.rodata)
39	Object		$(OBJS_AUTOLOAD) (.init)
40	Object		$(OBJS_AUTOLOAD) (.ctor)
41	Object		$(OBJS_AUTOLOAD) (.sinit)
42}
43
44Autoload DTCM
45{
46	Address		$(ADDRESS_DTCM)
47	Object		*     		 (.dtcm)
48	Object		$(OBJS_AUTOLOAD) (.data)
49	Object		$(OBJS_AUTOLOAD) (.sdata)
50	Object		$(OBJS_AUTOLOAD) (.bss)
51	Object		$(OBJS_AUTOLOAD) (.sbss)
52}
53
54Ltdautoload LTDMAIN
55{
56	# If there is a shared overlay for NITRO/TWL, must put it after that
57	After		main
58	Object		* (.ltdmain)
59	Object		$(OBJS_LTDAUTOLOAD)
60	Library		$(LLIBS_EX) $(GLIBS_EX)
61}
62