X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <49BDF28C.8030300@cwilson.fastmail.fm> Date: Mon, 16 Mar 2009 02:32:44 -0400 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: peflags utility References: <20090228104337 DOT GG19887 AT calimero DOT vinschen DOT de> <49A986B4 DOT 2080501 AT cwilson DOT fastmail DOT fm> <20090228201625 DOT GA8503 AT calimero DOT vinschen DOT de> <49A9AA0C DOT 9020904 AT cwilson DOT fastmail DOT fm> <20090301102035 DOT GB10046 AT calimero DOT vinschen DOT de> <49AE18D8 DOT 3010009 AT cwilson DOT fastmail DOT fm> <49AE191D DOT 2000307 AT cwilson DOT fastmail DOT fm> <20090304084923 DOT GA10046 AT calimero DOT vinschen DOT de> <20090304111849 DOT GB10046 AT calimero DOT vinschen DOT de> <49AE9742 DOT 4070108 AT cwilson DOT fastmail DOT fm> <20090304152955 DOT GE10046 AT calimero DOT vinschen DOT de> <49AF4961 DOT 1020108 AT cwilson DOT fastmail DOT fm> In-Reply-To: <49AF4961.1020108@cwilson.fastmail.fm> Content-Type: multipart/mixed; boundary="------------050500000807000303020204" Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------050500000807000303020204 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Here's revision 3. I've revised the UI to be more like what was eventually accepted by binutils. One difference is that the ld options allow only to set flags: ld --tsaware With peflags we can set, clear, or display them: peflags --tsaware : display peflags --tsaware=1 : set peflags --tsaware=0 : clear If this is more-or-less ok, I'll get started on the peflagsall script, and send it all with updated docu as a patch for Jason to use in the next rebase release. gcc -o peflags.exe -DVERSION='"2.4.5"' peflags.c -- Chuck --------------050500000807000303020204 Content-Type: application/gzip; name="peflags.c.20090315.gz" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="peflags.c.20090315.gz" H4sICIrtvUkAA3BlZmxhZ3MuYy4yMDA5MDMxNQDtPWtz2ziSn61fgXhqYsmW HUnxzuXsSaYUW3F849gpSUlmyptiUSIksUKROpKyrc34fvt1NwASJEFaSny7 qdpzzUMCuhv9AtAAGtCz3RrbZSfBYhW601nM6uMG67Ra/8lOZnbo8Yh9cr0o 8BHotR1xhwU+C/kIPh6M2WjF/suGWjZ0o5nHQ4QauFPfnbhj24/ZOPDj0B0t YzfwI4Q+tW84+z0IkR4CD2duxBZhMA3tOYOPk5BzFgWT+NYO+TFbBUsGhKBB x40EJc7cmNm+8ywI2Txw3MkK6UDZ0nd4yOIZZzEP5xELJvTl7PIDO+M+D22P vV+OPHfMLtwx9yPObGgaS6IZiDUiOojxBnkYSB7YmwAI2yjAMeMu1IfshocR fGcd1YYk2GQBaaBux8h5yIIF4jWA3RXz7DhFPZDid0FDi9UarKISRpxNkBlm x4g7i+PF0bNnt7e3B1N/eRCE02dQ/KxW+8n1x97S4ezXKHbc4GD2SiuK3TnP lgCQ545yZavoWbxa8KhYHMV2nC2djP3Yy9MMXX+aLVv6YEInWzblMegoW8bD 0CemtbJb13eCW+KmVkMOQDVL14/bv1joZJOJNQZvtcegYmjEHUdWxOPj9SDH XrgmZDQLbougC75e4wY4Y9MmetRwDS3i8AkD7S7HMftaY8wL/ClL/iaePT2G Uuh2EcgAVMBPmG/POZZiC8870AL9edw/rt2zaDUfBeBpFuJGFvBd+wnacH3O Tt7UsbCJ+A32lag32U/4tcki9x88mNR/EpX7rM3ulSSi9TxhodJs6fVn9pLE gKZad61Wq92Eru4FKDJ40ALEbT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3w+QQI 79CL55w25kgQ4eRtdCeymrGIzyRijrHkAR98gGXQe3vALgP4vzzoCtGLNuYN Y2rbgzgbu3eMv0KxBof4im+Ow1Px0hXVrEUmec83S0YUgYARqevT6Tv8dQvu md0rRvdSN65L3GvIw7nr2x4b4APdISPgKsbo2d+8BbrTKXYt4M5bMQJA9m6D kNaRMA6ZhgZFUj4BnCM5BAL2Al8ZER6Gv20hTKk6MjeNX9X29GDwo5//sPF3 Oc5eV3Al3hPOC3rKR8spvcmA7wmEc8HbrR2J1/bxbTTf3Nmr/qI4gAEan/G3 MZfew414IBTQ74jglGJW3/4QDayeSBMhlPo79x3UHBfjNVXhIt52fRiY6B23 jbmEwT+Z4TKPkBk4u0HO1EFs9k/df3Zce+oHkVg/JLo0k/soyVHCmZmcqn2Q 1qypoorCn6JFXRRB1pvQ0DmO1CzVhskzXNKvvLAVaGofOBKmkI/sYM+g+RNi Mbluhw5SaQ2YuPHlfzyII7owi69DVk78D5HGkWmBj/XhA9I08csZPbkhhJ0a yGsxgGjLQPkjndGgCSKK2ijglHmR0ZGY+Z0W/qeN/5Ey8Xi8Bi063pKk2BFL BzdtnHsplG8mOAwoJrKFJE0RhiU2xwgjWnoAmVwphJIFl8oVDR+ZnSrTvDbq gqzwb5Ub5eLXwkPbMoSVazJY/myrAFaByiXZx15/INK4cvCGX23K/WxTM/3F pWb2p5rEE4PA4/8CLvvnKAFqAAA= --------------050500000807000303020204 Content-Type: text/plain; charset=us-ascii -- 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/ --------------050500000807000303020204--