ELF Tool Chain/elftoolchain 3777 — trunk/elfcopy sections.c
elfcopy: Clear errors after fetching the shstrtab index. Otherwise a future call to elf_errno() will return a non-zero value. update_shdr(), for example, treats any errors associated with the ELF descriptor as fatal. Clear the error per the first example in elf_errmsg.3. Convert to elf_getshdrstrndx() while here since elf_getshstrndx() is apparently deprecated. Obtained from FreeBSD r349730 by markj.
Delta | File | |
---|---|---|
+3 | -1 | trunk/elfcopy/sections.c |
+3 | -1 | 1 files |