blob: da50aa602f817318e4bdb4b5c68a28bc80c10a1e (
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/param.h>
#include <machine/asm.h>
.text
.balign PAGE_SIZE, $PADBYTE
.space $RANDOM, $PADBYTE
.balign PAGE_SIZE, $PADBYTE
.globl endboot
endboot:
.space PAGE_SIZE, $PADBYTE
.space $RANDOM % PAGE_SIZE, $PADBYTE
.balign 16, $PADBYTE
/*
* Randomly bias future data, bss, and rodata objects,
* does not help for objects in locore0.S though
*/
.data
.space $RANDOM % PAGE_SIZE, $PADBYTE
.section .bss
.space $RANDOM % PAGE_SIZE
.section .rodata
.space $RANDOM % PAGE_SIZE, $PADBYTE
__EOF__
|