xoreaxeaxeax / movfuscator

The single instruction C compiler
Other
9.29k stars 394 forks source link

relocation in read-only section .text' #45

Open bahare74 opened 1 year ago

bahare74 commented 1 year ago

Hello. I am using gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 I created a library and called it in main. I want to compile my main with gcc (using gcc -m32 -c main.c -o main.o) and compile my library with movcc (using movcc -m32 -c library.c -o library.o). These two procedures have been done correctly, My problem is with creating an executable file (using gcc -m32 main.o library.o -o main) it returns a warning /usr/bin/ld: library.o: warning: relocation in read-only section .text' and also there are so many parameters that seem undefined to the compiler, like: _/usr/bin/ld: (.text+0xb): undefined reference to 'alux' ... finally there are these two warning and error: _/usr/bin/ld: warning: creating DTTEXTREL in PIE collect2: error: ld returned 1 exit status

Is there any solution to solve this problem? Thanks for any help in advance.