public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* cygwin 1.1.7 and cross builds
@ 2001-01-08 10:21 Joel Sherrill
  2001-01-08 10:37 ` Peter Shoebridge
  2001-04-01  0:00 ` Joel Sherrill
  0 siblings, 2 replies; 6+ messages in thread
From: Joel Sherrill @ 2001-01-08 10:21 UTC (permalink / raw)
  To: crossgcc, Ralf Corsepius

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
<ctl>-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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-04-01  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-08 10:21 cygwin 1.1.7 and cross builds Joel Sherrill
2001-01-08 10:37 ` Peter Shoebridge
2001-01-08 16:00   ` Joel Sherrill
2001-04-01  0:00     ` Joel Sherrill
2001-04-01  0:00   ` Peter Shoebridge
2001-04-01  0:00 ` Joel Sherrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).