https://llvm.org/bugs/show_bug.cgi?id=30396
Bug ID: 30396
Summary: IRObjectFile should consolidate symbols with the same
name
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Object
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Given
target triple = "x86_64-unknown-linux-gnu"
module asm ".global patatino"
module asm ".equ patatino, foo"
declare void @patatino()
define void @foo() {
call void @patatino()
ret void
}
llvm-nm reports
U patatino
---------------- T foo
---------------- T patatino
U foo
It should really just report two symbol
* patatino, which is an asm symbol and has no GV
* foo, with has an associated GV
For the most part this is just funny output, but it does create some
complications with LTO seeing an undefined symbol reported as prevailing.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs