This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PLT entries for STT_GNU_IFUNC in static binaries


On Thu, Sep 26, 2013 at 3:34 PM, Andreas Schwab <schwab@suse.de> wrote:
> vijay nag <vijunag@gmail.com> writes:
>
>> Why this difference in  "objdump -d" output of IRELATIVE PLT entries
>> for static and dynamic executable ?
>>
>> Doesn't static executable possess PLT symbol information ?
>
> A static executable doesn't have a dynamic symbol table where these
> synthetic symbols are created from.
>
> Andreas.
>
> --
> Andreas Schwab, SUSE Labs, schwab@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."

gdb is unable to single-step in a static executable after the program
jumps into PLT  to execute gnu_ifunc.
How is gdb supposed to handle it ?

(gdb) n
273     argv0short = strrchr(argv[0], '/');
(gdb) n
0x08048430 in ?? ()
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]