]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commitdiff
[IA64] minios: Fix ctor and dtor sections.
authordietmar.hahn@fujitsu-siemens.com <dietmar.hahn@fujitsu-siemens.com>
Mon, 17 Nov 2008 08:27:02 +0000 (09:27 +0100)
committerdietmar.hahn@fujitsu-siemens.com <dietmar.hahn@fujitsu-siemens.com>
Mon, 17 Nov 2008 08:27:02 +0000 (09:27 +0100)
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
arch/ia64/minios-ia64.lds

index df616c8a507a3f6a2b23fa95db2c7bfea0e053a3..8b54c0f3946a5c88c7d4465336aca71a5d0dd83b 100644 (file)
@@ -52,7 +52,8 @@ SECTIONS
   .fini_array     : { *(.fini_array) }
   PROVIDE (__fini_array_end = .);
 
-  .ctors : {
+  .ctors : AT(ADDR(.ctors) - (((5<<(61))+0x100000000) - (1 << 20)))
+       {
         __CTOR_LIST__ = .;
         QUAD((__CTOR_END__ - __CTOR_LIST__) / 8 - 2)
         *(.ctors)
@@ -61,7 +62,8 @@ SECTIONS
         __CTOR_END__ = .;
         }
 
-  .dtors : {
+  .dtors : AT(ADDR(.dtors) - (((5<<(61))+0x100000000) - (1 << 20)))
+        {
         __DTOR_LIST__ = .;
         QUAD((__DTOR_END__ - __DTOR_LIST__) / 8 - 2)
         *(.dtors)