mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
MC/Mach-O: Mark absolute variable's appropriately, and add Mach-O support for
writing them. - <rdar://problem/7885351> integrated assembler broken for i386 objc code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103112 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -404,7 +404,7 @@ public:
|
||||
// Compute the symbol address.
|
||||
if (Symbol.isDefined()) {
|
||||
if (Symbol.isAbsolute()) {
|
||||
llvm_unreachable("FIXME: Not yet implemented!");
|
||||
Address = cast<MCConstantExpr>(Symbol.getVariableValue())->getValue();
|
||||
} else {
|
||||
Address = Layout.getSymbolAddress(&Data);
|
||||
}
|
||||
@ -552,7 +552,7 @@ public:
|
||||
// possible. This seems to be done because the debugger doesn't fully
|
||||
// understand x86_64 relocation entries, and expects to find values that
|
||||
// have already been fixed up.
|
||||
if (Symbol->isDefined()) {
|
||||
if (Symbol->isInSection()) {
|
||||
const MCSectionMachO &Section = static_cast<const MCSectionMachO&>(
|
||||
Fragment->getParent()->getSection());
|
||||
if (Section.hasAttribute(MCSectionMachO::S_ATTR_DEBUG))
|
||||
|
Reference in New Issue
Block a user