]> xenbits.xensource.com Git - mini-os.git/commitdiff
stubdom: fix constructors/destructors in 64bit mode
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 23 May 2008 08:35:57 +0000 (09:35 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 23 May 2008 08:35:57 +0000 (09:35 +0100)
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
arch/ia64/minios-ia64.lds
arch/x86/minios-x86_64.lds

index 3122648969cc016c35c86bfb72299c9b50e2c017..bd9274b86cfcb152ca135475344bda53dd656c95 100644 (file)
@@ -54,18 +54,18 @@ SECTIONS
 
   .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__ = .;
         }
 
index d53d639f2f35baaf85014d0eeec68c00340304ec..db93e909acf2cfb7d13a62ecf478597a6086962a 100644 (file)
@@ -30,18 +30,18 @@ SECTIONS
 
   .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__ = .;
         }