From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11551 invoked by alias); 9 Dec 2004 20:32:26 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 11489 invoked from network); 9 Dec 2004 20:32:21 -0000 Received: from unknown (209.128.65.135) by sourceware.org with QMTP; 9 Dec 2004 20:32:21 -0000 Received: (qmail 5741 invoked by uid 10); 9 Dec 2004 20:32:20 -0000 Received: (qmail 12300 invoked by uid 500); 9 Dec 2004 20:32:10 -0000 From: Ian Lance Taylor To: David Daney Cc: binutils@sourceware.org Subject: Re: News MIPS option -mno-shared References: <20041209153403.5294.qmail@gossamer.airs.com> <41B8939D.9040406@avtrex.com> Date: Thu, 09 Dec 2004 20:32:00 -0000 In-Reply-To: <41B8939D.9040406@avtrex.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-12/txt/msg00105.txt.bz2 David Daney writes: > I have code that generates stack traces that relies on the structure of the > function prolog to work. It looks for this: > > /* > * Find function prolog. It will have the form: > * > * 3c1c???? lui gp,???? > * 279c???? addiu gp,gp,???? > * 0399e021 addu gp,gp,t9 > * 27bd#### addiu sp,sp,#### > * > * Where ???? are the offset of the GOT from the function > * entrypoint, and #### is the amount added to the stack poiner. > */ > > Your change will break it. True, but only if you choose to use -mno-shared when you compile. I'm not proposing that it be the default, only that it be an option. Ian