[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 Aug 14 13:30:00 PDT 2017


weimingz added a comment.

In https://reviews.llvm.org/D35970#840370, @olista01 wrote:

> I think it would be better to reject these options than to silently accept them, unless you plan on using them to emit build attributes.


For asm file, I think it's the asm file's responsibility to set the corresponding .eabi_attribute. I tried to assemble a .S with -fPIC and don't see any attributes is generated by assembler. And linker should catch if objs with incompatible ABIs are used.


https://reviews.llvm.org/D35970





More information about the llvm-commits mailing list