[llvm-bugs] [Bug 40612] New: Solaris ld -z discard-unused=section and --gc-section only supported on newer releases

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 5 10:16:51 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40612

            Bug ID: 40612
           Summary: Solaris ld -z discard-unused=section and --gc-section
                    only supported on newer releases
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: jason.brian.king at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

The LLVM CMake modules emit the ld(1) option '-z discard-unused=section' (and
--gc-sections) for linking.  These flags are new (in Solaris terms at least)
and are also not yet supported on illumos variants.

I suspect we should put those flags behind a feature test when the platform is
SunOS.

Assuming the feature test approach is acceptable, I'm working on a patch to
submit that'd do that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190205/eadbc1e2/attachment.html>


More information about the llvm-bugs mailing list