Skip to content

Commit 2940954

Browse files
xry111palmer-dabbelt
authored andcommitted
riscv: vDSO: Remove --hash-style=both
When RISC-V borned, DT_GNU_HASH had already became the de-facto standard so DT_HASH is just wasting storage space. Remove the explicit --hash-style=both setting and rely on the distro toolchain default, which is most likely "gnu" (i.e. generating only DT_GNU_HASH, no DT_HASH). Following the logic of commit 48f6430 ("arm64/vdso: Remove --hash-style=sysv"). Signed-off-by: Xi Ruoyao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 259aaf0 commit 2940954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/vdso/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ $(obj)/vdso.o: $(obj)/vdso.so
5959
$(obj)/vdso.so.dbg: $(obj)/vdso.lds $(obj-vdso) FORCE
6060
$(call if_changed,vdsold_and_check)
6161
LDFLAGS_vdso.so.dbg = -shared -soname=linux-vdso.so.1 \
62-
--build-id=sha1 --hash-style=both --eh-frame-hdr
62+
--build-id=sha1 --eh-frame-hdr
6363

6464
# strip rule for the .so file
6565
$(obj)/%.so: OBJCOPYFLAGS := -S

0 commit comments

Comments
 (0)