| commit | 9e862ae3219b09283971ca0ced52a64b0d6db86b | [log] [tgz] |
|---|---|---|
| author | alx32 <103613512+alx32@users.noreply.github.com> | Fri Oct 04 21:48:09 2024 -0700 |
| committer | GitHub <noreply@github.com> | Fri Oct 04 21:48:09 2024 -0700 |
| tree | c6c3b53ae3f9a50b992d68378fb2a5eb13aca099 | |
| parent | bf895c714e1f8a51c1e565a75acf60bf7197be51 [diff] |
[lld-macho] Fix invalid DWARF with --icf=safe_thunks (#111097) There is a bug in the current implementation of `--icf=safe_thunks` where a STABS entry is emitted for generated thunks. This is problematic as we end up generating invalid DWARF as dsymutil will think the entire function body is at the thunk location, when in actuality there will only be a single branch present. This will end up causing overlapping DWARF entries. To fix this we never generate STABS entries for such thunks. The existing `--icf=safe_thunks` test is updated to also generate debug info and we add a check that no corrupt DWARF is generated. As a future TODO we need to make `--keep-icf-stabs` compatible with `--icf=safe_thunks`.
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.
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.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.