summaryrefslogtreecommitdiff
path: root/usr/src/cmd/dis
diff options
context:
space:
mode:
authorrie <none@none>2006-07-12 11:16:11 -0700
committerrie <none@none>2006-07-12 11:16:11 -0700
commit161d9479d65efe70fd8e3fb443027646ce1a5990 (patch)
tree3bf23f1563930121999de15247e6c7ccf4cf9d5f /usr/src/cmd/dis
parent4981797ae67e4f2ead1ba1baf282c02105113459 (diff)
downloadillumos-joyent-161d9479d65efe70fd8e3fb443027646ce1a5990.tar.gz
6446740 allow mapfile symbol definitions to create backing storage (missing file)
4986360 linker crash on exec of .so (as opposed to a.out) -- error preferred (missing file)
Diffstat (limited to 'usr/src/cmd/dis')
-rw-r--r--usr/src/cmd/dis/dis_target.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/dis/dis_target.c b/usr/src/cmd/dis/dis_target.c
index 7ef0c46060..a8cc6ed02f 100644
--- a/usr/src/cmd/dis/dis_target.c
+++ b/usr/src/cmd/dis/dis_target.c
@@ -730,9 +730,9 @@ dis_tgt_function_iter(dis_tgt_t *tgt, function_iter_f func, void *data)
/* ignore non-functions */
if ((GELF_ST_TYPE(sym->se_sym.st_info) != STT_FUNC) ||
- sym->se_name == NULL ||
- sym->se_sym.st_size == 0 ||
- sym->se_shndx == -1)
+ (sym->se_name == NULL) ||
+ (sym->se_sym.st_size == 0) ||
+ (sym->se_shndx >= SHN_LORESERVE))
continue;
/* get the ELF data associated with this function */