ia64/xen-unstable

changeset 17709:fbf09143c2e5

stubdom: fix constructors/destructors in 64bit mode

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri May 23 09:35:57 2008 +0100 (2008-05-23)
parents f05795acfca9
children fbc8cf8e0d6b
files extras/mini-os/arch/ia64/minios-ia64.lds extras/mini-os/arch/x86/minios-x86_64.lds
line diff
     1.1 --- a/extras/mini-os/arch/ia64/minios-ia64.lds	Fri May 23 09:35:43 2008 +0100
     1.2 +++ b/extras/mini-os/arch/ia64/minios-ia64.lds	Fri May 23 09:35:57 2008 +0100
     1.3 @@ -54,18 +54,18 @@ SECTIONS
     1.4  
     1.5    .ctors : {
     1.6          __CTOR_LIST__ = .;
     1.7 -        LONG((__CTOR_END__ - __CTOR_LIST__) / 8 - 2)
     1.8 +        QUAD((__CTOR_END__ - __CTOR_LIST__) / 8 - 2)
     1.9          *(SORT_BY_NAME(.ctors))
    1.10  	SORT_BY_NAME(CONSTRUCTORS)
    1.11 -        LONG(0)
    1.12 +        QUAD(0)
    1.13          __CTOR_END__ = .;
    1.14          }
    1.15  
    1.16    .dtors : {
    1.17          __DTOR_LIST__ = .;
    1.18 -        LONG((__DTOR_END__ - __DTOR_LIST__) / 8 - 2)
    1.19 +        QUAD((__DTOR_END__ - __DTOR_LIST__) / 8 - 2)
    1.20          *(SORT_BY_NAME(.dtors))
    1.21 -        LONG(0)
    1.22 +        QUAD(0)
    1.23          __DTOR_END__ = .;
    1.24          }
    1.25  
     2.1 --- a/extras/mini-os/arch/x86/minios-x86_64.lds	Fri May 23 09:35:43 2008 +0100
     2.2 +++ b/extras/mini-os/arch/x86/minios-x86_64.lds	Fri May 23 09:35:57 2008 +0100
     2.3 @@ -30,18 +30,18 @@ SECTIONS
     2.4  
     2.5    .ctors : {
     2.6          __CTOR_LIST__ = .;
     2.7 -        LONG((__CTOR_END__ - __CTOR_LIST__) / 8 - 2)
     2.8 +        QUAD((__CTOR_END__ - __CTOR_LIST__) / 8 - 2)
     2.9          *(SORT_BY_NAME(.ctors))
    2.10  	SORT_BY_NAME(CONSTRUCTORS)
    2.11 -        LONG(0)
    2.12 +        QUAD(0)
    2.13          __CTOR_END__ = .;
    2.14          }
    2.15  
    2.16    .dtors : {
    2.17          __DTOR_LIST__ = .;
    2.18 -        LONG((__DTOR_END__ - __DTOR_LIST__) / 8 - 2)
    2.19 +        QUAD((__DTOR_END__ - __DTOR_LIST__) / 8 - 2)
    2.20          *(SORT_BY_NAME(.dtors))
    2.21 -        LONG(0)
    2.22 +        QUAD(0)
    2.23          __DTOR_END__ = .;
    2.24          }
    2.25