Skip to content

Commit

Permalink
Updated crt files from ps3chain.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Peori committed Nov 3, 2010
1 parent 7793f73 commit d3ab974
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/crt/crt0.S
Expand Up @@ -4,7 +4,7 @@
sldi reg, reg, 0x20; \
oris reg, reg, (sym)@h; \
ori reg, reg, (sym)@l \


.global ._start
._start:
Expand All @@ -26,7 +26,7 @@
.section ".bss","aw"
.global __libc_stack_end
__libc_stack_end:
.quad 0
.quad 0

.section ".opd","aw"
.global _start
Expand Down
6 changes: 6 additions & 0 deletions build/crt/crti.S
@@ -1,17 +1,23 @@
.align 3
.section ".init","ax"
.global ._init
._init:
mflr %r0
std %r0, 0x10(%r1)
stdu %r1, -0x80(%r1)

.align 3
.section ".fini","ax"
.global ._fini
._fini:
mflr %r0
std %r0, 0x10(%r1)
stdu %r1, -0x80(%r1)

.align 3
.section ".text","ax"

.align 3
.section ".opd","aw"
.global _init
_init:
Expand Down

0 comments on commit d3ab974

Please sign in to comment.