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
Unknown Object (File)
Tue, Nov 18, 3:08 AM
Unknown Object (File)
Tue, Nov 18, 3:04 AM
Unknown Object (File)
Sun, Nov 16, 6:29 PM
Unknown Object (File)
Sun, Nov 2, 1:13 PM
Unknown Object (File)
Sat, Nov 1, 12:41 AM
Unknown Object (File)
Sun, Oct 26, 1:40 PM
Unknown Object (File)
Sat, Oct 25, 1:11 AM
Unknown Object (File)
Fri, Oct 24, 10:03 AM
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