Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix BPF samplers with clang 11 #54

Merged
merged 4 commits into from
Aug 8, 2023

Conversation

brayniac
Copy link
Contributor

@brayniac brayniac commented Aug 8, 2023

Problem

Changes in libbpf result in binaries being generated with relocations in
the STT_SECTION. This is not compatible with clang 11 which is found
on Amazon Linux 2.

Solution

Add -fno-unwind-tables to generate binaries which are compatible.

More defensive BPF program loading.

Result

Restore compatibility with clang 11

@brayniac brayniac merged commit e89ba81 into iopsystems:main Aug 8, 2023
15 checks passed
@brayniac brayniac deleted the no-unwind-tables branch August 8, 2023 17:21
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.

1 participant