mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-26 00:41:08 +00:00
9508f397a2
Ref #1941
34 lines
770 B
Makefile
34 lines
770 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
|
|
INC_DIR += $(BASE_DIR)/src/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
|
|
|
|
include $(REP_DIR)/lib/import/import-ld.mk
|
|
|
|
vpath %.cc $(DIR)
|
|
|
|
# vi:ft=make
|
|
|