Re: a question about system call's return address...



Sean wrote:
This makes me think there is no caller for that system call. So,
the second question is "how does mmap2 get called any way if there is
no caller?"

I think mmap2 is always called by the `dynamic linker'(also known as
loader), which is /lib/ld-linux.so.2 at Linux. It calls mmap2 to load
all the shared libraries needed by your program.

fixme. thanks
--Alan
.