1include $(BUILD_DIR)/tests/tcg/aarch64-linux-user/config-target.mak 2 3SUBDIR = $(SRC_PATH)/linux-user/aarch64 4VPATH += $(SUBDIR) 5 6all: $(SUBDIR)/vdso-be.so $(SUBDIR)/vdso-le.so 7 8LDFLAGS = -nostdlib -shared -Wl,-h,linux-vdso.so.1 \ 9 -Wl,--build-id=sha1 -Wl,--hash-style=both \ 10 -Wl,-z,max-page-size=4096 -Wl,-T,$(SUBDIR)/vdso.ld 11 12$(SUBDIR)/vdso-be.so: vdso.S vdso.ld 13 $(CC) -o $@ $(LDFLAGS) -mbig-endian $< 14 15$(SUBDIR)/vdso-le.so: vdso.S vdso.ld 16 $(CC) -o $@ $(LDFLAGS) -mlittle-endian $< 17