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

Reply via email to