This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -flto tests don't pick up libgloss code at link time
- From: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- To: Anthony Green <green at moxielogic dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 06 Mar 2011 13:57:52 +0000
- Subject: Re: -flto tests don't pick up libgloss code at link time
- References: <4D733185.9080306@moxielogic.com>
On 06/03/2011 07:02, Anthony Green wrote:
> All of the -flto tests fail for moxie-elf...
>
> http://gcc.gnu.org/ml/gcc-testresults/2011-03/msg00399.html
>
> It turns out that this is because it fails to link with the code in
> libgloss when I enable -flto.
>
> I link the test code with a special linker script (sim.ld) that pulls in
> the libgloss code found in the moxie libgloss port's libsim.a.
> Unfortunately it looks like this just doesn't happen with -flto. Any
> ideas why?
It's probably a bug. You're probably the first to try it.
GOLD or LD?
cheers,
DaveK