bug in strip 2.9.4
Pierre A. Humblet
Sat Feb 27 15:31:00 GMT 1999
strip 2.9.4 in Binutils-2.9 has a bug when stripping a file accessed through a link, on systems that open files by default in text mode (such as cygwin).
The new executable file has an incorrect length.
I believe the bug occurs in the file binutils/objcopy.c, in the function
simple_copy. The open() and creat() below will open in text mode and the
copy won't be properly executed for binary files.
fromfd = open (from, O_RDONLY);
if (fromfd < 0)
tofd = creat (to, 0777);
Want to unsubscribe from this list?
Send a message to firstname.lastname@example.org
More information about the Cygwin