Skip to content

Commit 7587a36

Browse files
Changbin Dupalmer-dabbelt
authored andcommitted
riscv: vdso: do not strip debugging info for vdso.so.dbg
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>
1 parent 9ea7b92 commit 7587a36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/kernel/vdso/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $(obj)/vdso.o: $(obj)/vdso.so
4545
# link rule for the .so file, .lds has to be first
4646
$(obj)/vdso.so.dbg: $(obj)/vdso.lds $(obj-vdso) FORCE
4747
$(call if_changed,vdsold)
48-
LDFLAGS_vdso.so.dbg = -shared -S -soname=linux-vdso.so.1 \
48+
LDFLAGS_vdso.so.dbg = -shared -soname=linux-vdso.so.1 \
4949
--build-id=sha1 --hash-style=both --eh-frame-hdr
5050

5151
# strip rule for the .so file

0 commit comments

Comments
 (0)