sel4: never compile syscall-using code with -fPIC

This commit is contained in:
Norman Feske 2015-05-01 18:14:38 +02:00 committed by Christian Helmuth
parent 1314bd3b2a
commit e3cb8d48f7
1 changed files with 14 additions and 0 deletions

View File

@ -8,3 +8,17 @@ INC_DIR += $(BUILD_BASE_DIR)/include
# Access to other sel4-specific headers such as 'autoconf.h'.
#
REP_INC_DIR += include/sel4
#
# Compile code that uses the system-call bindings without -fPIC. Otherwise,
# the compiler would complain with the following error:
#
# error: inconsistent operand constraints in an asm
#
# XXX avoid mixing PIC with non-PIC code
#
# The lack of PIC support in the seL4 system bindings ultimately results in
# a mix of PIC and non-PIC code within a single binary. This may become a
# problem when using shared libraries.
#
CC_OPT_PIC =