From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25701 invoked by alias); 4 Apr 2008 10:50:40 -0000 Received: (qmail 25692 invoked by uid 22791); 4 Apr 2008 10:50:39 -0000 X-Spam-Check-By: sourceware.org Received: from 204-133-123-27.dia.static.slbbi.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 04 Apr 2008 10:50:22 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id C856468C801B; Fri, 4 Apr 2008 04:50:20 -0600 (MDT) Received: from hermes.chez-thomas.org (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id 8523B33790F1; Fri, 4 Apr 2008 04:50:18 -0600 (MDT) Message-ID: <47F607E9.3040604@mlbassoc.com> Date: Fri, 04 Apr 2008 13:12:00 -0000 From: Gary Thomas User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Dileep Kumar CC: ecos-discuss@sourceware.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Regarding GLOBAL OFFSET TABLE X-SW-Source: 2008-04/txt/msg00068.txt.bz2 Dileep Kumar wrote: > Hi, > Could you please tell me where _GLOBAL_OFFSET_TABLE_ > is defined in the eCos code for MPC8260. > > In the file "arch\current\src " ,there is a statement > # Set up global offset table > lwi r2,_GLOBAL_OFFSET_TABLE_ > > I analyzed the code, but I could not find where GLOBAL OFFSET > TABLE(GOT) is defined . > > Could you please tell me .. > what are the contents of GOT table ? > how much memory is allocated for GOT ? > Which file contains GOT initialization ? This is all pure magic, handled by gcc/ld. The symbol itself is defined by the linker script to point at the section which contains .got entries. AFAIK, the EABI compiler does not generate any such sections, but the code is in place in case we ever run into any. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss