[PATCH] D72222: [Driver][CodeGen] Add -fpatchable-function-entry=N[,0]

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 9 21:59:02 PST 2020


MaskRay accepted this revision.
MaskRay added a comment.

Some targets don't have a PC relative relocation of pointer size, e.g. `R_MIPS_PC64` (MIPS only has `R_MIPS_PC32`, which is a GNU extension, sigh https://sourceware.org/git/?p=binutils-gdb.git;a=commit;f=include/elf/mips.h;h=092dcd755dcdcf664b25a7011fd15957f124c29f). If we really need a PC-relative variant, we can use a new syntax `-fpatchable-function-entry=2,0,pcrel` with the existing option name. Let me commit the patch series.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72222





More information about the cfe-commits mailing list