HomeFreeBSD

loader: fix powerpc* ofw loader

Description

loader: fix powerpc* ofw loader

With the introduction of llvm14, the powerpc* loader used on ofw/pseries
for 32 and 64 bit architectures puts the .data.rel.ro section after
.data section. This caused a crash kernel didn't boot. Bisect pointed to
change https://reviews.llvm.org/D111717 but problem could be fixed by
adding a section description to make it appear in the expected order.

This patch is based on discussion at:

https://github.com/llvm/llvm-project/issues/56306

MFC after: 1 day
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)

(cherry picked from commit 5d48fb3b16c1496bf415fee620c61cc944b0326d)

Details

Provenance
alfredoAuthored on Jul 1 2022, 3:54 PM
Parents
rG67f8b6d985db: loader: GELI encrypted disk should still use device name disk
Branches
Unknown
Tags
Unknown