aboutsummaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/bootblock_crt0.S2
-rw-r--r--src/arch/x86/gdt_init.S7
-rw-r--r--src/arch/x86/walkcbfs.S2
3 files changed, 7 insertions, 4 deletions
diff --git a/src/arch/x86/bootblock_crt0.S b/src/arch/x86/bootblock_crt0.S
index 82ae97f9c6..387920e38a 100644
--- a/src/arch/x86/bootblock_crt0.S
+++ b/src/arch/x86/bootblock_crt0.S
@@ -10,7 +10,7 @@
#include <cpu/x86/cr.h>
-.section .text._start
+.section .init._start, "ax", @progbits
/*
* Include the old code for reset vector and protected mode entry. That code has
diff --git a/src/arch/x86/gdt_init.S b/src/arch/x86/gdt_init.S
index 1558ac62c8..f33a1517d8 100644
--- a/src/arch/x86/gdt_init.S
+++ b/src/arch/x86/gdt_init.S
@@ -1,7 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
.code32
-.section ".text._gdt_", "ax", @progbits
+
+.section .init, "ax", @progbits
+
+.section .init._gdt_, "ax", @progbits
.globl gdt_init
gdt_init:
@@ -17,7 +20,7 @@ gdtptr:
#ifdef __x86_64__
.code64
-.section ".text._gdt64_", "ax", @progbits
+.section .init._gdt64_, "ax", @progbits
.globl gdt_init64
gdt_init64:
/* Workaround a bug in the assembler.
diff --git a/src/arch/x86/walkcbfs.S b/src/arch/x86/walkcbfs.S
index b8d4fb985a..393bcf54ed 100644
--- a/src/arch/x86/walkcbfs.S
+++ b/src/arch/x86/walkcbfs.S
@@ -21,7 +21,7 @@
#define CBFS_FILE_STRUCTSIZE (CBFS_FILE_OFFSET + 4)
.code32
-.section .text
+.section .init
.global walkcbfs_asm
/*