[llvm-bugs] [Bug 25347] New: Using .symver causes Common symbol XXX cannot be used in assignment expr

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 29 12:55:32 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25347

            Bug ID: 25347
           Summary: Using .symver causes Common symbol XXX cannot be used
                    in assignment expr
           Product: new-bugs
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: lubos at dolezel.info
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Compiling this very simple piece of code:

/* CODE BEGIN */
asm(".symver my_test, test at TEST");
int my_test;
/* CODE END */

causes an error:

$ clang -shared -o libtest.so test.c -Wl,-version-script=DoesntMatter.map
fatal error: error in backend: Common symbol my_test cannot be used in
assignment expr

Adding -no-integrated-as makes the problem go away.

-- 
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/20151029/d3cea2f8/attachment.html>


More information about the llvm-bugs mailing list