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: unassignedb...@nondot.org
          Reporter: jason.brian.k...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to