diff options
Diffstat (limited to 'sys/arch/loongson/conf/ld.script')
-rw-r--r-- | sys/arch/loongson/conf/ld.script | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/loongson/conf/ld.script b/sys/arch/loongson/conf/ld.script index 4b58a5c08eb..c8680b0fc6c 100644 --- a/sys/arch/loongson/conf/ld.script +++ b/sys/arch/loongson/conf/ld.script @@ -10,7 +10,14 @@ SECTIONS _gp = ALIGN(16) + 0x7ff0; .data : { *(.data .data.* .gnu.linkonce.d.*) } .openbsd.randomdata : - { *(.openbsd.randomdata) } + { + /* XXX shouldn't this be placed next to rodata? */ + __retguard_start = ABSOLUTE(.); + *(.openbsd.randomdata.retguard .openbsd.randomdata.retguard.*) + /* XXX . = ALIGN(0x1000); */ + __retguard_end = ABSOLUTE(.); + *(.openbsd.randomdata .openbsd.randomdata.*) + } PROVIDE (edata = .); .sbss : { *(.sbss .sbss.* .gnu.linkonce.sb.* .scommon) } .bss : { *(.bss .bss.* .gnu.linkonce.b.* COMMON) } |