mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-07 23:10:42 +01:00
Fix trampoline generation.
This commit is contained in:
parent
ad50ef9ec6
commit
0ac58e8bf4
@ -3,11 +3,11 @@
|
|||||||
#define EXPORT(name) \
|
#define EXPORT(name) \
|
||||||
.align 2; \
|
.align 2; \
|
||||||
.section ".rplTramp.text","ax"; \
|
.section ".rplTramp.text","ax"; \
|
||||||
.global name; \
|
.global name; \
|
||||||
name: \
|
name: \
|
||||||
li %r0, name##_stub@l; \
|
lis %r0, name##_stub@h; \
|
||||||
oris %r0, %r0, name##_stub@ha; \
|
ori %r0, %r0, name##_stub@l; \
|
||||||
mtctr %r0; \
|
mtctr %r0; \
|
||||||
bctr; \
|
bctr;
|
||||||
|
|
||||||
#include "exports.h"
|
#include "exports.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user