Test for the libasm project of school 42.
The default path to your libasm is ../libasm
. You can modify it in the Makefile.
$ make
You need to make fclean
when switching from all to bonus.
$ make bonus
Or:
Set the environment variable LIBASM_TEST_BONUS
to yes
.
$ echo 'export LIBASM_TEST_BONUS=yes' >> ~/.zshrc
https://stackoverflow.com/c/42network/questions/1494
To fix the relocation R_X86_64_PC32 against symbol
error you can add inside your
libasm source code wrt ..plt
after a call to a libc function, like example below:
...
call __errno_location wrt ..plt
...
Now you should be able to compile with gcc