mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
loader: fix powerpc64le ofw loader
This is similar to 5d48fb3b16
.
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)
This commit is contained in:
parent
42736dc44d
commit
0df5a06864
|
@ -57,6 +57,7 @@ SECTIONS
|
|||
.sbss2 : { *(.sbss2) }
|
||||
/* Adjust the address for the data segment to the next page up. */
|
||||
. = ((. + 0x1000) & ~(0x1000 - 1));
|
||||
.data.rel.ro : { *(.data.rel.ro*) }
|
||||
.data :
|
||||
{
|
||||
*(.data)
|
||||
|
|
Loading…
Reference in a new issue