mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
- Move .text and all sections up to .bss inclusive to the beginning of
the script. Trampoline kernel builder assumes that .text goes right
after headers and places startup function first in .text segment.
This commit is contained in:
parent
531c6502cc
commit
6104a13d8b
1 changed files with 19 additions and 19 deletions
|
|
@ -44,6 +44,25 @@ SECTIONS
|
|||
{
|
||||
/* Read-only sections, merged into text segment: */
|
||||
. = KERNLOADADDR + SIZEOF_HEADERS;
|
||||
.text :
|
||||
{
|
||||
*(.trap)
|
||||
*(.text)
|
||||
*(.text.*)
|
||||
*(.stub)
|
||||
/* .gnu.warning sections are handled specially by elf32.em. */
|
||||
*(.gnu.warning)
|
||||
*(.gnu.linkonce.t.*)
|
||||
} =0x1000000
|
||||
.fini :
|
||||
{
|
||||
KEEP (*(.fini))
|
||||
} =0x1000000
|
||||
PROVIDE (__etext = .);
|
||||
PROVIDE (_etext = .);
|
||||
PROVIDE (etext = .);
|
||||
.rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) }
|
||||
.rodata1 : { *(.rodata1) }
|
||||
.interp : { *(.interp) }
|
||||
.hash : { *(.hash) }
|
||||
.dynsym : { *(.dynsym) }
|
||||
|
|
@ -163,25 +182,6 @@ SECTIONS
|
|||
{
|
||||
KEEP (*(.init))
|
||||
} =0x1000000
|
||||
.text :
|
||||
{
|
||||
*(.trap)
|
||||
*(.text)
|
||||
*(.text.*)
|
||||
*(.stub)
|
||||
/* .gnu.warning sections are handled specially by elf32.em. */
|
||||
*(.gnu.warning)
|
||||
*(.gnu.linkonce.t.*)
|
||||
} =0x1000000
|
||||
.fini :
|
||||
{
|
||||
KEEP (*(.fini))
|
||||
} =0x1000000
|
||||
PROVIDE (__etext = .);
|
||||
PROVIDE (_etext = .);
|
||||
PROVIDE (etext = .);
|
||||
.rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) }
|
||||
.rodata1 : { *(.rodata1) }
|
||||
.reginfo : { *(.reginfo) }
|
||||
.sdata2 : { *(.sdata2) *(.sdata2.*) *(.gnu.linkonce.s2.*) }
|
||||
.sbss2 : { *(.sbss2) *(.sbss2.*) *(.gnu.linkonce.sb2.*) }
|
||||
|
|
|
|||
Loading…
Reference in a new issue