Index: head/sys/conf/ldscript.mips.octeon1 =================================================================== --- head/sys/conf/ldscript.mips.octeon1 (revision 359229) +++ head/sys/conf/ldscript.mips.octeon1 (revision 359230) @@ -1,65 +1,66 @@ /* $FreeBSD$ */ ENTRY(_start) PHDRS { text PT_LOAD FLAGS(0x7); } SECTIONS { . = KERNLOADADDR + SIZEOF_HEADERS; .text : { - *(.text) - *(.dynamic) + *(.text) etext = .; _etext = .; . = ALIGN(0x2000); } : text . = ALIGN(0x2000); .rodata : { _fdata = .; *(.rodata) . = ALIGN(32); } .note.gnu.build-id : { PROVIDE (__build_id_start = .); *(.note.gnu.build-id) PROVIDE (__build_id_end = .); } .data : { _rwdata = .; *(.data) . = ALIGN(32); } - - _gp = (. + 0x8000); + .plt : { *(.plt) } + _gp = ALIGN(16) + 0x7ff0; + .got : { *(.got.plt) *(.got) } + .dynamic : { *(.dynamic) } .sdata : { _small_start = .; *(.sdata) . = ALIGN(32); edata = .; _edata = .; } : text .sbss : { __bss_start = .; _fbss = .; *(.sbss) *(.scommon) _small_end = .; . = ALIGN(32); } .bss : { *(.bss) *(COMMON) . = ALIGN(32); _end = .; end = .; } }