delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <397204EB.CDEEB23B@ece.gatech.edu> |
Date: | Sun, 16 Jul 2000 14:54:35 -0400 |
From: | Charles Wilson <cwilson AT ece DOT gatech DOT 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 AT yahoo DOT com> |
CC: | cygwin AT sources DOT redhat DOT com |
Subject: | Re: ld -r Unsupported PEI arch pe-i386 |
References: | <20000716165737 DOT 21932 DOT qmail AT web4602 DOT mail DOT yahoo DOT com> |
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 AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |