HomeFreeBSD

usr.bin/elfctl: Allow for cross-endian operations.

Description

usr.bin/elfctl: Allow for cross-endian operations.

Detect if host endian is different than target endian and swap
byte order of ELF note fields instead of failing.

Submitted by: Dawid Gorecki <dgr@semihalf.com>
Reviewed by: imp
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D29550

Details

Provenance
mwAuthored on May 21 2021, 9:19 AM
Reviewer
imp
Differential Revision
D29550: usr.bin/elfctl: Allow for cross-endian operations.
Parents
rG4eac63af23dd: Fix for use-after-free by if_ioctl() calls from user-space in USB drivers by
Branches
Unknown
Tags
Unknown