[XRay] xray_fn_idx: set SHF_WRITE to avoid text relocations
authorFangrui Song <maskray@google.com>
Tue, 21 Apr 2020 18:52:51 +0000 (11:52 -0700)
committerFangrui Song <maskray@google.com>
Tue, 21 Apr 2020 19:02:29 +0000 (12:02 -0700)
commitc5d38924dc6688c15b3fa133abeb3626e8f0767c
tree40982e009f2588f86fd5e9623bec8f1e6f659752
parent352fef3f11f5ccb2ddc8e16cecb7302a54721e9f
[XRay] xray_fn_idx: set SHF_WRITE to avoid text relocations

In a future change we should properly fix xray_fn_idx to use PC-relative
addresses as well, but for now let's keep absolute addresses until sled
addresses are all fixed.
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/DebugInfo/X86/xray-split-dwarf-interaction.ll