提交 32e7bd78 编写于 作者: R Rich Felker

align mips _init/_fini functions

since .init and .fini are not .text, the toolchain does not seem to
align them for code by default. this yields random breakage depending
on the object sizes the linker is dealing with.
上级 7d9a5c6a
......@@ -2,6 +2,7 @@
.section .init
.global _init
.align 2
_init:
subu $sp,$sp,32
sw $gp,24($sp)
......@@ -9,6 +10,7 @@ _init:
.section .fini
.global _fini
.align 2
_fini:
subu $sp,$sp,32
sw $gp,24($sp)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册