Lines Matching refs:link

1 link-script$(sm) = ldelf/ldelf.ld.S
2 link-script-pp$(sm) = $(link-out-dir$(sm))/ldelf.lds
3 link-script-dep$(sm) = $(link-out-dir$(sm))/.ldelf.ld.d
6 ldelf: $(link-out-dir$(sm))/ldelf.dmp
7 ldelf: $(link-out-dir$(sm))/ldelf.elf
10 cleanfiles += $(link-out-dir$(sm))/ldelf.dmp
11 cleanfiles += $(link-out-dir$(sm))/ldelf.map
12 cleanfiles += $(link-out-dir$(sm))/ldelf.elf
13 cleanfiles += $(link-script-pp$(sm)) $(link-script-dep$(sm))
15 link-ldflags = -pie -static --gc-sections
16 link-ldflags += -T $(link-script-pp$(sm))
17 link-ldflags += -Map=$(link-out-dir$(sm))/ldelf.map
18 link-ldflags += --sort-section=alignment
19 link-ldflags += -z max-page-size=4096 # OP-TEE always uses 4K alignment
21 link-ldflags += $(call ld-option,-z force-bti) --fatal-warnings
23 link-ldflags += $(link-ldflags$(sm))
25 link-ldadd = $(addprefix -L,$(libdirs))
26 link-ldadd += --start-group $(addprefix -l,$(libnames)) --end-group
27 ldargs-ldelf.elf := $(link-ldflags) $(objs) $(link-ldadd) $(libgcc$(sm))
29 link-script-cppflags-$(sm) := \
32 $(addprefix -I,$(incdirs$(sm)) $(link-out-dir$(sm))) \
35 -include $(link-script-dep$(sm))
37 link-script-pp-makefiles$(sm) = $(filter-out %.d %.cmd,$(MAKEFILE_LIST))
39 define gen-link-t
40 $(link-script-pp$(sm)): $(link-script$(sm)) $(conf-file) \
41 $(link-script-pp-makefiles$(sm))
44 $(q)$(CPP$(sm)) -P -MT $$@ -MD -MF $(link-script-dep$(sm)) \
45 $(link-script-cppflags-$(sm)) $$< -o $$@
47 $(link-out-dir$(sm))/ldelf.elf: $(objs) $(libdeps) $(link-script-pp$(sm))
51 $(link-out-dir$(sm))/ldelf.dmp: $(link-out-dir$(sm))/ldelf.elf
56 $(eval $(call gen-link-t))