loongarch64: calculate the ELF header flags
This commit is contained in:
parent
b7c5323d42
commit
737e1d2569
1 changed files with 4 additions and 0 deletions
|
@ -192,6 +192,10 @@ pub(crate) fn create_object_file(sess: &Session) -> Option<write::Object<'static
|
||||||
}
|
}
|
||||||
e_flags
|
e_flags
|
||||||
}
|
}
|
||||||
|
Architecture::LoongArch64 => {
|
||||||
|
// Source: https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html#_e_flags_identifies_abi_type_and_version
|
||||||
|
elf::EF_LARCH_OBJABI_V1 | elf::EF_LARCH_ABI_DOUBLE_FLOAT
|
||||||
|
}
|
||||||
_ => 0,
|
_ => 0,
|
||||||
};
|
};
|
||||||
// adapted from LLVM's `MCELFObjectTargetWriter::getOSABI`
|
// adapted from LLVM's `MCELFObjectTargetWriter::getOSABI`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue