From bb8df1032318bb4d735485a509fd81c7b2fdca1a Mon Sep 17 00:00:00 2001 From: pmerku Date: Fri, 13 Nov 2020 11:52:41 +0100 Subject: Added gcc compilation instructions --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index df3f04a..6f521d4 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,16 @@ $ echo 'export LIBASM_TEST_BONUS=yes' >> ~/.zshrc ## Help, ft\_write and ft\_read crash for no reason + +## Compilation on linux with gcc + +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` \ No newline at end of file -- cgit