wut/rpl/common/stub.S

14 lines
225 B
ArmAsm
Raw Normal View History

2015-12-27 03:10:38 +01:00
#include "config.h"
#define EXPORT(name) \
.align 2; \
.section ".rplTramp.text","ax"; \
.global name; \
name: \
2015-12-27 14:45:32 +01:00
li %r0, name##_stub@l; \
oris %r0, %r0, name##_stub@ha; \
2015-12-27 03:10:38 +01:00
mtctr %r0; \
bctr; \
#include "exports.h"