From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20721 invoked by alias); 1 Mar 2005 11:20:01 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 20611 invoked from network); 1 Mar 2005 11:19:48 -0000 Received: from unknown (HELO mail.pune.nevisnetworks.com) (203.124.166.179) by sourceware.org with SMTP; 1 Mar 2005 11:19:48 -0000 Received: from nevismail01.pune.nevisnetworks.com (nevismail01.pune.nevisnetworks.com [192.168.2.9]) by mail.pune.nevisnetworks.com (8.12.8/8.12.8) with ESMTP id j21BJjja008134 for ; Tue, 1 Mar 2005 16:49:45 +0530 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: function address from object file? Date: Tue, 01 Mar 2005 11:20:00 -0000 Message-ID: <7F17177AC9AC2F4CB4A1A33C936D038D6E4A21@nevismail01.pune.nevisnetworks.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Atul Talesara" To: "Roopesh Kohad" , X-SW-Source: 2005-03/txt/msg00003.txt.bz2 > $ gcc -c -g -o a.o a.c This command will *only* compile the code, leaving final address resolution/allocation to linking stage. Hence you see zero-based addresses. Regards, Atul http://the-shaolin.blogspot.com/=20 ----------------------------------------------------------=20 You can tell more about a person by what he says about others than you can by what others say about him. ----------------------------------------------------------