[llvm-bugs] [Bug 30396] New: IRObjectFile should consolidate symbols with the same name
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Sep 15 08:18:12 PDT 2016
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: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160915/b66d90d5/attachment.html>
More information about the llvm-bugs
mailing list