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
8abb76e9e0
commit
2bf10b852a
@ -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 New Issue
Block a user