[PATCH] D23398: [XRay] Synthesize a reference to the xray_instr_map
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 13 20:54:36 PDT 2016
rnk added a comment.
In https://reviews.llvm.org/D23398#542025, @majnemer wrote:
> It is a special case: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gold/object.cc;h=a631c9937c5f589de5db561e381f161c637bdfde;hb=HEAD#l1618
It says right there that __section_start/end symbols will suppress the dead stripping, though:
1625 // If the section name XXX can be represented as a C identifier
1626 // it cannot be discarded if there are references to
1627 // __start_XXX and __stop_XXX symbols. These need to be
1628 // specially handled.
Maybe we just need to generate two such synthetic references per object file, if the runtime doesn't do enough?
Repository:
rL LLVM
https://reviews.llvm.org/D23398
More information about the llvm-commits
mailing list