public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gcc -s
@ 1997-03-28 18:13 John Paul Morrison
  1997-03-29  5:35 ` gnu-win32 b17.1 bugs list Fergus Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: John Paul Morrison @ 1997-03-28 18:13 UTC (permalink / raw)
  To: gnu-win32

I noticed 

i586-cygwin32-gcc -s -o foo.exe foo.c 

produces a corrupt executable that windows NT won't run. 

i586-cygwin32-gcc -o foo.exe foo.c
i586-cygwin32-strip  foo.exe 

produces a working binary.

This is with cygwin32 b17.1 cross compiled on Irix 5.3

---------------------------------------------------------------------------
BogoMIPS Research Labs  --  bogosity research & simulation  --  VE7JPM  -- 
  jmorriso@bogomips.com  ve7jpm@ve7jpm.ampr.org  jmorriso@ve7ubc.ampr.org
---------------------------------------------------------------------------

-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* gnu-win32 b17.1 bugs list
  1997-03-28 18:13 gcc -s John Paul Morrison
@ 1997-03-29  5:35 ` Fergus Henderson
  1997-04-19 12:24   ` gcc/ld -s problem fixed in upcoming beta 18 Geoffrey Noer
  0 siblings, 1 reply; 3+ messages in thread
From: Fergus Henderson @ 1997-03-29  5:35 UTC (permalink / raw)
  To: John Paul Morrison; +Cc: gnu-win32

John Paul Morrison, you wrote:
> 
> I noticed 
> 
> i586-cygwin32-gcc -s -o foo.exe foo.c 
> 
> produces a corrupt executable that windows NT won't run. 

This bug has been reported many times on this list.

I spend a few minutes putting together a list of bugs in b17.1 that
I know about, people may find it useful.  See

	http://www.cs.mu.oz.au/~fjh/gnu-win32/bugs-list.html

-- 
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: < http://www.cs.mu.oz.au/~fjh >   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* gcc/ld -s problem fixed in upcoming beta 18...
  1997-03-29  5:35 ` gnu-win32 b17.1 bugs list Fergus Henderson
@ 1997-04-19 12:24   ` Geoffrey Noer
  0 siblings, 0 replies; 3+ messages in thread
From: Geoffrey Noer @ 1997-04-19 12:24 UTC (permalink / raw)
  To: gnu-win32; +Cc: jmorriso, Geoffrey Noer

> > i586-cygwin32-gcc -s -o foo.exe foo.c 
> > 
> > produces a corrupt executable that windows NT won't run. 

The following patch to bfd from Ian Lance Taylor (ian@cygnus.com) fixes
this often-reported problem.  This patch will make it into beta 18.

-- 
Geoffrey Noer
noer@cygnus.com


Index: coffcode.h
===================================================================
RCS file: /cvs/cvsfiles/devo/bfd/coffcode.h,v
retrieving revision 1.292
diff -u -r1.292 coffcode.h
--- coffcode.h	1997/04/01 04:30:46	1.292
+++ coffcode.h	1997/04/18 03:35:31
@@ -2288,6 +2288,14 @@
 	}
 #endif
 
+#ifdef COFF_IMAGE_WITH_PE
+      /* For PE we need to make sure we pad out to the aligned
+         _raw_size, in case the caller only writes out data to the
+         unaligned _raw_size.  */
+      if (pei_section_data (abfd, current)->virt_size < current->_raw_size)
+	align_adjust = true;
+#endif
+
 #ifdef _LIB
       /* Force .lib sections to start at zero.  The vma is then
 	 incremented in coff_set_section_contents.  This is right for
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

end of thread, other threads:[~1997-04-19 12:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-03-28 18:13 gcc -s John Paul Morrison
1997-03-29  5:35 ` gnu-win32 b17.1 bugs list Fergus Henderson
1997-04-19 12:24   ` gcc/ld -s problem fixed in upcoming beta 18 Geoffrey Noer

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).