Skip to content

Conversation

@puwun
Copy link

@puwun puwun commented Jan 19, 2026

Adds infrastructure to test loading of ELF objects compiled without BTF information, verifying the fix from #1807

Changes:

  • Added testdata/loader_nobtf.c using legacy map definitions.
  • Updated Makefile to compile this new test data with -g0 (no BTF).
  • Added TestLoadCollectionSpecWithoutBTF to verify successful parsing when spec.Types is nil.

Fixes: #1810

Adds infrastructure to test loading of ELF objects compiled without BTF information.

Fixes: cilium#1810
Signed-off-by: Pavan More <pavansmore05@gmail.com>
@puwun puwun requested a review from a team as a code owner January 19, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure the ELF reader works for objects built without BTF

1 participant