Syscall getrlimit
Posted: Tue Aug 03, 2010 1:19 pm
Hi,
I've some problems about using this syscall in assembly, I tried to use it under different OS (BSD/Linux) but canĀ“t get it works.
For example, under FreeBSD (x86), here is how I do:
But after debugging, the structure rlimit_t is empty.
So, what is wrong ? Need I use the stack instead of the data section ? Or whatever ?
I've some problems about using this syscall in assembly, I tried to use it under different OS (BSD/Linux) but canĀ“t get it works.
For example, under FreeBSD (x86), here is how I do:
Code: Select all
.intel_syntax
.bss
.comm rlimit_t,16,8
[...]
push rlimit_t
push 0x02
mov eax, 0xc2
push eax
int 0x80
[...]
So, what is wrong ? Need I use the stack instead of the data section ? Or whatever ?