projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d9a5c6
)
align mips _init/_fini functions
author
Rich Felker
<dalias@aerifal.cx>
Sun, 5 Aug 2012 18:12:10 +0000
(14:12 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 5 Aug 2012 18:12:10 +0000
(14:12 -0400)
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.
crt/mips/crti.s
patch
|
blob
|
history
diff --git
a/crt/mips/crti.s
b/crt/mips/crti.s
index cbc6e3e9ffe7c7a738b681d4c976c9a642273bf4..b1593d19f7b11f99d7105d9da1fa1429e47d4719 100644
(file)
--- a/
crt/mips/crti.s
+++ b/
crt/mips/crti.s
@@
-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)