delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/20/10:40:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
From: ericblake AT comcast DOT net (Eric Blake)
To: Krzysztof Duleba <krzysan AT skrzynka DOT pl>, cygwin AT cygwin DOT com
Subject: Re: .exe magic doesn't work with gprof
Date: Wed, 20 Jul 2005 14:39:56 +0000
Message-Id: <072020051439.17506.42DE623C00091DC20000446222073007930A050E040D0C079D0A@comcast.net>
X-Authenticated-Sender: ZXJpY2JsYWtlQGNvbWNhc3QubmV0

> 
> But how does gprof know that foo doesn't exist? It has to open or stat it. 
> I thought that both open and stat calls support exe magic.

stat() and exec*() support exe magic, open() does not.  I don't know
exactly how gprof works, but it is probably doing an open() and failing,
and as such needs to be patched if exe magic is desirable.  (Same goes
to the binutils strip).

--
Eric Blake



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