Index: elfutils-0.122/src/readelf.c
===================================================================
--- elfutils-0.122.orig/src/readelf.c	2006-08-10 00:49:43.000000000 +0200
+++ elfutils-0.122/src/readelf.c	2006-08-10 00:54:03.000000000 +0200
@@ -1424,7 +1424,7 @@
 						   ? xndx : sym->st_shndx),
 				       &destshdr_mem);
 
-	      if (shdr == NULL)
+	      if (destshdr == NULL)
 		printf ("  %#0*" PRIx64 "  %-20s <%s %ld>\n",
 			class == ELFCLASS32 ? 10 : 18, rel->r_offset,
 			ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info))

