Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Mon, 26 Jul 2004 12:49:25 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] Updated: binutils-20040725-1
Message-ID: <20040726164925.GB1283@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <200407250525.i6P5PFR00937@esds.vss.fsi.com> <ce2lg4$ilh$1@sea.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <ce2lg4$ilh$1@sea.gmane.org>
User-Agent: Mutt/1.4.1i

On Mon, Jul 26, 2004 at 10:13:24AM +0000, Alexander Gottwald wrote:
>Christopher Faylor wrote:
>> I've made a new version of binutils available for installation.
>> This version is a refresh from CVS on sources.redhat.com.
>
>With the new binutils I get these errors when compiling xorg-x11
>
>Bitmap.o(.data+0x298):Bitmap.c: variable '_XtStrings' can't be 
>auto-imported. Please read the documentation for ld's 
>--enable-auto-import for details.
>
>DLL build commandline:
>gcc -shared -Wl,--out-implib=libXt-6.dll.a -Wl,--enable-auto-import,
>--enable-runtime-pseudo-reloc --def Xt.def -Wl,--exclude-libs,ALL 
>-o cygXt-6.dll    ActionHook.o    Alloc.o         ArgList.o  [...]
>ResConfig.o  -L../../exports/lib  -lSM -lICE -lX11
>
>Exe build commandline:
>gcc -o bitmap.exe -O2 -fno-strength-reduce -Wall -Wpointer-arith     
>-L../../exports/lib   BitEdit.o CutPaste.o Graphics.o ReqMach.o Bitmap.o
>Dialog.o Handlers.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 
>-L/usr/X11R6/lib     -Wl,--enable-auto-import
>
>switching back to binutils-20040312-1 solved this. 
>
>I'm using a crosscompiled version of binutils-20040725-1 on linux 
>at home where I did not notice these symptoms.

Apparently I dropped a minor patch to ldmain.c which turns on the
--enable-runtime-pseudo-reloc by default.

Adding -Wl,--enable-runtime-pseudo-reloc to the command line should
fix this problem.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

