Blame sysdeps/x86_64/dl-runtime.c

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