| commit | bdcabc486209298d1c8515423014e48595c1c96d | [log] [tgz] |
|---|---|---|
| author | Fangrui Song <i@maskray.me> | Sat May 10 10:04:01 2025 +0800 |
| committer | GitHub <noreply@github.com> | Sat May 10 10:04:01 2025 +0800 |
| tree | dea62f4025e4514ce2f6c28eed9f4c70269681d2 | |
| parent | 8893d407a68ece98d6911e3f186305dbc43ee90e [diff] |
[ELF] writeTrapInstr: Don't decrease p_memsz When the last PT_LOAD segment is executable and includes BSS sections, its p_memsz may exceed the aligned p_filesz. This change ensures p_memsz is not reduced in such cases (e.g. --omagic). In addition, disable this behavior when a SECTIONS command is specified. Refined behavior introduced in https://reviews.llvm.org/D37369 (2017). The -z separate-loadable-segments --omagic test adds coverage for the option combination, even if it might be practical. Pull Request: https://github.com/llvm/llvm-project/pull/139207
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.