hackern64 / hackeroot Goto Github PK
View Code? Open in Web Editor NEWA Zelda: Ocarina of Time decompilation repo based on zeldaret/oot that aims to provide a flexible, easy-to-use base for creating romhacks
A Zelda: Ocarina of Time decompilation repo based on zeldaret/oot that aims to provide a flexible, easy-to-use base for creating romhacks
mips-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110
mips-linux-gnu-gcc
will not compile any file with the -mno-abicalls
option unless the -fno-pic
option is also specified. For example:
>~$ touch test.c
>~$ mips-linux-gnu-gcc -mno-abicalls test.c -o test.o
cc1: error: position-independent code requires ‘-mabicalls’
This causes every file being compiled in this project (for N64) to fail. The solution is to add -fno-pic
; with this change, the project compiles and works on console.
diff --git a/Makefile b/Makefile
index d62f7179b..748d495cf 100644
--- a/Makefile
+++ b/Makefile
@@ -116,7 +116,7 @@ endif
ASFLAGS := -march=vr4300 -32 -no-pad-sections -Iinclude
ifeq ($(COMPILER),gcc)
- CFLAGS += -G 0 -nostdinc $(INC) -march=vr4300 -mfix4300 -mabi=32 -mno-abicalls -mdivide-breaks -fno-zero-initialized-in-bss -fno-toplevel-reorder -ffreestanding -fno-common -fno-merge-constants -mno-explicit-relocs -mno-split-addresses $(CHECK_WARNINGS) -funsigned-char
+ CFLAGS += -G 0 -nostdinc $(INC) -march=vr4300 -mfix4300 -mabi=32 -fno-pic -mno-abicalls -mdivide-breaks -fno-zero-initialized-in-bss -fno-toplevel-reorder -ffreestanding -fno-common -fno-merge-constants -mno-explicit-relocs -mno-split-addresses $(CHECK_WARNINGS) -funsigned-char
MIPS_VERSION := -mips3
else
# we support Microsoft extensions such as anonymous structs, which the compiler does support but warns for their usage. Surpress the warnings with -woff.
I'm not sure why no other developer has encountered this error yet. However, adding -fno-pic
should not be harmful if someone has a version of mips-linux-gnu-gcc
which does not default to position independent code enabled.
idk why but this crashed on HackerOoT, might be GCC? Note that it crashed during my compression tests but yaz crashed too
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.