[PATCH] D129714: [Driver] Don't passs --dynamic-linker in -r mode

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 14 10:50:39 PDT 2022


MaskRay added a comment.

`-r -pie` feels like an error to me. `gcc -dumpspecs` uses `%{static|shared|r:;!no-pie:-pie}`, which means `-r` overrides `-pie`.
Either match the behavior if report an error. If reporting an error adds too much complexity, just match the behavior.
We just shouldn't let -pie override -r.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129714



More information about the cfe-commits mailing list