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, Dec 30, 2:50 PM
Unknown Object (File)
Mon, Dec 22, 2:03 PM
Unknown Object (File)
Mon, Dec 22, 2:22 AM
Unknown Object (File)
Thu, Dec 4, 1:41 AM
Unknown Object (File)
Nov 26 2025, 9:21 PM
Unknown Object (File)
Nov 20 2025, 10:15 PM
Unknown Object (File)
Nov 20 2025, 10:14 PM
Unknown Object (File)
Nov 20 2025, 10:11 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

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 25198
Build 23878: arc lint + arc unit