[PATCH] D23398: [XRay] Synthesize a reference to the xray_instr_map

Dean Michael Berris via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 13 20:17:26 PDT 2016


dberris added a comment.

In https://reviews.llvm.org/D23398#542014, @rnk wrote:

> How does gold know to avoid stripping .init_array sections? If it's not a special case, I wonder if we could try to do what's done there.


Apparently according to @majnemer (please correct me if I'm wrong here) that it's a special case in gold -- so unless we teach gold to treat xray_instr_map sections as special, or find a way to make this an option you can provide as a flag then this seems to be the thing that works for now. I agree we could do better by changing the linkers to do the right thing, but that will take longer.


Repository:
  rL LLVM

https://reviews.llvm.org/D23398





More information about the llvm-commits mailing list