Blame sysdeps/x86_64/dl-runtime.c

Packit 6c4009
/* The ABI calls for the PLT stubs to pass the index of the relocation
Packit 6c4009
   and not its offset.  In _dl_profile_fixup and _dl_call_pltexit we
Packit 6c4009
   also use the index.  Therefore it is wasteful to compute the offset
Packit 6c4009
   in the trampoline just to reverse the operation immediately
Packit 6c4009
   afterwards.  */
Packit 6c4009
#define reloc_offset reloc_arg * sizeof (PLTREL)
Packit 6c4009
#define reloc_index  reloc_arg
Packit 6c4009
Packit 6c4009
#include <elf/dl-runtime.c>