aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/SourceCodeBuildersTest.cpp
diff options
context:
space:
mode:
authorJez Ng <jezng@fb.com>2020-12-08 17:47:19 -0800
committerJez Ng <jezng@fb.com>2020-12-10 15:57:51 -0800
commit863f7a745e6ba5b9aebca82eeba1a2fb1db53e20 (patch)
treeba0c28e276f41f54891f24e244b41f3b0c2f9b5f /clang/unittests/Tooling/SourceCodeBuildersTest.cpp
parent95831a56d092c563b03167ece592be301a2a0081 (diff)
downloadllvm-863f7a745e6ba5b9aebca82eeba1a2fb1db53e20.zip
llvm-863f7a745e6ba5b9aebca82eeba1a2fb1db53e20.tar.gz
llvm-863f7a745e6ba5b9aebca82eeba1a2fb1db53e20.tar.bz2
[lld-macho] Don't attempt to emit rebase opcodes for debug sections
This was causing a crash as we were attempting to look up the nonexistent parent OutputSection of the debug sections. We didn't detect it earlier because there was no test for PIEs with debug info (PIEs require us to emit rebases for X86_64_RELOC_UNSIGNED). This diff filters out the debug sections while loading the ObjFiles. In addition to fixing the above problem, it also lets us avoid doing redundant work -- we no longer parse / apply relocations / attempt to emit dyld opcodes for these sections that we don't emit. Fixes llvm.org/PR48392. Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D92904
Diffstat (limited to 'clang/unittests/Tooling/SourceCodeBuildersTest.cpp')
0 files changed, 0 insertions, 0 deletions