diff options
| author | pmerku <pmerku@gmail.com> | 2020-11-13 11:52:41 +0100 |
|---|---|---|
| committer | pmerku <pmerku@gmail.com> | 2020-11-13 11:52:41 +0100 |
| commit | bb8df1032318bb4d735485a509fd81c7b2fdca1a (patch) | |
| tree | 1a9034a49c47541d67a262d1c2077dd05abee6fe /README.md | |
| parent | 1695b0184d3a671a7dfae8061709197c9cab8347 (diff) | |
| download | libasm_test-bb8df1032318bb4d735485a509fd81c7b2fdca1a.tar.gz libasm_test-bb8df1032318bb4d735485a509fd81c7b2fdca1a.tar.bz2 libasm_test-bb8df1032318bb4d735485a509fd81c7b2fdca1a.zip | |
Added gcc compilation instructions
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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: + +``` + ... + call __errno_location wrt ..plt + ... +``` + +Now you should be able to compile with `gcc`
\ No newline at end of file |
