From 6973e0413c2ac80eac6c797889dc4a4847db6bb1 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Wed, 19 Jul 2023 03:28:34 +0000 Subject: [PATCH] common.mk: deblob all area files These are trivial to deblob compared to the others. --- area/sys_area.s | 8 ++++++++ area/sys_areb.s | 8 ++++++++ area/sys_aree.s | 8 ++++++++ area/sys_arej.s | 8 ++++++++ area/sys_arek.s | 8 ++++++++ area/sys_arel.s | 8 ++++++++ area/sys_aret.s | 8 ++++++++ area/sys_areu.s | 8 ++++++++ common.mk | 30 ++++++++++++++++++------------ segasmp/lib/sys_area.o | Bin 316 -> 0 bytes segasmp/lib/sys_areb.o | Bin 316 -> 0 bytes segasmp/lib/sys_aree.o | Bin 316 -> 0 bytes segasmp/lib/sys_arej.o | Bin 316 -> 0 bytes segasmp/lib/sys_arek.o | Bin 316 -> 0 bytes segasmp/lib/sys_arel.o | Bin 316 -> 0 bytes segasmp/lib/sys_aret.o | Bin 316 -> 0 bytes segasmp/lib/sys_areu.o | Bin 316 -> 0 bytes 17 files changed, 82 insertions(+), 12 deletions(-) create mode 100644 area/sys_area.s create mode 100644 area/sys_areb.s create mode 100644 area/sys_aree.s create mode 100644 area/sys_arej.s create mode 100644 area/sys_arek.s create mode 100644 area/sys_arel.s create mode 100644 area/sys_aret.s create mode 100644 area/sys_areu.s delete mode 100644 segasmp/lib/sys_area.o delete mode 100644 segasmp/lib/sys_areb.o delete mode 100644 segasmp/lib/sys_aree.o delete mode 100644 segasmp/lib/sys_arej.o delete mode 100644 segasmp/lib/sys_arek.o delete mode 100644 segasmp/lib/sys_arel.o delete mode 100644 segasmp/lib/sys_aret.o delete mode 100644 segasmp/lib/sys_areu.o diff --git a/area/sys_area.s b/area/sys_area.s new file mode 100644 index 0000000..a58c3b7 --- /dev/null +++ b/area/sys_area.s @@ -0,0 +1,8 @@ + .section .text.area + + bra next + nop + .ascii "For ASIA PAL area." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_areb.s b/area/sys_areb.s new file mode 100644 index 0000000..f744f6d --- /dev/null +++ b/area/sys_areb.s @@ -0,0 +1,8 @@ + .section .text.areb + + bra next + nop + .ascii "For BRAZIL." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_aree.s b/area/sys_aree.s new file mode 100644 index 0000000..f9c3e5c --- /dev/null +++ b/area/sys_aree.s @@ -0,0 +1,8 @@ + .section .text.aree + + bra next + nop + .ascii "For EUROPE." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_arej.s b/area/sys_arej.s new file mode 100644 index 0000000..ab6018a --- /dev/null +++ b/area/sys_arej.s @@ -0,0 +1,8 @@ + .section .text.arej + + bra next + nop + .ascii "For JAPAN." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_arek.s b/area/sys_arek.s new file mode 100644 index 0000000..5b6175d --- /dev/null +++ b/area/sys_arek.s @@ -0,0 +1,8 @@ + .section .text.arek + + bra next + nop + .ascii "For KOREA." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_arel.s b/area/sys_arel.s new file mode 100644 index 0000000..761ff64 --- /dev/null +++ b/area/sys_arel.s @@ -0,0 +1,8 @@ + .section .text.arel + + bra next + nop + .ascii "For LATIN AMERICA." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_aret.s b/area/sys_aret.s new file mode 100644 index 0000000..8203e5f --- /dev/null +++ b/area/sys_aret.s @@ -0,0 +1,8 @@ + .section .text.aret + + bra next + nop + .ascii "For TAIWAN and PHILIPINES." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/area/sys_areu.s b/area/sys_areu.s new file mode 100644 index 0000000..6db30d8 --- /dev/null +++ b/area/sys_areu.s @@ -0,0 +1,8 @@ + .section .text.areu + + bra next + nop + .ascii "For USA and CANADA." + /* fill up to 32 bytes with the ascii ' ' (space) character */ + .balign 0x20, 0x20 +next: diff --git a/common.mk b/common.mk index 84858e4..456e693 100644 --- a/common.mk +++ b/common.mk @@ -28,18 +28,6 @@ define BUILD_BINARY_O $< $@ endef -$(LIB)/sys_%.o: $(LIB)/segasmp/lib/sys_%.o - $(OBJCOPY) -I coff-sh -O elf32-sh -g \ - --rename-section .text=.text.$* \ - $< $@ - -SYS_IP_OBJ += $(LIB)/sys_id.o -SYS_IP_OBJ += $(LIB)/sys_sec.o -SYS_IP_OBJ += $(LIB)/sys_area.o $(LIB)/sys_areb.o $(LIB)/sys_aree.o $(LIB)/sys_arej.o -SYS_IP_OBJ += $(LIB)/sys_arek.o $(LIB)/sys_arel.o $(LIB)/sys_aret.o $(LIB)/sys_areu.o -SYS_IP_OBJ += $(LIB)/sys_init.o -SYS_IP_OBJ += $(LIB)/smpsys.o - %.o: %.s $(AS) $(AARCH) $(AFLAGS) $(DEBUG) $< -o $@ @@ -64,6 +52,24 @@ SYS_IP_OBJ += $(LIB)/smpsys.o --rename-section .data=.rodata,alloc,load,readonly,data,contents \ $< $@ +SYS_IP_OBJ += $(LIB)/sys_id.o +SYS_IP_OBJ += $(LIB)/sys_sec.o +SYS_IP_OBJ += $(LIB)/area/sys_area.o +SYS_IP_OBJ += $(LIB)/area/sys_areb.o +SYS_IP_OBJ += $(LIB)/area/sys_aree.o +SYS_IP_OBJ += $(LIB)/area/sys_arej.o +SYS_IP_OBJ += $(LIB)/area/sys_arek.o +SYS_IP_OBJ += $(LIB)/area/sys_arel.o +SYS_IP_OBJ += $(LIB)/area/sys_aret.o +SYS_IP_OBJ += $(LIB)/area/sys_areu.o +SYS_IP_OBJ += $(LIB)/sys_init.o +SYS_IP_OBJ += $(LIB)/smpsys.o + +$(LIB)/sys_%.o: $(LIB)/segasmp/lib/sys_%.o + $(OBJCOPY) -I coff-sh -O elf32-sh -g \ + --rename-section .text=.text.$* \ + $< $@ + sys_ip.elf: $(SYS_IP_OBJ) $(LD) --print-memory-usage -T $(LIB)/sys_ip.lds $^ -o $@ diff --git a/segasmp/lib/sys_area.o b/segasmp/lib/sys_area.o deleted file mode 100644 index 4297cd3fa55cde5ff95802c0ea49705f51065f61..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 316 zcmZQ&U|=>VkXp{bz_130Ie?f|uOzji1js-F3P5%b5+B4=&`U`yNrVV0fcOw52I-)e zR9p-d1*rjHY@lfY9|NabevyJ>u&1L!fTNE>Vo_?Mo&p@`rDf)%LUsQC$H0)zn3k9g e6M%}NxSbK`IUq*25yjn1P&H^SLUA)Qb~OOfF&qy7 diff --git a/segasmp/lib/sys_areb.o b/segasmp/lib/sys_areb.o deleted file mode 100644 index 1217a301df50772976190b3d5d7be4e5b8b38c0a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 316 zcmZQ&U|=>VkXp&Wz_130Ie?f|uOzji1js-F3P5%b5+B4=&`U`yNrVV0fcOw52I-)e zR9p-d1*rjHY@lfY9|NabevyJxkYkjmkDdZL&`ZnANrmeC|BrzooiQyj8zul1M{zqN X&~reHZX=4jnV@RWT!i9gX6$MJ8Z8>( diff --git a/segasmp/lib/sys_aree.o b/segasmp/lib/sys_aree.o deleted file mode 100644 index 3be4a1ab6a4e828d2e4fb02021e23f4f6e938808..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 316 zcmZQ&U|=>VkXpsSz_130Ie?f|uOzji1js-F3P5%b5+B4=&`U`yNrVV0fcOw52I-)e zR9p-d1*rjHY@lfY9|NabevyJ}Xpnz^tDXWn&`ZnANrmeC|BrzooiQyj8zul1M{zqN X&~reHZX=4jnV@RWT!i9gX6$MJBSjkS diff --git a/segasmp/lib/sys_arej.o b/segasmp/lib/sys_arej.o deleted file mode 100644 index ef551206c378277e07060273665e9f51659968ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 316 zcmZQ&U|=>VkXp^az_130Ie?f|uOzji1js-F3P5%b5+B4=&`U`yNrVV0fcOw52I-)e zR9p-d1*rjHY@lfY9|NabevyKgV}PTdo&pBYOUukjh3fqOkAWebF)cA0CIA&jaXTZ> Wb3lx4BZ|A3plZ-ugyLpq>}mk_j2fu` diff --git a/segasmp/lib/sys_arek.o b/segasmp/lib/sys_arek.o deleted file mode 100644 index 3422cdbfbc55296fd48fc6e22003e926b3cbdf6a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 316 zcmZQ&U|=>VkXpmQzyQJ=K+LLFl3Gy$WFP?rAiD>N4`M3lr6iUlLIf2+dv8nOTY diff --git a/segasmp/lib/sys_arel.o b/segasmp/lib/sys_arel.o deleted file mode 100644 index 029ff168375ec2443a6460b6cb652a0d281b3614..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 316 zcmZQ&U|=>VkXp;Yz_130Ie?f|uOzji1js-F3P5%b5+B4=&`U`yNrVV0fcOw52I-)e zR9p-d1*rjHY@lfY9|NabevyKYV~D4pf}^i%kf*bwo&p@`rDf)%LUsQC$H0)zn3k9g e6M%}NxSbK`IUq*25yjn1P&H^SLUA)Qb~OO3;~UEW diff --git a/segasmp/lib/sys_aret.o b/segasmp/lib/sys_aret.o deleted file mode 100644 index 1d0ea6f40236961b2a10decfadf1db59a9490423..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 316 zcmZQ&U|=>VkXpyUz_130Ie?f|uOzji1js-F3P5%b5+B4=&`U`yNrVV0fcOw52I-)e zR9p-d1*rjHY@lfY9|Nabevv|mqi49IpF(0@ib8;gr;lfVr=M%Eo`Qm2T4qivROkPH m3=HXvX^Gh|0jM~N+ZlnL17dU=QQXZ0RfFat6gM+tR|5d2v>k2$ diff --git a/segasmp/lib/sys_areu.o b/segasmp/lib/sys_areu.o deleted file mode 100644 index b5b064e9d20c41e56b9459180c601b1980e6994e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 316 zcmZQ&U|=>VkXp~cz_130Ie?f|uOzji1js-F3P5%b5+B4=&`U`yNrVV0fcOw52I-)e zR9p-d1*rjHY@lfY9|Nabevv|Gu%kj^UW$UVqo1RTqn-i`=%r=mq(XK6|Hr_P&X|^% f4HJNhqqv