This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gcc and -fPIC
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Gerhard Wiesinger <lists at wiesinger dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 13 Apr 2007 17:18:14 +0930
- Subject: Re: gcc and -fPIC
- References: <Pine.LNX.4.64.0704110753470.1376@bbs.intern>
On Wed, Apr 11, 2007 at 07:55:27AM +0200, Gerhard Wiesinger wrote:
> So is the code gcc produces (in)correct, or objdump can't read any Position
> Independent Code?
Neither. "call .+4; pop %ebx;" just loads the run-time address of the
pop insn into ebx .
--
Alan Modra
IBM OzLabs - Linux Technology Centre