Go to file
Rui Ueyama 14ef9b30b6 lld: elf: Fix sections with explict addresses in regions
Patch by Gabriel Smith.

The address for a section would be evaluated before the region was
switched to. Because of this, the position within the region would not
be updated. After the region is swapped to the dot would be set to the
out of date position within the region, undoing the section address
evaluation.

To fix this, the region is swapped to before the section's address is
evaluated. As part of the fallout of this, expandMemoryRegions needed
to be gated in setDot on the condition that the evaluated address is
less than the dot. This is for the case where sections are not listed
from lowest address to highest address.

Finally, a test for the case where sections are listed "out of order"
was added.

Differential Revision: https://reviews.llvm.org/D60744

llvm-svn: 358638
2019-04-18 02:32:12 +00:00
clang Split out modules-specific declaration handling from SemaDecl.cpp into a 2019-04-18 00:57:02 +00:00
clang-tools-extra [clang-tidy] Don't issue cppcoreguidelines-macro-usage on builtin macros 2019-04-17 22:35:36 +00:00
compiler-rt [builtins] Add __cmpsf2 for ARM version of comparesf2 2019-04-17 01:30:33 +00:00
debuginfo-tests Set config.lit_tools_dir, which is needed by lit.llvm.initialize. 2018-11-06 21:54:27 +00:00
libclc travis: Add LLVM-8 build 2019-03-27 21:28:31 +00:00
libcxx [libc++][CMake] Remove unnecessary conditional for defining new handlers 2019-04-17 21:57:49 +00:00
libcxxabi Fix PR41465 - Use __builtin_mul_overflow instead of hand-rolled check. 2019-04-11 17:16:35 +00:00
libunwind [NFC] Move the export attribute after extern "C". 2019-04-12 18:34:19 +00:00
lld lld: elf: Fix sections with explict addresses in regions 2019-04-18 02:32:12 +00:00
lldb [Shell] Simplify Extracting Python Version 2019-04-18 01:37:19 +00:00
llgo IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
llvm [GISel]:IRTranslator: Prefer a buidInstr form that allows CSE of cast instructions 2019-04-18 02:19:29 +00:00
openmp Fixed memory leak reported in Bugzilla: 2019-04-17 10:44:28 +00:00
parallel-libs Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
polly Apply include-what-you-use #include removal suggestions. NFC. 2019-03-28 20:19:49 +00:00
pstl [pstl] Remove the stdlib headers from the PSTL and move them to the tests 2019-04-16 14:38:08 +00:00
.arcconfig Update monorepo .arcconfig with new project callsign. 2019-01-31 14:34:59 +00:00
.clang-format Add .clang-tidy and .clang-format files to the toplevel of the 2019-01-29 16:43:16 +00:00
.clang-tidy Disable tidy checks with too many hits 2019-02-01 11:20:13 +00:00
.gitignore Add a reduced copy of the llvm .gitignore 2019-04-09 00:52:49 +00:00
README.md

README.md

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.