From 1491a7b1592b24c651848f245ddaf9b1fc8d9147 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 11 Oct 2023 03:01:52 -0700 Subject: [PATCH] kern: on second thought, move vectors back to end of text --- mesosphere/kernel/kernel.ld | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mesosphere/kernel/kernel.ld b/mesosphere/kernel/kernel.ld index d54cb4a7a..356cea88c 100644 --- a/mesosphere/kernel/kernel.ld +++ b/mesosphere/kernel/kernel.ld @@ -29,15 +29,6 @@ SECTIONS . = ALIGN(8); } :code - /* .vectors. */ - . = ALIGN(2K); - __vectors_start__ = . ; - .vectors : - { - KEEP( *(.vectors) ) - . = ALIGN(8); - } :code - .init : { KEEP( *(.init) ) @@ -67,6 +58,15 @@ SECTIONS . = ALIGN(8); } :code + /* .vectors. */ + . = ALIGN(2K); + __vectors_start__ = . ; + .vectors : + { + KEEP( *(.vectors) ) + . = ALIGN(8); + } :code + /* =========== RODATA section =========== */ . = ALIGN(0x1000); __rodata_start = . ;