From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126897 invoked by alias); 22 Sep 2017 14:46:59 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 126889 invoked by uid 89); 22 Sep 2017 14:46:58 -0000 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 Received: from mail-wm0-f46.google.com (HELO mail-wm0-f46.google.com) (74.125.82.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 22 Sep 2017 14:46:57 +0000 Received: by mail-wm0-f46.google.com with SMTP id b195so4609161wmb.5 for ; Fri, 22 Sep 2017 07:46:57 -0700 (PDT) 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) Received: from [172.21.192.155] ([149.6.156.42]) by smtp.googlemail.com with ESMTPSA id x50sm13280edx.45.2017.09.22.07.46.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Sep 2017 07:46:54 -0700 (PDT) Subject: Re: Does Cygwin setup modify dlls? To: cygwin@cygwin.com References: <0ec4a5bf-d608-68d2-973d-3e8b5db33589@cs.umass.edu> From: Marco Atzeri Message-ID: <16302f48-6e7c-7af2-6a2e-15091794769a@gmail.com> Date: Fri, 22 Sep 2017 14:46:00 -0000 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 X-SW-Source: 2017-09/txt/msg00209.txt.bz2 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