[PATCH] D35970: Teach cc1as driver to accept ARM ropi/rwpi reloc model

Weiming Zhao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 16:03:00 PDT 2017


weimingz added a comment.

In https://reviews.llvm.org/D35970#826789, @t.p.northover wrote:

> This looks like it'll get the build attributes wrong (since only PIC gets plumbed through to the backend). That's probably worse than simply rejecting the arguments.


Do you mean the attributes like:

  Tag_ABI_PCS_R9_use: SB
  Tag_ABI_PCS_RW_data: SB-relative
  Tag_ABI_PCS_GOT_use: direct

For cc1as, it won't add such tags no matter PIC or static relocation model. The PIC value only affects MIPS target and some DWARF info.


https://reviews.llvm.org/D35970





More information about the llvm-commits mailing list