mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 06:36:46 +07:00
8817210d4d
Another try at this. For 32bit follow the 32bit implementation from Ingo - mappings are growing down from the end of stack now and vary randomly by 1GB. Randomized mappings for 64bit just vary the normal mmap break by 1TB. I didn't bother implementing full flex mmap for 64bit because it shouldn't be needed there. Cc: mingo@elte.hu Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
32 lines
959 B
Makefile
32 lines
959 B
Makefile
#
|
|
# Makefile for the ia32 kernel emulation subsystem.
|
|
#
|
|
|
|
obj-$(CONFIG_IA32_EMULATION) := ia32entry.o sys_ia32.o ia32_signal.o tls32.o \
|
|
ia32_binfmt.o fpu32.o ptrace32.o syscall32.o syscall32_syscall.o \
|
|
mmap32.o
|
|
|
|
sysv-$(CONFIG_SYSVIPC) := ipc32.o
|
|
obj-$(CONFIG_IA32_EMULATION) += $(sysv-y)
|
|
|
|
obj-$(CONFIG_IA32_AOUT) += ia32_aout.o
|
|
|
|
$(obj)/syscall32_syscall.o: \
|
|
$(foreach F,sysenter syscall,$(obj)/vsyscall-$F.so)
|
|
|
|
# Teach kbuild about targets
|
|
targets := $(foreach F,sysenter syscall,vsyscall-$F.o vsyscall-$F.so)
|
|
|
|
# The DSO images are built using a special linker script
|
|
quiet_cmd_syscall = SYSCALL $@
|
|
cmd_syscall = $(CC) -m32 -nostdlib -shared -s \
|
|
-Wl,-soname=linux-gate.so.1 -o $@ \
|
|
-Wl,-T,$(filter-out FORCE,$^)
|
|
|
|
$(obj)/vsyscall-sysenter.so $(obj)/vsyscall-syscall.so: \
|
|
$(obj)/vsyscall-%.so: $(src)/vsyscall.lds $(obj)/vsyscall-%.o FORCE
|
|
$(call if_changed,syscall)
|
|
|
|
AFLAGS_vsyscall-sysenter.o = -m32
|
|
AFLAGS_vsyscall-syscall.o = -m32
|