[all-commits] [llvm/llvm-project] c6f065: [BOLT][RISCV] Recognize mapping syms with encoded ...
Job Noorman via All-commits
all-commits at lists.llvm.org
Fri Oct 13 03:34:26 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c6f065d9d99738f1aca1a29f1f9f8900d2d38cbb
https://github.com/llvm/llvm-project/commit/c6f065d9d99738f1aca1a29f1f9f8900d2d38cbb
Author: Job Noorman <jnoorman at igalia.com>
Date: 2023-10-13 (Fri, 13 Oct 2023)
Changed paths:
M bolt/lib/Core/BinaryContext.cpp
A bolt/test/RISCV/Inputs/mapping-syms-isa.yaml
A bolt/test/RISCV/mapping-syms-isa.test
Log Message:
-----------
[BOLT][RISCV] Recognize mapping syms with encoded ISA (#68964)
RISC-V supports mapping syms for code that encode the exact ISA for
which the code is valid. They have the form `$x<ISA>` where `<ISA>` is
the textual encoding of an ISA specification.
BOLT currently doesn't recognize these mapping symbols causing many
binaries compiled with newer versions of GCC (which emits them) to not
be properly processed. This patch makes sure BOLT recognizes them as
code markers.
Note that LLVM does not emit these kinds of mapping symbols yet so the
test is based on a binary produced by GCC.
More information about the All-commits
mailing list