Skip to content

Commit 90daca7

Browse files
t-8chjmberg-intel
authored andcommitted
um: vdso: Always reject undefined references in during linking
Instead of using a custom script to detect and fail on undefined references, use --no-undefined for all VDSO linker invocations. Drop the now unused checkundef.sh script. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Link: https://patch.msgid.link/20241011-vdso-checkundef-v1-2-1a46e0352d20@linutronix.de Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent b9ee5fc commit 90daca7

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

arch/x86/um/vdso/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ CFLAGS_REMOVE_um_vdso.o = -pg -fprofile-arcs -ftest-coverage
5656
quiet_cmd_vdso = VDSO $@
5757
cmd_vdso = $(CC) -nostdlib -o $@ \
5858
$(CC_FLAGS_LTO) $(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \
59-
-Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) && \
60-
sh $(src)/checkundef.sh '$(NM)' '$@'
59+
-Wl,-T,$(filter %.lds,$^) $(filter %.o,$^)
6160

62-
VDSO_LDFLAGS = -fPIC -shared -Wl,--hash-style=sysv -z noexecstack
61+
VDSO_LDFLAGS = -fPIC -shared -Wl,--hash-style=sysv -z noexecstack -Wl,--no-undefined

arch/x86/um/vdso/checkundef.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)