delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/21/08:19:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49C4E935.9000003@cwilson.fastmail.fm>
Date: Sat, 21 Mar 2009 09:18:45 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Any Cygwin tool to change .exe subsystem type ?
References: <1Lkb2J-2570k40 AT fwd11 DOT aul DOT t-online DOT de> <49C4A24C DOT 6050603 AT gmail DOT com>
In-Reply-To: <49C4A24C.6050603@gmail.com>
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

Dave Korn wrote:
> Christian Franke wrote:
>> Is there any tool in the Cygwin distro that allows to change subsystem
>> type (Console, GUI, ...) of an already linked .exe ?
>>
>> Same operation as e.g. 'editbin /subsystem:windows ...', but without the
>> need to have MS tools installed.
>>
> 
>   Not yet, but it would make a great PTC for the new 'peflags' tool recently
> discussed on this list.

Actually, I think THIS functionality, as well as the ability to set the
date field of a PE object as recently mentioned on the gcc list, is a
better fit for objdump.  While peflags /can/ be used to "process" a
single file via manual use, it's really designed for "SIMD" operation:
do X to every Y in some large list.

In fact, if it weren't for that ability, I'd have to agree with cgf that
all of peflags' functionality really belongs in objdump and not in a
separate tool at all. (Well, that, and it fits the mandate of the rebase
package: "oops, something screwy about windows means we must (do
something) to a lot of binaries after they have been installed")

However, PTC...but peflags is, itself, currently just a large patch to
the rebase package. Jason? Jaaaason?

--
Chuck


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