+2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ * readelf.c (dump_section_as_strings): Change pointers from
+ char * to unsigned char *.
+
2015-05-15 H.J. Lu <hongjiu.lu@intel.com>
PR binutis/18386
{
Elf_Internal_Shdr * relsec;
bfd_size_type num_bytes;
- char * data;
- char * end;
- char * real_start;
- char * start;
+ unsigned char * data;
+ unsigned char * end;
+ unsigned char * real_start;
+ unsigned char * start;
bfd_boolean some_strings_shown;
- real_start = start = get_section_contents (section, file);
+ real_start = start = (unsigned char *) get_section_contents (section,
+ file);
if (start == NULL)
return;
num_bytes = section->sh_size;
}
if (uncompressed_size
- && uncompress_section_contents ((unsigned char **) & start,
+ && uncompress_section_contents (& start,
uncompressed_size, & new_size))
num_bytes = new_size;
}
-
+
/* If the section being dumped has relocations against it the user might
be expecting these relocations to have been applied. Check for this
case and issue a warning message in order to avoid confusion.
#endif
if (maxlen > 0)
{
- print_symbol ((int) maxlen, data);
+ print_symbol ((int) maxlen, (const char *) data);
putchar ('\n');
- data += strnlen (data, maxlen);
+ data += strnlen ((const char *) data, maxlen);
}
else
{