flat assembler
Message board for the users of flat assembler.

Index > Linux > sys_brk usage

Author
Thread Post new topic Reply to topic
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 24 Jan 2007, 22:55
from docs:
Quote:
ebx=Virtual address of the new .bss top. It should be between the current .bss top and current stack bottom minus 16384 bytes.
0 value may be used to obtain current top address of .bss section.


how to find stack bottom?
Post 24 Jan 2007, 22:55
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Nikolay Petrov



Joined: 22 Apr 2004
Posts: 101
Location: Bulgaria
Nikolay Petrov 25 Jan 2007, 09:59
I know that you knows Wink

Program Virtual Memory Area
------------------------------------- 0xbfffffff
Stack Data (argc, argv, env)
-------------------------------------
your point - move down or up

"unused"

start point .bcc section - sys brk move up(alloc) or down(free)( new point must be align 8 )
------------------------------------
Program Code and Data
------------------------------------ 0x8048000
Post 25 Jan 2007, 09:59
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 25 Jan 2007, 11:08
no, i didn't know that. thank you.

that means mmap() always returns pointers above 0xC0000000?
Post 25 Jan 2007, 11:08
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Nikolay Petrov



Joined: 22 Apr 2004
Posts: 101
Location: Bulgaria
Nikolay Petrov 25 Jan 2007, 16:17
mmap moved your point down
Post 25 Jan 2007, 16:17
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.