HomeFreeBSD

loader: fix powerpc64le ofw loader

Description

loader: fix powerpc64le ofw loader

This is similar to 5d48fb3b16c1496bf415fee620c61cc944b0326d.
With LLVM14 the .data.rel.ro ELF section appears after .data,
making loader behave erractly and kernel is not loaded.
This patch makes ensures the correct order.

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 0df5a06864b351ac44a87246acc473e446da1163)

Details

Provenance
alfredoAuthored on Jul 29 2022, 8:03 AM
Parents
rG8445e3d50ee2: rb_tree: fine-tune rebalancing code
Branches
Unknown
Tags
Unknown