[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] stubdom: fix constructors/destructors in 64bit mode



stubdom: fix constructors/destructors in 64bit mode

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>

diff -r d64ab53cc30e extras/mini-os/arch/ia64/minios-ia64.lds
--- a/extras/mini-os/arch/ia64/minios-ia64.lds  Thu May 22 16:08:17 2008 +0100
+++ b/extras/mini-os/arch/ia64/minios-ia64.lds  Thu May 22 16:34:20 2008 +0100
@@ -54,18 +54,18 @@
 
   .ctors : {
         __CTOR_LIST__ = .;
-        LONG((__CTOR_END__ - __CTOR_LIST__) / 8 - 2)
+        QUAD((__CTOR_END__ - __CTOR_LIST__) / 8 - 2)
         *(SORT_BY_NAME(.ctors))
        SORT_BY_NAME(CONSTRUCTORS)
-        LONG(0)
+        QUAD(0)
         __CTOR_END__ = .;
         }
 
   .dtors : {
         __DTOR_LIST__ = .;
-        LONG((__DTOR_END__ - __DTOR_LIST__) / 8 - 2)
+        QUAD((__DTOR_END__ - __DTOR_LIST__) / 8 - 2)
         *(SORT_BY_NAME(.dtors))
-        LONG(0)
+        QUAD(0)
         __DTOR_END__ = .;
         }
 
diff -r d64ab53cc30e extras/mini-os/arch/x86/minios-x86_64.lds
--- a/extras/mini-os/arch/x86/minios-x86_64.lds Thu May 22 16:08:17 2008 +0100
+++ b/extras/mini-os/arch/x86/minios-x86_64.lds Thu May 22 16:34:20 2008 +0100
@@ -30,18 +30,18 @@
 
   .ctors : {
         __CTOR_LIST__ = .;
-        LONG((__CTOR_END__ - __CTOR_LIST__) / 8 - 2)
+        QUAD((__CTOR_END__ - __CTOR_LIST__) / 8 - 2)
         *(SORT_BY_NAME(.ctors))
        SORT_BY_NAME(CONSTRUCTORS)
-        LONG(0)
+        QUAD(0)
         __CTOR_END__ = .;
         }
 
   .dtors : {
         __DTOR_LIST__ = .;
-        LONG((__DTOR_END__ - __DTOR_LIST__) / 8 - 2)
+        QUAD((__DTOR_END__ - __DTOR_LIST__) / 8 - 2)
         *(SORT_BY_NAME(.dtors))
-        LONG(0)
+        QUAD(0)
         __DTOR_END__ = .;
         }
 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.