diff options
author | Fangrui Song <i@maskray.me> | 2021-03-09 09:59:47 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-03-09 09:59:47 -0800 |
commit | 42e3f97a9dd3a439f63a733c4ee909cba6b77e49 (patch) | |
tree | 64335cd275503021188f023f1e43a1683cfd9495 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 24c0ad714393d6c74e94539f995a0f8d4349bb8e (diff) | |
download | llvm-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