[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Passing -fno-lto by default?
From: |
Markus Trippelsdorf |
Subject: |
Re: Passing -fno-lto by default? |
Date: |
Fri, 7 Feb 2014 09:09:51 +0100 |
On 2014.02.07 at 08:44 +0100, Thomas Jahns wrote:
> On Feb 6, 2014, at 22:00 , Russ Allbery wrote:
> > Why would one not instead build the object and then use objdump on
> > it to
> > look at the exported symbols? It's still not ideally portable, but it
> > seems like it should be more portable than trying to grep the assembly
> > output.
>
>
> could perhaps even nm solve that? Then using libtool, which tries to
> find a BSD nm if available, would perhaps suffice.
That could work if you look for symbols that change e.g. from 'W' to 't'
with -fvisibility=hidden. With -flto you will need binutils that use the
linker-plugin by default, but that's yet another issue.
--
Markus