Merge pull request #588 from GriffinRichards/sync-ldscript
Sync wildcards in ld scripts
This commit is contained in:
+13
-2
@@ -12,6 +12,7 @@ SECTIONS {
|
|||||||
. = 0x1C000;
|
. = 0x1C000;
|
||||||
|
|
||||||
<EWRAM>
|
<EWRAM>
|
||||||
|
src/*.o(.ewram_data);
|
||||||
|
|
||||||
*libc.a:impure.o(.data);
|
*libc.a:impure.o(.data);
|
||||||
*libc.a:locale.o(.data);
|
*libc.a:locale.o(.data);
|
||||||
@@ -26,6 +27,8 @@ SECTIONS {
|
|||||||
{
|
{
|
||||||
/* .bss starts at 0x3000000 */
|
/* .bss starts at 0x3000000 */
|
||||||
<BSS>
|
<BSS>
|
||||||
|
src/*.o(.bss);
|
||||||
|
data/*.o(.bss);
|
||||||
|
|
||||||
/* .bss.code starts at 0x30028E0 */
|
/* .bss.code starts at 0x30028E0 */
|
||||||
src/m4a.o(.bss.code);
|
src/m4a.o(.bss.code);
|
||||||
@@ -45,8 +48,8 @@ SECTIONS {
|
|||||||
ALIGN(4)
|
ALIGN(4)
|
||||||
{
|
{
|
||||||
src/rom_header.o(.text);
|
src/rom_header.o(.text);
|
||||||
src/rom_header_gf.o(.text*);
|
src/rom_header_gf.o(.text*);
|
||||||
src/crt0.o(.text);
|
src/crt0.o(.text);
|
||||||
src/main.o(.text);
|
src/main.o(.text);
|
||||||
src/gpu_regs.o(.text);
|
src/gpu_regs.o(.text);
|
||||||
src/dma3_manager.o(.text);
|
src/dma3_manager.o(.text);
|
||||||
@@ -1027,6 +1030,14 @@ SECTIONS {
|
|||||||
src/graphics.o(.rodata);
|
src/graphics.o(.rodata);
|
||||||
} =0
|
} =0
|
||||||
|
|
||||||
|
extra :
|
||||||
|
ALIGN(4)
|
||||||
|
{
|
||||||
|
src/*.o(.text);
|
||||||
|
src/*.o(.rodata);
|
||||||
|
data/*.o(.rodata);
|
||||||
|
} = 0
|
||||||
|
|
||||||
/* DWARF 2 sections */
|
/* DWARF 2 sections */
|
||||||
.debug_aranges 0 : { *(.debug_aranges) }
|
.debug_aranges 0 : { *(.debug_aranges) }
|
||||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ SECTIONS {
|
|||||||
*(ewram_data);
|
*(ewram_data);
|
||||||
|
|
||||||
. = 0x40000;
|
. = 0x40000;
|
||||||
}
|
}
|
||||||
|
|
||||||
. = 0x3000000;
|
. = 0x3000000;
|
||||||
|
|
||||||
@@ -38,17 +38,13 @@ SECTIONS {
|
|||||||
.text :
|
.text :
|
||||||
ALIGN(4)
|
ALIGN(4)
|
||||||
{
|
{
|
||||||
|
src/rom_header.o(.text*);
|
||||||
|
src/rom_header_gf.o(.text.*);
|
||||||
src/crt0.o(.text);
|
src/crt0.o(.text);
|
||||||
|
src/main.o(.text);
|
||||||
*(.text*);
|
*(.text*);
|
||||||
} =0
|
} =0
|
||||||
|
|
||||||
.text.unlikely :
|
|
||||||
ALIGN(4)
|
|
||||||
{
|
|
||||||
src/crt0.o(.text.unlikely);
|
|
||||||
*(.text.unlikely*);
|
|
||||||
} =0
|
|
||||||
|
|
||||||
script_data :
|
script_data :
|
||||||
ALIGN(4)
|
ALIGN(4)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user