asm

  1. K

    Solved x86_64 assembly "Hello, world!" segfaults even though exit syscall has been used

    I recently started trying to program in FreeBSD x86_64 assembly, following some tutorials and I ended up with such hello world program. section .data hello db "Hello, world!", 10 section .text global _start _start: mov rdi, 1 mov rsi, hello mov rdx, 14 mov...
  2. F

    Other Call C functions in ASM

    Hi guys I am trying to call functions from the C library in my ASM code. For example I prefer to use printf before doing a syscall to write. So I disassembled a simple binary and could see that a call to printf derives to the PLT section. That if I'm not mistaken is a link table, since printf...
  3. W

    Other [asm] [x86-64]Pure asm threads

    Hi. I'm trying to make a simple pure asm multi-threading app. There is a syscall 430 AUE_THR_CREATE STD { int thr_create(ucontext_t *ctx, long *id, int flags); } But I can't find any example how to use that, especially how to create context? Of course I can wrap it in C. But...
Back
Top