Skip to content

Commit

Permalink
(#5069) libelfin: fix build with Clang 10
Browse files Browse the repository at this point in the history
* Dummy

* Fix copilation with Clang 10

* Update recipes/libelfin/all/conandata.yml

Co-authored-by: Javier G. Sogo <jgsogo@gmail.com>

Co-authored-by: Javier G. Sogo <jgsogo@gmail.com>
  • Loading branch information
klimkin and jgsogo committed Mar 29, 2021
1 parent 16de945 commit ac8102c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
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"
# 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);
}

0 comments on commit ac8102c

Please sign in to comment.