LLVM bitcode for almost the whole source tree

Change-Id: Ibc6f89de112e0649c3a3bfe49c2baa2ed0746212
This commit is contained in:
Anton Kuijsten
2013-06-17 14:51:49 +00:00
committed by Lionel Sambuc
parent ba92d5219d
commit 2e3046757a
17 changed files with 139 additions and 10 deletions

View File

@@ -124,6 +124,7 @@ LIBKERN= ${KERNLIB}
# When using gold linker, specify the linker script
GOLDLINKERSCRIPT?= ${LDS_N}
USE_BITCODE=no
# use MINIX minc
LIBKERN= ${DESTDIR}/usr/lib/libminc.a

View File

@@ -129,6 +129,7 @@ LIBKERN= ${KERNLIB}
# When using gold linker, specify the linker script
GOLDLINKERSCRIPT?= ${LDS_N}
USE_BITCODE=no
# use MINIX minc
LIBKERN= ${DESTDIR}/usr/lib/libminc.a

View File

@@ -13,6 +13,8 @@
# building. See library's Makefile for more details about
# supported flags and their default values.
USE_BITCODE=no
# Default values:
I386DST?= ${.OBJDIR}/lib/i386

View File

@@ -56,9 +56,11 @@
__asm(".global " _C_LABEL_STRING(#alias) "\n" \
_C_LABEL_STRING(#alias) " = " _C_LABEL_STRING(#sym));
#if defined(__minix) && !defined(__weak_alias) /* For bitcode support */
#define __weak_alias(alias,sym) \
__asm(".weak " _C_LABEL_STRING(#alias) "\n" \
_C_LABEL_STRING(#alias) " = " _C_LABEL_STRING(#sym));
#endif
/* Do not use __weak_extern, use __weak_reference instead */
#define __weak_extern(sym) \