From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33642 invoked by alias); 1 Jul 2018 14:27:16 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 33522 invoked by uid 89); 1 Jul 2018 14:27:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=0.1 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*MI:sk:2018070, H*r:212.27.42, prints, address=e2?= X-HELO: smtp6-g21.free.fr Received: from smtp6-g21.free.fr (HELO smtp6-g21.free.fr) (212.27.42.6) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 01 Jul 2018 14:27:13 +0000 Received: from polaris.localnet (unknown [88.161.99.133]) by smtp6-g21.free.fr (Postfix) with ESMTPS id 57E15780316; Sun, 1 Jul 2018 16:27:11 +0200 (CEST) From: Eric Botcazou To: Mahmood Naderan Cc: gcc@gcc.gnu.org Subject: Re: Finding virtual address of functions in code Date: Sun, 01 Jul 2018 14:27:00 -0000 Message-ID: <7617217.NcGobWCABJ@polaris> In-Reply-To: <20180701141942.5A8DE55FDC0@zimbra11-e2.priv.proxad.net> References: <20180701141942.5A8DE55FDC0@zimbra11-e2.priv.proxad.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-07/txt/msg00005.txt.bz2 > Is there any builtin function in C which prints the virtual address of > functions including the main? I see __builtin_return_address() but that > returns the =E2=80=9Creturn address=E2=80=9D. This list is not appropriate for such a question, use gcc-help@ instead. --=20 Eric Botcazou