mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
MC/Mach-O/x86_64: Temporary labels in cstring sections require symbols (and external relocations, but we don't have x86_64 relocations yet).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -674,7 +674,10 @@ public:
|
||||
const MCSymbol &Symbol = it->getSymbol();
|
||||
|
||||
// Ignore assembler temporaries.
|
||||
if (it->getSymbol().isTemporary())
|
||||
if (it->getSymbol().isTemporary() &&
|
||||
(!it->getFragment() ||
|
||||
!Asm.getBackend().doesSectionRequireSymbols(
|
||||
it->getFragment()->getParent()->getSection())))
|
||||
continue;
|
||||
|
||||
if (!it->isExternal() && !Symbol.isUndefined())
|
||||
@@ -710,7 +713,10 @@ public:
|
||||
const MCSymbol &Symbol = it->getSymbol();
|
||||
|
||||
// Ignore assembler temporaries.
|
||||
if (it->getSymbol().isTemporary())
|
||||
if (it->getSymbol().isTemporary() &&
|
||||
(!it->getFragment() ||
|
||||
!Asm.getBackend().doesSectionRequireSymbols(
|
||||
it->getFragment()->getParent()->getSection())))
|
||||
continue;
|
||||
|
||||
if (it->isExternal() || Symbol.isUndefined())
|
||||
|
Reference in New Issue
Block a user