31807d
--- ./src/do_md.c	2018-03-19 05:10:19.994957024 -0400
31807d
+++ ./src/do_md.c	2018-03-19 05:19:05.829957024 -0400
31807d
@@ -135,8 +135,13 @@
31807d
                         continue;
31807d
 
31807d
                 while (!bingo && (data = elf_getdata (scn, data)) != NULL) {
31807d
-                        int maxndx = data->d_size / shdr.sh_entsize;
31807d
+                        int maxndx;
31807d
                         int ndx;
31807d
+			
31807d
+                        if (shdr.sh_entsize != 0)
31807d
+                                maxndx = data->d_size / shdr.sh_entsize;
31807d
+                        else
31807d
+                                continue;
31807d
 
31807d
                         for (ndx = 0; ndx < maxndx; ++ndx) {
31807d
                                 (void) gelf_getdyn (data, ndx, &dyn);