diff options
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r-- | lld/ELF/LinkerScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 0d60e6511f7..57172ffdcfe 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -318,7 +318,7 @@ std::vector<PhdrEntry<ELFT>> LinkerScript<ELFT>::createPhdrs() { Phdr.add(Out<ELFT>::Interp); break; case PT_DYNAMIC: - if (isOutputDynamic<ELFT>()) { + if (Out<ELFT>::DynSymTab) { Phdr.H.p_flags = Out<ELFT>::Dynamic->getPhdrFlags(); Phdr.add(Out<ELFT>::Dynamic); } |