mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix multiboot header not coming first in the executable.
The default linker script places .text.unlikely prior to .text.
This commit is contained in:
parent
d3a64e1163
commit
1f659c49c6
2 changed files with 4 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* 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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* 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
|
||||
|
|
Loading…
Reference in a new issue