Files
LithosAnanke/kernel/include/starkernel/capsule_generated.h
T
Claude 16b9747d33 chore(license): the source headers name the Starship License 1.0 (SL-1.0), as LICENSE does [skip ci]
347 headers said "Licensed under the StarForth License, Version 1.0" -- a
shortening (Captain Bob, 2026-11-08: "License file SL I think I shortened
accidently"); LICENSE is, and has been since the first commit, the
Starship License 1.0 (SL-1.0, SPDX LicenseRef-Starship-1.0). 349 files,
566 occurrences, now "Starship License, Version 1.0 (SL-1.0)".

Left as they are, pending a ruling: docs/patent/ (the patent figures),
docs/formal/ (the citable volumes) and the generated reports under
docs/working/experiments/ (32 files). Comments and license text only:
the amd64 kernel builds, every changed script parses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
2026-11-08 17:54:24 +00:00

64 lines
2.2 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
StarForth — Steady-State Virtual Machine Runtime
Copyright (c) 2023–2025 Robert A. James
All rights reserved.
Licensed under the Starship License, Version 1.0 (SL-1.0)
*/
/**
* capsule_generated.h - Declarations for mkcapsule-generated capsule store.
*
* The matching capsule_generated.c is produced at build time by mkcapsule.
* These three arrays plus the directory header are compiled into .rodata.
*/
#ifndef STARKERNEL_CAPSULE_GENERATED_H
#define STARKERNEL_CAPSULE_GENERATED_H
#include <stdint.h>
#include "starkernel/capsule.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Mark as hidden so GCC uses direct RIP-relative addressing in PIC/PE builds,
* avoiding GOT references which do not exist in PE/COFF binaries. */
__attribute__((visibility("hidden")))
extern const uint8_t capsule_arena[];
__attribute__((visibility("hidden")))
extern const CapsuleDesc capsule_descriptors[];
__attribute__((visibility("hidden")))
extern const CapsuleNameEntry capsule_names[];
__attribute__((visibility("hidden")))
extern const CapsuleSigEntry capsule_signatures[];
__attribute__((visibility("hidden")))
extern const CapsuleDirHeader capsule_directory;
/*
* Accessor functions — defined in the same TU as the symbols above.
* PE/COFF builds with -fPIC do not convert GOTPCREL data references to
* direct LEA the way the ELF linker does, so any cross-TU access to a
* data symbol goes through GOT and reads garbage in a PE image.
* These hidden accessor functions are called via a direct CALL (no PLT/GOT)
* and access the symbols with direct RIP-relative addressing inside their TU.
*/
__attribute__((visibility("hidden")))
uint32_t capsule_get_desc_count(void);
__attribute__((visibility("hidden")))
const CapsuleDirHeader *capsule_get_directory(void);
__attribute__((visibility("hidden")))
const CapsuleDesc *capsule_get_descriptors(void);
__attribute__((visibility("hidden")))
const CapsuleNameEntry *capsule_get_names(void);
__attribute__((visibility("hidden")))
const CapsuleSigEntry *capsule_get_signatures(void);
__attribute__((visibility("hidden")))
const uint8_t *capsule_get_arena(void);
#ifdef __cplusplus
}
#endif
#endif /* STARKERNEL_CAPSULE_GENERATED_H */