2014-05-20 09:40:50 +00:00
|
|
|
SHARED_LIB = yes
|
|
|
|
DIR = $(REP_DIR)/src/lib/ldso
|
|
|
|
|
|
|
|
include $(BASE_DIR)/mk/base-libs.mk
|
|
|
|
|
|
|
|
LIBS = $(BASE_LIBS)
|
2015-03-10 10:16:03 +00:00
|
|
|
SRC_CC = main.cc test.cc exception.cc file.cc dependency.cc debug.cc \
|
|
|
|
shared_object.cc
|
2014-05-20 09:40:50 +00:00
|
|
|
SRC_S = jmp_slot.s
|
|
|
|
INC_DIR += $(DIR)/include
|
|
|
|
LD_OPT += -Bsymbolic-functions --version-script=$(DIR)/symbol.map
|
|
|
|
|
|
|
|
ifneq ($(filter linux, $(SPECS)),)
|
2015-11-26 09:30:23 +00:00
|
|
|
|
|
|
|
ENTRY_POINT = _start_initial_stack
|
2016-01-23 13:42:55 +00:00
|
|
|
LD_OPT += -T$(call select_from_repositories,src/ld/stack_area.nostdlib.ld) \
|
2015-11-26 09:30:23 +00:00
|
|
|
|
|
|
|
ifneq ($(filter x86_32, $(SPECS)),)
|
|
|
|
LD_OPT += -T$(DIR)/linux-32.ld
|
|
|
|
endif
|
|
|
|
|
2014-05-20 09:40:50 +00:00
|
|
|
else
|
2015-11-26 09:30:23 +00:00
|
|
|
ENTRY_POINT = _start
|
|
|
|
LD_OPT += -T$(DIR)/linker.ld
|
2014-05-20 09:40:50 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
vpath %.cc $(DIR)
|
|
|
|
|
|
|
|
# vi:ft=make
|
|
|
|
|