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

libelfin: fix build with Clang 10 #5069

Merged
merged 3 commits into from Mar 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions recipes/libelfin/all/conandata.yml
Expand Up @@ -6,3 +6,6 @@ patches:
"0.3":
- patch_file: "patches/commit-9d0db16d0a0b3c4f8aaa60a3e4dab295df34b6b2.patch"
base_path: "source_subfolder"
- patch_file: "patches/const-fix.patch"
base_path: "source_subfolder"
klimkin marked this conversation as resolved.
Show resolved Hide resolved
# patch_source: https://github.com/aclements/libelfin/pull/54
19 changes: 19 additions & 0 deletions recipes/libelfin/all/patches/const-fix.patch
@@ -0,0 +1,19 @@
commit 8d00031176c2025e53336992c1575d73b4f66b2b (smertig/fix_wrong_const)
Author: Smertig <akaraevz@mail.ru>
Date: Sun Sep 6 20:19:00 2020 +0300

Remove const qualifier from setter

diff --git a/elf/data.hh b/elf/data.hh
index ed5c7a1..4a60944 100644
--- a/elf/data.hh
+++ b/elf/data.hh
@@ -553,7 +553,7 @@ struct Sym<Elf64, Order>
return (stb)(info >> 4);
}

- void set_binding(stb v) const
+ void set_binding(stb v)
{
info = (info & 0xF) | ((unsigned char)v << 4);
}