From owner-freebsd-current@FreeBSD.ORG Fri Feb 23 09:47:54 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C0C0C16A401 for ; Fri, 23 Feb 2007 09:47:54 +0000 (UTC) (envelope-from mayank@microsoft.com) Received: from smtp-sin.microsoft.com (smtp-sin.microsoft.com [207.46.52.79]) by mx1.freebsd.org (Postfix) with ESMTP id 3971213C4A3 for ; Fri, 23 Feb 2007 09:47:54 +0000 (UTC) (envelope-from mayank@microsoft.com) Received: from sin-exhub-c401.southpacific.corp.microsoft.com (157.60.222.31) by SIN-EXGWY-E802.partners.extranet.microsoft.com (10.251.168.130) with Microsoft SMTP Server (TLS) id 8.0.685.24; Fri, 23 Feb 2007 17:47:52 +0800 Received: from AA-EXMSG-C412.southpacific.corp.microsoft.com ([157.60.226.51]) by sin-exhub-c401.southpacific.corp.microsoft.com ([157.60.222.31]) with mapi; Fri, 23 Feb 2007 17:47:52 +0800 From: Mayank Kumar To: Dan Nelson , Giorgos Keramidas Date: Fri, 23 Feb 2007 17:47:40 +0800 Thread-Topic: what does _eprol mean and how is it compututed Thread-Index: AcdXLF3XlKjfbdI/Ql6/AmV7+R9vVgAAlDVQ Message-ID: <76EBE649FB0E0E4DA883B5840459059F143A1828E9@AA-EXMSG-C412.southpacific.corp.microsoft.com> References: <76EBE649FB0E0E4DA883B5840459059F143A182705@AA-EXMSG-C412.southpacific.corp.microsoft.com> <20070223010358.GA4946@kobe.laptop> <20070223054321.GB43770@dan.emsphone.com> In-Reply-To: <20070223054321.GB43770@dan.emsphone.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-hashedpuzzle: D+PV MgYe NqP0 PlqI PrpE Rb0l UVGN YzAx Y5Di arGC brCD b0/d d47b eeKA ehCn fzav; 3; ZABuAGUAbABzAG8AbgBAAGEAbABsAGEAbgB0AGcAcgBvAHUAcAAuAGMAbwBtADsAZgByAGUAZQBiAHMAZAAtAGMAdQByAHIAZQBuAHQAQABmAHIAZQBlAGIAcwBkAC4AbwByAGcAOwBrAGUAcgBhAG0AaQBkAGEAQABjAGUAaQBkAC4AdQBwAGEAdAByAGEAcwAuAGcAcgA=; Sosha1_v1; 7; {F7BB588E-B226-490F-8368-CEDA8D2F0700}; bQBhAHkAYQBuAGsAQABtAGkAYwByAG8AcwBvAGYAdAAuAGMAbwBtAA==; Fri, 23 Feb 2007 09:47:40 GMT; UgBFADoAIAB3AGgAYQB0ACAAZABvAGUAcwAgAF8AZQBwAHIAbwBsACAAbQBlAGEAbgAgAGEAbgBkACAAaABvAHcAIABpAHMAIABpAHQAIABjAG8AbQBwAHUAdAB1AHQAZQBkAA== x-cr-puzzleid: {F7BB588E-B226-490F-8368-CEDA8D2F0700} acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 23 Feb 2007 12:40:58 +0000 Cc: "freebsd-current@freebsd.org" Subject: RE: what does _eprol mean and how is it compututed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2007 09:47:54 -0000 Hi Dan, Cool, thnks for the information. That's exactly what I was looking for. But= the cvs webaccess shows me crt0.c which actually contains _eprol and _etex= t. Anyways I now understand what eprol means. Thanks Mayank -----Original Message----- From: Dan Nelson [mailto:dnelson@allantgroup.com] Sent: Friday, February 23, 2007 11:13 AM To: Giorgos Keramidas Cc: Mayank Kumar; freebsd-current@freebsd.org Subject: Re: what does _eprol mean and how is it compututed In the last episode (Feb 23), Giorgos Keramidas said: > On 2007-02-22 04:20, Mayank Kumar wrote: > > While calling monstartup in crt0.c, _eprol and _etext are passed to > > monstartup. _etext means end of segment, what does _eprol mean and > > how is it computed > > Are you sure you are talking about FreeBSD? > > build@kobe:/home/build/src$ egrep -r -e '_eprol|_etext' * > build@kobe:/home/build/src$ > > I don't see any reference to '_eprol' or '_etext' in our source tree, > and 'monstartup' doesn't really ring any bells. It's actually "eprol" and "etext", and the source file is crt1.c, located at /usr/src/lib/csu//crt1.c . The monstartup function has a manpage that describes its arguments. eprol is declared via some __asm__() code in crt1.c to ensure that it's the first symbol in gcrt1.o's text segment, which ensures that it's the first symbol in a program's text segment (since gcrt1.o is the first thing linked into a profiled binary). -- Dan Nelson dnelson@allantgroup.com