ソースを参照

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>
Callum Farmer 1 年間 前
コミット
97499a0cf2
1 ファイル変更4 行追加4 行削除
  1. 4 4
      lib/ctors.S

+ 4 - 4
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: