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

            Bug ID: 33097
           Summary: IR symbols are not live in relocatable link
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: eugeni.stepa...@gmail.com
                CC: llvm-bugs@lists.llvm.org

$ cat 1.ll
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

define void @f() {
entry:
  ret void
}

$ bin/llvm-as 1.ll -o 1.bc && bin/ld.lld 1.bc -r -o 2.o && objdump -drl 2.o

2.o:     file format elf64-x86-64


The output is an empty object file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to