[LLVMbugs] [Bug 19126] New: Defining a symbol as an offset of another is broken in MC
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 13 09:48:33 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19126
Bug ID: 19126
Summary: Defining a symbol as an offset of another is broken in
MC
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: ASSIGNED
Severity: normal
Priority: P
Component: MC
Assignee: rafael.espindola at gmail.com
Reporter: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cat ~/llvm/test.s
.data
.globl foo
foo:
.long 42
.globl bar
bar = foo
.globl zed
zed = foo + 1
$ as ~/llvm/test.s -o test.o
$ nm test.o
0000000000000000 D bar
0000000000000000 D foo
0000000000000001 D zed
$ ./bin/llvm-mc ~/llvm/test.s -o test.o -filetype=obj
$ nm test.o
0000000000000000 D bar
0000000000000000 D foo
0000000000000000 A zed
--
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/20140313/d1214d3f/attachment.html>
More information about the llvm-bugs
mailing list