2023-04-24 05:55:26 +08:00
|
|
|
ifeq ($(subdir),elf)
|
|
|
|
|
|
|
|
tests-map-32bit = \
|
|
|
|
tst-map-32bit-1a \
|
|
|
|
tst-map-32bit-1b \
|
2023-06-23 05:30:31 +08:00
|
|
|
tst-map-32bit-2 \
|
2023-04-24 05:55:26 +08:00
|
|
|
# tests-map-32bit
|
|
|
|
tst-map-32bit-1a-no-pie = yes
|
|
|
|
tst-map-32bit-1b-no-pie = yes
|
2023-06-23 05:30:31 +08:00
|
|
|
tst-map-32bit-2-no-pie = yes
|
2023-04-24 05:55:26 +08:00
|
|
|
tests += $(tests-map-32bit)
|
|
|
|
|
|
|
|
modules-map-32bit = \
|
|
|
|
tst-map-32bit-mod \
|
2023-06-23 05:30:31 +08:00
|
|
|
tst-map-32bit-mod-2 \
|
2023-04-24 05:55:26 +08:00
|
|
|
# modules-map-32bit
|
|
|
|
modules-names += $(modules-map-32bit)
|
|
|
|
|
|
|
|
$(objpfx)tst-map-32bit-mod.so: $(libsupport)
|
|
|
|
tst-map-32bit-1a-ENV = LD_PREFER_MAP_32BIT_EXEC=1
|
|
|
|
$(objpfx)tst-map-32bit-1a: $(objpfx)tst-map-32bit-mod.so
|
|
|
|
tst-map-32bit-1b-ENV = GLIBC_TUNABLES=glibc.cpu.prefer_map_32bit_exec=1
|
|
|
|
$(objpfx)tst-map-32bit-1b: $(objpfx)tst-map-32bit-mod.so
|
2023-06-23 05:30:31 +08:00
|
|
|
LDFLAGS-tst-map-32bit-mod-2.so += -Wl,-z,max-page-size=0x200000
|
|
|
|
$(objpfx)tst-map-32bit-mod-2.so: $(libsupport)
|
|
|
|
tst-map-32bit-2-ENV = LD_PREFER_MAP_32BIT_EXEC=1
|
|
|
|
$(objpfx)tst-map-32bit-2: $(objpfx)tst-map-32bit-mod-2.so
|
2023-04-24 05:55:26 +08:00
|
|
|
|
|
|
|
endif
|