public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Kher, Manisha" <kher@mc.com>
To: <cygwin@cygwin.com>
Subject: Invalid win32 application
Date: Tue, 27 Sep 2005 22:20:00 -0000	[thread overview]
Message-ID: <190C93606B0ADD40B7968DAFAA3E1928012F1510@ad-email1.ad.mc.com> (raw)


I'm building an application that links with a library that was built
using Visual studio. When I try to run the application in a cygwin
window, I get an error saying "Permission denied". If I try to run it
from a DOS window, I get an error message "... is not a valid Win32
application".

If I strip the executable, the stripped version runs.

The difference between the stripped and non-stripped version is a
section named .sxdata which is the first section in the invalid
executable.

$ objdump -h gdb.exe

gdb.exe:     file format pei-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .sxdata       00000008  00000000  00000000  000002e0  2**2
                  CONTENTS, READONLY, DEBUGGING
  1 .text         001d5520  00401000  00401000  00000600  2**4
                  CONTENTS, ALLOC, LOAD, CODE
  2 .data         00040970  005d7000  005d7000  001d5c00  2**4
                  CONTENTS, ALLOC, LOAD, DATA
  3 .rdata        000668b0  00618000  00618000  00216600  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .bss          0001d208  0067f000  0067f000  00000000  2**4
                  ALLOC
  5 .idata        00001f18  0069d000  0069d000  0027d000  2**2
                  CONTENTS, ALLOC, LOAD, DATA

Has anyone run into this problem before?
I'm on Windows 2000.

Thanks
Manisha
_________________________________________________________
Manisha Kher               		Tel: 978-967-1368
Mercury Computer Systems, Inc.  	Fax: 978-256-3599
199 Riverneck Road              	kher@mc.com
Chelmsford, MA 01824-2820
 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

                 reply	other threads:[~2005-09-27 20:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=190C93606B0ADD40B7968DAFAA3E1928012F1510@ad-email1.ad.mc.com \
    --to=kher@mc.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).