From a5f306c401b0dc85575fe27075848932ef77ba15 Mon Sep 17 00:00:00 2001 From: Callum Farmer Date: Sun, 26 Nov 2023 14:28:45 +0000 Subject: [PATCH] ctors.S: Align with linker scripts Remove end padding Change start padding to 16 Signed-off-by: Callum Farmer --- lib/ctors.S | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/ctors.S b/lib/ctors.S index 8aa36dc..4a66a4e 100644 --- a/lib/ctors.S +++ b/lib/ctors.S @@ -9,34 +9,29 @@ * have NULLs which aren't guaranteed to be at the end. */ .section .init_array,"aw",%init_array - .p2align 3, 0 + .p2align 4, 0 .globl __init_array_start __init_array_start: - .p2align 3, 0 .globl __init_array_end __init_array_end: .section .ctors,"aw",%progbits - .p2align 3, 0 + .p2align 4, 0 .globl __CTOR_LIST__ __CTOR_LIST__: - .p2align 3, 0 .globl __CTOR_END__ __CTOR_END__: .section .dtors,"aw",%progbits - .p2align 3, 0 + .p2align 4, 0 .globl __DTOR_LIST__ __DTOR_LIST__: - .p2align 3, 0 .globl __DTOR_END__ __DTOR_END__: .section .fini_array,"aw",%fini_array - .p2align 3, 0 + .p2align 4, 0 .globl __fini_array_start __fini_array_start: - .p2align 3, 0 .globl __fini_array_end __fini_array_end: - .p2align 3, 0 #if defined(__ELF__) && defined(__linux__) .section .note.GNU-stack,"",%progbits