Page MenuHomeFreeBSD

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

Authored by jrtc27 on Oct 29 2021, 3:26 PM.
Tags
None
Referenced Files
F132666926: D32734.id97671.diff
Sat, Oct 18, 9:46 PM
Unknown Object (File)
Mon, Oct 13, 11:24 AM
Unknown Object (File)
Mon, Oct 13, 11:24 AM
Unknown Object (File)
Mon, Oct 13, 11:24 AM
Unknown Object (File)
Sun, Oct 12, 10:45 PM
Unknown Object (File)
Sun, Oct 12, 3:59 AM
Unknown Object (File)
Wed, Sep 24, 12:14 AM
Unknown Object (File)
Sep 3 2025, 3:45 PM
Subscribers

Details

Summary

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.")
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable