Looks like this is the same bug as reported here: https://www.cygwin.com/bugzilla/show_bug.cgi?id=30240
And I tested the patch at this link and it worked. https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=b3eff3e15576229af9bae026c5c23ee694b90389