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