diff --git a/.github/workflows/on_pull_request.yml b/.github/workflows/on_pull_request.yml index d072f56..f26b176 100644 --- a/.github/workflows/on_pull_request.yml +++ b/.github/workflows/on_pull_request.yml @@ -106,9 +106,7 @@ jobs: - uses: actions/checkout@v2 - name: Install Dependencies run: | - # remove broken packages installed by default - sudo apt remove -y clang-6.0 libclang-common-6.0-dev libclang1-6.0 libllvm6.0 - sudo apt install -y clang clang-tidy + sudo apt install -y clang clang-tidy lld - name: Configure run: | set -x diff --git a/include/binlog/detail/read_sources_linux.hpp b/include/binlog/detail/read_sources_linux.hpp index 396eb4e..dd978e1 100644 --- a/include/binlog/detail/read_sources_linux.hpp +++ b/include/binlog/detail/read_sources_linux.hpp @@ -42,7 +42,7 @@ inline void add_event_sources_of_file(const std::string& path, std::uintptr_t lo { for (const ElfW(Shdr)& shdr : shdrs) { - if (shdr.sh_addr < v && shdr.sh_addr + shdr.sh_size > v) + if (shdr.sh_addr <= v && shdr.sh_addr + shdr.sh_size > v) { return v - shdr.sh_addr + shdr.sh_offset; }