diff options
-rw-r--r-- | lld/ELF/OutputSections.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 6e94baa5d1b..1ee96f608ad 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -136,7 +136,8 @@ void OutputSection::addSection(InputSection *IS) { } IS->Parent = this; - uint64_t AndMask = Config->EMachine == EM_ARM ? SHF_ARM_PURECODE : 0; + uint64_t AndMask = + Config->EMachine == EM_ARM ? (uint64_t)SHF_ARM_PURECODE : 0; uint64_t OrMask = ~AndMask; uint64_t AndFlags = (Flags & IS->Flags) & AndMask; uint64_t OrFlags = (Flags | IS->Flags) & OrMask; |