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

Unified Diff: fusl/arch/sh/reloc.h

Issue 1574103002: Remove cruft from 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/arch/sh/pthread_arch.h ('k') | fusl/arch/sh/src/__fpscr_values.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/arch/sh/reloc.h
diff --git a/fusl/arch/sh/reloc.h b/fusl/arch/sh/reloc.h
deleted file mode 100644
index 0238ce075ba4d98718847fa38229259869dfeff6..0000000000000000000000000000000000000000
--- a/fusl/arch/sh/reloc.h
+++ /dev/null
@@ -1,54 +0,0 @@
-#include <endian.h>
-
-#if __BYTE_ORDER == __BIG_ENDIAN
-#define ENDIAN_SUFFIX "eb"
-#else
-#define ENDIAN_SUFFIX ""
-#endif
-
-#if __SH_FPU_ANY__ || __SH4__
-#define FP_SUFFIX ""
-#else
-#define FP_SUFFIX "-nofpu"
-#endif
-
-#if __SH_FDPIC__
-#define ABI_SUFFIX "-fdpic"
-#else
-#define ABI_SUFFIX ""
-#endif
-
-#define LDSO_ARCH "sh" ENDIAN_SUFFIX FP_SUFFIX ABI_SUFFIX
-
-#define TPOFF_K 8
-
-#define REL_SYMBOLIC R_SH_DIR32
-#define REL_OFFSET R_SH_REL32
-#define REL_GOT R_SH_GLOB_DAT
-#define REL_PLT R_SH_JMP_SLOT
-#define REL_RELATIVE R_SH_RELATIVE
-#define REL_COPY R_SH_COPY
-#define REL_DTPMOD R_SH_TLS_DTPMOD32
-#define REL_DTPOFF R_SH_TLS_DTPOFF32
-#define REL_TPOFF R_SH_TLS_TPOFF32
-
-#define DL_NOMMU_SUPPORT 1
-
-#if __SH_FDPIC__
-#define REL_FUNCDESC R_SH_FUNCDESC
-#define REL_FUNCDESC_VAL R_SH_FUNCDESC_VALUE
-#undef REL_RELATIVE
-#define DL_FDPIC 1
-#define FDPIC_CONSTDISP_FLAG 0x100
-#define CRTJMP(pc,sp) do { \
- register size_t r8 __asm__("r8") = ((size_t *)(sp))[-2]; \
- __asm__ __volatile__( "jmp @%0 ; mov %1,r15" \
- : : "r"(pc), "r"(sp), "r"(r8) : "memory" ); } while(0)
-#define GETFUNCSYM(fp, sym, got) __asm__ ( \
- "mov.l 1f,%0 ; add %1,%0 ; bra 2f ; nop ; .align 2 \n" \
- "1: .long " #sym "@GOTOFFFUNCDESC \n2:" \
- : "=&r"(*fp) : "r"(got) : "memory" )
-#else
-#define CRTJMP(pc,sp) __asm__ __volatile__( \
- "jmp @%0 ; mov %1,r15" : : "r"(pc), "r"(sp) : "memory" )
-#endif
« no previous file with comments | « fusl/arch/sh/pthread_arch.h ('k') | fusl/arch/sh/src/__fpscr_values.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698