[LLVMbugs] [Bug 23196] New: relocation refers to discarded section

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 10 15:10:58 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23196

            Bug ID: 23196
           Summary: relocation refers to discarded section
           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 test.ll
$zed = comdat any
@bar = internal global i8 42, comdat($zed)
@bah = alias i8* @bar
define i8* @foo()  {
  ret i8* @bah
}
$ cat test2.ll
$zed = comdat any
@bar = internal global i8 42, comdat($zed)
@bah = alias i8* @bar
define i8* @foo2()  {
  ret i8* @bah
}
define i32 @main() {
  ret i32 0
}
$ ./build/bin/llc test2.ll -o test2.o -filetype=obj
$ ./build/bin/llc test.ll -o test.o -filetype=obj
$ clang test.o test2.o -o foo
test2.o:test2.ll:function foo2: warning: relocation refers to discarded section

-- 
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/20150410/b50fcf29/attachment.html>


More information about the llvm-bugs mailing list