[LLVMbugs] [Bug 15549] New: "b = a + 1" doesn't work right

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 19 13:28:52 PDT 2013


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

            Bug ID: 15549
           Summary: "b = a + 1" doesn't work right
           Product: libraries
           Version: trunk
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: dan433584 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ cat t.s
a:
  .byte 0, 1, 2, 3

b = a + 1
$ clang -c t.s -no-integrated-as
$ readelf -sW t.o

Symbol table '.symtab' contains 6 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000000000     0 SECTION LOCAL  DEFAULT    1 
     2: 0000000000000000     0 SECTION LOCAL  DEFAULT    2 
     3: 0000000000000000     0 SECTION LOCAL  DEFAULT    3 
     4: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT    1 a
     5: 0000000000000001     0 NOTYPE  LOCAL  DEFAULT    1 b
$ clang -c t.s 
$ readelf -sW t.o

Symbol table '.symtab' contains 6 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT    1 a
     2: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  ABS b
     3: 0000000000000000     0 SECTION LOCAL  DEFAULT    1 
     4: 0000000000000000     0 SECTION LOCAL  DEFAULT    2 
     5: 0000000000000000     0 SECTION LOCAL  DEFAULT    3 

With the integrated assembler, b's section index is ABS when it should be a's
section index, and its value is 0 when it should be 1.

-- 
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/20130319/07008e01/attachment.html>


More information about the llvm-bugs mailing list