mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Avoid emitting a PT_INTERP section for powerpc64 kernels and arrange for
the first instruction to be at the start of the text segment. This allows the kernel to be booted correctly by stock kexec-lite. MFC after: 2 weeks
This commit is contained in:
parent
5d85170026
commit
25449e73a1
1 changed files with 5 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ SECTIONS
|
|||
{
|
||||
/* Read-only sections, merged into text segment: */
|
||||
|
||||
. = kernbase + SIZEOF_HEADERS;
|
||||
. = kernbase;
|
||||
PROVIDE (begin = . - SIZEOF_HEADERS);
|
||||
|
||||
.text :
|
||||
|
|
@ -24,7 +24,10 @@ SECTIONS
|
|||
_etext = .;
|
||||
PROVIDE (etext = .);
|
||||
|
||||
.interp : { *(.interp) }
|
||||
/* Do not emit PT_INTERP section, which confuses some loaders (kexec-lite) */
|
||||
.interpX : { *(.interp) } : NONE
|
||||
/DISCARD/ : { *(.interp) }
|
||||
|
||||
.hash : { *(.hash) }
|
||||
.dynsym : { *(.dynsym) }
|
||||
.dynstr : { *(.dynstr) }
|
||||
|
|
|
|||
Loading…
Reference in a new issue