This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: LTO vs GCC 8
- From: Freddie Chopin <freddie_chopin at op dot pl>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 11 May 2018 17:32:50 +0200
- Subject: Re: LTO vs GCC 8
- References: <7837e9b3a56c6eb8806ae42a0b2447d09b7e1078.camel@op.pl> <CAFiYyc23=q4mWuusj8s73cYzaFGEHZ3SZMifmwKQoouZ2Axi-g@mail.gmail.com>
On Fri, 2018-05-11 at 11:19 +0200, Richard Biener wrote:
> Hmm, can you try without --gc-sections? "Old" GNU ld versions have
> a bug that wrecks debug info (sourceware PR20882).
Yes - you are right. Without --gc-sections the errors are gone. The bug
was marked as resolved and fixed a year ago, however from the comments
I presume that it was only a partial fix, so possibly 2.31 will be
working fine for arm-none-abi, right?
What is also interesting is that there was no problem for gcc 7.3 with
binutils 2.29.1 and for gcc 6.3 with binutils 2.28 - only 8.1 + 2.30
behave like this.
Is there a workaround for the problem? Maybe I could mark some sections
as KEEP() in the linker script while waiting for binutils 2.31?
Regards,
FCh