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

Chandler Carruth chandlerc at google.com
Fri Jan 23 18:30:54 PST 2015


On Tue, Jan 20, 2015 at 11:30 AM, Joerg Sonnenberger <
joerg at britannica.bec.de> wrote:

> 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.


FWIW, I'm not convinced this is sufficiently problematic to warrant this
complexity. I understand you disagree. This may just be a point where we
disagree.

I also don't think it is reasonable to hold up this patch waiting for that
warning to arrive.

If you want to contribute a patch adding such a warning, that would be very
nice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150123/da6f5522/attachment.html>


More information about the llvm-commits mailing list