[PATCH] D137044: [ClangFE] Add support for option -mno-pic-data-is-text-relative

Ulrich Weigand via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 4 14:54:53 PDT 2022


uweigand added a comment.

In D137044#3909116 <https://reviews.llvm.org/D137044#3909116>, @efriedma wrote:

> I'm very confused how you expect this to work... messing with the linkage of global variables is almost certainly going to explode.  If you need emit special sequences to access global variables with internal linkage, I'd expect the backend to handle that (along the lines of how -frwpi works on ARM).

I agree, this needs to be handled in the back end (it's done that way in the GCC implementation too).   @jonpa can you have a look?


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

https://reviews.llvm.org/D137044



More information about the llvm-commits mailing list