HomeFreeBSD

kldxref: Reduce divergence between per-architecture files

Description

kldxref: Reduce divergence between per-architecture files

Note that relbase is always 0 for DSOs so its omission for __KLD_SHARED
architectures was not a bug in practice.

Whilst here, also parenthesise the dest offset for where to avoid
transiently creating an out-of-bounds pointer, which is UB (though even
on CHERI architectures, where capability bounds compression can result
in that creating invalid capabilities that will trap on dereference,
optimisation will reassociate to the correct form in practice and thus
work just fine).

Details

Provenance
jrtc27Authored on Dec 14 2023, 8:17 PM
Parents
rGaaba1490ec4b: kldxref: Implement aarch64 R_AARCH64_AB64 relocation
Branches
Unknown
Tags
Unknown