[lld] lld: relocate PHDR if sectionStartMap is not empty (PR #140126)
Pavel Skripkin via llvm-commits
llvm-commits at lists.llvm.org
Fri May 16 00:06:31 PDT 2025
================
@@ -331,7 +331,7 @@ template <class ELFT> void Writer<ELFT>::run() {
for (OutputSection *sec : ctx.outputSections)
sec->maybeCompress<ELFT>(ctx);
- if (ctx.script->hasSectionsCommand)
+ if (ctx.script->hasSectionsCommand || !ctx.arg.sectionStartMap.empty())
----------------
pskrgag wrote:
Ok, thanks for review! Closing pr in favor of #140187
https://github.com/llvm/llvm-project/pull/140126
More information about the llvm-commits
mailing list