delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/10/15:04:27

X-Spam-Check-By: sourceware.org
Message-ID: <4693D827.5070609@tlinx.org>
Date: Tue, 10 Jul 2007 12:04:07 -0700
From: Linda Walsh <cygwin AT tlinx DOT org>
Reply-To: cygwin AT tlinx DOT org, cygwin AT cygwin DOT com
User-Agent: Thunderbird 1.5.0.12 (Windows/20070509)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: dll libraries marked for random execution?
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Pardon me, but I have some questions about libraries under
cygwin if anyone knows... If there's a doc somewhere that
answers these questions, a pointer to it would be appreciated.

Are all dll libraries supposed to be invocable as executables?
What about libraries with ".a" extensions?  I looked on my SuSE
linux system and none of the ".a" files are marked executable
though most of the ".so" files are marked executable.

If something is not supposed to be an executable, wouldn't it be
better administrative practice (if not better security practice)
to mark it as non-executable?

Isn't ".so" used for sharable libraries and ".a" is used to bind
the routines into the resultant binary?

I was under the impression that usually ".dll" files were shared
under NT, but all the libraries in "/usr/lib" and "/lib" are marked
".a".  Many seem to come in pairs: <libname>.dll.a and <libname>.a
but if they end with ".a" does that imply they are linked into the
final binary (not shared)?

I'm under the impression that certain files with names of the form
cyg<lib>.dll, in /windows/system32, are sharable.  But it seems like
most (all?) of the "standard" (non cygwin specific) libraries have
the ".a" extension.

If non-cygwin support libraries are all unsharable with ".a"
extensions does that imply there "could" be ".so" files to enable
the libraries being shared?

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

Tnx,
Linda


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019