From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118749 invoked by alias); 22 May 2016 01:46:22 -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 118728 invoked by uid 89); 22 May 2016 01:46:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=H*i:sk:830e7bc, H*f:sk:830e7bc, H*MI:sk:830e7bc, dlls X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 22 May 2016 01:46:09 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b4ISz-0003Dk-7c for cygwin@cygwin.com; Sun, 22 May 2016 03:46:05 +0200 Received: from 189.208.28.57 ([189.208.28.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 22 May 2016 03:46:05 +0200 Received: from rene.berber by 189.208.28.57 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 22 May 2016 03:46:05 +0200 To: cygwin@cygwin.com From: =?UTF-8?Q?Ren=c3=a9_Berber?= Subject: Re: Help debugging a dll issue Date: Sun, 22 May 2016 01:46:00 -0000 Message-ID: References: <830e7bcd-aeb5-264e-6436-799dfa54d7a0@cs.umass.edu> Reply-To: Do not reply Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0 In-Reply-To: <830e7bcd-aeb5-264e-6436-799dfa54d7a0@cs.umass.edu> X-IsSubscribed: yes X-SW-Source: 2016-05/txt/msg00245.txt.bz2 On 5/21/2016 6:30 PM, Eliot Moss wrote: [snip] > I used binary search, eliminating .o files from the .dll on the thought > that it was either a particular .o file that was leading to a problem, > or possibly the overall size (this is a huge link!). I found that a .dll > with 58725 section 1 symbols (as reported by objdump -t) works, and one > with 66675 section one symbols fails. So it appears to be a size issue. That's telling, since USHRT_MAX (65535) may be the limit, then somewhere there is the use of a variable of that type (unsigned short int, uint16_t), which may be part of some specification (i.e. the format of libraries). Supporting that is: https://ghc.haskell.org/trac/ghc/ticket/5292 which mentions: "65536 symbols. This is the limit that Windows DLLs can handle (the source of the limitation is that they use 16-bit integers to represent "ordinals")" and also point to an interesting bug report (5 years old): https://sourceware.org/bugzilla/show_bug.cgi?id=12969 No answers, but at least an explanation. -- René Berber -- 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