These are not executable files so they shouldn't be marked as such.
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
Comment Actions
+1 to testcase request.
ELF/Writer.cpp | ||
---|---|---|
1843 | 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 | 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 | ||
---|---|---|
1842 | Please remove !Config->Shared as other linkers set X bit to shared libraries. |
Please remove !Config->Shared as other linkers set X bit to shared libraries.