This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: LTO ltrans name mangling in GCC 4.8.2
- From: Markus Trippelsdorf <markus at trippelsdorf dot de>
- To: Lassi Niemistö <lassi dot niemisto at wapice dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 31 Aug 2017 15:32:07 +0200
- Subject: Re: LTO ltrans name mangling in GCC 4.8.2
- Authentication-results: sourceware.org; auth=none
- References: <a93fabe6769646399864db467593dae3@EDB3.wapice.localdomain>
On 2017.08.31 at 13:03 +0000, Lassi Niemistö wrote:
>
> Aiming for a deterministic build, one of the last walls I hit is the
> LTO (-fwhole-program -flto -fuse-linker-plugin).
>
> When running
> strings < /path/to/binary
> for two different build runs and diff them, I get differences like
> "ccV3ggwx.ltrans0.o" vs. "cchJIW0p.ltrans0.o"
>
> Why is the ltrans mangling some names like this? Can I somehow force
> it deterministic?
>
> I can use link switch -s to strip this information, but if I want to
> include the debug info, this will not be possible.
Use a more recent gcc version? This issue was already fixed in 4.8.5.
--
Markus