Skip to content

feat: Add elf_enabler() bazel function to EbBcLfSA SDK - #167

Open
lurtz wants to merge 4 commits into
mainfrom
wrap-elf-enabler-with-bazel
Open

lurtz wants to merge 4 commits into
mainfrom
wrap-elf-enabler-with-bazel

Conversation

@lurtz

@lurtz lurtz commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

high integrity applications must be modified via lisa-elf-enabler to be recognized as such. Until now the SDK provides now way to achieve that using bazel.

lurtz added 2 commits October 22, 2026 10:41
high integrity applications must be modified via `lisa-elf-enabler` to be recognized as such. Until now the SDK provides now way to achieve that using bazel.
@lurtz
lurtz marked this pull request as ready for review October 22, 2026 11:23
@lurtz
lurtz requested a balanced review from Copilot October 22, 2026 11:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The SDK-dependent transformation of high-integrity executables needs a confirmed integration run before approval.

1 open issue
What changed in this PR

Adds an SDK-bound elf_enabler() Bazel rule so EBcLfSA applications can receive the ELF metadata required for high-integrity recognition.

Changes:

  • Generates an ELF-enabler entry point bound to each EBcLfSA toolchain’s SDK.
  • Copies and post-processes executables without modifying the original output.
  • Adds host-side integration checks, CI execution, and usage documentation.
File Description
tests/​README.md Documents the new test suite and command.
tests/​MODULE.bazel.lock Updates the GCC extension digest.
tests/​MODULE.bazel Adds shell rules and imports the SDK package.
tests/​ebclfsa/​original.cc Adds a minimal executable fixture.
tests/​ebclfsa/​integration_test.sh Checks ELF transformation and input preservation.
tests/​ebclfsa/​BUILD Defines SDK-gated fixtures and integration tests.
tests/​BUILD Registers the ELF-enabler test suite.
rules/​gcc.bzl Generates the SDK-bound entry point.
rules/​ebclfsa/​elf_enabler.bzl.template Binds the rule to its toolchain package.
rules/​ebclfsa/​elf_enabler.bzl Implements copy-and-enable processing.
rules/​ebclfsa/​BUILD Exports the implementation and template.
rules/​BUILD Establishes the Bazel package boundary.
README.md Links the ELF-enabler documentation.
docs/​tests_and_validation.md Normalizes the final newline.
docs/​test_suite.md Describes the new integration suite.
docs/​repository_layout.md Documents the new rule, test, and documentation directories.
docs/​generation_flow.md Describes entry-point generation.
docs/​ebclfsa/​elf_enabler.md Documents usage, SDK binding, contracts, and tests.
.github/​workflows/​ebclfsa.yml Adds ELF-enabler tests to CI.

Review effort: Balanced

Comment thread tests/ebclfsa/BUILD Resolved
@nradakovic nradakovic added feature New feature request wip Work in progress toolchain pkg Add or update toolchain package p3 Medium/Low - handle it within normal process refinement needed The issue or PR needs refinement labels Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature request p3 Medium/Low - handle it within normal process refinement needed The issue or PR needs refinement toolchain pkg Add or update toolchain package wip Work in progress

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants