<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Commit 211500 broke linking on os x: address not in any section"
   href="http://llvm.org/bugs/show_bug.cgi?id=20179">20179</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Commit 211500 broke linking on os x: address not in any section
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>MC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>andrew.b.adams@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=12728" name="attach_12728" title="Failing bitcode">attachment 12728</a> <a href="attachment.cgi?id=12728&action=edit" title="Failing bitcode">[details]</a></span>
Failing bitcode

On OS X 10.9 with latest XCode, some bitcode files (e.g. the attached one)
compile and link fine with llc from revision 211499, but fail with 211500 and
newer.

$ llc acquire_release.bc -filetype=obj -o acquire_release_211500.o

$ echo "int main(int argc, char **argv) {return 0;}" > dummy.cpp

$ c++ dummy.cpp acquire_release_211500.o 
ld: sectionForAddress(0xFFFFFFFFFFFFF900) address not in any section file
'acquire_release_211500.o' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Not sure what property of my bitcode makes this so, but it works fine on linux,
windows, arm linux, android, and native client, but it doesn't compile and link
on OS X anymore. 

I independently generated the bitcode with 211499 and 211500, and the files
were byte-for-byte identical, so the problem isn't in the bitcode itself.</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>