mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-13 21:05:16 +00:00
Fix wrong elf class and byte order initializations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73039 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a029a27fae
commit
24f14f16fd
@ -89,8 +89,8 @@ namespace llvm {
|
|||||||
ELFHeader(unsigned short machine, unsigned flags,
|
ELFHeader(unsigned short machine, unsigned flags,
|
||||||
bool is64Bit, bool isLittleEndian)
|
bool is64Bit, bool isLittleEndian)
|
||||||
: e_machine(machine), e_flags(flags) {
|
: e_machine(machine), e_flags(flags) {
|
||||||
ByteOrder = is64Bit ? ELFCLASS64 : ELFCLASS32;
|
ElfClass = is64Bit ? ELFCLASS64 : ELFCLASS32;
|
||||||
ElfClass = isLittleEndian ? ELFDATA2LSB : ELFDATA2MSB;
|
ByteOrder = isLittleEndian ? ELFDATA2LSB : ELFDATA2MSB;
|
||||||
e_ehsize = is64Bit ? 64 : 52;
|
e_ehsize = is64Bit ? 64 : 52;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user