These are not executable files so they shouldn't be marked as such.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
+1 to testcase request.
ELF/Writer.cpp | ||
---|---|---|
1843 ↗ | (On Diff #126253) | I believe LLD style avoids using ternary operator where possible. unsigned Flags = FileOutputBuffer::F_executable; if (Config->Relocatable || Config->Shared) Flags = 0; |
ELF/Writer.cpp | ||
---|---|---|
1843 ↗ | (On Diff #126253) | Yeah, sort of. I learned this style from Go. I'd prefer defaulting to 0 and re-setting F_executable though. |
Comment Actions
LGTM with this fix.
ELF/Writer.cpp | ||
---|---|---|
1837 ↗ | (On Diff #126445) | Please remove !Config->Shared as other linkers set X bit to shared libraries. |