Re: LTO ltrans name mangling in GCC 4.8.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2017-08-31 13:03 +0000, Lassi Niemistö wrote:
> Hello,
> 
> 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"

This are the names of temp file in /tmp created by lto-trans.

> Why is the ltrans mangling some names like this? Can I somehow force it deterministic?

I don't know if we can do this in GCC 4.8.2.  With GCC 7.2 these names become "<artifical>".

> I can use link switch -s to strip this information, but if I want to include the debug info, this will not be
> possible.
> 
> -Lassi N.
-- 
Xi Ruoyao <ryxi@xxxxxxxxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux