HomeFreeBSD

arm64: Don't rely on host readelf for u-boot booti image generation

Description

arm64: Don't rely on host readelf for u-boot booti image generation

readelf is not a bootstrap tool and so cannot be relied upon to exist.
On macOS there is no system readelf, and even on Linux or FreeBSD where
it does exist, BUILD_WITH_STRICT_TMPPATH builds won't be able to use it.
Instead of making it a bootstrap tool, just use nm as that suffices and
already is a bootstrap tool.

Fixes: 28482babd08a ("arm64: Use new arm_kernel_boothdr script for generating booti images.")
Reviewed by: emaste, mmel
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D32734

(cherry picked from commit 1846bbd1b34e0269e0edd829dcff4729b37a149b)

Details

Provenance
jrtc27Authored on Dec 24 2021, 7:25 PM
Reviewer
emaste
Differential Revision
D32734: arm64: Don't rely on host readelf for u-boot booti image generation
Parents
rG3c7f332f716d: Fix buffer overread in preloaded hostuuid parsing
Branches
Unknown
Tags
Unknown