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)
Sat, Jan 18, 12:30 AM
Unknown Object (File)
Dec 7 2024, 9:39 PM
Unknown Object (File)
Dec 5 2024, 2:13 PM
Unknown Object (File)
Nov 29 2024, 5:44 AM
Unknown Object (File)
Nov 28 2024, 12:21 PM
Unknown Object (File)
Nov 20 2024, 9:01 AM
Unknown Object (File)
Oct 22 2024, 7:34 PM
Unknown Object (File)
Oct 5 2024, 2:30 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