← Back to team overview

touch-packages team mailing list archive

[Bug 1415486] Re: [arm] ld.gold crash on -flto link

 

*** This bug is a duplicate of bug 1191909 ***
    https://bugs.launchpad.net/bugs/1191909

** This bug has been marked a duplicate of bug 1191909
   gold and -flto always fails with an internal error on arm-linux-gnueabi*

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to binutils in Ubuntu.
https://bugs.launchpad.net/bugs/1415486

Title:
  [arm] ld.gold crash on -flto link

Status in binutils package in Ubuntu:
  New

Bug description:
  Running on armhf board with binutils 2.24-5ubuntu3. Any attempt to use
  -flto with the gold linker yields this internal error:

  $ cat test.c
  int main(int argc, char **argv)
  {
  	return 0;
  }
  $ gcc -flto -fuse-ld=gold -o test test.c
  /usr/bin/ld.gold: internal error in do_read_symbols, at ../../gold/arm.cc:6734
  collect2: error: ld returned 1 exit status

  This was reported to upstream a while ago, and was fixed:

  https://sourceware.org/bugzilla/show_bug.cgi?id=15639

  And I have tested the commit they pointed to:

  https://sourceware.org/git/gitweb.cgi?p=binutils-
  gdb.git;h=f35c4853cc5b0e51d8a460be390f7a20cd44ba44

  I applied this change, excluding the changes to ChangeLog (conflicts)
  and mips.cc (missing source file). With the change, -flto works again.
  Can this be pulled in to the next armhf build of binutils, please?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1415486/+subscriptions


References