Commit 1f659c49 authored by Jonas Termansen's avatar Jonas Termansen

Fix multiboot header not coming first in the executable.

The default linker script places .text.unlikely prior to .text.
parent d3a64e11
/*
* Copyright (c) 2011, 2014, 2015, 2016 Jonas 'Sortie' Termansen.
* Copyright (c) 2011, 2014, 2015, 2016, 2018 Jonas 'Sortie' Termansen.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
......@@ -18,8 +18,7 @@
* kernel main function. It also jumps into long mode!
*/
.section .text
.text 0x100000
.section .text.unlikely
# Multiboot header.
.align 4
......
/*
* Copyright (c) 2011, 2014, 2015, 2016 Jonas 'Sortie' Termansen.
* Copyright (c) 2011, 2014, 2015, 2016, 2018 Jonas 'Sortie' Termansen.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
......@@ -18,8 +18,7 @@
* kernel main function.
*/
.section .text
.text 0x100000
.section .text.unlikely
# Multiboot header.
.align 4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment