Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <397204EB.CDEEB23B@ece.gatech.edu>
Date: Sun, 16 Jul 2000 14:54:35 -0400
From: Charles Wilson <cwilson@ece.gatech.edu>
X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Suhaib Siddiqi <s_m_siddiqi@yahoo.com>
CC: cygwin@sources.redhat.com
Subject: Re: ld -r Unsupported PEI arch pe-i386
References: <20000716165737.21932.qmail@web4602.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Suhaib Siddiqi wrote:
> 
> Compiling Xfree86 4.0.1, I ran into some problems.
> 
> ld -r return errors
> 
> bash-2.04$ ld  -r mga_driver.o mga_hwcurs.o
> mga_dac3026.o mga_dacG.o        mg
> a_storm8.o mga_storm16.o mga_storm24.o mga_storm32.o
> mga_arc.o        mga_dga.o
>  mga_shadow.o  mga_video.o  -o mga_drv.o
> Unsupported PEI architecture: pe-i386
> 
> Any suggestions?  I am using Cygwin 1.1.2 and the
> binutils from the "latest"

I'm not sure about this, but I *think* there is no such thing as
"relocatable" code on windows/pei386 per se. All code is relocatable(*),
so the '-r' option is pointless.

(*) because the object files that go into dll's are built exactly the
same as the object files that go into static libs. But dll's get special
'fixup' code to do the "relocation" when the dll is loaded into memory.
This fixup code is added when you do 'ld -shared *.o -o foo.dll' to
create the dll (or dlltool, whatever...)

I think you ought to be able to get a working loadable module for XF86 4
by removing the '-r' altogether, right?

--Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

