Re: How to determine the start of DATA segment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The program's DATA segment is of fixed size as link time. It contains all of the initialized variables your program has. It does not grow at runtime. You can find out how large it is by looking at the output of objdump. Maybe you meant to ask what is the upper limit on the size of your heap?

Ram Gupta wrote:
Is there a system call or library function which a process can use to
determine the start of its data segment . I need to know the start of
the data segment so that process does not cross its DATA limit. Using
this information & sbrk it knows how much data space is already used &
how much it can grow further without crossing the limit.

Thanks
Ram Gupta
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux