git: c97585565fe7 - stable/13 - loader: fix powerpc64le ofw loader
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Aug 2022 11:06:53 UTC
The branch stable/13 has been updated by alfredo: URL: https://cgit.FreeBSD.org/src/commit/?id=c97585565fe71559bd7332f51053f98a7e244bec commit c97585565fe71559bd7332f51053f98a7e244bec Author: Alfredo Dal'Ava Junior <alfredo@FreeBSD.org> AuthorDate: 2022-07-29 08:03:30 +0000 Commit: Alfredo Dal'Ava Junior <alfredo@FreeBSD.org> CommitDate: 2022-08-01 14:06:42 +0000 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) --- stand/powerpc/ofw/ldscript.powerpcle | 1 + 1 file changed, 1 insertion(+) diff --git a/stand/powerpc/ofw/ldscript.powerpcle b/stand/powerpc/ofw/ldscript.powerpcle index 813459b8c242..47fe96e0233f 100644 --- a/stand/powerpc/ofw/ldscript.powerpcle +++ b/stand/powerpc/ofw/ldscript.powerpcle @@ -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)