[PATCH] x86: Treat relocation against IFUNC symbol as FUNC
Wed Mar 7 14:47:00 GMT 2018
On Wed, Mar 7, 2018 at 6:34 AM, Nick Clifton <email@example.com> wrote:
> Hi H.J.
>>> When resolving a relocation against IFUNC symbol in a SHT_NOTE section
>>> without SHF_ALLOC, we treat it as relocation against FUNC symbol since
>>> it needs the address of IFUNC symbol, not the address returned by IFUNC
> Actually - thinking about it further ... why should it matter that it is a
> note section that is being relocated ? Surely the same logic should apply
> to any ifunc-targeted relocation in a non-alloc section. For example, I
> wonder if your patch would actually work for debug sections as well ?
> (Rather than the current option of just silently ignoring the reloc).
GDB has special handling for IFUNC symbols which works well for the
current approach with debug sections. Will such a change break GDB?
More information about the Binutils