http://llvm.org/bugs/show_bug.cgi?id=20179

            Bug ID: 20179
           Summary: Commit 211500 broke linking on os x: address not in
                    any section
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 12728
  --> http://llvm.org/bugs/attachment.cgi?id=12728&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to