From mint-bounce@lists.fishpool.fi Tue Jan 22 17:31:06 2008 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Message-ID: <476FAE7A.9060104@freesbee.fr> Date: Mon, 24 Dec 2007 14:04:58 +0100 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: mint Subject: Re: [MiNT] Stack problems with GCC 4 References: <1198456590.9451.17.camel@localhost> <1198488511.9451.19.camel@localhost> In-Reply-To: <1198488511.9451.19.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: X-Virus-Scanned: by amavisd-new at relay.boerde.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=BAYES_00 X-Spam-Level: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by freemint id m0MGP1cF004618 Status: X-Status: X-Keywords: >> What about __attribute__((section(".data")))? > > Tried that, GCC doesn't support that attribute. An ugly workaround would be to declare the _stksize variable explicitly in the data segment using inline assembly. /* long _stksize = 0L; */ __asm__ ( ".data\n" "\t.globl __stksize\n" "__stksize:\n" "\t.long 0" ); Vincent Rivière