Skip to content

Commit 02433cf

Browse files
fix(profiling): skip ld-musl dynamic linker when hooking ELF GOT
1 parent ecca78f commit 02433cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

profiling/src/io/got_elf64.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ pub unsafe extern "C" fn callback(
225225
.unwrap_or("[Unknown]")
226226
};
227227

228-
// I guess if we try to hook into GOT from `linux-vdso` or `ld-linux` our best outcome will be
229-
// that nothing happens, but most likely we'll crash and we should avoid that.
230-
if name.contains("linux-vdso") || name.contains("ld-linux") {
228+
// I guess if we try to hook into GOT from `linux-vdso`, `ld-linux` or `ld-musl` our best
229+
// outcome will be that nothing happens, but most likely we'll crash and we should avoid that.
230+
if name.contains("linux-vdso") || name.contains("ld-linux") || name.contains("ld-musl") {
231231
return 0;
232232
}
233233

0 commit comments

Comments
 (0)