This is really starting to piss me off... So I made a hack in C programming language (OOT Debug) for a custom item I'm making for a personal project. I'm finally near completion and I decide to try to compile the hack along with its hook. It seems that it can run through the compiler correctly, but when the object(s) pass into the linker the script fails to complete. Here's what happens when I run the makefile:
palacios@palacios-PC /c/n64tree-win32/Sword_of_Sages
$ make
../root/bin/mips64-gcc -fno-builtin -std=gnu99 -nodefaultlibs -march=vr4300 -mtu
ne=vr4300 -I../include -I. -Os -mabi=32 -mno-gpopt -c -o Sword_of_Sages.o Swo
rd_of_Sages.c
../root/bin/mips64-ld -o Sword_of_Sages.elf Sword_of_Sages.o -T Sword_of_Sag
es.x -L .
Sword_of_Sages.o: In function `_start':
Sword_of_Sages.c:(.text+0x50): undefined reference to `memcpy'
Sword_of_Sages.c:(.text+0x50): relocation truncated to fit: R_MIPS_26 against `m
emcpy'
make: *** [Sword_of_Sages.elf] Error 1
As far as I can tell, and I'm pretty damn confident, I made no such use of anything with the term "memcpy." Maybe it's a library? Perhaps, MinGW (GCC for windows) is making some unwanted optimizations? I suppose I could try checking .text section of the compiled object. Anyone who cares to help me, thanks.
Question
Jason777
This is really starting to piss me off... So I made a hack in C programming language (OOT Debug) for a custom item I'm making for a personal project. I'm finally near completion and I decide to try to compile the hack along with its hook. It seems that it can run through the compiler correctly, but when the object(s) pass into the linker the script fails to complete. Here's what happens when I run the makefile:
As far as I can tell, and I'm pretty damn confident, I made no such use of anything with the term "memcpy." Maybe it's a library? Perhaps, MinGW (GCC for windows) is making some unwanted optimizations? I suppose I could try checking .text section of the compiled object. Anyone who cares to help me, thanks.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts