Browse code

walkDynamic(): display the value of DT_SONAME.

Xavier G authored on10/09/2015 01:25:08
Showing1 changed files

  • elfwalk index 649da38..a4d0219 100755
... ...
@@ -3110,7 +3110,7 @@ sub walkDynamic {
3110 3110
 					# An entry with a DT_NULL tag marks the end of the _DYNAMIC array.
3111 3111
 					last dynamic_array;
3112 3112
 				}
3113
-				elsif ($tag_value == 1) { # DT_NEEDED
3113
+				elsif ($tag_value == 1 || $tag_value == 14) { # DT_NEEDED or DT_SONAME
3114 3114
 					# "The offset is an index into the table recorded in the DT_STRTAB code."
3115 3115
 					# ... except we are liable to read a DT_NEEDED entry before
3116 3116
 					# stumbling upon the DT_STRTAB one.