diff options
Diffstat (limited to 'lld/ELF/Driver.cpp')
-rw-r--r-- | lld/ELF/Driver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 128b2ee20ac..d2c8f338fa3 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -707,20 +707,20 @@ void LinkerDriver::readConfigs(opt::InputArgList &Args) { static void setConfigs() { ELFKind Kind = Config->EKind; uint16_t Machine = Config->EMachine; - bool Is64 = (Kind == ELF64LEKind || Kind == ELF64BEKind); // There is an ILP32 ABI for x86-64, although it's not very popular. // It is called the x32 ABI. bool IsX32 = (Kind == ELF32LEKind && Machine == EM_X86_64); Config->CopyRelocs = (Config->Relocatable || Config->EmitRelocs); + Config->Is64 = (Kind == ELF64LEKind || Kind == ELF64BEKind); Config->IsLE = (Kind == ELF32LEKind || Kind == ELF64LEKind); Config->Endianness = Config->IsLE ? support::endianness::little : support::endianness::big; Config->IsMips64EL = (Kind == ELF64LEKind && Machine == EM_MIPS); - Config->IsRela = Is64 || IsX32 || Config->MipsN32Abi; + Config->IsRela = Config->Is64 || IsX32 || Config->MipsN32Abi; Config->Pic = Config->Pie || Config->Shared; - Config->Wordsize = Is64 ? 8 : 4; + Config->Wordsize = Config->Is64 ? 8 : 4; } // Returns a value of "-format" option. |