Files
Brian Cain c7fbd7e709 [XRay][Hexagon] Use PC-rel addressing for runtime globals in trampoline (#203122)
The trampolines load the runtime handler globals
(__xray::XRayPatchedFunction and friends) with absolute
constant-extended immediates, which cannot be used in a PIC/PIE link, so
linking a default-PIE executable against the xray runtime fails -- and
-fPIC on user code does not help, the bad relocations are inside the
runtime archive:

  ld.lld: error: relocation R_HEX_32_6_X cannot be used against symbol
  '__xray::XRayPatchedFunction'; recompile with -fPIC
2026-06-16 13:30:17 -05:00
..