File tree 12 files changed +14
-39
lines changed
12 files changed +14
-39
lines changed Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0
2
2
3
- # Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before
4
- # the inclusion of generic Makefile.
5
- ARCH_REL_TYPE_ABS := R_ARM_JUMP_SLOT|R_ARM_GLOB_DAT|R_ARM_ABS32
3
+ # Include the generic Makefile to check the built vdso.
6
4
include $(srctree ) /lib/vdso/Makefile
7
5
8
6
hostprogs := vdsomunge
Original file line number Diff line number Diff line change 6
6
# Heavily based on the vDSO Makefiles for other archs.
7
7
#
8
8
9
- # Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before
10
- # the inclusion of generic Makefile.
11
- ARCH_REL_TYPE_ABS := R_AARCH64_JUMP_SLOT|R_AARCH64_GLOB_DAT|R_AARCH64_ABS64
9
+ # Include the generic Makefile to check the built vdso.
12
10
include $(srctree ) /lib/vdso/Makefile
13
11
14
12
obj-vdso := vgettimeofday.o note.o sigreturn.o
Original file line number Diff line number Diff line change 3
3
# Makefile for vdso32
4
4
#
5
5
6
- # Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before
7
- # the inclusion of generic Makefile.
8
- ARCH_REL_TYPE_ABS := R_ARM_JUMP_SLOT|R_ARM_GLOB_DAT|R_ARM_ABS32
9
6
include $(srctree ) /lib/vdso/Makefile
10
7
11
8
# Same as cc-*option, but using CC_COMPAT instead of CC
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0-only
2
2
3
- # Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before
4
- # the inclusion of generic Makefile.
5
- ARCH_REL_TYPE_ABS := R_CKCORE_ADDR32|R_CKCORE_JUMP_SLOT
3
+ # Include the generic Makefile to check the built vdso.
6
4
include $(srctree ) /lib/vdso/Makefile
7
5
8
6
# Symbols present in the vdso
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0
2
2
# Objects to go into the VDSO.
3
3
4
- # Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before
5
- # the inclusion of generic Makefile.
6
- ARCH_REL_TYPE_ABS := R_LARCH_32|R_LARCH_64|R_LARCH_MARK_LA|R_LARCH_JUMP_SLOT
4
+ # Include the generic Makefile to check the built vdso.
7
5
include $(srctree ) /lib/vdso/Makefile
8
6
9
7
obj-vdso-y := elf.o vgetcpu.o vgettimeofday.o sigreturn.o
Original file line number Diff line number Diff line change 4
4
# Sanitizer runtimes are unavailable and cannot be linked here.
5
5
KCSAN_SANITIZE := n
6
6
7
- # Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before
8
- # the inclusion of generic Makefile.
9
- ARCH_REL_TYPE_ABS := R_MIPS_JUMP_SLOT|R_MIPS_GLOB_DAT
7
+ # Include the generic Makefile to check the built vdso.
10
8
include $(srctree ) /lib/vdso/Makefile
11
9
12
10
obj-vdso-y := elf.o vgettimeofday.o sigreturn.o
Original file line number Diff line number Diff line change 2
2
3
3
# List of files in the vdso, has to be asm only for now
4
4
5
- ARCH_REL_TYPE_ABS := R_PPC_JUMP_SLOT|R_PPC_GLOB_DAT|R_PPC_ADDR32|R_PPC_ADDR24|R_PPC_ADDR16|R_PPC_ADDR16_LO|R_PPC_ADDR16_HI|R_PPC_ADDR16_HA|R_PPC_ADDR14|R_PPC_ADDR14_BRTAKEN|R_PPC_ADDR14_BRNTAKEN|R_PPC_REL24
5
+ # Include the generic Makefile to check the built vdso.
6
6
include $(srctree ) /lib/vdso/Makefile
7
7
8
8
obj-vdso32 = sigtramp32-32.o gettimeofday-32.o datapage-32.o cacheflush-32.o note-32.o getcpu-32.o
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0-only
2
2
# Copied from arch/tile/kernel/vdso/Makefile
3
3
4
- # Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before
5
- # the inclusion of generic Makefile.
6
- ARCH_REL_TYPE_ABS := R_RISCV_32|R_RISCV_64|R_RISCV_JUMP_SLOT
4
+ # Include the generic Makefile to check the built vdso.
7
5
include $(srctree ) /lib/vdso/Makefile
8
6
# Symbols present in the vdso
9
7
vdso-syms = rt_sigreturn
Original file line number Diff line number Diff line change 2
2
# List of files in the vdso
3
3
4
4
KCOV_INSTRUMENT := n
5
- ARCH_REL_TYPE_ABS := R_390_COPY|R_390_GLOB_DAT|R_390_JMP_SLOT|R_390_RELATIVE
6
- ARCH_REL_TYPE_ABS += R_390_GOT|R_390_PLT
7
5
6
+ # Include the generic Makefile to check the built vdso.
8
7
include $(srctree ) /lib/vdso/Makefile
9
8
obj-vdso32 = vdso_user_wrapper-32.o note-32.o
10
9
Original file line number Diff line number Diff line change 2
2
# List of files in the vdso
3
3
4
4
KCOV_INSTRUMENT := n
5
- ARCH_REL_TYPE_ABS := R_390_COPY|R_390_GLOB_DAT|R_390_JMP_SLOT|R_390_RELATIVE
6
- ARCH_REL_TYPE_ABS += R_390_GOT|R_390_PLT
7
5
6
+ # Include the generic Makefile to check the built vdso.
8
7
include $(srctree ) /lib/vdso/Makefile
9
8
obj-vdso64 = vdso_user_wrapper.o note.o
10
9
obj-cvdso64 = vdso64_generic.o getcpu.o
Original file line number Diff line number Diff line change 3
3
# Building vDSO images for x86.
4
4
#
5
5
6
- # Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before
7
- # the inclusion of generic Makefile.
8
- ARCH_REL_TYPE_ABS := R_X86_64_JUMP_SLOT|R_X86_64_GLOB_DAT|R_X86_64_RELATIVE|
9
- ARCH_REL_TYPE_ABS += R_386_GLOB_DAT|R_386_JMP_SLOT|R_386_RELATIVE
6
+ # Include the generic Makefile to check the built vdso.
10
7
include $(srctree ) /lib/vdso/Makefile
11
8
12
9
# Sanitizer runtimes are unavailable and cannot be linked here.
Original file line number Diff line number Diff line change @@ -5,18 +5,13 @@ GENERIC_VDSO_DIR := $(dir $(GENERIC_VDSO_MK_PATH))
5
5
6
6
c-gettimeofday-$(CONFIG_GENERIC_GETTIMEOFDAY) := $(addprefix $(GENERIC_VDSO_DIR ) , gettimeofday.c)
7
7
8
- # This cmd checks that the vdso library does not contain absolute relocation
8
+ # This cmd checks that the vdso library does not contain dynamic relocations.
9
9
# It has to be called after the linking of the vdso library and requires it
10
10
# as a parameter.
11
11
#
12
- # $(ARCH_REL_TYPE_ABS) is defined in the arch specific makefile and corresponds
13
- # to the absolute relocation types printed by "objdump -R" and accepted by the
14
- # dynamic linker.
15
- ifndef ARCH_REL_TYPE_ABS
16
- $(error ARCH_REL_TYPE_ABS is not set)
17
- endif
18
-
12
+ # As a workaround for some GNU ld ports which produce unneeded R_*_NONE
13
+ # dynamic relocations, ignore R_*_NONE.
19
14
quiet_cmd_vdso_check = VDSOCHK $@
20
- cmd_vdso_check = if $(OBJDUMP ) -R $@ | grep -E -h " $( ARCH_REL_TYPE_ABS ) "; \
15
+ cmd_vdso_check = if $(READELF ) -rW $@ | grep -v _NONE | grep -q " R_\w*_ "; \
21
16
then (echo >&2 "$@ : dynamic relocations are not supported"; \
22
17
rm -f $@ ; /bin/false); fi
You can’t perform that action at this time.
0 commit comments