From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17853 invoked by alias); 15 Oct 2004 19:55:53 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 17836 invoked from network); 15 Oct 2004 19:55:51 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sourceware.org with SMTP; 15 Oct 2004 19:55:51 -0000 Received: from hermes.suse.de (hermes-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id E1BA1D88F03; Fri, 15 Oct 2004 21:54:13 +0200 (CEST) To: Gerhard Wiesinger Cc: binutils@sources.redhat.com, gcc-help@gcc.gnu.org Subject: Re: gcc and -fPIC References: From: Andreas Schwab X-Yow: Here I am in the POSTERIOR OLFACTORY LOBULE but I don't see CARL SAGAN anywhere!! Date: Fri, 15 Oct 2004 19:55:00 -0000 In-Reply-To: (Gerhard Wiesinger's message of "Fri, 15 Oct 2004 19:07:58 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-10/txt/msg00120.txt.bz2 Gerhard Wiesinger writes: > Why is there a call at location 80485b3? This is used to load the program counter since the x86 does not have a pc-relative addressing mode except in calls. That's the only way to get the address of the GOT in position independ code. > So is the code gcc produces (in)correct, or objdump can't read any > Position Independent Code? Neither. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."