From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Peter Shoebridge" To: , , "Ralf Corsepius" Subject: Re: cygwin 1.1.7 and cross builds Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-ID: <002d01c079a2$10244850$b801020a@netdelivery> References: <3A5A0154.8013D155@OARcorp.com> X-SW-Source: 2001-q1/msg00056.html Message-ID: <20010401000000.Rh0EJ7qy6tjOTQR2ReF6BKJWQz_yPhesufeqk5qDsO0@z> Dave Fiddes added a magic number check into a build of Cygwin ages ago. Yes, NT/2k seems to execute the code without checking the exe and get stuck in a loop. You can kill the process and configure continues. Unfortunately, opening the exe file and checking the magic number before every command is run does slow Cygwin down somewhat. Peter Shoebridge ----- Original Message ----- From: "Joel Sherrill" To: ; "Ralf Corsepius" Sent: Monday, January 08, 2001 11:05 AM Subject: cygwin 1.1.7 and cross builds > Hi, > > I am using the current net release of Cygwin to build RTEMS to > target an m68k (ELF format). When the configure script tries > to see if the cross compiler works, it will execute this > fragment from a configure script: > > ================ > cat > conftest.$ac_ext << EOF > > #line 1253 "configure" > #include "confdefs.h" > > main(){return(0);} > EOF > if { (eval echo configure:1258: \"$ac_link\") 1>&5; (eval $ac_link) > 2>&5; } && > t > est -s conftest${ac_exeext}; then > ac_cv_prog_cc_works=yes > # If we can't run a trivial program, we are probably using a cross > compiler. > if (./conftest; exit) 2>/dev/null; then > ================= > > Cygwin under WinME/95 passes this test and apparently refuses to run > "./conftest". > Cygwin under WinNT/2000 allows ./conftest to be executed. Even worse, > this > conftest will execute enough to go into a hard loop which can't be > killed with > -C. > > I believe that Cygwin should refuse to execute this program. Is there > any provision for checking a magic number on the executable? > > Has anyone else seen anything like this? > > I can provide the executable if this is desired. > > > -- > Joel Sherrill, Ph.D. Director of Research & Development > joel@OARcorp.com On-Line Applications Research > Ask me about RTEMS: a free RTOS Huntsville AL 35805 > Support Available (256) 722-9985 > > ------ > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com > ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com