[all-commits] [llvm/llvm-project] d27cbf: [JITLink] Skip debug sections in MachO objects.
lhames via All-commits
all-commits at lists.llvm.org
Wed Jun 3 11:09:38 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d27cbf03cf9c43b4b98f031d63f23cfcfe3d587a
https://github.com/llvm/llvm-project/commit/d27cbf03cf9c43b4b98f031d63f23cfcfe3d587a
Author: Lang Hames <lhames at gmail.com>
Date: 2020-06-03 (Wed, 03 Jun 2020)
Changed paths:
M llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
M llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h
M llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
M llvm/lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
A llvm/test/ExecutionEngine/JITLink/X86/MachO_skip_debug_sections.s
Log Message:
-----------
[JITLink] Skip debug sections in MachO objects.
Debug sections will not be linked into the final executable and may contain
ambiguous relocations*. Skipping them avoids both some unnecessary processing
cost and the hassle of dealing with the problematic relocations.
* E.g. __debug_ranges contains non-extern relocations to the end of functions
hat begin with named symbols. Under the usual rules for interpreting non-extern
relocations these will be incorrectly associated with the following block, or
no block at all (if there is a gap between one block and the next).
More information about the All-commits
mailing list