1include $(BUILD_DIR)/tests/tcg/loongarch64-linux-user/config-target.mak 2 3SUBDIR = $(SRC_PATH)/linux-user/loongarch64 4VPATH += $(SUBDIR) 5 6all: $(SUBDIR)/vdso.so 7 8$(SUBDIR)/vdso.so: vdso.S vdso.ld vdso-asmoffset.h 9 $(CC) -o $@ -nostdlib -shared -fpic -Wl,-h,linux-vdso.so.1 \ 10 -Wl,--build-id=sha1 -Wl,--hash-style=both \ 11 -Wl,--no-warn-rwx-segments -Wl,-z,max-page-size=4096 \ 12 -Wl,-T,$(SUBDIR)/vdso.ld $< 13