riscv: vdso: do not strip debugging info for vdso.so.dbg
authorChangbin Du <changbin.du@huawei.com>
Tue, 11 Jun 2024 04:09:47 +0000 (12:09 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Sat, 14 Sep 2024 08:02:30 +0000 (01:02 -0700)
The vdso.so.dbg is a debug version of vdso and could be used for debugging
purpose. For example, perf-annotate requires debugging info to show source
lines. So let's keep its debugging info.

Signed-off-by: Changbin Du <changbin.du@huawei.com>
Reviewed-by: Cyril Bur <cyrilbur@tenstorrent.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20240611040947.3024710-1-changbin.du@huawei.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/vdso/Makefile

index f7ef8ad9b550d056458f519f8f3e3101e5ef4a4f..960feb1526caa00488726f2a5dfcd16143ba6c91 100644 (file)
@@ -45,7 +45,7 @@ $(obj)/vdso.o: $(obj)/vdso.so
 # link rule for the .so file, .lds has to be first
 $(obj)/vdso.so.dbg: $(obj)/vdso.lds $(obj-vdso) FORCE
        $(call if_changed,vdsold)
-LDFLAGS_vdso.so.dbg = -shared -S -soname=linux-vdso.so.1 \
+LDFLAGS_vdso.so.dbg = -shared -soname=linux-vdso.so.1 \
        --build-id=sha1 --hash-style=both --eh-frame-hdr
 
 # strip rule for the .so file