From owner-freebsd-questions Thu Jun 27 17:42:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from akhe22qcy12il.ab.hsia.telus.net (akhe22qcy12il.ab.hsia.telus.net [66.222.168.78]) by hub.freebsd.org (Postfix) with ESMTP id DBED937B400 for ; Thu, 27 Jun 2002 17:42:47 -0700 (PDT) Received: from there (vasya [192.168.4.2]) by akhe22qcy12il.ab.hsia.telus.net (8.11.6/8.11.6) with SMTP id g5S0gZU40953 for ; Thu, 27 Jun 2002 18:42:41 -0600 (MDT) (envelope-from soralx@cydem.zp.ua) Message-Id: <200206280042.g5S0gZU40953@akhe22qcy12il.ab.hsia.telus.net> Content-Type: text/plain; charset="koi8-r" From: To: freebsd-questions@freebsd.org Date: Thu, 27 Jun 2002 18:42:32 -0600 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: ELF, memory offset Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Is it possible to determine memory offset of a variable (data segment) in compiled C program (not touching the source code)? Is the address static in the ELF Program Header, or it's initialized dynamically? The variable is probably in uninitialized data section, which should be at the end of the segment? Plz, CC - not subscribed (Sorry for resending - I forgot 'Subject:', so I thought that most ppl just ignored my msg) 20.06.2002; 22:36:47 [SorAlx] http://cydem.zp.ua/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message