[lld] [ELF] adjustOutputSections: don't copy SHF_EXECINSTR when an output does not contain input sections (PR #70911)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 1 22:32:02 PDT 2023
================
@@ -1193,8 +1193,8 @@ void LinkerScript::adjustOutputSections() {
// We do not want to keep any special flags for output section
// in case it is empty.
if (isEmpty)
- sec->flags = flags & ((sec->nonAlloc ? 0 : (uint64_t)SHF_ALLOC) |
- SHF_WRITE | SHF_EXECINSTR);
+ sec->flags =
----------------
MaskRay wrote:
Thanks for the suggestion. Reworded a bit
https://github.com/llvm/llvm-project/pull/70911
More information about the llvm-commits
mailing list