Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions conker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ CFLAGS += -D_LANGUAGE_C -D_FINALROM -DF3DEX_GBI_2 -D_MIPS_SZLONG=32
CFLAGS += -woff 649,838
CFLAGS += $(INCLUDE_CFLAGS)

LDFLAGS = -T $(BUILD_DIR)/$(LD_SCRIPT) -Map $(TARGET).map -T undefined_syms.$(VERSION).txt -T undefined_funcs.$(VERSION).txt -T undefined_syms_auto.txt -T undefined_funcs_auto.txt --no-check-sections
LDFLAGS = -melf32btsmip -T $(BUILD_DIR)/$(LD_SCRIPT) -Map $(TARGET).map -T undefined_syms.$(VERSION).txt -T undefined_funcs.$(VERSION).txt -T undefined_syms_auto.txt -T undefined_funcs_auto.txt --no-check-sections

### Overrides

Expand Down Expand Up @@ -211,7 +211,7 @@ $(BUILD_DIR)/%.s.o: %.s
$(AS) $(ASFLAGS) -o $@ $<

$(BUILD_DIR)/%.bin.o: %.bin
$(LD) -r -b binary -o $@ $<
$(LD) -melf32btsmip -r -b binary -o $@ $<

$(TARGET).bin: $(TARGET).elf
$(OBJCOPY) $(OBJCOPYFLAGS) -O binary $< $@
Expand Down Expand Up @@ -300,6 +300,14 @@ progress.debugger.csv: $(TARGET).elf
$(PYTHON) ../tools/progress.py . $(TARGET).map .debugger --version $(VERSION) > $@


# objdiff expected .o generation
EXPECTED_DIR := $(BUILD_DIR)/expected

expected: $(EXPECTED_DIR)/game_161520.o $(EXPECTED_DIR)/game_16EE20.o $(EXPECTED_DIR)/game_1944C0.o $(EXPECTED_DIR)/game_981E0.o

$(EXPECTED_DIR)/%.o: asm/nonmatchings/%
CROSS=$(CROSS) bash tools/gen_expected.sh $*

# settings
.PHONY: all clean default
.PHONY: all clean default expected
SHELL = /bin/bash -e -o pipefail
2 changes: 2 additions & 0 deletions conker/diff_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ def apply(config, args):
config['myimg'] = f'build/conker.{VERSION}.bin'
config['mapfile'] = f'build/conker.{VERSION}.map'
config['source_directories'] = ['src', 'include']
config['objdump_executable'] = 'mips64-linux-gnu-objdump'
config['build_command'] = ['make', 'CROSS=mips64-linux-gnu-']
139 changes: 139 additions & 0 deletions conker/include/auto_funcs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
#ifndef AUTO_FUNCS_H
#define AUTO_FUNCS_H

/* Auto-generated function declarations */

s32 func_10005B3C();
s32 func_10005D20();
s32 func_100060F0();
s32 func_10006138();
s32 func_100062F0();
s32 func_10006418();
s32 func_10006750();
s32 func_1000681C();
s32 func_10006C40();
s32 func_10006CB8();
s32 func_10006CBC();
s32 func_10006D48();
s32 func_10006D74();
s32 func_10006DBC();
s32 func_10006E2C();
s32 func_10006E30();
s32 func_1000777C();
s32 func_100078B4();
s32 func_10007F70();
s32 func_15018470();
s32 func_150184B8();
s32 func_150185D4();
s32 func_1501863C();
s32 func_150186A0();
s32 func_150186B0();
s32 func_1507E7E4();
s32 func_150A3B20();
s32 func_150A3BAC();
s32 func_150A3CBC();
s32 func_150A3F5C();
s32 func_150A40A8();
s32 func_150A411C();
s32 func_150A4670();
s32 func_150A47E8();
s32 func_150A47FC();
s32 func_150A4898();
s32 func_150A49F4();
s32 func_150A4EF4();
s32 func_150A4F5C();
s32 func_150A5174();
s32 func_150A5198();
s32 func_150A52F4();
s32 func_150A547C();
s32 func_150A55BC();
s32 func_150A5610();
s32 func_150A5790();
s32 func_150A5798();
s32 func_150A579C();
s32 func_150A5C88();
s32 func_150A5FA4();
s32 func_150A60C4();
s32 func_150A64B8();
s32 func_150A64C8();
s32 func_150A66FC();
s32 func_150A67D0();
s32 func_150A6A5C();
s32 func_150A6E3C();
s32 func_150A6F2C();
s32 func_150A7068();
s32 func_150A7080();
s32 func_150A717C();
s32 func_150A72B4();
s32 func_150A745C();
s32 func_150A74CC();
s32 func_150A769C();
s32 func_150A8414();
s32 func_150A851C();
s32 func_150A8538();
s32 func_150A8620();
s32 func_150A8808();
s32 func_150A8954();
s32 func_150A8990();
s32 func_150A89DC();
s32 func_150A8B00();
s32 func_150A8BEC();
s32 func_150A8DC4();
s32 func_150A8DE4();
s32 func_150A8EBC();
s32 func_150A8EC0();
s32 func_150A9114();
s32 func_150A9198();
s32 func_150A9218();
s32 func_150A92A8();
s32 func_150A9400();
s32 func_150A956C();
s32 func_150A96DC();
s32 func_150AA470();
s32 func_150AAD84();
s32 func_150AB1A0();
s32 func_150AB228();
s32 func_150AB3E8();
s32 func_150AB540();
s32 func_150AB644();
s32 func_150AB6B0();
s32 func_150AB6F0();
s32 func_150AB8B8();
s32 func_150AB8DC();
s32 func_150ABAA8();
s32 func_150ABDE0();
s32 func_150ABE90();
s32 func_150ABEEC();
s32 func_150ABF60();
s32 func_150AC1B4();
s32 func_150AC238();
s32 func_150AC258();
s32 func_150AC2A0();
s32 func_150AC2D8();
s32 func_150AC350();
s32 func_150AC5FC();
s32 func_150AC694();
s32 func_150AC738();
s32 func_150AC964();
s32 func_150ACB28();
s32 func_150ACB50();
s32 func_150ACBD8();
s32 func_150ACBF8();
s32 func_150ACE08();
s32 func_150ACEC4();
s32 func_150AD264();
s32 func_150AD2F4();
s32 func_150AD6E8();
s32 func_150AD750();
s32 func_150AD89C();
s32 func_150AD960();
s32 func_150AD990();
s32 func_150C851C();
s32 func_1510F8CC();
s32 func_1515FDA0();
s32 func_15178EFC();
s32 func_151F2960();
s32 func_151F2DFC();
s32 func_151F3C1C();

#endif
Loading
Loading