2011-12-22 15:19:25 +00:00
|
|
|
#
|
|
|
|
# Specifics for the Linux-specific Genode components
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Startup code to be used when building a program and linker script that is
|
2016-01-23 13:42:55 +00:00
|
|
|
# specific for Linux. We also reserve the stack area via a segment in
|
2011-12-22 15:19:25 +00:00
|
|
|
# the program under Linux to prevent clashes with vdso.
|
|
|
|
#
|
|
|
|
ifneq ($(USE_HOST_LD_SCRIPT),yes)
|
|
|
|
LD_TEXT_ADDR ?= 0x01000000
|
2015-09-03 12:55:05 +00:00
|
|
|
LD_SCRIPT_STATIC = $(call select_from_repositories,src/ld/genode.ld) \
|
2016-01-23 13:42:55 +00:00
|
|
|
$(call select_from_repositories,src/ld/stack_area.nostdlib.ld)
|
2011-12-22 15:19:25 +00:00
|
|
|
else
|
2013-02-03 01:43:31 +00:00
|
|
|
LD_SCRIPT_STATIC ?=
|
2011-12-22 15:19:25 +00:00
|
|
|
endif
|
2012-06-19 09:05:16 +00:00
|
|
|
|
|
|
|
ifneq ($(filter hardening_tool_chain, $(SPECS)),)
|
|
|
|
CC_OPT += -fPIC
|
|
|
|
endif
|