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)
Wed, Oct 7, 3:41 AM
Unknown Object (File)
Thu, Oct 1, 4:48 AM
Unknown Object (File)
Sat, Sep 26, 1:56 AM
Unknown Object (File)
Sat, Sep 26, 1:12 AM
Unknown Object (File)
Sat, Sep 26, 1:00 AM
Unknown Object (File)
Fri, Sep 25, 10:38 PM
Unknown Object (File)
Thu, Sep 24, 6:47 PM
Unknown Object (File)
Wed, Sep 23, 12:13 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

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