Explorar o código

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.
Rich Felker %!s(int64=12) %!d(string=hai) anos
pai
achega
32e7bd78ae
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      crt/mips/crti.s

+ 2 - 0
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)