<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - use-init-array has no effect on Solaris"
   href="https://bugs.llvm.org/show_bug.cgi?id=33293">33293</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>use-init-array has no effect on Solaris
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Solaris
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Target Description Classes
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Fedor.Sergeev@oracle.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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",@init_array,v,comdat
        .section   .init_array,"aw",@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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>