bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/23966] New: objcopy fails on mingw32 target for files bigg


From: mcinek at gmail dot com
Subject: [Bug binutils/23966] New: objcopy fails on mingw32 target for files bigger than 2GB
Date: Sun, 09 Dec 2018 04:40:24 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23966

            Bug ID: 23966
           Summary: objcopy fails on mingw32 target for files bigger than
                    2GB
           Product: binutils
           Version: 2.31
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: mcinek at gmail dot com
  Target Milestone: ---

On Windows objcopy fails to split debug info with --only-keep-debug when this
debug information is bigger than 2 GB.

This is because of the following code in bfd_malloc():

  if (size != sz
      /* This is to pacify memory checkers like valgrind.  */
      || ((signed long) sz) < 0)
    {
      bfd_set_error (bfd_error_no_memory);
      return NULL;
    }

On mingw32 target sizeof(long) is 4 bytes which makes < 0 condition invalid.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]