Browse code

Adjust calls to displayStringTableForSection().

Xavier G authored on 10/09/2015 01:15:41
Showing 1 changed files
... ...
@@ -2757,7 +2757,7 @@ sub walkSymbolTable {
2757 2757
 	my $count = $section->{'sh_size'} / $section->{'sh_entsize'};
2758 2758
 
2759 2759
 	# Where should we read names from?
2760
-	my $strtab = displayStringTableForSection($ind, $elf_data, $section_index);
2760
+	my $strtab = displayStringTableForSection($ind, $elf_data, $section_index, 'Symbol names');
2761 2761
 
2762 2762
 	my $arch = $elf_data->{'EI_CLASS'};
2763 2763
 	my $st_info = $elf_structures->{'symbol_table'}->{$arch};
... ...
@@ -3085,7 +3085,7 @@ sub walkDynamic {
3085 3085
 	return if (!defined($section));
3086 3086
 
3087 3087
 	# Where should we read names from?
3088
-	my $strtab = displayStringTableForSection($ind, $elf_data, $section_index);
3088
+	my $strtab = displayStringTableForSection($ind, $elf_data, $section_index, 'Library names');
3089 3089
 
3090 3090
 	# What kind of entries do we intend to read?
3091 3091
 	my $arch = $elf_data->{'EI_CLASS'};
... ...
@@ -3169,7 +3169,7 @@ sub walkVerdef {
3169 3169
 	sayf($ind, 'This section contains DT_VERDEFNUM = %d entries.', $dt_verdefnum);
3170 3170
 
3171 3171
 	# Where should we read names from?
3172
-	my $strtab = displayStringTableForSection($ind, $elf_data, $section_index);
3172
+	my $strtab = displayStringTableForSection($ind, $elf_data, $section_index, 'Version strings and library names');
3173 3173
 
3174 3174
 	my $offset = $section->{'sh_offset'};
3175 3175
 	sayf($ind, 'Seeking to offset sh_offset = %s', formatOffset($offset));
... ...
@@ -3230,7 +3230,7 @@ sub walkVerneed {
3230 3230
 	sayf($ind, 'This section contains DT_VERNEEDNUM = %d entries.', $dt_verneednum);
3231 3231
 
3232 3232
 	# Where should we read names from?
3233
-	my $strtab = displayStringTableForSection($ind, $elf_data, $section_index);
3233
+	my $strtab = displayStringTableForSection($ind, $elf_data, $section_index, 'Version strings and library names');
3234 3234
 
3235 3235
 	my $offset = $section->{'sh_offset'};
3236 3236
 	sayf($ind, 'Seeking to offset sh_offset = %s', formatOffset($offset));