xref: /qemu/linux-user/arm/Makefile.vdso (revision a9f495b9)
1*a9f495b9SRichard Hendersoninclude $(BUILD_DIR)/tests/tcg/arm-linux-user/config-target.mak
2*a9f495b9SRichard Henderson
3*a9f495b9SRichard HendersonSUBDIR = $(SRC_PATH)/linux-user/arm
4*a9f495b9SRichard HendersonVPATH += $(SUBDIR)
5*a9f495b9SRichard Henderson
6*a9f495b9SRichard Hendersonall: $(SUBDIR)/vdso-be.so $(SUBDIR)/vdso-le.so
7*a9f495b9SRichard Henderson
8*a9f495b9SRichard Henderson# Adding -use-blx disables unneeded interworking without actually using blx.
9*a9f495b9SRichard HendersonLDFLAGS = -nostdlib -shared -Wl,-use-blx \
10*a9f495b9SRichard Henderson	  -Wl,-h,linux-vdso.so.1 -Wl,--build-id=sha1 \
11*a9f495b9SRichard Henderson	  -Wl,--hash-style=both -Wl,-T,$(SUBDIR)/vdso.ld
12*a9f495b9SRichard Henderson
13*a9f495b9SRichard Henderson$(SUBDIR)/vdso-be.so: vdso.S vdso.ld vdso-asmoffset.h
14*a9f495b9SRichard Henderson	$(CC) -o $@ $(LDFLAGS) -mbig-endian $<
15*a9f495b9SRichard Henderson
16*a9f495b9SRichard Henderson$(SUBDIR)/vdso-le.so: vdso.S vdso.ld vdso-asmoffset.h
17*a9f495b9SRichard Henderson	$(CC) -o $@ $(LDFLAGS) -mlittle-endian $<
18