Makefile (98817a84ff1c755c347ac633ff017a623a631fad) Makefile (893ab00439a45513cae55781fc8e3b7108ee1cda)
1# SPDX-License-Identifier: GPL-2.0
2# Objects to go into the VDSO.
3
4# Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before
5# the inclusion of generic Makefile.
6ARCH_REL_TYPE_ABS := R_MIPS_JUMP_SLOT|R_MIPS_GLOB_DAT
7include $(srctree)/lib/vdso/Makefile
8

--- 21 unchanged lines hidden (view full) ---

30# The -fno-jump-tables flag only prevents the compiler from generating
31# jump tables but does not prevent the compiler from emitting absolute
32# offsets.
33cflags-vdso := $(ccflags-vdso) \
34 $(filter -W%,$(filter-out -Wa$(comma)%,$(KBUILD_CFLAGS))) \
35 -O3 -g -fPIC -fno-strict-aliasing -fno-common -fno-builtin -G 0 \
36 -mrelax-pic-calls $(call cc-option, -mexplicit-relocs) \
37 -fno-stack-protector -fno-jump-tables -DDISABLE_BRANCH_PROFILING \
1# SPDX-License-Identifier: GPL-2.0
2# Objects to go into the VDSO.
3
4# Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before
5# the inclusion of generic Makefile.
6ARCH_REL_TYPE_ABS := R_MIPS_JUMP_SLOT|R_MIPS_GLOB_DAT
7include $(srctree)/lib/vdso/Makefile
8

--- 21 unchanged lines hidden (view full) ---

30# The -fno-jump-tables flag only prevents the compiler from generating
31# jump tables but does not prevent the compiler from emitting absolute
32# offsets.
33cflags-vdso := $(ccflags-vdso) \
34 $(filter -W%,$(filter-out -Wa$(comma)%,$(KBUILD_CFLAGS))) \
35 -O3 -g -fPIC -fno-strict-aliasing -fno-common -fno-builtin -G 0 \
36 -mrelax-pic-calls $(call cc-option, -mexplicit-relocs) \
37 -fno-stack-protector -fno-jump-tables -DDISABLE_BRANCH_PROFILING \
38 $(call cc-option, -fno-asynchronous-unwind-tables) \
39 $(call cc-option, -fno-stack-protector)
38 $(call cc-option, -fno-asynchronous-unwind-tables)
40aflags-vdso := $(ccflags-vdso) \
41 -D__ASSEMBLY__ -Wa,-gdwarf-2
42
43ifneq ($(c-gettimeofday-y),)
44CFLAGS_vgettimeofday.o = -include $(c-gettimeofday-y)
45
46# config-n32-o32-env.c prepares the environment to build a 32bit vDSO
47# library on a 64bit kernel.

--- 165 unchanged lines hidden ---
39aflags-vdso := $(ccflags-vdso) \
40 -D__ASSEMBLY__ -Wa,-gdwarf-2
41
42ifneq ($(c-gettimeofday-y),)
43CFLAGS_vgettimeofday.o = -include $(c-gettimeofday-y)
44
45# config-n32-o32-env.c prepares the environment to build a 32bit vDSO
46# library on a 64bit kernel.

--- 165 unchanged lines hidden ---