mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-21 02:29:22 +00:00
Pass the correct ELFOSABI enumeration to the MipsELFObjectWriter constructor
Contributer: Sasa Stankovic git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159574 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
30a507a1f5
commit
39ae36337f
@ -78,7 +78,8 @@ public:
|
|||||||
:MCAsmBackend(), OSType(_OSType), IsLittle(_isLittle), Is64Bit(_is64Bit) {}
|
:MCAsmBackend(), OSType(_OSType), IsLittle(_isLittle), Is64Bit(_is64Bit) {}
|
||||||
|
|
||||||
MCObjectWriter *createObjectWriter(raw_ostream &OS) const {
|
MCObjectWriter *createObjectWriter(raw_ostream &OS) const {
|
||||||
return createMipsELFObjectWriter(OS, OSType, IsLittle, Is64Bit);
|
return createMipsELFObjectWriter(OS,
|
||||||
|
MCELFObjectTargetWriter::getOSABI(OSType), IsLittle, Is64Bit);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ApplyFixup - Apply the \arg Value for given \arg Fixup into the provided
|
/// ApplyFixup - Apply the \arg Value for given \arg Fixup into the provided
|
||||||
|
@ -30,3 +30,6 @@
|
|||||||
// CHECK-LE64: ('e_indent[EI_CLASS]', 0x02)
|
// CHECK-LE64: ('e_indent[EI_CLASS]', 0x02)
|
||||||
// This is little endian.
|
// This is little endian.
|
||||||
// CHECK-LE64: ('e_indent[EI_DATA]', 0x01)
|
// CHECK-LE64: ('e_indent[EI_DATA]', 0x01)
|
||||||
|
|
||||||
|
// Check that we are setting EI_OSABI to ELFOSABI_LINUX.
|
||||||
|
// CHECK-LE64: ('e_indent[EI_OSABI]', 0x03)
|
||||||
|
Loading…
Reference in New Issue
Block a user