Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: fusl/arch/microblaze/reloc.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/arch/microblaze/pthread_arch.h ('k') | fusl/arch/microblaze/syscall_arch.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include <endian.h>
2
3 #if __BYTE_ORDER == __LITTLE_ENDIAN
4 #define ENDIAN_SUFFIX "el"
5 #else
6 #define ENDIAN_SUFFIX ""
7 #endif
8
9 #define LDSO_ARCH "microblaze" ENDIAN_SUFFIX
10
11 #define TPOFF_K 0
12
13 #define REL_SYMBOLIC R_MICROBLAZE_32
14 #define REL_GOT R_MICROBLAZE_GLOB_DAT
15 #define REL_PLT R_MICROBLAZE_JUMP_SLOT
16 #define REL_RELATIVE R_MICROBLAZE_REL
17 #define REL_COPY R_MICROBLAZE_COPY
18 #define REL_DTPMOD R_MICROBLAZE_TLSDTPMOD32
19 #define REL_DTPOFF R_MICROBLAZE_TLSDTPREL32
20
21 #define CRTJMP(pc,sp) __asm__ __volatile__( \
22 "addik r1,%1,0 ; bra %0" : : "r"(pc), "r"(sp) : "memory" )
23
24 #define GETFUNCSYM(fp, sym, got) __asm__ ( \
25 ".hidden " #sym " \n" \
26 " mfs %0, rpc \n" \
27 " addik %0, %0, _GLOBAL_OFFSET_TABLE_+8 \n" \
28 " addik %0, %0, " #sym "@GOTOFF \n" \
29 : "=r"(*(fp)) : : "memory" )
OLDNEW
« no previous file with comments | « fusl/arch/microblaze/pthread_arch.h ('k') | fusl/arch/microblaze/syscall_arch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698