00cc2934b2
Requires a relatively recent binutils version in order to avoid spurious R_LARCH_NONE relocations. The presence of these relocs are diagnosed by our gen-vdso tool. Tested-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
12 lines
379 B
Makefile
12 lines
379 B
Makefile
include $(BUILD_DIR)/tests/tcg/loongarch64-linux-user/config-target.mak
|
|
|
|
SUBDIR = $(SRC_PATH)/linux-user/loongarch64
|
|
VPATH += $(SUBDIR)
|
|
|
|
all: $(SUBDIR)/vdso.so
|
|
|
|
$(SUBDIR)/vdso.so: vdso.S vdso.ld vdso-asmoffset.h
|
|
$(CC) -o $@ -nostdlib -shared -fpic -Wl,-h,linux-vdso.so.1 \
|
|
-Wl,--build-id=sha1 -Wl,--hash-style=both \
|
|
-Wl,--no-warn-rwx-segments -Wl,-T,$(SUBDIR)/vdso.ld $<
|