Mercurial > illumos > illumos-gate
changeset 9902:9aaacae03e43
6851224 elf_getshnum() and elf_getshstrndx() incompatible with 2002 ELF gABI agreement (fix build)
author | Ali Bahrami <Ali.Bahrami@Sun.COM> |
---|---|
date | Thu, 18 Jun 2009 16:33:30 -0600 |
parents | 6a754d578423 |
children | 32d4b092c572 |
files | usr/src/lib/libelfsign/common/elfsignlib.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/lib/libelfsign/common/elfsignlib.c Thu Jun 18 13:15:56 2009 -0700 +++ b/usr/src/lib/libelfsign/common/elfsignlib.c Thu Jun 18 16:33:30 2009 -0600 @@ -354,7 +354,7 @@ * Call elf_getshstrndx to be sure we have a real ELF object * this is required because elf_begin doesn't check that. */ - if (elf_getshdrstrndx(ess->es_elf, &ess->es_shstrndx) == -1) { + if (elf_getshstrndx(ess->es_elf, &ess->es_shstrndx) == 0) { elfsign_end(ess); cryptodebug("elfsign_begin: elf_getshstrndx failed"); return (ELFSIGN_INVALID_ELFOBJ);