As requested in D107955, this patch splits off the MC and CodeGen parts and adds a testcase.
Tested on sparcv9-sun-solaris2.11, amd64-pc-solaris2.11, and x86_64-pc-linux-gnu.
Paths
| Differential D120318
[MC][ELF] Use SHF_SUNW_NODISCARD instead of SHF_GNU_RETAIN on Solaris ClosedPublic Authored by ro on Feb 22 2022, 4:05 AM.
Details Summary As requested in D107955, this patch splits off the MC and CodeGen parts and adds a testcase. Tested on sparcv9-sun-solaris2.11, amd64-pc-solaris2.11, and x86_64-pc-linux-gnu.
Diff Detail
Event TimelineHerald added subscribers: pengfei, fedor.sergeev, hiraditya and 2 others. · View Herald TranscriptFeb 22 2022, 4:05 AM This revision is now accepted and ready to land.Feb 22 2022, 10:37 AM This revision was landed with ongoing or failed builds.Feb 23 2022, 6:43 AM Closed by commit rG365be7ac72a3: [MC][ELF] Use SHF_SUNW_NODISCARD instead of SHF_GNU_RETAIN on Solaris (authored by ro). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 410805 llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/MC/MCParser/ELFAsmParser.cpp
llvm/lib/MC/MCSectionELF.cpp
llvm/test/CodeGen/X86/elf-retain.ll
llvm/test/MC/ELF/section-gnu.s
|
Maybe conciser: // Print OS-specific flags.`