Skip to content

Commit 6522629

Browse files
t-8chIngo Molnar
authored andcommitted
sparc/vdso: Always reject undefined references 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> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: David S. Miller <davem@davemloft.net> Cc: Andreas Larsson <andreas@gaisler.com> Link: https://lore.kernel.org/r/20250306-vdso-checkundef-v2-2-a26cc315fd73@linutronix.de
1 parent c080f2b commit 6522629

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

arch/sparc/vdso/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ targets += $(foreach x, 32 64, vdso-image-$(x).c vdso$(x).so vdso$(x).so.dbg)
2222

2323
CPPFLAGS_vdso.lds += -P -C
2424

25-
VDSO_LDFLAGS_vdso.lds = -m elf64_sparc -soname linux-vdso.so.1 --no-undefined \
25+
VDSO_LDFLAGS_vdso.lds = -m elf64_sparc -soname linux-vdso.so.1 \
2626
-z max-page-size=8192
2727

2828
$(obj)/vdso64.so.dbg: $(obj)/vdso.lds $(vobjs) FORCE
@@ -101,7 +101,6 @@ $(obj)/vdso32.so.dbg: FORCE \
101101
quiet_cmd_vdso = VDSO $@
102102
cmd_vdso = $(LD) -nostdlib -o $@ \
103103
$(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \
104-
-T $(filter %.lds,$^) $(filter %.o,$^) && \
105-
sh $(src)/checkundef.sh '$(OBJDUMP)' '$@'
104+
-T $(filter %.lds,$^) $(filter %.o,$^)
106105

107-
VDSO_LDFLAGS = -shared --hash-style=both --build-id=sha1 -Bsymbolic
106+
VDSO_LDFLAGS = -shared --hash-style=both --build-id=sha1 -Bsymbolic --no-undefined

arch/sparc/vdso/checkundef.sh

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

0 commit comments

Comments
 (0)