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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to