提交 01804a1d 编写于 作者: H hhj

add align instruction for .init .fini section

crti and crtn will added for exe, dso; we found these section is not
aligned, in some case, will cause ld.musl crash when load dso.
Signed-off-by: Nhhj <huanghuijin@huawei.com>
上级 1cbbf7c5
......@@ -3,6 +3,7 @@
.section .init
.global _init
.type _init,%function
.balign 4
_init:
stp x29,x30,[sp,-16]!
mov x29,sp
......@@ -10,6 +11,7 @@ _init:
.section .fini
.global _fini
.type _fini,%function
.balign 4
_fini:
stp x29,x30,[sp,-16]!
mov x29,sp
......@@ -5,11 +5,13 @@
.section .init
.global _init
.type _init,%function
.balign 4
_init:
push {r0,lr}
.section .fini
.global _fini
.type _fini,%function
.balign 4
_fini:
push {r0,lr}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册