From: sos AT prospect DOT com DOT ru (Sergey Okhapkin) Subject: X11 and B18 25 May 1997 10:27:33 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <01BC6943.2AC4D800.cygnus.gnu-win32@sos> Original-To: "'gnu-win32'" Original-Cc: "'Geoffrey Noer'" Encoding: 40 TEXT Original-Sender: owner-gnu-win32 AT cygnus DOT com Hi! Looking into body of X11 dlls compiled on NT and W95, I see one difference - arrays of zeroes in NT compiled dll and random bytes in the same place in W95 compiled dlls... Is it the cause of troubles with X11 dlls compiled on 95? It seems to me it's because of difference in handling file seeks on NT and W95: #include #include main() { int i=1; int fd; fd=open("test", O_WRONLY | O_CREAT | O_BINARY, 0666); write(fd, &i, 1); lseek(fd, 0x2b7, SEEK_SET); i++; write(fd, &i, 1); lseek(fd, 0x400, SEEK_SET); i++; write(fd, &i, 1); } When running this program on NT, output file contains all zeroes and bytes 1, 2 and 3 in desired file positions. But when running on W95, file contains garbage and desired bytes in desired positions. Geoffrey, probably there is a bug in bfd or ld - they make a seek to fill a portion of a file with zeroes, this seeks results in zeroes on unixes and NT, but in random contents on W95! -- Sergey Okhapkin Moscow, Russia Looking for a job - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".