aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorcacharle <me@cacharle.xyz>2020-11-13 13:52:08 +0100
committerGitHub <noreply@github.com>2020-11-13 13:52:08 +0100
commit55bb3e6f8b88cab1a06e8c5b8adb91040dc49265 (patch)
treed71a555f0a881ed8d3c4595b0b2f6edcd222a4c5 /README.md
parent1695b0184d3a671a7dfae8061709197c9cab8347 (diff)
parentbc1b917aadb20d5fa313299e8c0ba52c745790d7 (diff)
downloadlibasm_test-55bb3e6f8b88cab1a06e8c5b8adb91040dc49265.tar.gz
libasm_test-55bb3e6f8b88cab1a06e8c5b8adb91040dc49265.tar.bz2
libasm_test-55bb3e6f8b88cab1a06e8c5b8adb91040dc49265.zip
Merge pull request #4 from pmerku/master
Gcc compiling notice
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index df3f04a..c215344 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
<https://stackoverflow.com/c/42network/questions/1494>
+
+## 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:
+
+```asm
+ ...
+ call __errno_location wrt ..plt
+ ...
+```
+
+Now you should be able to compile with `gcc` \ No newline at end of file