This is the mail archive of the
mailing list for the Cygwin project.
Re: dll libraries marked for random execution?
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 10 Jul 2007 15:23:47 -0700
- Subject: Re: dll libraries marked for random execution?
- References: <4693D827.firstname.lastname@example.org>
- Reply-to: cygwin at cygwin dot com
Linda Walsh wrote:
> I'd like to get rid of the "executable" bit being set on files that
> are not really executable. Besides being bad practice, it also
> creates problems when looking for completion values in the shell. Seem
> to remember some other issues related to dll's being marked as
> executable, but don't recall what they were off-hand...
I think Dave already answered most of your questions, but in case it's
not clear: everything in /usr/lib is unlinked code in static archives
(or libtool files which are plain text), and hence there is nothing
there that can be executed, and so there should be no need for the
execute bit set on anything in that dir.
Windows requires that shared libraries (=DLLs) be either in the same
directory as the binary (=EXE) or in the PATH. This is why all shared
libraries are in /usr/bin on Cygwin, whereas on *nix they are in
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html