[llvm-bugs] [Bug 25025] New: Compiling with -fms-extensions creates empty LC_LINKER_OPTION load command
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 2 05:55:19 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=25025
Bug ID: 25025
Summary: Compiling with -fms-extensions creates empty
LC_LINKER_OPTION load command
Product: clang
Version: 3.7
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: sebastian at theophil.net
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 14980
--> https://llvm.org/bugs/attachment.cgi?id=14980&action=edit
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
--
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/20151002/82dac7f9/attachment.html>
More information about the llvm-bugs
mailing list