Create new seed from `4d897d81`

7848fea890d4e049046598540800afabb346c4aace75cd55814750da568b8272
Rebuild the seed for the host ABI. The previous seed makes Linux system
calls, so stage 1 runs on an emulator with Linux calls (emulator
4db56f5). Later stages run on the host-ABI emulator (e76b614).
Alexis Sellier committed ago 1 parent 2fde7d2e
seed/radiance.rv64 +0 -0

Binary file changed.

seed/radiance.rv64.git +1 -1
1 -
1520c9bdbd07c62148e456cd9dc4e6106d199763826bbb4d9321d5ad43226737
1 +
4d897d81df9c8cb3431b511fda8c9e230913d1da2c1eaa8cf310a5fefb4d7fa0
seed/test deleted +0 -23
1 -
#!/bin/sh
2 -
# Verify that the checked-in seed and its workflow use self-contained images.
3 -
set -eu
4 -
5 -
fail() {
6 -
  printf 'seed test: %s\n' "$*" >&2
7 -
  exit 1
8 -
}
9 -
10 -
magic="$(head -c 8 seed/radiance.rv64)"
11 -
[ "$magic" = "RADIANCE" ] || fail "seed is not a self-contained RV64 image"
12 -
13 -
# The 48-byte header holds the magic, then the address and stored size of
14 -
# code, rodata, and rwdata, and the size of the zero-filled rwdata tail.
15 -
size="$(wc -c < seed/radiance.rv64 | tr -d ' ')"
16 -
code="$(od -An -tu4 -j16 -N4 seed/radiance.rv64 | tr -d ' ')"
17 -
ro="$(od -An -tu4 -j28 -N4 seed/radiance.rv64 | tr -d ' ')"
18 -
rw="$(od -An -tu4 -j40 -N4 seed/radiance.rv64 | tr -d ' ')"
19 -
20 -
[ "$size" -eq $((48 + code + ro + rw)) ] ||
21 -
  fail "seed image size $size does not match header sections"
22 -
23 -
printf 'seed test: ok\n'