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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs