[PATCH] D40558: [ELF] - Trigger error when -R <filename> is given.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 14:51:04 PST 2017


Rui Ueyama <ruiu at google.com> writes:

> I think we shouldn't even emit an error for the second case. -rpath is the
> information for the dynamic linker, and the static linker should blindly
> store given -rpath paths to a file header, because the static linker
> doesn't know the actual runtime environment. It is a valid use case that a
> given -rpath is not a directory in a build environment but a directory in a
> runtime environment.
>
> Given that, I'm inclined to not to emit an error or a warning at all for -R
> and just make it an alias to -rpath. If you are so familiar with linker
> features that you want to use --just-symbols, you are likely to know -R,
> -rpath and -just-symbols. -just-symbols is used very rarely, so in reality,
> I think this is not an issue.

OK, that works for me and is what is currently implemented: -R is a
plain alias to --rpath.

Cheers,
Rafael


More information about the llvm-commits mailing list