From 0ac58e8bf4b80e0fdf71f4a581e154647b7af319 Mon Sep 17 00:00:00 2001 From: James Benton Date: Wed, 6 Jul 2016 19:21:31 +0100 Subject: [PATCH] Fix trampoline generation. --- rpl/common/stub.S | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rpl/common/stub.S b/rpl/common/stub.S index 5ac8215..c382136 100644 --- a/rpl/common/stub.S +++ b/rpl/common/stub.S @@ -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"