aboutsummaryrefslogtreecommitdiff
path: root/linux-user/aarch64/Makefile.vdso
blob: 599958116b6b78b8e32bc06a3c9b0fa6dd5d6346 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
include $(BUILD_DIR)/tests/tcg/aarch64-linux-user/config-target.mak

SUBDIR = $(SRC_PATH)/linux-user/aarch64
VPATH += $(SUBDIR)

all: $(SUBDIR)/vdso-be.so $(SUBDIR)/vdso-le.so

LDFLAGS = -nostdlib -shared -Wl,-h,linux-vdso.so.1 -Wl,--build-id=sha1 \
	  -Wl,--hash-style=both -Wl,-T,$(SUBDIR)/vdso.ld

$(SUBDIR)/vdso-be.so: vdso.S vdso.ld
	$(CC) -o $@ $(LDFLAGS) -mbig-endian $<

$(SUBDIR)/vdso-le.so: vdso.S vdso.ld
	$(CC) -o $@ $(LDFLAGS) -mlittle-endian $<