[PATCH] D29681: Handle -G as an alias to -shared

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 8 05:54:53 PST 2017


Simon Atanasyan via Phabricator <reviews at reviews.llvm.org> writes:

> atanasyan added a comment.
>
>> This patch changes lld to handle -G as an alias to -shared. This means we would now error on "-G 123". How common is it for programs to use it meaning --gpsize?
>
> On MIPS this option is rarely used for regular programs, but in case of Linux kernel build, embedded software etc it is commonly used. So it is better to continue ignore a numeric argument.

NP, so far I have seen only one package that uses -G to mean -shared. I
will try changing the package instead. It is probably not worth having
the logic about -G with or without an argument.

Cheers,
Rafael


More information about the llvm-commits mailing list