projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix rejection of dns responses with pointers past 512 byte offset
[musl]
/
arch
/
microblaze
/
reloc.h
diff --git
a/arch/microblaze/reloc.h
b/arch/microblaze/reloc.h
index
611db46
..
6302c6e
100644
(file)
--- a/
arch/microblaze/reloc.h
+++ b/
arch/microblaze/reloc.h
@@
-1,5
+1,3
@@
-#include <endian.h>
-
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define ENDIAN_SUFFIX "el"
#else
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define ENDIAN_SUFFIX "el"
#else
@@
-20,3
+18,10
@@
#define CRTJMP(pc,sp) __asm__ __volatile__( \
"addik r1,%1,0 ; bra %0" : : "r"(pc), "r"(sp) : "memory" )
#define CRTJMP(pc,sp) __asm__ __volatile__( \
"addik r1,%1,0 ; bra %0" : : "r"(pc), "r"(sp) : "memory" )
+
+#define GETFUNCSYM(fp, sym, got) __asm__ ( \
+ ".hidden " #sym " \n" \
+ " mfs %0, rpc \n" \
+ " addik %0, %0, _GLOBAL_OFFSET_TABLE_+8 \n" \
+ " addik %0, %0, " #sym "@GOTOFF \n" \
+ : "=r"(*(fp)) : : "memory" )