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 <[email protected]> Reviewed-by: Cyril Bur <[email protected]> Reviewed-by: Alexandre Ghiti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 9ea7b92 commit 7587a36

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
@@ -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)