mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-26 00:41:08 +00:00
7f73e5e879
This patch moves details about the stack allocation and organization the base-internal headers. Thereby, I replaced the notion of "thread contexts" by "stacks" as this term is much more intuitive. The fact that we place thread-specific information at the bottom of the stack is not worth introducing new terminology. Issue #1832
31 lines
687 B
Makefile
31 lines
687 B
Makefile
SHARED_LIB = yes
|
|
DIR = $(REP_DIR)/src/lib/ldso
|
|
|
|
include $(BASE_DIR)/mk/base-libs.mk
|
|
|
|
LIBS = $(BASE_LIBS)
|
|
SRC_CC = main.cc test.cc exception.cc file.cc dependency.cc debug.cc \
|
|
shared_object.cc
|
|
SRC_S = jmp_slot.s
|
|
INC_DIR += $(DIR)/include
|
|
LD_OPT += -Bsymbolic-functions --version-script=$(DIR)/symbol.map
|
|
|
|
ifneq ($(filter linux, $(SPECS)),)
|
|
|
|
ENTRY_POINT = _start_initial_stack
|
|
LD_OPT += -T$(call select_from_repositories,src/ld/stack_area.nostdlib.ld) \
|
|
|
|
ifneq ($(filter x86_32, $(SPECS)),)
|
|
LD_OPT += -T$(DIR)/linux-32.ld
|
|
endif
|
|
|
|
else
|
|
ENTRY_POINT = _start
|
|
LD_OPT += -T$(DIR)/linker.ld
|
|
endif
|
|
|
|
vpath %.cc $(DIR)
|
|
|
|
# vi:ft=make
|
|
|