[PATCH] D119655: [Driver][NetBSD] -r: imply -nostdlib like GCC

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 14 20:30:45 PST 2022


MaskRay added a comment.

In D119655#3318586 <https://reviews.llvm.org/D119655#3318586>, @joerg wrote:

> Well, it doesn't work with GCC either, that's why I don't care much about this change. It just attempts to legalize a user bug (using a linker option directly as a compiler flag). But I don't care enough to object either.

-r is different from -Wl,-r.
GCC is free to assign specific semantics to -r, like -no-pie, -pie, -shared, to alter crt files and -l libraries a bit.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119655



More information about the cfe-commits mailing list