mirror of
https://github.com/llvm/llvm-project.git
synced 2026-10-26 13:53:31 +08:00
The entries of a BPF jump table are addresses of blocks in each relocation model. Thus the code must not add the address of the table to an entry. The fix is in #235214, and jump-table-pic.ll is its test. The test runs llc with `-relocation-model=pic` only. The flag can suggest that the fix is for position independent code only. Run the test with `-relocation-model=static` too. The code is the same in the two models.
The LLVM Compiler Infrastructure ================================ This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments. LLVM is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt. Please see the documentation provided in docs/ for further assistance with LLVM, and in particular docs/GettingStarted.md for getting started with LLVM and docs/README.txt for an overview of LLVM's documentation setup. If you are writing a package for LLVM, see docs/Packaging.rst for our suggestions.