mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Move the first section up one page. The firmware bogusly uses the first
page of the image to load section headers and if we let the text section start at zero, it corrupts the section table when its loaded. With this change, the loader gets as far as the 'ok' prompt.
This commit is contained in:
parent
35ca79092b
commit
faf8077790
2 changed files with 2 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ SECTIONS
|
|||
/* Read-only sections, merged into text segment: */
|
||||
. = 0;
|
||||
ImageBase = .;
|
||||
. += 4096;
|
||||
.text :
|
||||
{
|
||||
*(.text)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ SECTIONS
|
|||
/* Read-only sections, merged into text segment: */
|
||||
. = 0;
|
||||
ImageBase = .;
|
||||
. += 4096;
|
||||
.text :
|
||||
{
|
||||
*(.text)
|
||||
|
|
|
|||
Loading…
Reference in a new issue