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

            Bug ID: 33131
           Summary: lld makes enormous zero filled MIPS binary
           Product: lld
           Version: unspecified
          Hardware: Other
                OS: NetBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: co...@sdf.org
                CC: llvm-bugs@lists.llvm.org

using clang 4.0.0 and lld 4.0.0 on NetBSD-7.99.71/amd64.

using very simple code:
  int main() { return 0; }

if I change /usr/bin/ld to be lld and running the command:
  $ clang --target=mipsel--netbsd7.99 -mips32r2 -integrated-as -nostdlib -o
test test.c
  /usr/bin/ld: warning: cannot find entry symbol __start; defaulting to 0x20000

if /usr/bin/ld is lld, I get a 129K test file.
xxd shows it is mostly zero filled until 0x20000

I made /usr/bin/ld a sufficiently compatible mips binutils linker, and using
the same command it makes a 1.4K binary (but picks a different entry point)

-- 
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