2021-07-06 19:55:12 +03:00
|
|
|
include $(BUILD_DIR)/tests/tcg/arm-linux-user/config-target.mak
|
|
|
|
|
|
|
|
SUBDIR = $(SRC_PATH)/linux-user/arm
|
|
|
|
VPATH += $(SUBDIR)
|
|
|
|
|
2024-11-13 19:59:54 +03:00
|
|
|
all: $(SUBDIR)/vdso-be8.so $(SUBDIR)/vdso-be32.so $(SUBDIR)/vdso-le.so
|
2021-07-06 19:55:12 +03:00
|
|
|
|
|
|
|
# Adding -use-blx disables unneeded interworking without actually using blx.
|
2024-11-12 22:51:00 +03:00
|
|
|
LDFLAGS = -nostdlib -shared -Wl,-use-blx -Wl,-z,max-page-size=4096 \
|
2021-07-06 19:55:12 +03:00
|
|
|
-Wl,-h,linux-vdso.so.1 -Wl,--build-id=sha1 \
|
|
|
|
-Wl,--hash-style=both -Wl,-T,$(SUBDIR)/vdso.ld
|
|
|
|
|
2024-11-13 19:59:54 +03:00
|
|
|
$(SUBDIR)/vdso-be8.so: vdso.S vdso.ld vdso-asmoffset.h
|
|
|
|
$(CC) -o $@ $(LDFLAGS) -mbig-endian -mbe8 $<
|
|
|
|
|
|
|
|
$(SUBDIR)/vdso-be32.so: vdso.S vdso.ld vdso-asmoffset.h
|
|
|
|
$(CC) -o $@ $(LDFLAGS) -mbig-endian -mbe32 $<
|
2021-07-06 19:55:12 +03:00
|
|
|
|
|
|
|
$(SUBDIR)/vdso-le.so: vdso.S vdso.ld vdso-asmoffset.h
|
|
|
|
$(CC) -o $@ $(LDFLAGS) -mlittle-endian $<
|