diff options
author | Fangrui Song <i@maskray.me> | 2022-03-28 16:23:13 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-03-28 16:23:13 -0700 |
commit | 6faba31e0d88ce71e87567ddb51d2444524b8a81 (patch) | |
tree | c2b6de83198d69fda902d216190c83f8c1a3f471 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f7381a795ab235d34c94eaf01dc880eb5b89619d (diff) | |
download | llvm-6faba31e0d88ce71e87567ddb51d2444524b8a81.zip llvm-6faba31e0d88ce71e87567ddb51d2444524b8a81.tar.gz llvm-6faba31e0d88ce71e87567ddb51d2444524b8a81.tar.bz2 |
[ELF] --emit-relocs: adjust offsets of .rel[a].eh_frame relocations
.eh_frame pieces may be dropped due to GC/ICF. When --emit-relocs adds
relocations against .eh_frame, the offsets need to be adjusted. Use the same
way as MergeInputSection with a special case handling outSecOff==-1 for an
invalid piece (see eh-frame-marker.s).
This exposes an issue in mips64-eh-abs-reloc.s that we don't reliably
handle anyway. Just add --no-check-dynamic-relocations to paper over it.
Original patch by Ayrton Muñoz
Differential Revision: https://reviews.llvm.org/D122459
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions