Kaynağa Gözat

Align all ctors/dtors start to 16

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Callum Farmer 1 yıl önce
ebeveyn
işleme
9dbfe1c365

+ 3 - 0
gnuefi/elf_aarch64_efi.lds

@@ -52,14 +52,17 @@ SECTIONS
    *(SORT(.init_array.*))
    *(.init_array)
    __init_array_end = .;
+  . = ALIGN(16);
    __CTOR_LIST__ = .;
    *(SORT(.ctors.*))
    *(.ctors)
    __CTOR_END__ = .;
+  . = ALIGN(16);
    __DTOR_LIST__ = .;
    *(SORT(.dtors.*))
    *(.dtors)
    __DTOR_END__ = .;
+   . = ALIGN(16);
    __fini_array_start = .;
    *(SORT(.fini_array.*))
    *(.fini_array)

+ 3 - 0
gnuefi/elf_arm_efi.lds

@@ -39,14 +39,17 @@ SECTIONS
    *(SORT(.init_array.*))
    *(.init_array)
    __init_array_end = .;
+  . = ALIGN(16);
    __CTOR_LIST__ = .;
    *(SORT(.ctors.*))
    *(.ctors)
    __CTOR_END__ = .;
+  . = ALIGN(16);
    __DTOR_LIST__ = .;
    *(SORT(.dtors.*))
    *(.dtors)
    __DTOR_END__ = .;
+   . = ALIGN(16);
    __fini_array_start = .;
    *(SORT(.fini_array.*))
    *(.fini_array)

+ 3 - 0
gnuefi/elf_ia32_efi.lds

@@ -43,14 +43,17 @@ SECTIONS
    *(SORT(.init_array.*))
    *(.init_array)
    __init_array_end = .;
+  . = ALIGN(16);
    __CTOR_LIST__ = .;
    *(SORT(.ctors.*))
    *(.ctors)
    __CTOR_END__ = .;
+  . = ALIGN(16);
    __DTOR_LIST__ = .;
    *(SORT(.dtors.*))
    *(.dtors)
    __DTOR_END__ = .;
+   . = ALIGN(16);
    __fini_array_start = .;
    *(SORT(.fini_array.*))
    *(.fini_array)

+ 3 - 0
gnuefi/elf_ia32_fbsd_efi.lds

@@ -52,14 +52,17 @@ SECTIONS
    *(SORT(.init_array.*))
    *(.init_array)
    __init_array_end = .;
+  . = ALIGN(16);
    __CTOR_LIST__ = .;
    *(SORT(.ctors.*))
    *(.ctors)
    __CTOR_END__ = .;
+  . = ALIGN(16);
    __DTOR_LIST__ = .;
    *(SORT(.dtors.*))
    *(.dtors)
    __DTOR_END__ = .;
+   . = ALIGN(16);
    __fini_array_start = .;
    *(SORT(.fini_array.*))
    *(.fini_array)

+ 3 - 0
gnuefi/elf_ia64_efi.lds

@@ -53,14 +53,17 @@ SECTIONS
    *(SORT(.init_array.*))
    *(.init_array)
    __init_array_end = .;
+  . = ALIGN(16);
    __CTOR_LIST__ = .;
    *(SORT(.ctors.*))
    *(.ctors)
    __CTOR_END__ = .;
+  . = ALIGN(16);
    __DTOR_LIST__ = .;
    *(SORT(.dtors.*))
    *(.dtors)
    __DTOR_END__ = .;
+   . = ALIGN(16);
    __fini_array_start = .;
    *(SORT(.fini_array.*))
    *(.fini_array)

+ 3 - 0
gnuefi/elf_mips64el_efi.lds

@@ -40,14 +40,17 @@ SECTIONS
    *(SORT(.init_array.*))
    *(.init_array)
    __init_array_end = .;
+  . = ALIGN(16);
    __CTOR_LIST__ = .;
    *(SORT(.ctors.*))
    *(.ctors)
    __CTOR_END__ = .;
+  . = ALIGN(16);
    __DTOR_LIST__ = .;
    *(SORT(.dtors.*))
    *(.dtors)
    __DTOR_END__ = .;
+   . = ALIGN(16);
    __fini_array_start = .;
    *(SORT(.fini_array.*))
    *(.fini_array)

+ 3 - 0
gnuefi/elf_x86_64_efi.lds

@@ -50,14 +50,17 @@ SECTIONS
    *(SORT(.init_array.*))
    *(.init_array)
    __init_array_end = .;
+  . = ALIGN(16);
    __CTOR_LIST__ = .;
    *(SORT(.ctors.*))
    *(.ctors)
    __CTOR_END__ = .;
+  . = ALIGN(16);
    __DTOR_LIST__ = .;
    *(SORT(.dtors.*))
    *(.dtors)
    __DTOR_END__ = .;
+   . = ALIGN(16);
    __fini_array_start = .;
    *(SORT(.fini_array.*))
    *(.fini_array)

+ 3 - 0
gnuefi/elf_x86_64_fbsd_efi.lds

@@ -48,14 +48,17 @@ SECTIONS
    *(SORT(.init_array.*))
    *(.init_array)
    __init_array_end = .;
+  . = ALIGN(16);
    __CTOR_LIST__ = .;
    *(SORT(.ctors.*))
    *(.ctors)
    __CTOR_END__ = .;
+  . = ALIGN(16);
    __DTOR_LIST__ = .;
    *(SORT(.dtors.*))
    *(.dtors)
    __DTOR_END__ = .;
+   . = ALIGN(16);
    __fini_array_start = .;
    *(SORT(.fini_array.*))
    *(.fini_array)