Coder Social home page Coder Social logo

hackern64 / hackeroot Goto Github PK

View Code? Open in Web Editor NEW
57.0 57.0 32.0 197.54 MB

A Zelda: Ocarina of Time decompilation repo based on zeldaret/oot that aims to provide a flexible, easy-to-use base for creating romhacks

Dockerfile 0.01% Makefile 0.11% C 93.05% Assembly 0.50% Python 0.91% Shell 0.27% C++ 4.69% SourcePawn 0.01% M4 0.01% CMake 0.01% Batchfile 0.01% xBase 0.46%

hackeroot's People

Contributors

adamkiddle avatar angheloalf avatar ariahiro64 avatar dragorn421 avatar ellipticellipsis avatar engineer124 avatar ethteck avatar fig02 avatar gamestabled avatar glankk avatar hensldm avatar i82orbom avatar jpburnett avatar krimtonz avatar louist103 avatar maekclena avatar mzxrules avatar petrie911 avatar random06457 avatar revosucks avatar roman971 avatar shawlucas avatar sirius902 avatar synray avatar thar0 avatar tom-overton avatar yanis42 avatar zelda2773 avatar zelda2774 avatar zelllll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hackeroot's Issues

Add compiler flag needed for project to compile

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.