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

(cherry picked from commit 4a27bf128b108d90412190c06a54ebac36a8ca2e)

Details

Provenance
mwAuthored on May 21 2021, 9:19 AM
emasteCommitted on Dec 12 2021, 6:59 PM
Reviewer
imp
Differential Revision
D29550: usr.bin/elfctl: Allow for cross-endian operations.
Parents
rG74156bb47cf0: net tests: fix if_stf:6to4
Branches
Unknown
Tags
Unknown