From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18655 invoked by alias); 10 Apr 2003 10:29:54 -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 18647 invoked from network); 10 Apr 2003 10:29:51 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 10 Apr 2003 10:29:51 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h3AATpe24852 for ; Thu, 10 Apr 2003 06:29:51 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h3AATpJ02620; Thu, 10 Apr 2003 06:29:51 -0400 Received: from workshop.nickc.cambridge.redhat.com.redhat.com (vpn50-2.rdu.redhat.com [172.16.50.2]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h3AATmm22737; Thu, 10 Apr 2003 06:29:50 -0400 To: Bharathi Seshadri Cc: binutils@sources.redhat.com Subject: Re: How to emit .gptab section? References: <4.3.2.7.2.20030409172355.00ba6d10@desh.cisco.com> From: Nick Clifton Date: Thu, 10 Apr 2003 10:29:00 -0000 In-Reply-To: <4.3.2.7.2.20030409172355.00ba6d10@desh.cisco.com> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00249.txt.bz2 Hi Bharathi, > I would like to use the information from .gptab section to able to > set the -G appropriately. However I am not able to emit the > .gptab section in my image. You should specify which version of binutils you are using. This might have been a bug in an old version which is now fixed. You should also specify how you configured gcc and binutils and what command line you are using to build your binaries. Possibly the problem is with how the tools were built or invoked. > I compiled my soures with -g2 and -G4 with gcc version 2.95.3 and > have not been able to see the .gptab section in the output image. > Is there any special option that needs to be turned on or anything to > be done in the ld script? The .gptab seems to only be supported in the big-endian targeted versions of the mips linker. Compare ld/emulparams/elf32bmip.sh with ld/emulparams/elf32lmip.sh for a demonstration of this. So, either build binaries for a big endian mips, or copy the OTHER_SECTIONS definition from elf32bmip.sh to elf32lmip.sh and rebuild the linker. Cheers Nick