git: f94f593ca78b - stable/13 - stand/kboot: Fix the linker script OUTPUT_FORMAT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Jul 2024 12:38:24 UTC
The branch stable/13 has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=f94f593ca78b77ca2ea2c4e7a983a8de0d9709f3
commit f94f593ca78b77ca2ea2c4e7a983a8de0d9709f3
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2024-05-22 08:17:52 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-07-15 12:34:29 +0000
stand/kboot: Fix the linker script OUTPUT_FORMAT
ld.bfd doesn't understand elf64-aarch64 but does have
elf64-littleaarch64. Switch to this so we can link kboot with it.
While here switch to the single format version. We are unlikely to
support booting from a big-endian Linux.
Reviewed by: imp, emaste
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D45258
(cherry picked from commit 8e82c5e28db6fb19f75d10fd2e7c3db784723f1f)
---
stand/kboot/arch/aarch64/ldscript.aarch64 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stand/kboot/arch/aarch64/ldscript.aarch64 b/stand/kboot/arch/aarch64/ldscript.aarch64
index 62b7d2b6be01..efe787164c20 100644
--- a/stand/kboot/arch/aarch64/ldscript.aarch64
+++ b/stand/kboot/arch/aarch64/ldscript.aarch64
@@ -1,4 +1,4 @@
-OUTPUT_FORMAT("elf64-aarch64", "elf64-aarch64", "elf64-aarch64")
+OUTPUT_FORMAT("elf64-littleaarch64")
OUTPUT_ARCH(aarch64)
ENTRY(_start)
SECTIONS