[PATCH] GNU LD option export-dynamic can accept single dash flag

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jan 20 11:30:02 PST 2015


On Mon, Jan 19, 2015 at 01:30:31PM -0800, Rui Ueyama wrote:
> I think my preference is opposite. Trying to make an "improvement" over GNU
> command line options would end up with a linker which is not fully
> compatible with GNU. I think that would cause confusion. I want it to be a
> drop-in replacement that just works.

This is a very specific case where a short option with argument and a
long option overlap. Additionally, a lot of non-GNU linker supports the
-e switch with argument semantics, but don't magically translate it to
--export-dynamic. The only question for me is whether some of the GCC
platforms specs are bad enough to use it as mapping for -rdynamic.
IMO it should otherwise at the very least be a warning.

Joerg



More information about the llvm-commits mailing list