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=svpzl09okGrhyQAd d51HHm/2eXO9igH2PxECzuuENb1MCu3lDSNpLBoLD7Y2iL35PHV/t0Ypi/LmLkCF NGWSWiMvpomQyU/rDdK1QjTuo90mx0P6eK4GUd5zsJD4PFUuhwjCGIkAzO6q9Y4y PLlfQItfE08yUgj0ZZTy+C4y/1g= 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=VZcQ9gsvvL1wn4yRkMnxhQ ep7a8=; b=UJAhyxxa7cmRqjfiTRlNVhQJaW/S4Id6UgxC+pWx7ATzIKSPx6TJai NcJuSvfccrPwcKungZYUGIWM9sbQlFSAjcefnkV1moQwE6cFyfdjxXyF1Ivn9RTr ua0hRMYBqgTz738WjdnGprwHlrz2rwBF1vtX5yNRAMLCZDomp44iQ= 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-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: gateway21.websitewelcome.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=agner.org; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ARY8WUeVuKqEUdtV7d+jrFVvBXcYDM9jDsoMme3cvZs=; b=fGvTN/QgIftAYUCypSJaTpJU+D fkXa5cSG4JCdBNWeAwp3QLY5xek9q3v+faX7XEf2ZZpzXnGwVnq95OWor/Yu/L751yegI2TnXLKGC WiVJp9BYDDbgfPdEBnZbkkGqLCEIsFdC/mKzVRbEAUCtPghZAR7pptYagkOLmD8gc7rdk2jwUVfIm G0kwXUwioH78AcV19F+c96z/iVjUNky/29nP/paw2hSSdhSiMQenoXEfYSMJ/EYUZabbwIRqiTf91 BQTkExN46oVLaws0XjEFPluHWDPeArceFIBFDmPOpA7LCpRKn9UlzkAOEw1Jh5AjLr9yAYZoBO/VK h2JRBzCw==; Subject: Re: Clang is using the wrong memory model To: cygwin AT cygwin DOT com References: <732305300 DOT 268416262 DOT 1565603129541 DOT JavaMail DOT root AT zimbra54-e10 DOT priv DOT proxad DOT net> <024ce5b5-6024-b371-e382-5eef5d1d4a90 AT agner DOT org> <075477ca-e031-39ea-3dfe-bc8bc2fc8fa6 AT agner DOT org> <20190816082603 DOT GR11632 AT calimero DOT vinschen DOT de> <8d594f4d-17e0-447a-8b18-1ed620815e0f AT agner DOT org> <20190816095200 DOT GU11632 AT calimero DOT vinschen DOT de> From: Agner Fog Message-ID: <2024f551-66e6-47c5-a0b6-2dfa735a690d@agner.org> Date: Fri, 16 Aug 2019 12:38:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190816095200.GU11632@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 16/08/2019 11.52, Corinna Vinschen wrote: > 2 GB. Think errno accessed from another DLL. Your application works > only by chance. Good example. errno appears to be a global variable for historical reasons, but errno is implemented as a macro that translates to a call to the imported function __errno. This function call goes through a 64-bit import table from cygwin1.dll Works fine with -mcmodel=small Static sharing of a global variable between exe and dll, or between different dll's is not possible. -- 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