[llvm-bugs] [Bug 33131] New: lld makes enormous zero filled MIPS binary

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 22 12:52:53 PDT 2017


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: unassignedbugs at nondot.org
          Reporter: coypu at sdf.org
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170522/a9eaa000/attachment.html>


More information about the llvm-bugs mailing list