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
F166556868: D20852.id59393.diff
Fri, Aug 14, 10:30 AM
F166460599: D20852.id59393.diff
Thu, Aug 13, 5:15 PM
F166460493: D20852.id59395.diff
Thu, Aug 13, 5:14 PM
Unknown Object (File)
Wed, Aug 12, 7:42 PM
Unknown Object (File)
Sat, Aug 8, 6:00 PM
Unknown Object (File)
Tue, Aug 4, 6:56 AM
Unknown Object (File)
Tue, Aug 4, 6:55 AM
Unknown Object (File)
Thu, Jul 30, 9:37 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