blob: 49a56e1c7e8c0a83bf54557f08798b289b23323a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh -
PADBYTE=$1
cat << __EOF__
#include <machine/asm.h>
#include <machine/param.h>
.text
.align PAGE_SIZE, $PADBYTE
.space $RANDOM, $PADBYTE
.align PAGE_SIZE, $PADBYTE
.globl endboot
_C_LABEL(endboot):
.space PAGE_SIZE, $PADBYTE
.space $RANDOM % PAGE_SIZE, $PADBYTE
.align 16, $PADBYTE
/*
* Randomly bias future data, bss, and rodata objects,
* does not help for objects in locore.S though
*/
.data
.space $RANDOM % PAGE_SIZE, $PADBYTE
.bss
.space $RANDOM % PAGE_SIZE, $PADBYTE
.section .rodata
.space $RANDOM % PAGE_SIZE, $PADBYTE
__EOF__
|