Use ifdefs in linker file

This commit is contained in:
octorock
2021-06-22 00:39:03 +02:00
parent 6f54607fbf
commit cc4c42c54e
15 changed files with 23 additions and 1852 deletions
-16
View File
@@ -591,11 +591,7 @@ sub_0808C650: @ 0x0808C650
movs r0, #0
b _0808C674
.align 2, 0
.ifdef DEMO
_0808C66C: .4byte gUnk_02036BB0
.else
_0808C66C: .4byte gUnk_02036BB8
.endif
_0808C670:
ldr r1, _0808C678 @ =gUnk_02036BB8
movs r0, #1
@@ -603,11 +599,7 @@ _0808C674:
str r0, [r1]
pop {r4, pc}
.align 2, 0
.ifdef DEMO
_0808C678: .4byte gUnk_02036BB0
.else
_0808C678: .4byte gUnk_02036BB8
.endif
thumb_func_start sub_0808C67C
sub_0808C67C: @ 0x0808C67C
@@ -615,11 +607,7 @@ sub_0808C67C: @ 0x0808C67C
ldr r0, [r0]
bx lr
.align 2, 0
.ifdef DEMO
_0808C684: .4byte gUnk_02036BB0
.else
_0808C684: .4byte gUnk_02036BB8
.endif
thumb_func_start sub_0808C688
sub_0808C688: @ 0x0808C688
@@ -630,8 +618,4 @@ sub_0808C688: @ 0x0808C688
str r0, [r1]
pop {pc}
.align 2, 0
.ifdef DEMO
_0808C698: .4byte gUnk_02036BB0
.else
_0808C698: .4byte gUnk_02036BB8
.endif
-4
View File
@@ -140,11 +140,7 @@ sub_080ADA04: @ 0x080ADA04
bl _call_via_r2
pop {pc}
.align 2, 0
.ifdef EU
_080ADA10: .4byte gUnk_030065C8
.else
_080ADA10: .4byte gUnk_0300659C
.endif
thumb_func_start sub_080ADA14
sub_080ADA14: @ 0x080ADA14
-4
View File
@@ -590,11 +590,7 @@ _080B20E0:
b _080B20E0
.align 2, 0
_080B20E4: .4byte 0x0000208C
.ifdef EU
_080B20E8: .4byte gUnk_030069AC
.else
_080B20E8: .4byte gUnk_030067E4
.endif
arm_func_start sub_080B20EC
sub_080B20EC: @ 0x080B20EC
-4
View File
@@ -223,11 +223,7 @@ _0808C828:
bl sub_0801E49C
pop {r4, r5, r6, pc}
.align 2, 0
.ifdef DEMO
_0808C83C: .4byte gUnk_02036BB0
.else
_0808C83C: .4byte gUnk_02036BB8
.endif
thumb_func_start sub_0808C840
sub_0808C840: @ 0x0808C840