mirror of
https://github.com/devkitPro/wut.git
synced 2026-09-09 03:35:51 -05:00
Fix trampoline generation.
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
#define EXPORT(name) \
|
||||
.align 2; \
|
||||
.section ".rplTramp.text","ax"; \
|
||||
.global name; \
|
||||
name: \
|
||||
li %r0, name##_stub@l; \
|
||||
oris %r0, %r0, name##_stub@ha; \
|
||||
mtctr %r0; \
|
||||
bctr; \
|
||||
.global name; \
|
||||
name: \
|
||||
lis %r0, name##_stub@h; \
|
||||
ori %r0, %r0, name##_stub@l; \
|
||||
mtctr %r0; \
|
||||
bctr;
|
||||
|
||||
#include "exports.h"
|
||||
|
||||
Reference in New Issue
Block a user