delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/26/15:58:21

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 26 Apr 2012 21:57:24 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: peflags warning and tsaware flags
Message-ID: <20120426195724.GC28119@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <loom DOT 20120426T170854-952 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20120426T170854-952@post.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Apr 26 15:16, Achim Gratz wrote:
> What is peflags trying to tell me with this warning, which is only present when
> the "-v" switch is in effect?
> 
> 
> > ash -c "PATH=/bin peflags -t -d -v  /usr/lib/zsh/4.3.12/zsh/zutil.dll"
> Warning: file is non-executable but has tsaware set
> (/usr/lib/zsh/4.3.12/zsh/zutil.dll).
> /usr/lib/zsh/4.3.12/zsh/zutil.dll:
> coff(0x230e[+executable_image,+line_nums_stripped,
> +local_syms_stripped,+32bit_machine,+sepdbg,+dll])
> pe(0x8000[-dynamicbase,+tsaware])
> 
> > ash -c "PATH=/bin peflags -t -d  /usr/lib/zsh/4.3.12/zsh/zutil.dll"
> /usr/lib/zsh/4.3.12/zsh/zutil.dll: coff(0x230e) pe(0x8000[-dynamicbase,+tsaware])
> 
> 
> The file(s) in question are most certainly executable, POSIX file permissions
> and cacls are no different than hundreds of other DLL.  Also, I seem to have a
> wild mixture of "+tsaware" and "-tsaware".  Can I just set all of them to
> "+tsaware" or is that a Bad Idea(TM)?  (I do want to install Cygwin onto a
> Terminal Server.)

The warning might be a bit misleading.  What it really tries to tell you
is that the file in question is not an executable (*.exe).  The tsaware
flag has no meaning for DLLs, it's only evaluated in headers of
executables.

The reason that many DLLs in the distro have the tsaware flag set is
because gcc doesn't differ between creating executables or DLLs, it will
add the flag unconditionally.

So, nobody keeps you from adding the tsaware flag to all DLLs, but it
will neither help nor hurt.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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