aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-03-09 09:59:47 -0800
committerFangrui Song <i@maskray.me>2021-03-09 09:59:47 -0800
commit42e3f97a9dd3a439f63a733c4ee909cba6b77e49 (patch)
tree64335cd275503021188f023f1e43a1683cfd9495 /clang/lib/Frontend/CompilerInvocation.cpp
parent24c0ad714393d6c74e94539f995a0f8d4349bb8e (diff)
downloadllvm-42e3f97a9dd3a439f63a733c4ee909cba6b77e49.zip
llvm-42e3f97a9dd3a439f63a733c4ee909cba6b77e49.tar.gz
llvm-42e3f97a9dd3a439f63a733c4ee909cba6b77e49.tar.bz2
[MC] Change ELFOSABI_NONE to ELFOSABI_GNU for SHF_GNU_RETAIN
GNU ld does not give SHF_GNU_RETAIN GC root semantics for ELFOSABI_NONE. (https://sourceware.org/pipermail/binutils/2021-March/115581.html) This allows GNU ld to interpret SHF_GNU_RETAIN and avoids a gold quirk https://sourceware.org/bugzilla/show_bug.cgi?id=27490 Because ELFObjectWriter is in an anonymous namespace, I have to place `markGnuAbi` in the parent MCObjectWriter. Differential Revision: https://reviews.llvm.org/D97976
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions