Relax the strict type check because gcc as distributed doesn't create

debug strtabs with type SHT_STRTAB. Although we could change FreeBSD's
gcc, we really need to play nicely with gcc as distributed by the FSF.
This commit is contained in:
John Birrell 2008-05-23 07:35:36 +00:00
parent 7d15d0a9c6
commit 9445f413ee

View File

@ -55,7 +55,7 @@ elf_strptr(Elf *e, size_t scndx, size_t offset)
gelf_getshdr(s, &shdr) == NULL)
return (NULL);
if (shdr.sh_type != SHT_STRTAB ||
if (/*shdr.sh_type != SHT_STRTAB || */
offset >= shdr.sh_size) {
LIBELF_SET_ERROR(ARGUMENT, 0);
return (NULL);