[PATCH] D80392: [mips][mc][clang] Use pc-relative relocations in .eh_frame

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 19 11:35:30 PDT 2021


MaskRay requested changes to this revision.
MaskRay added a comment.
This revision now requires changes to proceed.

`MCTargetOptionsCommandFlags.cpp` may be a better place for the internal cl::opt option.



================
Comment at: llvm/lib/MC/MCObjectFileInfo.cpp:30
+cl::opt<bool>
+    MipsPC64Relocation("mmips-pc64-rel", cl::init(true),
+                       cl::desc("Use MIPS 64-bit PC-relative relocations"));
----------------
-m prefix is for assembler and dropver options.

Internal codegen options don't need the prefix.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80392/new/

https://reviews.llvm.org/D80392



More information about the cfe-commits mailing list