arch/x86/entry/vdso/vdso32/Makefile

Source file repositories/reference/linux-study-clean/arch/x86/entry/vdso/vdso32/Makefile

File Facts

System
Linux kernel
Corpus path
arch/x86/entry/vdso/vdso32/Makefile
Extension
[no extension]
Size
778 bytes
Lines
30
Domain
Architecture Layer
Bucket
arch/x86
Inferred role
Architecture Layer: build/configuration rule
Status
atlas-only

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0
#
# 32-bit vDSO images for x86.
#

# The vDSOs built in this directory
vdsos-y			:= 32

# Files to link into the vDSO:
vobjs-y					:= note.o vclock_gettime.o vgetcpu.o
vobjs-y					+= system_call.o sigreturn.o
vobjs-$(CONFIG_FUTEX_ROBUST_UNLOCK)	+= vfutex.o

# Compilation flags
flags-y			:= -DBUILD_VDSO32 -m32 -mregparm=0
flags-$(CONFIG_X86_64)	+= -include $(src)/fake_32bit_build.h
flags-remove-y          := -m64

# Checker flags
CHECKFLAGS := $(subst -m64,-m32,$(CHECKFLAGS))
CHECKFLAGS := $(subst -D__x86_64__,-D__i386__,$(CHECKFLAGS))

# The location of this include matters!
include $(src)/../common/Makefile.include

# Linker options for the vdso
VDSO_LDFLAGS_32		:= -m elf_i386 -soname linux-gate.so.1

$(obj)/vdso32.so.dbg: $(vobjs)

Annotation

Implementation Notes