Go to file
Job Noorman 54ab954149 [BOLT] Reject symbols pointing to section end
Sometimes, symbols are present that point to the end of a section (i.e.,
one-past the highest valid address). Currently, BOLT either rejects
those symbols when they don't point to another existing section, or errs
when they do and the other section is not executable. I suppose BOLT
would accept the symbol when it points to an executable section.

In any case, these symbols should not be considered while discovering
functions and should not result in an error. This patch implements that.

Note that this patch checks explicitly for symbols whose value equals
the end of their section. It might make more sense to verify that the
symbol's value is within [section start, section end). However, I'm not
sure if this could every happen *and* its value does not equal the end.

Another way to implement this is to verify that the BinarySection we
find at the symbol's address actually corresponds to the symbol's
section. I'm not sure what the best approach is so feedback is welcome.

Reviewed By: yota9, rafauler

Differential Revision: https://reviews.llvm.org/D146215
2023-03-21 13:59:39 +04:00
.github workflows: Don't try and run llvm-bugs in forks 2023-03-16 16:47:07 +00:00
bolt [BOLT] Reject symbols pointing to section end 2023-03-21 13:59:39 +04:00
clang [docs] Update the status for coroutines 2023-03-21 10:34:33 +08:00
clang-tools-extra [clangd][NFC] Format & include cleanup for AddUsingTests.cpp 2023-03-21 07:53:08 +01:00
cmake Revert "[CMake] Unify llvm_check_linker_flag and llvm_check_compiler_linker_flag" 2023-03-12 13:27:23 +07:00
compiler-rt Fix Windows export list. 2023-03-20 19:20:43 -07:00
cross-project-tests [Dexter] Add a simple logging class to Dexter 2023-03-15 19:25:37 +00:00
flang [flang] Handle polymorphic entities with rank > 0 in entry statement 2023-03-21 09:50:57 +01:00
libc [libc] temporarily disable wctob entrypoint 2023-03-20 17:42:00 -07:00
libclc Revert "Reland "[CMake] Bumps minimum version to 3.20.0."" 2023-03-18 20:32:43 +01:00
libcxx [libc++] Change linkage for some functions. 2023-03-19 19:50:05 +01:00
libcxxabi [libcxxabi] Fix for c9d36bd807 2023-03-20 13:00:33 +00:00
libunwind [libunwind][Modules] Add unwind_arm_ehabi.h and unwind_itanium.h to the unwind module) 2023-03-20 15:13:14 -07:00
lld Revert "Reland "[CMake] Bumps minimum version to 3.20.0."" 2023-03-18 20:32:43 +01:00
lldb [lldb] Fix TestStepOverWatchpoint 2023-03-21 10:45:12 +01:00
llvm [InstCombine] Fold icmp eq of non-inbounds geps 2023-03-21 10:51:37 +01:00
llvm-libgcc Revert "Reland "[CMake] Bumps minimum version to 3.20.0."" 2023-03-18 20:32:43 +01:00
mlir [mlir][Linalg][Transform] Fix effect on RewriteInDestinationPassingStyleOp that did not consume its operand 2023-03-21 02:17:45 -07:00
openmp [Libomptarget] Add missing explicit moves on llvm::Error 2023-03-20 12:00:01 -05:00
polly Revert "Reland "[CMake] Bumps minimum version to 3.20.0."" 2023-03-18 20:32:43 +01:00
pstl Revert "Reland "[CMake] Bumps minimum version to 3.20.0."" 2023-03-18 20:32:43 +01:00
runtimes [runtimes] Don't use -Wall on clang-cl builds 2023-03-19 12:51:37 +01:00
third-party Remove an extra // in the IWYU pragma for gtest-matchers.h 2023-03-14 13:11:53 +01:00
utils [Bazel] Fixup for D144351, Add alwayslink to //llvm:tblgen 2023-03-21 16:58:22 +09:00
.arcconfig
.arclint
.clang-format
.clang-tidy Add -misc-const-correctness to .clang-tidy 2022-08-08 13:00:52 -07:00
.git-blame-ignore-revs Add __config formatting to .git-blame-ignore-revs 2022-06-14 09:52:49 -04:00
.gitignore
.mailmap [mailmap] Add my entry 2022-12-16 05:30:29 +08:00
CONTRIBUTING.md
LICENSE.TXT [docs] Add LICENSE.txt to the root of the mono-repo 2022-08-24 09:35:00 +02:00
README.md [docs] Update README and GettingStarted 2023-03-08 12:55:59 -08:00
SECURITY.md

The LLVM Compiler Infrastructure

Welcome to the LLVM project!

This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.

The LLVM project has multiple components. The core of the project is itself called "LLVM". This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.

C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.

Other components include: the libc++ C++ standard library, the LLD linker, and more.

Getting the Source Code and Building LLVM

Consult the Getting Started with LLVM page for information on building and running LLVM.

For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.

Getting in touch

Join the LLVM Discourse forums, Discord chat, or #llvm IRC channel on OFTC.

The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.