[lld] r176278 - [ELF][Hexagon] change Header flags
Shankar Easwaran
shankare at codeaurora.org
Thu Feb 28 10:35:28 PST 2013
Author: shankare
Date: Thu Feb 28 12:35:27 2013
New Revision: 176278
URL: http://llvm.org/viewvc/llvm-project?rev=176278&view=rev
Log:
[ELF][Hexagon] change Header flags
Modified:
lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h
Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h?rev=176278&r1=176277&r2=176278&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h Thu Feb 28 12:35:27 2013
@@ -147,6 +147,15 @@ class HexagonTargetHandler LLVM_FINAL :
public:
HexagonTargetHandler(HexagonTargetInfo &targetInfo);
+ bool doesOverrideHeader() { return true; }
+
+ void setHeaderInfo(Header<HexagonELFType> *header) {
+ header->e_ident(llvm::ELF::EI_VERSION, 1);
+ header->e_ident(llvm::ELF::EI_OSABI, 0);
+ header->e_version(1);
+ header->e_flags(0x3);
+ }
+
virtual TargetLayout<HexagonELFType> &targetLayout() {
return _targetLayout;
}
More information about the llvm-commits
mailing list