xref: /openbmc/qemu/linux-user/aarch64/Makefile.vdso (revision abb1565d3d863cf210f18f70c4a42b0f39b8ccdb)
1ee95fae0SRichard Hendersoninclude $(BUILD_DIR)/tests/tcg/aarch64-linux-user/config-target.mak
2ee95fae0SRichard Henderson
3ee95fae0SRichard HendersonSUBDIR = $(SRC_PATH)/linux-user/aarch64
4ee95fae0SRichard HendersonVPATH += $(SUBDIR)
5ee95fae0SRichard Henderson
6ee95fae0SRichard Hendersonall: $(SUBDIR)/vdso-be.so $(SUBDIR)/vdso-le.so
7ee95fae0SRichard Henderson
8*f19ec28dSRichard HendersonLDFLAGS = -nostdlib -shared -Wl,-h,linux-vdso.so.1 \
9*f19ec28dSRichard Henderson	  -Wl,--build-id=sha1 -Wl,--hash-style=both \
10*f19ec28dSRichard Henderson	  -Wl,-z,max-page-size=4096 -Wl,-T,$(SUBDIR)/vdso.ld
11ee95fae0SRichard Henderson
12ee95fae0SRichard Henderson$(SUBDIR)/vdso-be.so: vdso.S vdso.ld
13ee95fae0SRichard Henderson	$(CC) -o $@ $(LDFLAGS) -mbig-endian $<
14ee95fae0SRichard Henderson
15ee95fae0SRichard Henderson$(SUBDIR)/vdso-le.so: vdso.S vdso.ld
16ee95fae0SRichard Henderson	$(CC) -o $@ $(LDFLAGS) -mlittle-endian $<
17