touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #50748
[Bug 1415486] [NEW] [arm] ld.gold crash on -flto link
Public bug reported:
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?
** Affects: binutils (Ubuntu)
Importance: Undecided
Status: New
--
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
Follow ups
References