[PATCH] GCC compatibility: pass -z linker options to the linker

Reid Kleckner rnk at google.com
Mon Jul 7 12:03:30 PDT 2014


>>! In D4393#5, @joerg wrote:
> I'm against this. I haven't seen enough evidence of use to justify it, other options like -R are certainly a lot more popular...

FWIW I'm in favor.  -z is not uncommon in my experience.

That said, a principled way to handle this would be to forward exactly the set of flags that gcc documents:
https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#Link-Options

If you submit a patch to gcc to document -z as a linker option, then we can add it to clang and be done with it.  =D

http://reviews.llvm.org/D4393






More information about the cfe-commits mailing list