gcc and -fPIC

Daniel Jacobowitz drow@false.org
Sun Oct 17 19:31:00 GMT 2004


On Sun, Oct 17, 2004 at 08:57:15PM +0200, Gerhard Wiesinger wrote:
>         delete x;
>  8048578:       83 ec 0c                sub    $0xc,%esp
>  804857b:       ff 75 f4                pushl  0xfffffff4(%ebp)
>  804857e:       e8 4d fe ff ff          call   80483d0 <_ZdlPv@plt>
>  8048583:       83 c4 10                add    $0x10,%esp
>         delete [] xarray;
>  8048586:       83 7d f0 00             cmpl   $0x0,0xfffffff0(%ebp)
>  804858a:       74 0e                   je     804859a <main+0xba>
>  804858c:       83 ec 0c                sub    $0xc,%esp
>  804858f:       ff 75 f0                pushl  0xfffffff0(%ebp)
>  8048592:       e8 79 fe ff ff          call   8048410 <_ZdaPv@plt>
>  8048597:       83 c4 10                add    $0x10,%esp
> }
> 
> 
> I got some symbol output, but not the expected one.
> 
> But it shouldn't be to difficult to implement because the DYNAMIC SYMBOL 
> table above has already the correct symbol.

That's the output I would expect.  If you would rather see the longer
form, pipe the output to c++filt.

-- 
Daniel Jacobowitz



More information about the Gcc-help mailing list