Skip to content

Commit 775f77d

Browse files
authored
elf: Print DT_RUNPATH as text (#46) closes #43
1 parent bccc19d commit 775f77d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/format_elf.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,12 @@ impl<'bytes> Elf<'bytes> {
432432
use dynamic::{
433433
tag_to_str, DT_FINI, DT_FINI_ARRAY, DT_FINI_ARRAYSZ, DT_GNU_HASH, DT_INIT,
434434
DT_INIT_ARRAY, DT_INIT_ARRAYSZ, DT_JMPREL, DT_NEEDED, DT_PLTGOT, DT_PLTRELSZ, DT_RELA,
435-
DT_RELASZ, DT_RPATH, DT_STRSZ, DT_STRTAB, DT_SYMTAB, DT_VERNEED, DT_VERSYM,
435+
DT_RELASZ, DT_RPATH, DT_RUNPATH, DT_STRSZ, DT_STRTAB, DT_SYMTAB, DT_VERNEED, DT_VERSYM,
436436
};
437437

438438
fmt_cyan(fmt, &format!("{:>16} ", tag_to_str(dyn_sym.d_tag)))?;
439439
match dyn_sym.d_tag {
440-
DT_RPATH => {
440+
DT_RPATH | DT_RUNPATH => {
441441
let val = usize::try_from(dyn_sym.d_val)?;
442442
let name = self.elf.dynstrtab.get_at(val).unwrap_or("<error>");
443443
fmt_string(fmt, &self.args, name)?;

0 commit comments

Comments
 (0)