Page MenuHomeFreeBSD

elfcopy: Clear errors after fetching the shstrtab index.
ClosedPublic

Authored by markj on Jul 4 2019, 2:55 PM.
Tags
None
Referenced Files
F82076011: D20852.diff
Thu, Apr 25, 7:09 AM
Unknown Object (File)
Mon, Apr 22, 2:49 PM
Unknown Object (File)
Fri, Apr 19, 1:04 PM
Unknown Object (File)
Thu, Apr 18, 3:29 PM
Unknown Object (File)
Thu, Apr 18, 4:43 AM
Unknown Object (File)
Wed, Apr 10, 3:40 AM
Unknown Object (File)
Sat, Apr 6, 10:18 PM
Unknown Object (File)
Fri, Apr 5, 7:53 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable