mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix linking OCTEON1 kernel with LLD
LLD complains that the type of .dynamic was changed. Fix this by copying the approach used in the mips64 ldscript. I do not have hardware to test this change so I only verified that the kernel links and the section layout looks sensible. Reviewed By: imp, emaste Differential Revision: https://reviews.freebsd.org/D24093
This commit is contained in:
parent
c0f2b64a89
commit
0823672d94
1 changed files with 5 additions and 4 deletions
|
|
@ -10,8 +10,7 @@ SECTIONS {
|
|||
. = KERNLOADADDR + SIZEOF_HEADERS;
|
||||
|
||||
.text : {
|
||||
*(.text)
|
||||
*(.dynamic)
|
||||
*(.text)
|
||||
etext = .;
|
||||
_etext = .;
|
||||
. = ALIGN(0x2000);
|
||||
|
|
@ -35,8 +34,10 @@ SECTIONS {
|
|||
*(.data)
|
||||
. = ALIGN(32);
|
||||
}
|
||||
|
||||
_gp = (. + 0x8000);
|
||||
.plt : { *(.plt) }
|
||||
_gp = ALIGN(16) + 0x7ff0;
|
||||
.got : { *(.got.plt) *(.got) }
|
||||
.dynamic : { *(.dynamic) }
|
||||
|
||||
.sdata : {
|
||||
_small_start = .;
|
||||
|
|
|
|||
Loading…
Reference in a new issue