The Pedigree Project 0.1
executable-file-contract-test/fixture.c
1/* Copyright (c) 2026, Pedigree Developers. */
2#ifndef FIXTURE_VERSION
3#define FIXTURE_VERSION 1
4#endif
5
6__attribute__((aligned(4096)))
7const volatile unsigned char executable_fixture_data[12288] = {[8192] = FIXTURE_VERSION};
8
9__attribute__((noinline, aligned(4096))) int executable_fixture_warm(void) {
10 return FIXTURE_VERSION;
11}
12
13__attribute__((noinline, aligned(4096))) int executable_fixture_cold(void) {
14 return executable_fixture_data[8192];
15}