diff options
author | jb <jb@FreeBSD.org> | 2008-05-23 07:35:36 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2008-05-23 07:35:36 +0000 |
commit | 82ed3e6d662f6a8c6918b6d42a5f4994cfb2d25c (patch) | |
tree | 746e0c712b03d99b61daf2b1c91b91b84c787d99 /lib/libelf/elf_strptr.c | |
parent | 5b8646dc2492198f61e3dd90f733e0a81e32f2d9 (diff) | |
download | FreeBSD-src-82ed3e6d662f6a8c6918b6d42a5f4994cfb2d25c.zip FreeBSD-src-82ed3e6d662f6a8c6918b6d42a5f4994cfb2d25c.tar.gz |
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.
Diffstat (limited to 'lib/libelf/elf_strptr.c')
-rw-r--r-- | lib/libelf/elf_strptr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libelf/elf_strptr.c b/lib/libelf/elf_strptr.c index 04cc624..e137622 100644 --- a/lib/libelf/elf_strptr.c +++ b/lib/libelf/elf_strptr.c @@ -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); |