new runtime pseudo-reloc in cygwin 1.3.18

Alan Hourihane alanh@fairlite.demon.co.uk
Fri Dec 27 06:13:00 GMT 2002


I'm about to commit a patch to the XFree86 CVS that uses the new relocation
code in cygwin 1.3.18. This allows us to create the last few libraries
as shared code.

Here's the patch if people would like to test first.

I've build tested the entire tree without problems, but not tested
cross compiling.

Alan.

Index: config/cf/cygwin.cf
===================================================================
RCS file: /X11R6/x-cvs/xc/config/cf/cygwin.cf,v
retrieving revision 3.48
diff -u -r3.48 cygwin.cf
--- config/cf/cygwin.cf	28 Nov 2002 16:50:58 -0000	3.48
+++ config/cf/cygwin.cf	27 Dec 2002 01:06:21 -0000
@@ -32,7 +32,7 @@
 #define UseGas                  YES
 #define GnuCpp                  YES
 
-#define ExtraLoadFlags		-Wl,--enable-auto-import
+#define ExtraLoadFlags		-Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc
 
 #define HasShadowPasswd         NO
 #define HasLibCrypt             YES
Index: config/cf/cygwin.rules
===================================================================
RCS file: /X11R6/x-cvs/xc/config/cf/cygwin.rules,v
retrieving revision 3.22
diff -u -r3.22 cygwin.rules
--- config/cf/cygwin.rules	17 Oct 2002 08:18:17 -0000	3.22
+++ config/cf/cygwin.rules	27 Dec 2002 01:06:21 -0000
@@ -7,11 +7,11 @@
 #define HasSharedLibraries	YES
 #define NeedLibInsideFlag	NO
 #define ForceNormalLib		NO
-#define SharedLibXaw		NO /* For these we need new binutils */
-#define SharedLibXmu		NO
-#define SharedLibXt		NO
-#define SharedLibFont		NO
-#define SharedLibXaw6		NO
+#define SharedLibXaw		YES
+#define SharedLibXmu		YES
+#define SharedLibXt		YES
+#define SharedLibFont		YES
+#define SharedLibXaw6		YES
 #define SharedLibSM		YES
 #define SharedLibICE		YES
 #define SharedLibXext		YES
@@ -183,7 +183,7 @@
  */ 
     
 #define MakeDLLProg(libname,solist,prog,rev)			        @@\
-	prog -shared -Wl,--out-implib=ImportLibraryName(libname,rev) -Wl,--enable-auto-import --def libname.def -Wl,--exclude-libs,ALL -o SharedLibraryName(libname,rev) solist $(REQUIREDLIBS)
+	prog -shared -Wl,--out-implib=ImportLibraryName(libname,rev) -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc --def libname.def -Wl,--exclude-libs,ALL -o SharedLibraryName(libname,rev) solist $(REQUIREDLIBS)
     
 /*
  * MakeDll
Index: lib/Xaw/Xaw-def.cpp
===================================================================
RCS file: /X11R6/x-cvs/xc/lib/Xaw/Xaw-def.cpp,v
retrieving revision 1.2
diff -u -r1.2 Xaw-def.cpp
--- lib/Xaw/Xaw-def.cpp	31 May 2002 18:45:44 -0000	1.2
+++ lib/Xaw/Xaw-def.cpp	27 Dec 2002 11:20:02 -0000
@@ -133,7 +133,7 @@
  XawViewportSetLocation
  XawWidgetArray
  XawWidgetCount
-#ifdef __UNIXOS2__ /* xconsole */
+#if defined(__CYGWIN__) || defined(__UNIXOS2__) /* xconsole, xedit */
  _XawTextGetSTRING
  XawTextSourceAddEntity
  XawTextSourceAnchorAndEntity



More information about the Cygwin-xfree mailing list