<html>
<head>
<base href="https://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 --- - Compiling with -fms-extensions creates empty LC_LINKER_OPTION load command"
href="https://llvm.org/bugs/show_bug.cgi?id=25025">25025</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Compiling with -fms-extensions creates empty LC_LINKER_OPTION load command
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sebastian@theophil.net
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14980" name="attach_14980" title="Reproduction">attachment 14980</a> <a href="attachment.cgi?id=14980&action=edit" title="Reproduction">[details]</a></span>
Reproduction
I'm getting an annoying warning from ld since a while back. ld complains
ld: warning: unknown linker option from object file ignored: '' in blabla.o
When I dump the load commands in blabla.o using otool -l blabla.o I see this:
Load command 4
cmd LC_LINKER_OPTION
cmdsize 16
count 1
count 1 does not match number of strings 0
Indeed, there seems to be an empty linker option.
I can reproduce this with a file from Microsoft's Casablanca REST SDK. I've
attached a subset of the source code with which the problem can be reproduced.
Unzip the files and compile:
c++ -std=c++1y -I ./src/pch -I ./include/ -I path_to_boost/boost_1_59_0/
./src/pplx/apple/pplxapple.cpp -fms-extensions -c -o pplxapple.o
Removing -fms-extensions removes the empty linker option</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>