[PATCH] D72228: [MIPS][ELF] Use PC-relative relocations in .eh_frame when possible
Alexander Richardson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 5 08:03:26 PST 2020
arichardson added a comment.
In D72228#1804852 <https://reviews.llvm.org/D72228#1804852>, @joerg wrote:
> What's the fixup behavior of the linker here, e.g. does it make sense to just use absolute encoding here and let the linker fix it up?
Currently LLD will not convert the encoding. This change allows me to build and link MIPS64 FreeBSD using clang+lld without having to fix up things in the linker.
I think this is a much simpler approach than making LLD reassemble the eh_frame with relative values.
ld.bfd also accepts these clang generated input files and generates the same eh_frame output as lld.
We could still add the eh_frame rewriting support in the future.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72228/new/
https://reviews.llvm.org/D72228
More information about the llvm-commits
mailing list