[llvm-bugs] [Bug 33293] New: use-init-array has no effect on Solaris

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jun 3 10:32:23 PDT 2017


            Bug ID: 33293
           Summary: use-init-array has no effect on Solaris
           Product: libraries
           Version: trunk
          Hardware: All
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: Target Description Classes
          Assignee: unassignedbugs at nondot.org
          Reporter: Fedor.Sergeev at oracle.com
                CC: llvm-bugs at lists.llvm.org

Solaris port needs to switch from .ctors to .init_array, and strangely enough
setting -fuse-init-array on by default in Clang does not cause .init_array
generated (neither on x86 nor on Sparc).

Say, on x86 Linux:
] bin/llc < ../../llvm/test/CodeGen/X86/constructor.ll   | grep init_array
        .section   .init_array.15,"aGw", at init_array,v,comdat
        .section   .init_array,"aw", at init_array

And on x86 Solaris:
]  bin/llc < ../../llvm/test/CodeGen/X86/constructor.ll   | grep init_array

Solaris codegen targets need to start honoring Options.UseInitArray.

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/20170603/7aa6f8f4/attachment.html>

More information about the llvm-bugs mailing list