[patch] Pass -fuse-ld=gold to gccgo on targets supporting -fsplit-stack

Ian Lance Taylor iant@google.com
Wed Jan 22 19:11:00 GMT 2014

On Wed, Jan 22, 2014 at 10:16 AM, Matthias Klose <doko@ubuntu.com> wrote:
> Am 18.01.2014 03:03, schrieb Ian Lance Taylor:
>> On Fri, Nov 29, 2013 at 5:29 AM, Matthias Klose <doko@ubuntu.com> wrote:
>>> to get full advantage of the -fsplit-stack option, gccgo binaries have to be
>>> linked with gold, not the bfd linker.  When the system linker defaults to the
>>> bfd linker, then gccgo should explicitly use the gold linker, passing
>>> fuse-ld=gold, unless another -fuse-ld option is present.  Tested with and
>>> without having ld.gold on the system.
>> The change to libgo/configure.ac seems unrelated.
> No, it is required.  Without it you would check (with ld.bfd as the default) the
> help text of the ld.bfd linker, and not the one used for gccgo ($LD vs. $GOC).
> The quoting fix to fix the underquoting is now required because the argument has
> a comma now.

I see.  OK, I committed that part of the patch to mainline.



More information about the Gcc-patches mailing list