This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Moving Data Segment content to Text Segment
- From: lrtaylor at micron dot com
- To: <laalit_seth at hotmail dot com>, <gcc-help at gcc dot gnu dot org>
- Date: Fri, 23 Apr 2004 10:59:20 -0600
- Subject: RE: Moving Data Segment content to Text Segment
I thought the size of the data segment was determined at compile/link time and was static - that is, it doesn't change at run time. Are you sure you're not running into stack size problems?
Cheers,
Lyle
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of Lalit Seth
Sent: Thursday, April 22, 2004 11:38 PM
To: gcc-help@gcc.gnu.org
Subject: Moving Data Segment content to Text Segment
Hi,
How can i move the data segment contents of the executabel generated by gcc
3.2 on Linux to the Text Segment of it.
Is this good to do and whts are the pros and cons of it.
I wanted to do this to over come the limit of Data Segment which is met
very soon as the execuatbe is runned.
Rgds
Lalit
_________________________________________________________________
Pay Cash on delivery of? products. http://go.msnserver.com/IN/47509.asp
Free Registration on Baazee.com