aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@FreeBSD.org>2025-11-25 04:29:22 +0000
committerJessica Clarke <jrtc27@FreeBSD.org>2025-11-25 04:29:22 +0000
commitaac0ef54dce9d59a5ccc1151693906778cba45c9 (patch)
tree8261bd0f701ef5929b3b78000c4c104e0aa2dd28
parent3c857567c10f9e30c86133729532188f5c3664f0 (diff)
kern: Fix section name for embedded firmware blobs
In practice this just ends up as an orphan section and so is placed next to .rodata-like sections, so it's pretty harmless, but not intended. Fixes: a095390344fb ("Use a template assembly file for firmware object files.")
-rw-r--r--sys/kern/firmw.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/firmw.S b/sys/kern/firmw.S
index cd808d4a9396..1d74f17e449e 100644
--- a/sys/kern/firmw.S
+++ b/sys/kern/firmw.S
@@ -35,7 +35,7 @@
#define FIRMW_START(S) __CONCAT(_binary_, __CONCAT(S, _start))
#define FIRMW_END(S) __CONCAT(_binary_, __CONCAT(S, _end))
- .section rodata, "a", %progbits
+ .section .rodata, "a", %progbits
.globl FIRMW_START(FIRMW_SYMBOL)
.type FIRMW_START(FIRMW_SYMBOL), %object
FIRMW_START(FIRMW_SYMBOL):