delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/05/21:57:18

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4BBA9951.7080706@gmail.com>
Date: Tue, 06 Apr 2010 03:15:45 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: test results on Cygwin
References: <201004051747 DOT 40474 DOT bruno AT clisp DOT org> <201004052348 DOT 22022 DOT bruno AT clisp DOT org> <4BBA5C54 DOT 9040702 AT redhat DOT com>
In-Reply-To: <4BBA5C54.9040702@redhat.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 05/04/2010 22:55, Eric Blake wrote:
> [moving to the cygwin list from bug-gnulib]
> 
> On 04/05/2010 03:48 PM, Bruno Haible wrote:
>>> Failures on Cygwin 1.7.2
>>> ------------------------
>>>
>>> Starting test_cond .../bin/sh: line 5:  4200 Aborted
>>> FAIL: test-cond.exe
>>>
>>> Starting test_lock .../bin/sh: line 5:  2296 Aborted
>>> FAIL: test-lock.exe
>>>
>>> Starting test_tls .../bin/sh: line 5:  2656 Aborted
>>> FAIL: test-tls.exe
>> These were all due to the fact that gcc 4.3.x on Cygwin 1.7.2
>> accepts "#pragma weak foo", but the symbol foo then evaluates
>> to the NULL address, even if foo is defined in libc.
> 
> Dave, are weak symbols something that should work on cygwin with new
> enough binutils/gcc?  Or is this an indicator of a gcc bug, for silently
> accepting #pragma weak foo that it can't support?

  Weak symbols work on Cygwin, but the semantics of undefined weak symbols
aren't identical to ELF platforms: a weak reference won't pull in an archive
member that wouldn't otherwise be linked; the implications in relation to
import libraries should be fairly obvious.  Also, I haven't actually verified
that "#pragma weak" is hooked up to DTRT in the same way as using a weak
attribute on a declaration (but also have no particular reason to suspect it
wouldn't work).

    cheers,
      DaveK

--
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

- Raw text -


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