delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/03/21/09:30:29

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 666773877010
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1584797385;
bh=oD77gHXSsIfn3Iqg52BLnEcE1/y30UBXLxNGQP+ZrGU=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=YkddWaaS3KK62KFD06S+BnX+AyfDZJwFmIEi7lAx3R04rGvnI1ug1mXmofbM5y3ru
/KlMoeUCrOLlHwTc/AnlhvZWzGVZWy8pZBXTkfuIA/sh4dRF+lNUfY8woKpKKX6D7P
sHVw5+uT2ECAZTS4dY7aM2icPeqCtXAfEOo8mwdw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E8E82385C019
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:subject:to:references:from:message-id:date
:user-agent:mime-version:in-reply-to:content-transfer-encoding;
bh=N+bFWB2O1zMXWtGyZ1MAbX2JHmLgC21tJEzkqgRrv7g=;
b=tomZu46A9KChWw5boUlz5OI89XaGvdA2Fx2h2My7I9JQoYdwZuGQNrt600pNVld11o
zhQ0YzPyfFCn4plL6CpNo55jrEa+Tw0+e2AyekL1J1c4hHXVrxLgQtORFIpYlGt4K+YQ
m1BFbSE+RNNETmk698qCcOHjbea5C69Sfp0kY/HQIs8LdcSQnWaKN6bp4O1mDC6kij9T
O6PqUNkdg4bFUjUTf+G2sfwxaOVtopa87Tc2T80y6Hp6DqTQIBNAjQfZfxc7QESjivXI
RfjX4Ovzx7d/mVCv8LDmMAeYnlp1Tse3nL4UAcP5bbCTjCm3IsOvoo8oghCAD/7jJJLF
ObKg==
X-Gm-Message-State: ANhLgQ0kspIHA6G0ocdkMsEk4/sYo4XqS1nyaX590vS2y6I+gxymFSkD
p4Y2Gh8UzaaSZmziGvRrB+dgnrSU
X-Google-Smtp-Source: ADFU+vt/h3T/dzkoihk/7xAu+PFMePKiyTSTH5TsYGWM24TZoSbA3kU/Ti5FB4dbXBC5kxZdUmYTSw==
X-Received: by 2002:a5d:4146:: with SMTP id c6mr16773686wrq.181.1584797380772;
Sat, 21 Mar 2020 06:29:40 -0700 (PDT)
Subject: Re: Why is taskset still not in util-linux?
To: cygwin AT cygwin DOT com
References: <1348011a-261a-2a87-d361-4e51fa8dc19f AT cs DOT umass DOT edu>
<85ae12aa-6cc3-5d4c-5df2-25bf811ec6a9 AT maxrnd DOT com>
<72fea68a-b3d7-e87c-726f-8a5a2587a992 AT maxrnd DOT com>
<01e3d337-e5fe-f393-7634-3f1881bca315 AT cs DOT umass DOT edu>
<dca24f26-9da9-591c-19c1-8020e5de3a4e AT maxrnd DOT com>
<79d7afa5-a07b-04df-c259-b76c61390f8c AT maxrnd DOT com>
<c075b981d41ff880e0af76c853e764c468b9c6de DOT camel AT cygwin DOT com>
<dd8104f5-4a76-1ff3-f769-69154991aa80 AT cs DOT umass DOT edu>
<f50b2040-c29f-9983-9bce-d1c33fb4bae7 AT maxrnd DOT com>
<4c782f2b-c9f0-cd81-cb8d-f874ddc92fa8 AT cs DOT umass DOT edu>
<b9a74f8a-93cb-bc57-e970-60503a4e064b AT cs DOT umass DOT edu>
Message-ID: <84e61507-aece-22d0-e956-0436d083d25c@gmail.com>
Date: Sat, 21 Mar 2020 14:29:37 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.6.0
MIME-Version: 1.0
In-Reply-To: <b9a74f8a-93cb-bc57-e970-60503a4e064b@cs.umass.edu>
X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: Cygwin mailing list <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <http://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 02LDUBv5015499

Am 21.03.2020 um 12:07 schrieb Eliot Moss:
> So here's a thing, though I don't understand it:
> 
> In addition the build/taskset.exe, there's a build/.libs/taskset.exe.

that is usually the unstripped version

> If I install the latter in /usr/bin/.libs/taskset.exe, then 
> /usr/bin/taskset
> works.  In fact, it seems that the version in .libs is the "real" program
> and /usr/bin/taskset is some kind of trampoline (?) to it?

it is the libtool wrapper, infact it is linked only to cygwin1.dll


$ objdump -x .libs/gprof.exe | grep "DLL Name"
         DLL Name: cygwin1.dll
         DLL Name: cygintl-8.dll
         DLL Name: KERNEL32.dll

$ objdump -x gprof.exe | grep "DLL Name"
         DLL Name: cygwin1.dll
         DLL Name: KERNEL32.dll


$ strings gprof.exe | grep ".libs"
./.libs/lt-gprof.c
# gprof - temporary wrapper script for .libs/gprof
...

> 
> In fact, a stripped version of build/.libs/taskset installed in /usr/bin
> works just fine.  There must be some kind of build and install convention
> going on that I am not familiar with.  (I'm not familiar with a lot of
> these build processes, actually.)
> 
> Best - Eliot

I also forget the details from time to time...

Marco


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

- Raw text -


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