2016-11-22 22:48:44 +01:00
|
|
|
/*#define IMPORT(name) \
|
2016-10-29 02:56:40 +01:00
|
|
|
.global name; \
|
|
|
|
name: \
|
|
|
|
lis %r11, addr_##name@h; \
|
|
|
|
lwz %r11, addr_##name@l(%r11); \
|
|
|
|
mtctr %r11; \
|
|
|
|
bctr*/
|
|
|
|
|
2016-11-22 22:48:44 +01:00
|
|
|
#define IMPORT(name) \
|
2016-10-29 02:56:40 +01:00
|
|
|
.global name; \
|
|
|
|
name: \
|
|
|
|
lis %r11, addr_##name@h; \
|
|
|
|
ori %r11, %r11, addr_##name@l; \
|
|
|
|
lwz %r11, 0(%r11); \
|
|
|
|
mtctr %r11; \
|
2016-11-02 22:06:15 +01:00
|
|
|
bctr
|
|
|
|
|
2016-11-22 22:48:44 +01:00
|
|
|
#define IMPORT_BEGIN(lib)
|
2016-11-23 00:06:35 +01:00
|
|
|
#define IMPORT_END(lib)
|
2016-10-29 02:56:40 +01:00
|
|
|
|
|
|
|
.align 2;
|
|
|
|
.section ".text";
|
|
|
|
|
2016-11-22 22:48:44 +01:00
|
|
|
#include "imports.h"
|
2016-11-02 22:06:15 +01:00
|
|
|
|