diff options
author | Callum Farmer <gmbr3@opensuse.org> | 2023-04-26 19:18:28 +0100 |
---|---|---|
committer | Callum Farmer <gmbr3@opensuse.org> | 2023-05-04 13:59:02 +0100 |
commit | 97499a0cf265bf2d515bfcab99349ce00ecf2662 (patch) | |
tree | 29c647c9b6b98cf6af95307802ce230b1da00c10 | |
parent | 9b1e06cd0cc7937ae291a34f1bb5ec1b4568faee (diff) | |
download | gnu-efi-97499a0cf265bf2d515bfcab99349ce00ecf2662.tar.gz |
ctors.S: Use LSB defined section perms
Seems to not be correct at the moment, causes errors.
error: expected the entry size
.section .fini_array, "aM", @fini_array
Change per
https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/specialsections.html
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
-rw-r--r-- | lib/ctors.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ctors.S b/lib/ctors.S index 4a0c6ab..fe0f23a 100644 --- a/lib/ctors.S +++ b/lib/ctors.S @@ -8,7 +8,7 @@ * end/END definitions, and the fact that they're mergeable, they can also * have NULLs which aren't guaranteed to be at the end. */ - .section .init_array, "aM", @init_array + .section .init_array, "aw", @init_array .p2align 3, 0 .globl _init_array _init_array: @@ -16,7 +16,7 @@ _init_array: .globl _init_array_end _init_array_end: .long 0 - .section .ctors, "aM", @init_array + .section .ctors, "aw", @progbits .p2align 3, 0 .globl __CTOR_LIST__ __CTOR_LIST__: @@ -24,7 +24,7 @@ __CTOR_LIST__: .globl __CTOR_END__ __CTOR_END__: .long 0 - .section .dtors, "aM", @fini_array + .section .dtors, "aw", @progbits .p2align 3, 0 .globl __DTOR_LIST__ __DTOR_LIST__: @@ -32,7 +32,7 @@ __DTOR_LIST__: .globl __DTOR_END__ __DTOR_END__: .long 0 - .section .fini_array, "aM", @fini_array + .section .fini_array, "aw", @fini_array .p2align 3, 0 .globl _fini_array _fini_array: |