Skip to contentSkip to conversation

stubdom: fix constructors/destructors in 64bit mode

PATCH New Samuel Thibault 1 participant 1 message May 22, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stubdom: fix constructors/destructors in 64bit mode

stubdom: fix constructors/destructors in 64bit mode

extras/mini-os/arch/ia64/minios-ia64.lds +4 -4
diff -r d64ab53cc30e extras/mini-os/arch/ia64/minios-ia64.lds
@@ -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__ = .;
         }
 
extras/mini-os/arch/x86/minios-x86_64.lds +4 -4
diff -r d64ab53cc30e extras/mini-os/arch/x86/minios-x86_64.lds
@@ -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__ = .;
         }