X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=A+9i8HqGEwFLT0E1 LJDmXsbPLtSz7Roe//l1FiY+KkhP4FM8Ph0Y8JXWhOJhbD98bAQ8Vz97HlB/+SJj xjPCSmJ2f9PN13LYu4Kpg9Ib9Yxw443TKPqzm3pxcbMkd0Jhys+g/aB/gPOJ/9cI 0T74pUQmewF4d3IX6L2m9a8Sx2Q= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=qUHUMF3e0qOkx9XrtGfHD0 fh5Ok=; b=LN+dbkBZqkQZdKMcnkSgRusofgBOpLG6gicZN1AuryU9XKR7qA7R41 +hHLzX7RHhKjLrLQKUqdtTTQSi9K+i2UrYW3PXb8UFlj8EbhS77xfPge1xTEN0/i 6SM9NUCPfHejM1N3KlLhnbz+AqtS8eFk5bX4pqutMiikzdN4l+Gn4= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=eibl, Eibl, rebasing, Eliot X-HELO: mail-wm0-f46.google.com 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-language :content-transfer-encoding; bh=PHB7OwXGHFAOcpLDP0wrp6mXifE3Etk0dGOLjeEfzjQ=; b=dC0k2ixryYXPDXawgKQ/xtcRLw31t9PHnh+knRqK5LVmWRo/rgLSuxRSdqDTAPsQNJ vEQ+2NPiNnFo6t5OWhU53mfeUZ8Twa3tfiUd44995HYS3xeenRzS50b/DSq8S6YNujor 20LCp8+Yknl9SM++wK+oPML85yqm1w1xA17VO3oW/0XBdVvaqIVmdtWtHJKpJ9FyQTi6 AwxoD48GW+1zOE+sIbjcrYP8dqE2hF2QieQ+3K4odc8pRDnyfummtWLSdZSE0GN2xH9w lulaUJck3NJ2aym6dsdfKNLsqR/hoYuoN5t7bm4HhzliLi3YbchLoQkGU1Mjh+O+mxj2 /OAQ== X-Gm-Message-State: AHPjjUjR8fmeZoyadhsV3YjhSfLYpvq/Yp3J6ErbL+KXyLSndzLKAM4/ JMx+WuzH1JRi+eunzcXDKP/XzQ== X-Google-Smtp-Source: AOwi7QBitI/zj9Ze/HAn3RuGT9HWLilbfUUoyCOwyBDpmCUquMqcPH6ADWyRKlsDEjDRmJUZKeCgUA== X-Received: by 10.80.207.134 with SMTP id h6mr5124095edk.55.1506091615421; Fri, 22 Sep 2017 07:46:55 -0700 (PDT) Subject: Re: Does Cygwin setup modify dlls? To: cygwin AT cygwin DOT com References: <0ec4a5bf-d608-68d2-973d-3e8b5db33589 AT cs DOT umass DOT edu> From: Marco Atzeri Message-ID: <16302f48-6e7c-7af2-6a2e-15091794769a@gmail.com> Date: Fri, 22 Sep 2017 16:46:48 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <0ec4a5bf-d608-68d2-973d-3e8b5db33589@cs.umass.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 22/09/2017 16:11, Eliot Moss wrote: > On 9/22/2017 10:00 AM, Joachim Eibl wrote: >> Hi, >> In our project we like the Cygwin-Setup tool so much that we use it >> for our own files too. >> Adding our archives to our setup.ini was easy enough and almost >> everything worked as expected. >> But then a certain tool didn't work and we found that dll-files that >> were unpacked by the Cygwin-installer didn't match the files in the >> archive. >> The problem seems to be dll-specific. Other filetypes are not modified. > > Cygwin's rebasing of DLLs does modify the files (slightly). > Others can probably detail the exact nature of what changes, > and perhaps the comparison tool can be refined to ignore that > as a difference. the change is on ImageBase address $ objdump -x /usr/bin/cygglpk-40.dll |grep ImageBase ImageBase 00000003e1710000 $ rebase -si |grep /usr/bin/cygglpk-40.dll /usr/bin/cygglpk-40.dll base 0x0003e1710000 size 0x000ec000 To perform a proper fork all the dlls should be loaded at not colliding address This activity is performed by the script /etc/postinstall/0p_000_autorebase.dash after the files installation. > Regards - Eliot Moss Regards Marco -- 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