Permalink
Browse files

More useful output if your DSO is busted.

This seems to be useful only on gentoo. Maybe because gentoo's strip binary
doesn't create a debuglink section after stripping? Didn't actually look at
gentoo's strip ebuild, so i dunno.
  • Loading branch information...
ice799 committed Apr 26, 2010
1 parent fbe73be commit 6753ef0fcfa8d91217463062995b865ad5bcfb83
Showing with 5 additions and 1 deletion.
  1. +5 −1 ext/elf.c
View
@@ -1197,7 +1197,11 @@ dissect_elf(struct elf_info *info, int find_debug)
out:
if (find_debug && ret == 1) {
- find_debug_syms(info);
+ if (info->debuglink_addr) {
+ find_debug_syms(info);
+ } else {
+ dbg_printf("=== WARNING: Object %s was STRIPPED and had no debuglink section. Nothing left to try.", info->filename);
+ }
}
return ret;
}

0 comments on commit 6753ef0

Please sign in to comment.