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

            Bug ID: 23914
           Summary: Long .symver directives generate symbols with empty
                    names
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

$ cat 1.cc
int x = 0;
asm (".symver " "x" "," "aaaaaaaaaaaaaaaaaa" "@@@" "AAAAAAAAAAAAA");

$ clang++ -c 1.cc && objdump 1.o

1.o:     file format elf64-x86-64

SYMBOL TABLE:
0000000000000000 l    df *ABS*    0000000000000000 1.cc
0000000000000000 g     O .bss    0000000000000004 

$ /code/llvm/build/bin/clang++ -c 1.cc -fno-integrated-as && objdump -t 1.o

1.o:     file format elf64-x86-64

SYMBOL TABLE:
0000000000000000 l    df *ABS*    0000000000000000 1.cc
0000000000000000 l    d  .text    0000000000000000 .text
0000000000000000 l    d  .data    0000000000000000 .data
0000000000000000 l    d  .bss    0000000000000000 .bss
0000000000000000 l    d  .note.GNU-stack    0000000000000000 .note.GNU-stack
0000000000000000 l    d  .comment    0000000000000000 .comment
0000000000000000 g     O .bss    0000000000000004
aaaaaaaaaaaaaaaaaa@@AAAAAAAAAAAAA

Remove any character from "aaa..aa" or "AA...AA" and we are back to the correct
behavior.

-- 
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