diff options
author | dzwdz | 2022-06-30 17:27:48 +0200 |
---|---|---|
committer | dzwdz | 2022-06-30 17:27:48 +0200 |
commit | 38d9f87c5086ca132fea43912d6f6ad777c2c852 (patch) | |
tree | 3f236c877d8adb299198af4760d903f900d381fc /src/kernel/arch/i386/gdt | |
parent | bf4f2bb63ed01026b1078f5f7ebfc005bb4bf6d3 (diff) |
kernel/linker: rename .text.early to .shared
It's not really just a text section, as it's writeable too. Makes gcc
shut up about invalid section attributes.
Diffstat (limited to 'src/kernel/arch/i386/gdt')
-rw-r--r-- | src/kernel/arch/i386/gdt/gdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/arch/i386/gdt/gdt.c b/src/kernel/arch/i386/gdt/gdt.c index 3662bf6..3521052 100644 --- a/src/kernel/arch/i386/gdt/gdt.c +++ b/src/kernel/arch/i386/gdt/gdt.c @@ -38,9 +38,9 @@ struct lgdt_arg { uint32_t base; } __attribute__((packed)); -__attribute__((section(".text.early"))) +__attribute__((section(".shared"))) static struct gdt_entry GDT[SEG_end]; -__attribute__((section(".text.early"))) +__attribute__((section(".shared"))) static struct tss_entry TSS; static struct lgdt_arg lgdt_arg; // probably doesn't need to be global |