diff --git a/build/crt/crt0.S b/build/crt/crt0.S index defbe1a..b11d00f 100644 --- a/build/crt/crt0.S +++ b/build/crt/crt0.S @@ -4,7 +4,7 @@ sldi reg, reg, 0x20; \ oris reg, reg, (sym)@h; \ ori reg, reg, (sym)@l \ - + .global ._start ._start: @@ -26,7 +26,7 @@ .section ".bss","aw" .global __libc_stack_end __libc_stack_end: - .quad 0 + .quad 0 .section ".opd","aw" .global _start diff --git a/build/crt/crti.S b/build/crt/crti.S index beea202..ae133ef 100644 --- a/build/crt/crti.S +++ b/build/crt/crti.S @@ -1,3 +1,4 @@ +.align 3 .section ".init","ax" .global ._init ._init: @@ -5,6 +6,7 @@ std %r0, 0x10(%r1) stdu %r1, -0x80(%r1) +.align 3 .section ".fini","ax" .global ._fini ._fini: @@ -12,6 +14,10 @@ std %r0, 0x10(%r1) stdu %r1, -0x80(%r1) +.align 3 +.section ".text","ax" + +.align 3 .section ".opd","aw" .global _init _init: