[PATCH] D80392: [mips][mc][clang] Use pc-relative relocations in .eh_frame
Simon Atanasyan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 19 05:48:34 PDT 2021
atanasyan updated this revision to Diff 367472.
atanasyan retitled this revision from "[WIP][mips] Use pc-relative relocations in .eh_frame" to "[mips][mc][clang] Use pc-relative relocations in .eh_frame".
atanasyan edited the summary of this revision.
atanasyan edited reviewers, added: emaste, grosbach; removed: sdardis, dsanders, espindola.
atanasyan added a project: clang.
atanasyan added a comment.
Herald added subscribers: cfe-commits, dang, sdardis.
For compatibility with tools unsupported 64-bit pc-relative relocations the patch introduces new command line options in Clang: `mmips-pc64-rel` and `mno-mips-pc64-rel`. These options passed to LLVM by Clang driver as `-mmips-pc64-rel={true|false}`. I could not find any better way to pass the option into `MC` layer.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80392/new/
https://reviews.llvm.org/D80392
Files:
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/mips-features.c
lld/test/ELF/mips-eh_frame-pic.s
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/MC/MCObjectFileInfo.cpp
llvm/test/CodeGen/Mips/ehframe-indirect.ll
llvm/test/DebugInfo/Mips/eh_frame.ll
llvm/test/MC/Mips/eh-frame.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80392.367472.patch
Type: text/x-patch
Size: 15359 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210819/dbd1236f/attachment.bin>
More information about the llvm-commits
mailing list