mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 19:44:38 +08:00
[BOLT] Support relocations without symbols
Summary: lld may generate relocations without associated symbols. Instead of rejecting binaries with such relocations, we can re-create the symbol the relocation is against based on the extracted value. (cherry picked from FBD10054576)
This commit is contained in:
@@ -637,9 +637,9 @@ void BinaryFunction::emitLSDA(MCStreamer *Streamer, bool EmitColdPart) {
|
||||
if (TypeAddress) {
|
||||
const auto *TypeSymbol =
|
||||
BC.getOrCreateGlobalSymbol(TypeAddress,
|
||||
"TI",
|
||||
TTypeEncodingSize,
|
||||
TTypeAlignment,
|
||||
"TI");
|
||||
TTypeAlignment);
|
||||
auto *DotSymbol = BC.Ctx->createTempSymbol();
|
||||
Streamer->EmitLabel(DotSymbol);
|
||||
const auto *SubDotExpr = MCBinaryExpr::createSub(
|
||||
|
||||
Reference in New Issue
Block a user